1
0
forked from GitHub/gf-core

Added option to disable readline.

This commit is contained in:
bringert
2005-05-10 13:55:01 +00:00
parent 41657fed46
commit 2fa6b60d04
5 changed files with 94 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ AC_INIT([GF],[2.2],[aarne@cs.chalmers.se],[GF])
AC_PREREQ(2.53)
AC_REVISION($Revision: 1.13 $)
AC_REVISION($Revision: 1.14 $)
AC_CONFIG_FILES([config.mk jgf])
@@ -41,6 +41,34 @@ GHCI=$(dirname $GHC)/ghci
AC_SUBST(GHC)
AC_SUBST(GHCI)
dnl ***********************************************
dnl readline
dnl ***********************************************
AC_ARG_WITH(readline,
AC_HELP_STRING([--with-readline=<readline alternative>],
[Select which readline implementation to use.
Available alternatives are: 'readline' (GNU readline),
'no' (don't use readline)
(default = readline)]),
[if test "$withval" = "yes"; then
READLINE="readline"
else
READLINE="$withval"
fi],
[READLINE="readline"])
case $READLINE in
readline)
;;
no)
;;
*)
AC_MSG_ERROR([Bad value for --with-readline: $READLINE])
;;
esac
AC_SUBST(READLINE)
dnl ***********************************************
dnl java stuff