Stop `configure` and throw an error when `--with-target-bdw-gc`,
`--with-target-bdw-gc-lib` or `--with-target-bdw-gc-include` is passwd
without an argument.
If someone by mistake passes any of those options using the option only
or sepparated by a space instead of `=` it currently tries to build it.
Since this syntax is valid in several programs (i.e. those built using
getopt_long), throwing an error might prevent build-time issues.
ChangeLog:
* configure.ac: Validate the value passed for
`--with-target-bdw-gc`, `--with-target-bdw-gc-lib` and
`--with-target-bdw-gc-include` to detect 'yes' (no argument).
* configure: Regenerate `configure` with `autoreconf-2.69`.
libga68/ChangeLog:
* configure.ac: Validate the value passed for
`--with-target-bdw-gc`, `--with-target-bdw-gc-lib` and
`--with-target-bdw-gc-include` to detect 'yes' (no argument).
* configure: Regenerate `configure` with `autoreconf-2.69`.
libobjc/ChangeLog:
* configure.ac: Validate the value passed for
`--with-target-bdw-gc`, `--with-target-bdw-gc-lib` and
`--with-target-bdw-gc-include` to detect 'yes' (no argument).
* configure: Regenerate `configure` with `autoreconf-2.69`.
Signed-off-by: Agatha Isabelle Moreira <[email protected]>
---
configure | 6 ++++++
configure.ac | 6 ++++++
libga68/configure | 6 ++++++
libga68/configure.ac | 6 ++++++
libobjc/configure | 6 ++++++
libobjc/configure.ac | 6 ++++++
6 files changed, 36 insertions(+)
diff --git a/configure b/configure
index 30f4c0f09a3..226bc9f1f6a 100755
--- a/configure
+++ b/configure
@@ -10640,6 +10640,12 @@ if test "${with_target_bdw_gc_lib+set}" = set; then :
fi
+case
"|x$with_target_bdw_gc|x$with_target_bdw_gc_lib|x$with_target_bdw_gc_include|"
in
+ *"|xyes|"*)
+ as_fn_error $? "--with-target-bdw-gc{,-lib,-include} requires a PATHLIST
argument" "$LINENO" 5
+ ;;
+esac
+
case ,${enable_languages},:${enable_objc_gc}:${enable_algol68_gc} in
*,objc,*:yes:*|*,objc,*:auto:*|*,algol68,*:*:yes|*,algol68,*:*:auto)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage
collector" >&5
diff --git a/configure.ac b/configure.ac
index 7961b281400..515d04021c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2777,6 +2777,12 @@ AC_ARG_WITH([target-bdw-gc-lib],
[AS_HELP_STRING([--with-target-bdw-gc-lib=PATHLIST],
[specify directories for installed bdw-gc library])])
+case
"|x$with_target_bdw_gc|x$with_target_bdw_gc_lib|x$with_target_bdw_gc_include|"
in
+ *"|xyes|"*)
+ AC_MSG_ERROR([--with-target-bdw-gc{,-lib,-include} requires a PATHLIST
argument])
+ ;;
+esac
+
case ,${enable_languages},:${enable_objc_gc}:${enable_algol68_gc} in
*,objc,*:yes:*|*,objc,*:auto:*|*,algol68,*:*:yes|*,algol68,*:*:auto)
AC_MSG_CHECKING([for bdw garbage collector])
diff --git a/libga68/configure b/libga68/configure
index 731476fc909..b3af0ede2c3 100755
--- a/libga68/configure
+++ b/libga68/configure
@@ -13485,6 +13485,12 @@ else
fi
+case
"|x$with_target_bdw_gc|x$with_target_bdw_gc_lib|x$with_target_bdw_gc_include|"
in
+ *"|xyes|"*)
+ as_fn_error $? "--with-target-bdw-gc{,-lib,-include} requires a PATHLIST
argument" "$LINENO" 5
+ ;;
+esac
+
bdw_lib_dir=
case "$enable_algol68_gc" in
no)
diff --git a/libga68/configure.ac b/libga68/configure.ac
index d84088febe8..d80f6956bf3 100644
--- a/libga68/configure.ac
+++ b/libga68/configure.ac
@@ -252,6 +252,12 @@ AC_ARG_ENABLE(algol68-gc-debug,
[enable use of Boehm's garbage collector debug functions
with the GNU Algol runtime])],,enable_algol68_gc_debug=no)
+case
"|x$with_target_bdw_gc|x$with_target_bdw_gc_lib|x$with_target_bdw_gc_include|"
in
+ *"|xyes|"*)
+ AC_MSG_ERROR([--with-target-bdw-gc{,-lib,-include} requires a PATHLIST
argument])
+ ;;
+esac
+
bdw_lib_dir=
case "$enable_algol68_gc" in
no)
diff --git a/libobjc/configure b/libobjc/configure
index dbf08291cd8..96b94c9a384 100755
--- a/libobjc/configure
+++ b/libobjc/configure
@@ -12100,6 +12100,12 @@ if test "${with_target_bdw_gc_lib+set}" = set; then :
fi
+case
"|x$with_target_bdw_gc|x$with_target_bdw_gc_lib|x$with_target_bdw_gc_include|"
in
+ *"|xyes|"*)
+ as_fn_error $? "--with-target-bdw-gc{,-lib,-include} requires a PATHLIST
argument" "$LINENO" 5
+ ;;
+esac
+
case "$enable_objc_gc" in
no)
use_bdw_gc=no
diff --git a/libobjc/configure.ac b/libobjc/configure.ac
index 466fcee6ce7..3c2d99f19e2 100644
--- a/libobjc/configure.ac
+++ b/libobjc/configure.ac
@@ -242,6 +242,12 @@ AC_ARG_WITH([target-bdw-gc-lib],
[AS_HELP_STRING([--with-target-bdw-gc-lib=PATHLIST],
[specify directories for installed bdw-gc library])])
+case
"|x$with_target_bdw_gc|x$with_target_bdw_gc_lib|x$with_target_bdw_gc_include|"
in
+ *"|xyes|"*)
+ AC_MSG_ERROR([--with-target-bdw-gc{,-lib,-include} requires a PATHLIST
argument])
+ ;;
+esac
+
case "$enable_objc_gc" in
no)
use_bdw_gc=no
--
2.54.0