Mercurial > hg > xemacs-beta
comparison configure.ac @ 2692:7be4146ed65e
[xemacs-hg @ 2005-03-26 17:22:29 by vins]
configure.ac: Don't specify non-working -fno-gnu-linker on Solaris.
'head -1' is deprecated by coreutils-5.3.0 on some platforms;
replace it with 'sed 1q'
author | vins |
---|---|
date | Sat, 26 Mar 2005 17:22:34 +0000 |
parents | b26d8b5d0d30 |
children | 296a5cd2a686 |
comparison
equal
deleted
inserted
replaced
2691:8d4fa1c4e0b8 | 2692:7be4146ed65e |
---|---|
2300 case "$machine" in | 2300 case "$machine" in |
2301 sparc ) dynodump_arch=sparc ;; | 2301 sparc ) dynodump_arch=sparc ;; |
2302 *86* ) dynodump_arch=i386 ;; | 2302 *86* ) dynodump_arch=i386 ;; |
2303 powerpc ) dynodump_arch=ppc ;; | 2303 powerpc ) dynodump_arch=ppc ;; |
2304 esac | 2304 esac |
2305 dnl Dynodump requires the system linker | |
2306 test "$GCC" = "yes" && XE_APPEND(-fno-gnu-linker, ld_switch_site) | |
2307 fi | 2305 fi |
2308 | 2306 |
2309 dnl Feed s&m crud to src/Makefile | 2307 dnl Feed s&m crud to src/Makefile |
2310 | 2308 |
2311 dnl Linux/powerpc needs the following magic for some reason | 2309 dnl Linux/powerpc needs the following magic for some reason |
2357 dnl First try portable compilers, then crack system secrets | 2355 dnl First try portable compilers, then crack system secrets |
2358 dnl #### Is this code correct if $XEMACS_CC != $CC? XEMACS_CC hasn't been | 2356 dnl #### Is this code correct if $XEMACS_CC != $CC? XEMACS_CC hasn't been |
2359 dnl run through the AC_PROG_CC mill. | 2357 dnl run through the AC_PROG_CC mill. |
2360 dnl Would anybody really build libsrc with GCC and XEmacs with non-GCC? | 2358 dnl Would anybody really build libsrc with GCC and XEmacs with non-GCC? |
2361 if test "$GCC" = "yes"; then | 2359 if test "$GCC" = "yes"; then |
2362 compiler_version=`$XEMACS_CC --version | head -1` | 2360 compiler_version=`$XEMACS_CC --version | sed 1q` |
2363 gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([[^ ]]\)/\1/' | head -1` | 2361 gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([[^ ]]\)/\1/' | sed 1q` |
2364 else case "$XEMACS_CC" in | 2362 else case "$XEMACS_CC" in |
2365 dnl The Intel cc compiler | 2363 dnl The Intel cc compiler |
2366 ic*) | 2364 ic*) |
2367 compiler_version=`icc -V 2>&1 | head -1` | 2365 compiler_version=`icc -V 2>&1 | sed 1q` |
2368 ;; | 2366 ;; |
2369 dnl non-gcc machine-specific magic - contributions welcome | 2367 dnl non-gcc machine-specific magic - contributions welcome |
2370 *) case "$ac_cv_build" in | 2368 *) case "$ac_cv_build" in |
2371 *-*-aix* ) | 2369 *-*-aix* ) |
2372 dnl Yes, it's this ugly for AIX... | 2370 dnl Yes, it's this ugly for AIX... |
2391 compiler_version="$lpp $lpplev - $lppdesc" | 2389 compiler_version="$lpp $lpplev - $lppdesc" |
2392 fi | 2390 fi |
2393 ;; | 2391 ;; |
2394 | 2392 |
2395 *-*-solaris*) | 2393 *-*-solaris*) |
2396 compiler_version=`$XEMACS_CC -V 2>&1 | head -1` | 2394 compiler_version=`$XEMACS_CC -V 2>&1 | sed 1q` |
2397 ;; | 2395 ;; |
2398 | 2396 |
2399 alpha*-dec-osf*) | 2397 alpha*-dec-osf*) |
2400 compiler_version=`$XEMACS_CC -V | tr '\n' ' '` | 2398 compiler_version=`$XEMACS_CC -V | tr '\n' ' '` |
2401 ;; | 2399 ;; |