From 54777b8b403eeab55090bdffdb4e0b928974351b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kochma=C5=84ski?= Date: Thu, 20 Aug 2015 20:50:13 +0200 Subject: [PATCH] configure: fix boehm autodetection MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Kochmański --- src/aclocal.m4 | 4 ++-- src/configure | 26 ++------------------------ src/configure.ac | 10 ---------- 3 files changed, 4 insertions(+), 36 deletions(-) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index a6fc8c7..bcd3684 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -958,8 +958,8 @@ if test "${enable_boehm}" = auto -o "${enable_boehm}" = system; then AC_MSG_CHECKING( [whether we can use the existing Boehm-Weiser library] ) AC_MSG_RESULT( [${system_boehm}] ) if test "${system_boehm}" = "no"; then - if test "${enable_boehm}" = "auto"; then - enable_boehm="included"; + if test "${enable_boehm}" = "auto" -o "${enable_boehm}" = "included"; then + enable_boehm="included"; else AC_MSG_ERROR([System Boehm GC library requested but not found.]) fi diff --git a/src/configure b/src/configure index 6cf4675..25512cd 100755 --- a/src/configure +++ b/src/configure @@ -765,9 +765,7 @@ enable_rpath enable_threads enable_boehm enable_libatomic -enable_slow_config enable_soname -with_system_boehm with_gmp with_C_gmp with_system_gmp @@ -1453,8 +1451,6 @@ Optional Features: (no|included|system|auto, default=auto) --enable-libatomic version of the libatomic-ops library (auto|included|system, default=auto) - DEPRECATED: use --with-system-boehm=no - --enable-soname link and install the library using version numbers (no|yes, default=yes) --enable-local-gmp Deprecated! See --with-system-gmp @@ -1481,7 +1477,6 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-cross-config=f supply configuration for a cross compiler - --with-system-boehm Deprecated! See --enable-boehm --with-gmp=args supply arguments for configuring GMP library --with-C-gmp=args configure GMP to build using portable C --with-system-gmp use already installed GMP library (default=auto) @@ -2640,14 +2635,6 @@ else fi -# Check whether --enable-slow-config was given. -if test "${enable_slow_config+set}" = set; then : - enableval=$enable_slow_config; -else - enable_slow_config=no -fi - - # Check whether --enable-soname was given. if test "${enable_soname+set}" = set; then : enableval=$enable_soname; @@ -2657,15 +2644,6 @@ fi -# Check whether --with-system-boehm was given. -if test "${with_system_boehm+set}" = set; then : - withval=$with_system_boehm; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-system-boehm is deprecated, use --enable-boehm=system instead!" >&5 -$as_echo "$as_me: WARNING: --with-system-boehm is deprecated, use --enable-boehm=system instead!" >&2;} - test ${withval} = "no" || enable_boehm="system" -fi - - - # Check whether --with-gmp was given. if test "${with_gmp+set}" = set; then : withval=$with_gmp; @@ -6062,8 +6040,8 @@ $as_echo_n "checking whether we can use the existing Boehm-Weiser library ... " { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${system_boehm} " >&5 $as_echo "${system_boehm} " >&6; } if test "${system_boehm}" = "no"; then - if test "${enable_boehm}" = "auto"; then - enable_boehm="included"; + if test "${enable_boehm}" = "auto" -o "${enable_boehm}" = "included"; then + enable_boehm="included"; else as_fn_error $? "System Boehm GC library requested but not found." "$LINENO" 5 fi diff --git a/src/configure.ac b/src/configure.ac index abb9598..9ab7397 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -56,22 +56,12 @@ AC_ARG_ENABLE(libatomic, [(auto|included|system, default=auto)] ), [], [enable_libatomic=auto] ) -AC_ARG_ENABLE(slow-config, - AS_HELP_STRING( [DEPRECATED: use --with-system-boehm=no] ), - [], [enable_slow_config=no] ) - AC_ARG_ENABLE(soname, AS_HELP_STRING( [--enable-soname], [link and install the library using version numbers] [(no|yes, default=yes)]), [], [enable_soname=yes] ) -AC_ARG_WITH(system-boehm, - AS_HELP_STRING( [--with-system-boehm], [Deprecated! See --enable-boehm] ), - [AC_MSG_WARN( - [--with-system-boehm is deprecated, use --enable-boehm=system instead!]) - test ${withval} = "no" || enable_boehm="system"]) - AC_ARG_WITH(gmp, AS_HELP_STRING( [--with-gmp=args], [supply arguments for configuring GMP library]), -- 2.9.0