Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (70 sloc) 1.49 KB
dnl Process this file with autoconf to produce a configure script.
AC_INIT()
AM_INIT_AUTOMAKE(babel, 0.0.2)
AM_MAINTAINER_MODE
AC_PROG_MAKE_SET
assemblydir='$(libdir)'
AC_SUBST(assemblydir)
AC_ARG_WITH(cs,
[ --with-cs=PATH path to cs],
[
AC_MSG_RESULT(using $withval for cs)
CS="$withval"
], [
AC_PATH_PROGS(CS, gmcs csc, no)
])
AC_MSG_CHECKING(flags for cs)
AC_ARG_WITH(csflags,
[ --with-csflags=FLAGS flags for cs],
[
CSFLAGS="$withval"
], [
CSFLAGS="-debug"
])
AC_MSG_RESULT($CSFLAGS)
AC_SUBST(CSFLAGS)
AC_ARG_WITH(jay,
[ --with-jay=PATH path to jay],
[
AC_MSG_RESULT(using $withval for jay)
JAY="$withval"
], [
AC_PATH_PROG(JAY, jay, no)
])
AC_MSG_CHECKING(skeleton.cs)
AC_ARG_WITH(skeleton,
[ --with-skeleton=PATH path to skeleton.cs],
[
SKELETON="$withval"
], [
if test -f /usr/share/doc/mono-jay/examples/skeleton.cs; then
SKELETON=/usr/share/doc/mono-jay/examples/skeleton.cs
else
SKELETON=`$JAY -p`/skeleton.cs
fi
])
AC_MSG_RESULT($SKELETON)
AC_SUBST(SKELETON)
AC_ARG_WITH(mono,
[ --with-mono=PATH path to mono],
[
AC_MSG_RESULT(using $withval for mono)
MONO="$withval"
], [
AC_PATH_PROG(MONO, mono, "")
])
AC_ARG_WITH(ruby,
[ --with-ruby=PATH path to ruby],
[
AC_MSG_RESULT(using $withval for ruby)
RUBY="$withval"
], [
AC_PATH_PROG(RUBY, ruby, no)
])
AC_OUTPUT([Makefile
src/Makefile
lib/Makefile
lib/base/Makefile
lib/io/Makefile
scripts/Makefile
tests/Makefile])