aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2011-06-17 02:50:21 +0900
committerMiles Bader2011-06-17 02:50:21 +0900
commit0cca0a78a4ee6b761c2fd91ee5a6628f23e3368c (patch)
tree1185dce2173ce2fd2f400f19fa6bfb3ab6d62792
parent67222e1dfff23c792ecdd4995dd144c1b41027c9 (diff)
downloademacs-0cca0a78a4ee6b761c2fd91ee5a6628f23e3368c.tar.gz
emacs-0cca0a78a4ee6b761c2fd91ee5a6628f23e3368c.zip
configure.in: Try to determine CRT_DIR automatically when using gcc
-rw-r--r--ChangeLog5
-rw-r--r--configure.in15
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f9d1c974359..97952924005 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12011-06-16 Miles Bader <miles@gnu.org>
2
3 * configure.in: Try to determine CRT_DIR automatically when
4 using gcc.
5
12011-06-15 Paul Eggert <eggert@cs.ucla.edu> 62011-06-15 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * lib/ftoastr.c, lib/stdio.in.h, lib/verify.h: 8 * lib/ftoastr.c, lib/stdio.in.h, lib/verify.h:
diff --git a/configure.in b/configure.in
index 9e7ea8522b2..60b4d55be51 100644
--- a/configure.in
+++ b/configure.in
@@ -988,6 +988,21 @@ dnl Do this early because it can frob feature test macros for Unix-98 &c.
988AC_SYS_LARGEFILE 988AC_SYS_LARGEFILE
989 989
990 990
991## If we're using gcc, and the user hasn't specified a crt-dir, try to
992## determine it automatically by asking gcc. [If this doesn't work,
993## CRT_DIR will remain empty and system-dependent code will be used
994## below.]
995##
996if test "x${GCC}z$CRT_DIR" = xyesz; then
997 crt_file=`$CC 2>/dev/null --print-file-name=crt1.o`
998 case "$crt_file" in
999 */*)
1000 CRT_DIR=`AS_DIRNAME(["$crt_file"])`
1001 ;;
1002 esac
1003fi
1004
1005
991## If user specified a crt-dir, use that unconditionally. 1006## If user specified a crt-dir, use that unconditionally.
992if test "X$CRT_DIR" = "X"; then 1007if test "X$CRT_DIR" = "X"; then
993 1008