summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2011-06-17 13:29:50 -0400
committerGlenn Morris <rgm@gnu.org>2011-06-17 13:29:50 -0400
commit3a4725e11e57f17146b11463d04a83efda038df1 (patch)
treea818f4f78a24417a9edcf64e1ead3b6d7ddac1bb
parent9be74fbbb94079d8a3df508a92a8540139833b78 (diff)
downloademacs-3a4725e11e57f17146b11463d04a83efda038df1.tar.gz
Small configure.in fix.
Ref: http://lists.gnu.org/archive/html/emacs-buildstatus/2011-06/msg00007.html * configure.in: Restore the behavior of checking crt-dir only when the user specified it (not all platforms use it).
-rw-r--r--ChangeLog5
-rw-r--r--configure.in27
2 files changed, 17 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index bede3f3155c..d8e48ab2c1c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-17 Glenn Morris <rgm@gnu.org>
+
+ * configure.in: Restore the behavior of checking crt-dir only
+ when the user specified it (not all platforms use it).
+
2011-06-16 Paul Eggert <eggert@cs.ucla.edu>
* m4/lstat.m4: Merge from gnulib (Bug#8878).
diff --git a/configure.in b/configure.in
index 60b4d55be51..ec0dd263b51 100644
--- a/configure.in
+++ b/configure.in
@@ -988,23 +988,20 @@ dnl Do this early because it can frob feature test macros for Unix-98 &c.
AC_SYS_LARGEFILE
-## If we're using gcc, and the user hasn't specified a crt-dir, try to
-## determine it automatically by asking gcc. [If this doesn't work,
-## CRT_DIR will remain empty and system-dependent code will be used
-## below.]
-##
-if test "x${GCC}z$CRT_DIR" = xyesz; then
- crt_file=`$CC 2>/dev/null --print-file-name=crt1.o`
- case "$crt_file" in
- */*)
- CRT_DIR=`AS_DIRNAME(["$crt_file"])`
- ;;
- esac
-fi
-
-
## If user specified a crt-dir, use that unconditionally.
if test "X$CRT_DIR" = "X"; then
+
+ ## If we're using gcc, and the user hasn't specified a crt-dir, try to
+ ## determine it automatically by asking gcc. [If this doesn't work,
+ ## CRT_DIR will remain empty and system-dependent code will be used below.]
+ if test "x${GCC}" = xyes; then
+ crt_file=`$CC --print-file-name=crt1.o 2>/dev/null`
+ case "$crt_file" in
+ */*)
+ CRT_DIR=`AS_DIRNAME(["$crt_file"])`
+ ;;
+ esac
+ fi
case "$canonical" in
x86_64-*-linux-gnu* | s390x-*-linux-gnu*)