configure: Don't overwrite system_boehm detection variable.
authorPhilipp Marek <philipp@marek.priv.at>
Fri, 21 Aug 2015 05:50:10 +0000 (07:50 +0200)
committerPhilipp Marek <philipp@marek.priv.at>
Fri, 21 Aug 2015 05:50:10 +0000 (07:50 +0200)
All conditions must be fulfilled to enable the already-installed
BWDGC; on *any* failures the included one must be used.

src/aclocal.m4

index bcd3684..557684c 100644 (file)
@@ -934,14 +934,15 @@ if test "${enable_boehm}" = auto -o "${enable_boehm}" = system; then
  dnl
  dnl Try first with the prebuilt versions, if installed and accessible
  dnl
+ system_boehm=yes
  AC_CHECK_LIB( [gc], [GC_get_thr_restart_signal],
-               [system_boehm="yes"], [system_boehm="no"] )
+               [], [system_boehm="no"] )
  if test "${enable_threads}" = no; then
    AC_CHECK_LIB( [gc], [GC_malloc],
-                 [system_boehm="yes"], [system_boehm="no"] )
+                 [], [system_boehm="no"] )
  else
    AC_CHECK_LIB( [gc], [GC_register_my_thread],
-                 [system_boehm="yes"], [system_boehm="no"] )
+                 [], [system_boehm="no"] )
  fi
  if test "${system_boehm}" = yes; then
    AC_CHECK_HEADER([gc.h],[ECL_BOEHM_GC_HEADER='gc.h'],[],[])