[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs build failure on today's debian
From: |
Miles Bader |
Subject: |
Re: emacs build failure on today's debian |
Date: |
Thu, 16 Jun 2011 16:18:33 +0900 |
How's this? -miles
2011-06-16 Miles Bader <address@hidden>
* configure.in: Try to determine CRT_DIR automatically when
using gcc.
diff --git a/configure.in b/configure.in
index 9e7ea85..60f7c4e 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.
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}y$CRT_DIR" = xyesy; then
+ crt_file=`$CC --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
--
Custard, n. A vile concoction produced by a malevolent conspiracy of the hen,
the cow, and the cook.
- emacs build failure on today's debian, Miles Bader, 2011/06/15
- Re: emacs build failure on today's debian, Julien Danjou, 2011/06/15
- Re: emacs build failure on today's debian, Miles Bader, 2011/06/15
- Re: emacs build failure on today's debian, Andreas Schwab, 2011/06/15
- Re: emacs build failure on today's debian, Glenn Morris, 2011/06/15
- Re: emacs build failure on today's debian, Miles Bader, 2011/06/16
- Re: emacs build failure on today's debian, Glenn Morris, 2011/06/16
- Re: emacs build failure on today's debian,
Miles Bader <=
- Re: emacs build failure on today's debian, Glenn Morris, 2011/06/16
Re: emacs build failure on today's debian, Bruce Stephens, 2011/06/15