Skip to content

Commit 02ade8d

Browse files
author
cage
committed
- enable configure option to compile with ECL compiler.
1 parent c7d2a55 commit 02ade8d

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

configure

+15-6
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ with_gnu_ld
757757
enable_rpath
758758
with_libiconv_prefix
759759
with_libintl_prefix
760+
with_ecl
760761
'
761762
ac_precious_vars='build_alias
762763
host_alias
@@ -1411,6 +1412,7 @@ Optional Packages:
14111412
--without-libiconv-prefix don't search for libiconv in includedir and libdir
14121413
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
14131414
--without-libintl-prefix don't search for libintl in includedir and libdir
1415+
--with-ecl Compile with Embedded Common Lisp compiler
14141416
14151417
Some influential environment variables:
14161418
CC C compiler command
@@ -7105,13 +7107,20 @@ fi
71057107
71067108
71077109
7110+
7111+
# Check whether --with-ecl was given.
7112+
if test ${with_ecl+y}
7113+
then :
7114+
withval=$with_ecl; LISP_COMPILER=$LISP_COMPILER_ECL
7115+
fi
7116+
7117+
71087118
if test "$LISP_COMPILER" = "no" ; then
7109-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can not find SBCL, Common Lisp compiler." >&5
7110-
printf "%s\n" "$as_me: WARNING: Can not find SBCL, Common Lisp compiler." >&2;};
7111-
LISP_COMPILER=$LISP_COMPILER_ECL;
7112-
if test "$LISP_COMPILER_ECL" = "no" ; then
7113-
as_fn_error $? "Can not find ECL, Common Lisp compiler." "$LINENO" 5;
7114-
fi
7119+
if test "$LISP_COMPILER_ECL" != "no" ; then
7120+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to find SBCL but ECL seems installed on your system, try: \"./reconfigure --with-ecl\"" >&5
7121+
printf "%s\n" "$as_me: Unable to find SBCL but ECL seems installed on your system, try: \"./reconfigure --with-ecl\"" >&6;}
7122+
fi
7123+
as_fn_error $? "Unable to find a Common Lisp compiler." "$LINENO" 5;
71157124
fi
71167125
71177126
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using $LISP_COMPILER as Common Lisp compiler" >&5

configure.ac

+6-5
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ AC_PATH_PROG([LISP_COMPILER],[sbcl],[no])
4545

4646
AC_PATH_PROG([LISP_COMPILER_ECL],[ecl],[no])
4747

48+
AC_ARG_WITH([ecl], [AS_HELP_STRING([--with-ecl], [Compile with Embedded Common Lisp compiler])], [LISP_COMPILER=$LISP_COMPILER_ECL], [])
49+
4850
if test "$LISP_COMPILER" = "no" ; then
49-
AC_MSG_WARN([Can not find SBCL, Common Lisp compiler.]);
50-
LISP_COMPILER=$LISP_COMPILER_ECL;
51-
if test "$LISP_COMPILER_ECL" = "no" ; then
52-
AC_MSG_ERROR([Can not find ECL, Common Lisp compiler.]);
53-
fi
51+
if test "$LISP_COMPILER_ECL" != "no" ; then
52+
AC_MSG_NOTICE([Unable to find SBCL but ECL seems installed on your system, try: "./reconfigure --with-ecl"])
53+
fi
54+
AC_MSG_ERROR([Unable to find a Common Lisp compiler.]);
5455
fi
5556

5657
AC_MSG_NOTICE([Using $LISP_COMPILER as Common Lisp compiler])

0 commit comments

Comments
 (0)