aboutsummaryrefslogtreecommitdiff
path: root/libiberty/configure.ac
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2007-06-07 18:43:51 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2007-06-07 18:43:51 +0000
commit958afec3733c2b88bf518cbc1f275878d04cf43e (patch)
tree7842286bc2ed69b88233c5c259798b22eb663131 /libiberty/configure.ac
parent1fc01e0339a2ffbae943acefdc99dbf3bda68274 (diff)
downloadgdb-958afec3733c2b88bf518cbc1f275878d04cf43e.zip
gdb-958afec3733c2b88bf518cbc1f275878d04cf43e.tar.gz
gdb-958afec3733c2b88bf518cbc1f275878d04cf43e.tar.bz2
* configure.ac: Non-default multilibs can be cross compilations.
* configure: Regenerate
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r--libiberty/configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac
index fe4633f..cdc3cd3 100644
--- a/libiberty/configure.ac
+++ b/libiberty/configure.ac
@@ -109,6 +109,25 @@ dnl to call AC_CHECK_PROG.
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib, :)
+dnl When switching to automake, replace the following with AM_ENABLE_MULTILIB.
+# Add --enable-multilib to configure.
+# Default to --enable-multilib
+AC_ARG_ENABLE(multilib,
+[ --enable-multilib build many library versions (default)],
+[case "$enableval" in
+ yes) multilib=yes ;;
+ no) multilib=no ;;
+ *) AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
+ esac],
+ [multilib=yes])
+
+# Even if the default multilib is not a cross compilation,
+# it may be that some of the other multilibs are.
+if test $cross_compiling = no && test $multilib = yes \
+ && test "x${with_multisubdir}" != x ; then
+ cross_compiling=maybe
+fi
+
GCC_NO_EXECUTABLES
AC_PROG_CC
AC_PROG_CPP_WERROR