ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure.ac
(Generate patch)

Comparing BasiliskII/src/Unix/configure.ac (file contents):
Revision 1.52 by gbeauche, 2005-07-01T05:57:07Z vs.
Revision 1.54 by gbeauche, 2005-08-18T22:10:15Z

# Line 1113 | Line 1113 | AC_MSG_RESULT($HAVE_GAS)
1113   dnl Check for GCC 2.7 or higher.
1114   HAVE_GCC27=no
1115   AC_MSG_CHECKING(for GCC 2.7 or higher)
1116 < AC_EGREP_CPP(xyes,
1117 < [#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
1118 <  xyes
1119 < #endif
1120 < ], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no))
1116 > AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5)
1117 >                                     # error gcc < 2.7
1118 >                                     #endif
1119 >                                   ]])],
1120 >                  [AC_MSG_RESULT(yes); HAVE_GCC27=yes],
1121 >                  [AC_MSG_RESULT(no)])
1122  
1123   dnl Check for GCC 3.0 or higher.
1124   HAVE_GCC30=no
1125   AC_MSG_CHECKING(for GCC 3.0 or higher)
1126 < AC_EGREP_CPP(xyes,
1127 < [#if __GNUC__ >= 3
1128 <  xyes
1129 < #endif
1130 < ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
1126 > AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ >= 3)
1127 >                                     # error gcc < 3
1128 >                                     #endif
1129 >                                   ]])],
1130 >                  [AC_MSG_RESULT(yes); HAVE_GCC30=yes],
1131 >                  [AC_MSG_RESULT(no)])
1132  
1133   dnl Check for ICC.
1134   AC_MSG_CHECKING(for ICC)
# Line 1192 | Line 1194 | if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1194    CFLAGS="$SAVED_CFLAGS"
1195   fi
1196  
1197 < dnl Add -mdynamic-no-pic for MacOS X
1198 < if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1197 > dnl Add -mdynamic-no-pic for MacOS X (XXX icc10 will support MacOS X)
1198 > if [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_ICC" = "xno" ]]; then
1199    SAVED_CFLAGS="$CFLAGS"
1200    CFLAGS="$CFLAGS -mdynamic-no-pic"
1201    AC_CACHE_CHECK([whether the compiler supports -mdynamic-no-pic],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines