80
115
AC_MSG_WARN(cmucl executable ${CMUCL_NAME} not found in PATH)
119
dnl n.b. sbcl_default_name is hardcoded in "with" message
120
sbcl_default_name=sbcl
121
AC_ARG_ENABLE(sbcl,[ --enable-sbcl Use SBCL],
122
[case "${enableval}" in
124
explicit_lisp=true ;;
126
*) AC_MSG_ERROR(bad value ${enableval} for --enable-sbcl) ;;
131
[ --with-sbcl=<prog> Use SBCL executable <prog> (default sbcl)],
134
if test "$withval" = "yes"; then
135
SBCL_NAME="${sbcl_default_name}"
139
[SBCL_NAME=${sbcl_default_name}])
140
if test x"${sbcl}" = xtrue ; then
141
if test `echo "$SBCL_NAME" | sed 's/\(.\).*/\1/'` = "/" ; then
142
if test -x "$SBCL_NAME" ; then
148
AC_CHECK_PROG(sbcl_found,$SBCL_NAME,true,false)
150
AC_CHECK_PROG(sbcl_found,$SBCL_NAME,true,false)
151
if test x"${sbcl_found}" = xfalse ; then
152
AC_MSG_WARN(sbcl executable ${SBCL_NAME} not found in PATH)
156
dnl n.b. acl6_default_name is hardcoded in "with" message
157
acl6_default_name=lisp
158
AC_ARG_ENABLE(acl6,[ --enable-acl6 Use ACL 6],
159
[case "${enableval}" in
161
explicit_lisp=true ;;
163
*) AC_MSG_ERROR(bad value ${enableval} for --enable-acl6) ;;
168
[ --with-acl6=<prog> Use ACL6 executable <prog> (default lisp)],
171
if test "$withval" = "yes"; then
172
ACL6_NAME="${acl6_default_name}"
176
[ACL6_NAME=${acl6_default_name}])
177
if test x"${acl6}" = xtrue ; then
178
if test `echo "$ACL6_NAME" | sed 's/\(.\).*/\1/'` = "/" ; then
179
if test -x "$ACL6_NAME" ; then
185
AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
187
AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
188
if test x"${acl6_found}" = xfalse ; then
189
AC_MSG_WARN(acl6 executable ${ACL6_NAME} not found in PATH)
84
193
dnl n.b. gcl_default_name is hardcoded in "with" message
85
194
gcl_default_name=gcl
86
195
AC_ARG_ENABLE(gcl,[ --enable-gcl Use GCL],
228
dnl n.b. openmcl_default_name is hardcoded in "with" message
229
openmcl_default_name=openmcl
230
AC_ARG_ENABLE(openmcl,[ --enable-openmcl Use OpenMCL],
231
[case "${enableval}" in
235
*) AC_MSG_ERROR(bad value ${enableval} for --enable-openmcl) ;;
239
[ --with-openmcl=<prog> Use OpenMCL executable <prog> (default openmcl)],
242
if test "$withval" = "yes"; then
243
OPENMCL_NAME="${openmcl_default_name}"
245
OPENMCL_NAME="$withval"
247
[OPENMCL_NAME=${openmcl_default_name}])
248
if test x"${openmcl}" = xtrue ; then
249
if test `echo "$OPENMCL_NAME" | sed 's/\(.\).*/\1/'` = "/" ; then
250
if test -x "$OPENMCL_NAME" ; then
256
AC_CHECK_PROG(openmcl_found,$OPENMCL_NAME,true,false)
258
if test x"${openmcl_found}" = xfalse ; then
259
AC_MSG_WARN(openmcl executable ${OPENMCL_NAME} not found in PATH)
119
263
if test x"${explicit_lisp}" = xfalse ; then
120
AC_CHECK_PROG(clisp_found,${clisp_default_name},true,false)
121
if test x"${clisp_found}" = xtrue ; then
264
dnl AC_CHECK_PROG(clisp_found,${clisp_default_name},true,false)
265
dnl if test x"${clisp_found}" = xtrue ; then
268
dnl AC_CHECK_PROG(gcl_found,${gcl_default_name},true,false)
269
dnl if test x"${gcl_found}" = xtrue ; then
272
dnl AC_CHECK_PROG(cmucl_found,$CMUCL_NAME,true,false)
273
dnl if test x"${cmucl_found}" = xtrue ; then
276
dnl AC_CHECK_PROG(sbcl_found,$SBCL_NAME,true,false)
277
dnl if test x"${sbcl_found}" = xtrue ; then
280
dnl AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
281
dnl if test x"${acl6_found}" = xtrue ; then
284
dnl AC_CHECK_PROG(openmcl_found,$OPENMCL_NAME,true,false)
285
dnl if test x"${openmcl_found}" = xtrue ; then
288
dnl AC_MSG_ERROR(No lisp implementation specified and none of the default executables [${clisp_default_name}(clisp),${gcl_default_name}(GCL),${cmucl_default_name}(CMUCL),${sbcl_default_name}(SBCL),${acl6_default_name}(ACL6),${openmcl_default_name}(OpenMCL)] were found in PATH)
295
dnl See if any of the lisps can be found
296
AC_CHECK_PROG(clisp_found,${clisp_default_name},true,false)
297
AC_CHECK_PROG(gcl_found,${gcl_default_name},true,false)
298
AC_CHECK_PROG(cmucl_found,$CMUCL_NAME,true,false)
299
AC_CHECK_PROG(sbcl_found,$SBCL_NAME,true,false)
300
AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
301
AC_CHECK_PROG(openmcl_found,$OPENMCL_NAME,true,false)
303
if test x"${clisp_found}" = xtrue ; then
305
elif test x"${gcl_found}" = xtrue ; then
307
elif test x"${cmucl_found}" = xtrue ; then
309
elif test x"${sbcl_found}" = xtrue ; then
311
elif test x"${acl6_found}" = xtrue ; then
313
elif test x"${openmcl_found}" = xtrue ; then
124
AC_CHECK_PROG(gcl_found,${gcl_default_name},true,false)
125
if test x"${gcl_found}" = xtrue ; then
128
AC_CHECK_PROG(cmucl_found,$CMUCL_NAME,true,false)
129
if test x"${cmucl_found}" = xtrue ; then
132
AC_MSG_ERROR(No lisp implementation specified and none of the default executables [${clisp_default_name}(clisp),${gcl_default_name}(GCL),${cmucl_default_name}(CMUCL)] were found in PATH)
316
AC_MSG_ERROR(No lisp implementation specified and none of the default executables [${clisp_default_name}(clisp),${gcl_default_name}(GCL),${cmucl_default_name}(CMUCL),${sbcl_default_name}(SBCL),${acl6_default_name}(ACL6),${openmcl_default_name}(OpenMCL)] were found in PATH)
138
320
AM_CONDITIONAL(CLISP, test x$clisp = xtrue)
139
321
AM_CONDITIONAL(GCL, test x$gcl = xtrue)
140
322
AM_CONDITIONAL(CMUCL, test x$cmucl = xtrue)
323
AM_CONDITIONAL(SBCL, test x$sbcl = xtrue)
324
AM_CONDITIONAL(ACL6, test x$acl6 = xtrue)
325
AM_CONDITIONAL(OPENMCL, test x$openmcl = xtrue)
327
if test x"${clisp}" = xtrue; then
328
if test x"${CLISP_RUNTIME_PATH}" = x"" ; then
329
if test x"${mingw}" = xtrue ; then
330
CLISP_RUNTIME_PATH=`${CLISP_NAME} -norc -q -x "(format nil \"~a${CLISP_RUNTIME}\" (namestring *lib-directory*))"|sed 's/\"\\(.*\\)\"/\\1/'`
332
CLISP_RUNTIME_PATH=`${CLISP_NAME} -norc -q -x "(format nil \"~abase/${CLISP_RUNTIME}\" (namestring *lib-directory*))"|sed 's/\"\\(.*\\)\"/\\1/'`
335
if test -x ${CLISP_RUNTIME_PATH} ; then
336
echo "clisp runtime is \"${CLISP_RUNTIME_PATH}\""
338
AC_MSG_ERROR(clisp runtime \"${CLISP_RUNTIME_PATH}\" is not an executable)
340
CLISP_RUNTIME=`basename ${CLISP_RUNTIME_PATH}`
343
if test x"${cmucl}" = xtrue; then
344
if test x"${CMUCL_RUNTIME_PATH}" = x"" ; then
345
CMUCL_RUNTIME_PATH=`${CMUCL_NAME} -noinit -nositeinit -quiet -batch -eval '#+cmu19 (progn (setf (search-list "cmuclbin:") (lisp::parse-unix-search-path lisp::*cmucl-lib*)) (enumerate-search-list (s "cmuclbin:lisp") (when (probe-file s) (format t "~A~%" s) (quit)))) #+cmu18 (format t "~a/../bin/lisp~%" common-lisp::*cmucl-lib*)(quit)'`
347
if test -x ${CMUCL_RUNTIME_PATH} ; then
348
echo "cmucl runtime is \"${CMUCL_RUNTIME_PATH}\""
350
dnl last chance: find CMUCL_NAME in path. Use it if it doesn't appear to
351
dnl be a shell script.
352
cmucl_path=`type -p "${CMUCL_NAME}"`
353
if test x"`grep -c '#!.*bin.*sh.*' ${cmucl_path}`" = x"0" ; then
354
CMUCL_RUNTIME_PATH="${cmucl_path}"
356
AC_MSG_ERROR(Unable to determine CMUCL runtime path.
357
The best guess for CMUCL runtime \"${CMUCL_RUNTIME_PATH}\" is not
358
an executable. Use the argument
359
--with-cmucl-runtime=<path>
360
to set the actual CMUCL executable. If the CMUCL lisp command is a shell
361
script the CMUCL executable is the program exec'd by that shell script.)
364
CMUCL_RUNTIME=`basename ${CMUCL_RUNTIME_PATH}`
142
367
AC_ARG_ENABLE(gcl-alt-link,
143
368
[ --enable-gcl-alt-link Use GCL's alternate linking mechanism],