Signal error if liarc used without dynamic library support.
authorChris Hanson <org/chris-hanson/cph>
Sat, 28 Apr 2007 01:58:14 +0000 (01:58 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 28 Apr 2007 01:58:14 +0000 (01:58 +0000)
v7/src/microcode/configure.ac

index a067004abd94005706d4260fcb3d7ff8f132a409..3fd036e7734ff61893689d77ed146e3108c9a2f5 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_INIT([MIT/GNU Scheme microcode], [15.1], [bug-mit-scheme@gnu.org], [mit-scheme])
-AC_REVISION([$Id: configure.ac,v 1.41 2007/04/22 18:04:52 cph Exp $])
+AC_REVISION([$Id: configure.ac,v 1.42 2007/04/28 01:58:14 cph Exp $])
 AC_CONFIG_SRCDIR([boot.c])
 AC_CONFIG_HEADERS([config.h])
 AC_PROG_MAKE_SET
@@ -164,6 +164,11 @@ AC_ARG_WITH([libpq],
        [Use PostgreSQL libpq library if available [[yes]]]))
 : ${with_libpq='yes'}
 
+if test ${enable_static_libs} != no && test ${enable_native_code} = c; then
+    AC_MSG_ERROR(
+       [--enable-native-code=c incompatible with --enable-static-libs])
+fi
+
 dnl Substitution variables to be filled in below.
 AS_FLAGS=
 GC_HEAD_FILES=
@@ -770,7 +775,13 @@ if test "${enable_static_libs}" = no; then
                [Define to 1 if you have the `dl' library (-ldl).])
            LIBS="${STATIC_LIBS} -ldl ${LIBS}"
            ],
-           [enable_static_libs=yes])
+           [
+           if test ${enable_native_code} = c; then
+               AC_MSG_ERROR(
+                   [--enable-native-code=c requires dynamic loader support])
+           fi
+           enable_static_libs=yes
+           ])
        ])
 fi
 if test ${enable_static_libs} != no; then