2 dnl Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 dnl 2011 Free Software Foundation, Inc.
5 dnl This program is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3 of the License, or
8 dnl (at your option) any later version.
10 dnl This program is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program; if not, write to the Free Software
16 dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 # MTASC - Path to mtasc executable
26 # MTASC_CLASSPATH - Classpath for mtasc
29 AC_DEFUN([AC_PATH_MTASC], [
33 AC_ARG_WITH(mtasc, AC_HELP_STRING([--with-mtasc=<path>], [Path to the mtasc executable]), [
36 *) MTASC=${withval} ;;
40 AC_ARG_WITH(mtasc-classpath, AC_HELP_STRING([--with-mtasc-classpath=<path>], [CLASSPATH for mtasc]), [
43 *) MTASC_CLASSPATH=${withval} ;;
45 ], MTASC_CLASSPATH="")
47 if test x"$MTASC" = "x"; then
48 AC_PATH_PROG(MTASC, mtasc, ,[${pathlist}])
51 if test x"$MTASC" != "x" -a x"$MTASC_CLASSPATH" = "x"; then
52 # cross your fingers !
53 if test -d "`dirname ${MTASC}`/std"; then
54 dir="`dirname ${MTASC}`/std"
55 elif test -d "/usr/share/mtasc/std"; then
56 dir="/usr/share/mtasc/std"
59 dir="/usr/share/ocaml/mtasc/std"
66 AC_SUBST(MTASC_CLASSPATH)
72 # indent-tabs-mode: nil