From: Julian Seward Date: Mon, 3 Jun 2002 22:53:35 +0000 (+0000) Subject: Move the -mpreferred-stack-boundary test for gcc later on, so it does not X-Git-Tag: svn/VALGRIND_1_0_3~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=215c9eba9fe9e1e19c8a7306e2cf3afe43b7265d;p=thirdparty%2Fvalgrind.git Move the -mpreferred-stack-boundary test for gcc later on, so it does not mess up earlier tests. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@368 --- diff --git a/configure.in b/configure.in index 2fe40f131c..73e54cf6fa 100644 --- a/configure.in +++ b/configure.in @@ -50,25 +50,6 @@ case "${gcc_version}" in ;; esac -# does this compiler support -mpreferred-stack-boundary=2 ? -AC_MSG_CHECKING([for extra compiler options]) - -CFLAGS="-mpreferred-stack-boundary=2" - -AC_TRY_COMPILE(, [ - -int main () { return 0 ; } - -], -[ -PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2" -AC_MSG_RESULT([$PREFERRED_STACK_BOUNDARY]) -], [ -PREFERRED_STACK_BOUNDARY="" -AC_MSG_RESULT([none]) -]) - -AC_SUBST(PREFERRED_STACK_BOUNDARY) # Checks for the platform AC_CANONICAL_HOST @@ -257,6 +238,28 @@ EOF rm -f conftest conftest.c fi +# does this compiler support -mpreferred-stack-boundary=2 ? +AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary]) + +CFLAGS="-mpreferred-stack-boundary=2" + +AC_TRY_COMPILE(, [ + +int main () { return 0 ; } + +], +[ +PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2" +AC_MSG_RESULT([$PREFERRED_STACK_BOUNDARY]) +], [ +PREFERRED_STACK_BOUNDARY="" +AC_MSG_RESULT([no]) +]) + +AC_SUBST(PREFERRED_STACK_BOUNDARY) + + + # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h termios.h unistd.h utime.h asm/atomic.h])