X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/blobdiff_plain/e41cbc79e39d62f0343a48efc4d832ed99c83aaf..47a219e85c4215cea80c75ed9b26ed7dc404a8e2:/configure.ac diff --git a/configure.ac b/configure.ac index 19f91ae..aa86546 100644 --- a/configure.ac +++ b/configure.ac @@ -45,7 +45,12 @@ AC_CHECK_PROGS([AUTOM4TE], [autom4te]) dnl-------------------------------------------------------------------------- dnl Checking for Lisp implementations. -imagedir=$localstatedir/$PACKAGE_NAME; AC_SUBST(imagedir) +AC_ARG_WITH([imagedir], + [AS_HELP_STRING([--with-imagedir=DIR], + [store and look for custom Lisp images in DIR])], + [imagedir=$withval], [imagedir=$localstatedir/$PACKAGE_NAME]) +AC_SUBST(imagedir) + mdw_DEFINE_PATHS([ mdw_DEFINE_PATH([IMAGEDIR], [$imagedir]) mdw_DEFINE_PATH([ETCDIR], [$sysconfdir/$PACKAGE_NAME]) @@ -92,12 +97,12 @@ if test "x$ECL" != x; then gnu) AC_DEFINE([ECL_OPTIONS_GNU], [1], [Define 1 if ECL uses GNU-style `--FOO' options]) ;; esac + case $mdw_ecl_opts in + gnu) ECLOPT=-- ;; + trad) ECLOPT=- ;; + *) AC_MSG_ERROR([internal error: unexpected value for `$mdw_ecl_opts']) ;; + esac fi -case $mdw_ecl_opts in - gnu) ECLOPT=-- ;; - trad) ECLOPT=- ;; - *) AC_MSG_ERROR([internal error: unexpected value for `$mdw_ecl_opts']) ;; -esac AC_SUBST([ECLOPT]) dnl--------------------------------------------------------------------------