|
From: <sv...@va...> - 2005-06-04 23:15:13
|
Author: sewardj
Date: 2005-06-05 00:14:53 +0100 (Sun, 05 Jun 2005)
New Revision: 3848
Modified:
trunk/configure.in
Log:
gcc-3.0.4 (x86) doesn't understand -m32, so autoconfiscate it
Modified: trunk/configure.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/configure.in 2005-06-04 23:13:46 UTC (rev 3847)
+++ trunk/configure.in 2005-06-04 23:14:53 UTC (rev 3848)
@@ -62,7 +62,7 @@
DEFAULT_SUPP=3D""
=20
=20
-# We don't want gcc 2.7
+# We don't want gcc < 3.0
AC_MSG_CHECKING([for a supported version of gcc])
=20
gcc_version=3D`${CC} --version | head -n 1`
@@ -70,8 +70,16 @@
case "${gcc_version}" in
gcc-2.7.*)
AC_MSG_RESULT([no (${gcc_version})])
- AC_MSG_ERROR([please use a recent (>=3D gcc-2.95) version of gcc])
+ AC_MSG_ERROR([please use a recent (>=3D gcc-3.0) version of gcc])
;;
+ gcc-2.8.*)
+ AC_MSG_RESULT([no (${gcc_version})])
+ AC_MSG_ERROR([please use a recent (>=3D gcc-3.0) version of gcc])
+ ;;
+ gcc-2.9*)
+ AC_MSG_RESULT([no (${gcc_version})])
+ AC_MSG_ERROR([please use a recent (>=3D gcc-3.0) version of gcc])
+ ;;
=20
*)
AC_MSG_RESULT([ok (${gcc_version})])
@@ -96,9 +104,9 @@
AC_MSG_RESULT([ok (${host_cpu})])
VG_ARCH=3D"x86"
KICKSTART_BASE=3D"0xb0000000"
- ARCH_CORE_AM_CFLAGS=3D"-m32 @PREFERRED_STACK_BOUNDARY@ -DELFSZ=3D=
32"
- ARCH_TOOL_AM_CFLAGS=3D"-m32 @PREFERRED_STACK_BOUNDARY@"
- ARCH_CORE_AM_CCASFLAGS=3D"-m32"
+ ARCH_CORE_AM_CFLAGS=3D"@FLAG_M32@ @PREFERRED_STACK_BOUNDARY@ -DE=
LFSZ=3D32"
+ ARCH_TOOL_AM_CFLAGS=3D"@FLAG_M32@ @PREFERRED_STACK_BOUNDARY@"
+ ARCH_CORE_AM_CCASFLAGS=3D"@FLAG_M32@"
;;
=20
x86_64)=20
@@ -268,6 +276,7 @@
;;
esac
=20
+
# We don't know how to detect the X client library version
# (detecting the server version is easy, bu no help). So we
# just use a hack: always include the suppressions for both
@@ -279,6 +288,27 @@
fi
=20
=20
+# does this compiler support -m32 ?
+AC_MSG_CHECKING([if gcc accepts -m32])
+
+safe_CFLAGS=3D$CFLAGS
+CFLAGS=3D"-m32"
+
+AC_TRY_COMPILE(, [
+int main () { return 0 ; }
+],
+[
+FLAG_M32=3D"-m32"
+AC_MSG_RESULT([yes])
+], [
+FLAG_M32=3D""
+AC_MSG_RESULT([no])
+])
+CFLAGS=3D$safe_CFLAGS
+
+AC_SUBST(FLAG_M32)
+
+
# does this compiler support -mpreferred-stack-boundary=3D2 ?
AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary])
=20
@@ -299,6 +329,7 @@
=20
AC_SUBST(PREFERRED_STACK_BOUNDARY)
=20
+
# does this compiler support -Wno-pointer-sign ?
AC_MSG_CHECKING([if gcc accepts -Wno-pointer-sign ])
=20
@@ -321,6 +352,7 @@
CFLAGS=3D"$CFLAGS -Wno-pointer-sign"
fi
=20
+
# Check for TLS support in the compiler and linker
AC_CACHE_CHECK([for TLS support], vg_cv_tls,
[AC_ARG_ENABLE(tls, [ --enable-tls platform supports=
TLS],
@@ -334,6 +366,7 @@
AC_DEFINE([HAVE_TLS], 1, [can use __thread to define thread-local variab=
les])
fi
=20
+
# Check for PIE support in the compiler and linker
AC_SUBST(PIE_AM_CFLAGS)
AC_CACHE_CHECK([for PIE support], vg_cv_pie,
@@ -360,12 +393,14 @@
AC_HEADER_STDC
AC_CHECK_HEADERS([sys/endian.h endian.h mqueue.h])
=20
+
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
=20
+
# Checks for library functions.
AC_FUNC_MEMCMP
AC_FUNC_MMAP
|