From 24eb6a44bc842d3d7ee52fb93f638340176ce552 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Tue, 23 Aug 2011 22:37:03 +0200 Subject: [PATCH] Include missing changes from Commit 9b083e4d780686286128a4752fa894db1dc4c95b --- src/Makefile.in | 2 +- src/aclocal.m4 | 9 +++++++-- src/configure | 14 ++++++++++---- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index c463ee019..a7695de36 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -112,7 +112,7 @@ bin/ecl-config: bin/ecl-config.pre test -d ecl/gc/private || mkdir ecl/gc/private if (echo $(SUBDIRS) | grep gc); then \ cd gc && $(MAKE) install && cd .. && \ - cp -rf $(srcdir)/gc/include/private/*.h ecl/gc/private/ && \ + cp -rf $(srcdir)/@ECL_GC_DIR@/include/private/*.h ecl/gc/private/ && \ mv @LIBPREFIX@gc.@LIBEXT@ @LIBPREFIX@eclgc.@LIBEXT@; \ fi @LIBPREFIX@eclffi.@LIBEXT@: diff --git a/src/aclocal.m4 b/src/aclocal.m4 index a63552f3c..cf6b3ce20 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -236,6 +236,8 @@ AC_SUBST(OBJEXT)dnl These are set by autoconf AC_SUBST(EXEEXT) AC_SUBST(INSTALL_TARGET)dnl Which type of installation: flat directory or unix like. AC_SUBST(thehost) +AC_SUBST(ECL_GC_DIR)dnl Which version of the Boehm-Weiser library to use +ECL_GC_DIR=gc ECL_LDRPATH='' SHAREDEXT='so' SHAREDPREFIX='lib' @@ -392,6 +394,9 @@ case "${host_os}" in # The Boehm-Weiser GC library shipped with Fink does not work # well with our signal handler. # enable_boehm=included + if test `uname -r | cut -d '.' -f 1` -ge 11; then + ECL_GC_DIR=gc-unstable + fi SONAME="${SHAREDPREFIX}ecl.SOVERSION.${SHAREDEXT}" SONAME_LDFLAGS="-Wl,-install_name,@libdir\@/SONAME -Wl,-compatibility_version,${PACKAGE_VERSION}" ;; @@ -873,7 +878,7 @@ AC_DEFUN([ECL_LIBATOMIC_OPS],[ if test "x${enable_threads}" != "xno"; then test -d atomic || mkdir atomic (destdir=`${PWDCMD}`; cd atomic && CC="${CC} ${PICFLAG}" \ - $srcdir/gc/libatomic*/configure --disable-shared --prefix=${destdir} \ + $srcdir/${ECL_GC_DIR}/libatomic*/configure --disable-shared --prefix=${destdir} \ --infodir=${destdir}/doc --includedir=${destdir}/ecl --with-pic \ --libdir=${destdir} --build=${build_alias} --host=${host_alias} \ CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS" CC="${CC} \ @@ -936,7 +941,7 @@ if test "${enable_boehm}" = "included"; then test -d gc && rm -rf gc if mkdir gc; then if (destdir=`${PWDCMD}`; cd gc; \ - $srcdir/gc/configure --disable-shared --prefix=${destdir} \ + $srcdir/${ECL_GC_DIR}/configure --disable-shared --prefix=${destdir} \ --includedir=${destdir}/ecl/ --libdir=${destdir} --build=${build_alias} \ --host=${host_alias} --enable-large-config \ CC="${CC} ${PICFLAG}" CFLAGS="$CFLAGS" \ diff --git a/src/configure b/src/configure index 99a63b176..5dd2356a9 100755 --- a/src/configure +++ b/src/configure @@ -711,6 +711,7 @@ SHAREDEXT SHAREDPREFIX INSTALL_TARGET thehost +ECL_GC_DIR INFOEXT INSTALL_INFO GREP @@ -4512,6 +4513,7 @@ MV="mv" +ECL_GC_DIR=gc ECL_LDRPATH='' SHAREDEXT='so' SHAREDPREFIX='lib' @@ -4668,6 +4670,9 @@ case "${host_os}" in # The Boehm-Weiser GC library shipped with Fink does not work # well with our signal handler. # enable_boehm=included + if test `uname -r | cut -d '.' -f 1` -ge 9; then + ECL_GC_DIR=gc-unstable + fi SONAME="${SHAREDPREFIX}ecl.SOVERSION.${SHAREDEXT}" SONAME_LDFLAGS="-Wl,-install_name,@libdir\@/SONAME -Wl,-compatibility_version,${PACKAGE_VERSION}" ;; @@ -6585,7 +6590,7 @@ echo "$as_me: Configuring included Boehm GC library:" >&6;} test -d gc && rm -rf gc if mkdir gc; then if (destdir=`${PWDCMD}`; cd gc; \ - $srcdir/gc/configure --disable-shared --prefix=${destdir} \ + $srcdir/${ECL_GC_DIR}/configure --disable-shared --prefix=${destdir} \ --includedir=${destdir}/ecl/ --libdir=${destdir} --build=${build_alias} \ --host=${host_alias} --enable-large-config \ CC="${CC} ${PICFLAG}" CFLAGS="$CFLAGS" \ @@ -14309,7 +14314,7 @@ fi if test "x${enable_threads}" != "xno"; then test -d atomic || mkdir atomic (destdir=`${PWDCMD}`; cd atomic && CC="${CC} ${PICFLAG}" \ - $srcdir/gc/libatomic*/configure --disable-shared --prefix=${destdir} \ + $srcdir/${ECL_GC_DIR}/libatomic*/configure --disable-shared --prefix=${destdir} \ --infodir=${destdir}/doc --includedir=${destdir}/ecl --with-pic \ --libdir=${destdir} --build=${build_alias} --host=${host_alias} \ CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS" CC="${CC} \ @@ -15340,6 +15345,7 @@ _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF +ECL_GC_DIR!$ECL_GC_DIR$ac_delim INFOEXT!$INFOEXT$ac_delim INSTALL_INFO!$INSTALL_INFO$ac_delim GREP!$GREP$ac_delim @@ -15377,7 +15383,7 @@ ECL_INIT_FORM!$ECL_INIT_FORM$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 @@ -15738,7 +15744,7 @@ do cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def