From: Chris Hanson Date: Sat, 28 Apr 2007 01:58:14 +0000 (+0000) Subject: Signal error if liarc used without dynamic library support. X-Git-Tag: 20090517-FFI~630 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=03b68fe34056208d7f8e4ea4be40f48345d516a2;p=mit-scheme.git Signal error if liarc used without dynamic library support. --- diff --git a/v7/src/microcode/configure.ac b/v7/src/microcode/configure.ac index a067004ab..3fd036e77 100644 --- a/v7/src/microcode/configure.ac +++ b/v7/src/microcode/configure.ac @@ -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