119
dnl n.b. scl_default_name is hardcoded in "with" message
122
AC_ARG_ENABLE(scl,[ --enable-scl Use SCL],
123
[case "${enableval}" in
125
explicit_lisp=true ;;
127
*) AC_MSG_ERROR(bad value ${enableval} for --enable-scl) ;;
132
[ --with-scl=<prog> Use SCL executable <prog> (default scl)],
135
if test "$withval" = "yes"; then
136
SCL_NAME="${scl_default_name}"
140
[SCL_NAME=${scl_default_name}])
141
AC_ARG_WITH(scl-runtime,
142
[ --with-scl-runtime=<path> Use SCL runtime <path> (default
143
file://library/../bin/lisp)],
145
SCL_RUNTIME_PATH="$withval"
146
SCL_RUNTIME=`basename ${SCL_RUNTIME_PATH}`],
148
if test x"${scl}" = xtrue ; then
149
if test `echo "$SCL_NAME" | sed 's/\(.\).*/\1/'` = "/" ; then
150
if test -x "$SCL_NAME" ; then
156
AC_CHECK_PROG(scl_found,$SCL_NAME,true,false)
158
AC_CHECK_PROG(scl_found,$SCL_NAME,true,false)
159
if test x"${scl_found}" = xfalse ; then
160
AC_MSG_WARN(scl executable ${SCL_NAME} not found in PATH)
119
164
dnl n.b. sbcl_default_name is hardcoded in "with" message
120
165
sbcl_default_name=sbcl
121
166
AC_ARG_ENABLE(sbcl,[ --enable-sbcl Use SBCL],
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],
201
dnl n.b. acl_default_name is hardcoded in "with" message
202
acl_default_name=lisp
203
AC_ARG_ENABLE(acl,[ --enable-acl Use ACL],
159
204
[case "${enableval}" in
161
206
explicit_lisp=true ;;
163
*) AC_MSG_ERROR(bad value ${enableval} for --enable-acl6) ;;
208
*) AC_MSG_ERROR(bad value ${enableval} for --enable-acl) ;;
165
210
explicit_lisp=true],
168
[ --with-acl6=<prog> Use ACL6 executable <prog> (default lisp)],
213
[ --with-acl=<prog> Use ACL executable <prog> (default lisp)],
170
215
explicit_lisp=true
171
216
if test "$withval" = "yes"; then
172
ACL6_NAME="${acl6_default_name}"
217
ACL_NAME="${acl_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
221
[ACL_NAME=${acl_default_name}])
222
if test x"${acl}" = xtrue ; then
223
if test `echo "$ACL_NAME" | sed 's/\(.\).*/\1/'` = "/" ; then
224
if test -x "$ACL_NAME" ; then
185
AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
230
AC_CHECK_PROG(acl_found,$ACL_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)
232
AC_CHECK_PROG(acl_found,$ACL_NAME,true,false)
233
if test x"${acl_found}" = xfalse ; then
234
AC_MSG_WARN(acl executable ${ACL_NAME} not found in PATH)
308
AC_ARG_ENABLE(lang-es,[ --enable-lang-es Spanish language support],
309
[case "${enableval}" in
312
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lang-es) ;;
316
AM_CONDITIONAL(LANG_ES, test x$lang_es = xtrue)
318
AC_ARG_ENABLE(lang-es-utf8,[ --enable-lang-es-utf8 Spanish language support (UTF-8)],
319
[case "${enableval}" in
320
yes) lang_es_utf8=true ;;
321
no) lang_es_utf8=false ;;
322
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lang-es-utf8) ;;
324
[lang_es_utf8=false])
326
AM_CONDITIONAL(LANG_ES_UTF8, test x$lang_es_utf8 = xtrue)
328
AC_ARG_ENABLE(lang-pt,[ --enable-lang-pt Portuguese language support],
329
[case "${enableval}" in
332
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lang-pt) ;;
336
AM_CONDITIONAL(LANG_PT, test x$lang_pt = xtrue)
338
AC_ARG_ENABLE(lang-pt-utf8,[ --enable-lang-pt-utf8 Portuguese language support (UTF-8)],
339
[case "${enableval}" in
340
yes) lang_pt_utf8=true ;;
341
no) lang_pt_utf8=false ;;
342
*) AC_MSG_ERROR(bad value ${enableval} for --enable-lang-pt-utf8) ;;
344
[lang_pt_utf8=false])
346
AM_CONDITIONAL(LANG_PT_UTF8, test x$lang_pt_utf8 = xtrue)
348
AC_ARG_ENABLE(recode,[ --enable-recode Use recode for charset conversion],
349
[case "${enableval}" in
350
yes) use_recode=true ;;
351
no) use_recode=false ;;
352
*) AC_MSG_ERROR(bad value ${enableval} for --enable-recode) ;;
356
AC_CHECK_PROG(iconv_found,iconv,true,false)
357
AC_CHECK_PROG(recode_found,recode,true,false)
359
if test x"${use_recode}" = xtrue ; then
360
if test x"${recode_found}" = xfalse ; then
361
AC_MSG_ERROR(No recode found)
363
elif test x"${iconv_found}" = xfalse ; then
369
AM_CONDITIONAL(USE_RECODE, test x$use_recode = xtrue)
263
371
if test x"${explicit_lisp}" = xfalse ; then
264
372
dnl AC_CHECK_PROG(clisp_found,${clisp_default_name},true,false)
265
373
dnl if test x"${clisp_found}" = xtrue ; then
273
381
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
384
dnl AC_CHECK_PROG(scl_found,$SCL_NAME,true,false)
385
dnl if test x"${scl_found}" = xtrue ; then
280
dnl AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
281
dnl if test x"${acl6_found}" = xtrue ; then
388
dnl AC_CHECK_PROG(sbcl_found,$SBCL_NAME,true,false)
389
dnl if test x"${sbcl_found}" = xtrue ; then
284
dnl AC_CHECK_PROG(openmcl_found,$OPENMCL_NAME,true,false)
285
dnl if test x"${openmcl_found}" = xtrue ; then
392
dnl AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
393
dnl if test x"${acl6_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)
396
dnl AC_CHECK_PROG(openmcl_found,$OPENMCL_NAME,true,false)
397
dnl if test x"${openmcl_found}" = xtrue ; then
400
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),${scl_default_name}(SCL),${sbcl_default_name}(SBCL),${acl6_default_name}(ACL6),${openmcl_default_name}(OpenMCL)] were found in PATH)
296
409
AC_CHECK_PROG(clisp_found,${clisp_default_name},true,false)
297
410
AC_CHECK_PROG(gcl_found,${gcl_default_name},true,false)
298
411
AC_CHECK_PROG(cmucl_found,$CMUCL_NAME,true,false)
412
AC_CHECK_PROG(scl_found,$SCL_NAME,true,false)
299
413
AC_CHECK_PROG(sbcl_found,$SBCL_NAME,true,false)
300
AC_CHECK_PROG(acl6_found,$ACL6_NAME,true,false)
414
AC_CHECK_PROG(acl_found,$ACL_NAME,true,false)
301
415
AC_CHECK_PROG(openmcl_found,$OPENMCL_NAME,true,false)
303
417
if test x"${clisp_found}" = xtrue ; then
307
421
elif test x"${cmucl_found}" = xtrue ; then
423
elif test x"${scl_found}" = xtrue ; then
309
425
elif test x"${sbcl_found}" = xtrue ; then
311
elif test x"${acl6_found}" = xtrue ; then
427
elif test x"${acl_found}" = xtrue ; then
313
429
elif test x"${openmcl_found}" = xtrue ; then
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)
432
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),${scl_default_name}(SCL),${sbcl_default_name}(SBCL),${acl_default_name}(ACL),${openmcl_default_name}(OpenMCL)] were found in PATH)
320
436
AM_CONDITIONAL(CLISP, test x$clisp = xtrue)
321
437
AM_CONDITIONAL(GCL, test x$gcl = xtrue)
322
438
AM_CONDITIONAL(CMUCL, test x$cmucl = xtrue)
439
AM_CONDITIONAL(SCL, test x$scl = xtrue)
323
440
AM_CONDITIONAL(SBCL, test x$sbcl = xtrue)
324
AM_CONDITIONAL(ACL6, test x$acl6 = xtrue)
441
AM_CONDITIONAL(ACL, test x$acl = xtrue)
325
442
AM_CONDITIONAL(OPENMCL, test x$openmcl = xtrue)
327
444
if test x"${clisp}" = xtrue; then
343
460
if test x"${cmucl}" = xtrue; then
344
461
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)'`
462
CMUCL_RUNTIME_PATH=`${CMUCL_NAME} -noinit -nositeinit -quiet -batch -eval '#+cmu19 (progn (setf (search-list "cmuclbin:") (append (lisp::parse-unix-search-path lisp::*cmucl-lib*) (mapcar (function (lambda (p) (concatenate (quote string) p "../bin/"))) (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
464
if test -x "${CMUCL_RUNTIME_PATH}" ; then
348
465
echo "cmucl runtime is \"${CMUCL_RUNTIME_PATH}\""
350
467
dnl last chance: find CMUCL_NAME in path. Use it if it doesn't appear to
353
470
if test x"`grep -c '#!.*bin.*sh.*' ${cmucl_path}`" = x"0" ; then
354
471
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
473
AC_MSG_ERROR([Unable to determine CMUCL runtime path.
474
The best guess for CMUCL runtime, \"${CMUCL_RUNTIME_PATH}\", is not
358
475
an executable. Use the argument
359
476
--with-cmucl-runtime=<path>
360
477
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.)
478
script the CMUCL executable is the program exec'd by that shell script.])
364
481
CMUCL_RUNTIME=`basename ${CMUCL_RUNTIME_PATH}`
483
dnl cmucl final check
484
result=`"${CMUCL_RUNTIME_PATH}" -quiet -eval '(format t "MAXIMA_CMUCL_TEST_SUCCESS%")(quit)'`
486
if test ! x"${retval}" = x"0" ; then
487
AC_MSG_ERROR(unable to run cmucl runtime = "${CMUCL_RUNTIME_PATH}".
488
Please specify the full path of the cmucl runtime using the
489
--with-cmucl-runtime=<path>
492
count=`echo "${result}" | grep -c "MAXIMA_CMUCL_TEST_SUCCESS"`
493
if test ! "${count}" = "1" ; then
494
AC_MSG_ERROR(an error occured while checking cmucl runtime)
498
if test x"${scl}" = xtrue; then
499
if test x"${SCL_RUNTIME_PATH}" = x"" ; then
500
SCL_RUNTIME_PATH=`${SCL_NAME} -noinit -nositeinit -quiet -batch -eval '(progn (enumerate-pathname-translations (pathname "file://library/../bin/lisp") (when (probe-file pathname) (format t "~A~%" (unix-namestring pathname)))) (quit))'`
502
if test -x "${SCL_RUNTIME_PATH}" ; then
503
echo "scl runtime is \"${SCL_RUNTIME_PATH}\""
505
dnl last chance: find SCL_NAME in path. Use it if it doesn't appear to
506
dnl be a shell script.
507
scl_path=`type -p "${SCL_NAME}"`
508
if test x"`grep -c '#!.*bin.*sh.*' ${scl_path}`" = x"0" ; then
509
SCL_RUNTIME_PATH="${scl_path}"
511
AC_MSG_ERROR([Unable to determine SCL runtime path.
512
The best guess for SCL runtime, \"${SCL_RUNTIME_PATH}\", is not
513
an executable. Use the argument
514
--with-scl-runtime=<path>
515
to set the actual SCL executable. If the SCL lisp command is a shell
516
script the SCL executable is the program exec'd by that shell script.])
519
SCL_RUNTIME=`basename ${SCL_RUNTIME_PATH}`
522
if test x"${gcl}" = xtrue; then
523
result=`"${GCL_NAME}" -batch -eval '#+ansi-cl (format t "MAXIMA_GCL_ANSI_TEST_SUCCESS~%") #-ansi-cl (format t "MAXIMA_GCL_ANSI_TEST_FAILURE~%")' -eval '(quit)'`
525
if test ! x"${retval}" = x"0" ; then
526
AC_MSG_ERROR(unable to run gcl executable \"${GCL_NAME}\".)
528
count=`echo "${result}" | grep -c "MAXIMA_GCL_ANSI_TEST_SUCCESS"`
529
if test ! "${count}" = "1" ; then
530
AC_MSG_ERROR([The gcl executable \"${GCL_NAME}\" was not compiled with
531
the --enable-ansi flag, which is required for Maxima.
532
The gcl ANSI-CL check returned
367
537
AC_ARG_ENABLE(gcl-alt-link,
533
715
echo "CMUCL enabled. Executable name: \"${CMUCL_NAME}\""
534
716
echo "cmucl runtime is \"${CMUCL_RUNTIME_PATH}\""
718
if test x"${scl}" = xtrue ; then
719
echo "SCL enabled. Executable name: \"${SCL_NAME}\""
720
echo "SCL runtime is \"${SCL_RUNTIME_PATH}\""
536
722
if test x"${sbcl}" = xtrue ; then
537
723
echo "SBCL enabled. Executable name: \"${SBCL_NAME}\""
542
728
echo " GCL alternative linking method enabled."
545
if test x"${acl6}" = xtrue ; then
546
echo "ACL6 enabled. Executable name: \"${ACL6_NAME}\""
731
if test x"${acl}" = xtrue ; then
732
echo "ACL enabled. Executable name: \"${ACL_NAME}\""
548
734
if test x"${openmcl}" = xtrue ; then
549
735
echo "OpenMCL enabled. Executable name: \"${OPENMCL_NAME}\""