[PATCH] misc cleanup in configure.ac

1 view
Skip to first unread message

Qian Yun

unread,
Oct 13, 2023, 11:56:06 PM10/13/23
to fricas-devel
When running "./configure", there is no pairing "AC_MSG_CHECKING"
for "AC_MSG_RESULT([$fricas_fasl_type])":

...
checking for unistd.h... yes
fasl
checking dirent.h usability... yes
...

So this patch fixes that. Also moves it upward to be under
"checking Lisp implementation".

There are also grammar fixes in the patch.

The associated "configure" change is not shown here. Will
include that during commit.

- Qian

=====

diff --git a/configure.ac b/configure.ac
index ba896bac..bf24093c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -226,6 +226,23 @@ AC_MSG_RESULT([$fricas_lisp_flavor])
fricas_fasl_type=`sed -n -e 's/fricas_fasl_type=//p' config_cl.out`
fricas_lisp_version=`sed -n -e 's/fricas_lisp_version=//p' config_cl.out`

+AC_MSG_CHECKING([for suffix of compiled Lisp files])
+if test -z $fricas_fasl_type; then
+ AC_MSG_ERROR([Could not determine extension for compiled Lisp files])
+fi
+AC_MSG_RESULT([$fricas_fasl_type])
+
+fricas_fasl_type2=$fricas_fasl_type
+case $fricas_lisp_flavor in
+ ecl)
+ fricas_fasl_type="o"
+ ;;
+ *)
+ ;;
+esac
+AC_SUBST(fricas_fasl_type)
+AC_SUBST(fricas_fasl_type2)
+
if test -z "$fricas_lisp_version" ; then
AC_MSG_WARN([Unable to determine Lisp version.])
else
@@ -412,7 +429,8 @@ AS_IF([test -n "$GMP_WRAP_SO_TARGET"],[
])
AC_SUBST(GMP_LIB)
AC_SUBST(GMP_EXT)
-## The following is a horrible to arrange for GCL to successfully
+
+## The following is a horrible hack to arrange for GCL to successfully
## rebuild symbol tables with "rsym" on Windows platform. It should
## go away as soon as GCL upstream is fixed.
case $fricas_lisp_flavor,$target in
@@ -424,8 +442,9 @@ case $fricas_lisp_flavor,$target in
;;
esac
AC_SUBST(fricas_gcl_rsym_hack)
+
## How are we supposed to tell the Lisp system to eval an expression
-## in batch mode? What is the extension of a compiled Lisp file?
+## in batch mode?
case $fricas_lisp_flavor in
gcl)
fricas_quiet_flags='-batch'
@@ -455,26 +474,10 @@ case $fricas_lisp_flavor in
fricas_quiet_flags=
fricas_eval_flags='-init - -siteinit - -eval'
;;
- *) AC_MSG_ERROR([We do not know how to build FriCAS this
$fricas_lisp]) ;;
+ *) AC_MSG_ERROR([We do not know how to build FriCAS with this Lisp:
$fricas_lisp]) ;;
esac
AC_SUBST(fricas_quiet_flags)

-if test -z $fricas_fasl_type; then
- AC_MSG_ERROR([Could not determine extension for compiled Lisp files])
-fi
-AC_MSG_RESULT([$fricas_fasl_type])
-
-fricas_fasl_type2=$fricas_fasl_type
-case $fricas_lisp_flavor in
- ecl)
- fricas_fasl_type="o"
- ;;
- *)
- ;;
-esac
-AC_SUBST(fricas_fasl_type)
-AC_SUBST(fricas_fasl_type2)
-
fricas_debug_compiler='no'

AC_ARG_ENABLE([debug-compiler],

Waldek Hebisch

unread,
Oct 14, 2023, 5:01:30 PM10/14/23
to fricas...@googlegroups.com
On Sat, Oct 14, 2023 at 11:56:02AM +0800, Qian Yun wrote:
> When running "./configure", there is no pairing "AC_MSG_CHECKING"
> for "AC_MSG_RESULT([$fricas_fasl_type])":
>
> ...
> checking for unistd.h... yes
> fasl
> checking dirent.h usability... yes
> ...
>
> So this patch fixes that. Also moves it upward to be under
> "checking Lisp implementation".
>
> There are also grammar fixes in the patch.
>
> The associated "configure" change is not shown here. Will
> include that during commit.

OK, please commit.

--
Waldek Hebisch
Reply all
Reply to author
Forward
0 new messages