summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2010-11-04 16:34:49 -0400
committerChong Yidong <cyd@stupidchicken.com>2010-11-04 16:34:49 -0400
commita7702be668334560736769e99cbfc9cd01cdcf2b (patch)
tree6464cd8771094a799dc42554ee4bc7aab1918a1d
parent055c91d4329071935d2f521e54b5fa0c998a84d3 (diff)
downloademacs-a7702be668334560736769e99cbfc9cd01cdcf2b.tar.gz
Regenerate configure.
-rwxr-xr-xconfigure45
1 files changed, 31 insertions, 14 deletions
diff --git a/configure b/configure
index a9c31fdad99..11cb4e14838 100755
--- a/configure
+++ b/configure
@@ -660,6 +660,7 @@ ALSA_LIBS
ALSA_CFLAGS
PKG_CONFIG
LIBSOUND
+CRT_DIR
MAKEINFO
GZIP_PROG
INSTALL_INFO
@@ -755,6 +756,7 @@ with_makeinfo
with_gtk
with_gcc
with_pkg_config_prog
+with_crt_dir
with_gnustep_conf
enable_ns_self_contained
enable_asserts
@@ -1454,6 +1456,8 @@ Optional Packages:
--with-pkg-config-prog=PATH
path to pkg-config for finding GTK and librsvg
+ --with-crt-dir=DIR directory containing crtn.o etc. This option is only
+ used on x86-64 and s390x GNU/Linux architectures.
--with-gnustep-conf=PATH
path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
or /etc/GNUstep/GNUstep.conf
@@ -2742,6 +2746,15 @@ if test "X${with_pkg_config_prog}" != X; then
fi
fi
+CRT_DIR=
+
+# Check whether --with-crt-dir was given.
+if test "${with_crt_dir+set}" = set; then :
+ withval=$with_crt_dir;
+fi
+
+CRT_DIR="${with_crt_dir}"
+
# Check whether --with-gnustep-conf was given.
if test "${with_gnustep_conf+set}" = set; then :
@@ -5705,19 +5718,28 @@ rm -rf conftest*
fi
-
-### The standard library on x86-64 and s390x GNU/Linux distributions can
-### be located in either /usr/lib64 or /usr/lib.
-### In some rare cases, /usr/lib64 exists but does not contain the
-### relevant files (bug#1287). Hence test for crtn.o.
+## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
+## Other machine types hard-code the location in src/[ms]/*.h.
case "${canonical}" in
x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
- if test -e /usr/lib64/crtn.o; then
-
-$as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
+ ## On x86-64 and s390x GNU/Linux distributions, the standard library
+ ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
+ ## For anything else (eg /usr/lib32), it is up the user to specify
+ ## the location (bug#5655).
+ ## Test for crtn.o, not just the directory, because sometimes the
+ ## directory exists but does not have the relevant files (bug#1287).
+ ## If user specified a crt-dir, use that unconditionally.
+ if test "X$CRT_DIR" = "X"; then
+ CRT_DIR=/usr/lib
+ test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
+ fi
-fi
+ test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
+ as_fn_error $? "crt*.o not found. Use --with-crt-dir to specify the location." "$LINENO" 5
+ ;;
esac
+test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
+
@@ -13367,11 +13389,6 @@ to run if these resources are not installed."
echo
fi
-if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
- echo "D-Bus integration has been tested for GNU/Linux only."
- echo
-fi
-
# Remove any trailing slashes in these variables.
test "${prefix}" != NONE &&