440 |
|
saved_LIBS="$LIBS" |
441 |
|
LIBS="$LIBS -framework $1" |
442 |
|
AC_TRY_LINK( |
443 |
< |
[$2], [int main(void) { return 0; }], |
443 |
> |
[$2], [], |
444 |
|
[AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"] |
445 |
|
) |
446 |
|
]) |
1196 |
|
AC_MSG_CHECKING(for GCC 2.7 or higher) |
1197 |
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5) |
1198 |
|
# error gcc < 2.7 |
1199 |
+ |
typedef syntax error; |
1200 |
|
#endif |
1201 |
|
]])], |
1202 |
|
[AC_MSG_RESULT(yes); HAVE_GCC27=yes], |
1207 |
|
AC_MSG_CHECKING(for GCC 3.0 or higher) |
1208 |
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ >= 3) |
1209 |
|
# error gcc < 3 |
1210 |
+ |
typedef syntax error; |
1211 |
|
#endif |
1212 |
|
]])], |
1213 |
|
[AC_MSG_RESULT(yes); HAVE_GCC30=yes], |
1313 |
|
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_ICC" = "xno" ]]; then |
1314 |
|
DYNGEN_CC=$CXX |
1315 |
|
else |
1316 |
< |
for p in /usr/bin /usr/local/bin; do |
1316 |
> |
for p in /usr/bin /usr/local/bin /usr/freeware/bin; do |
1317 |
|
gxx="$p/g++" |
1318 |
|
if [[ -x "$gxx" ]]; then |
1319 |
|
DYNGEN_CC="$gxx" |
1328 |
|
if [[ "x$ac_cv_use_dyngen" = "xyes" ]]; then |
1329 |
|
case $host_cpu in |
1330 |
|
i?86) |
1331 |
< |
DYNGEN_OP_FLAGS="-fomit-frame-pointer -mpreferred-stack-boundary=2" |
1331 |
> |
DYNGEN_OP_FLAGS="-fomit-frame-pointer" |
1332 |
|
;; |
1333 |
|
mips) |
1334 |
|
DYNGEN_OP_FLAGS="-fno-delayed-branch -mno-abicalls" |
1339 |
|
fi |
1340 |
|
;; |
1341 |
|
esac |
1342 |
< |
if [[ "x$HAVE_GCC30" = "xyes" ]]; then |
1342 |
> |
have_dyngen_gcc3=no |
1343 |
> |
case "x`$DYNGEN_CC -dumpversion`" in |
1344 |
> |
x[12].*) ;; |
1345 |
> |
x*) have_dyngen_gcc3=yes ;; |
1346 |
> |
esac |
1347 |
> |
if [[ "x$have_dyngen_gcc3" = "xyes" ]]; then |
1348 |
|
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -falign-functions=0" |
1349 |
|
else |
1350 |
|
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -malign-functions=0" |
1351 |
|
fi |
1352 |
|
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-functions -finline-limit=10000 -fno-exceptions -g0" |
1353 |
< |
if [[ "x$HAVE_GCC30" = "xyes" ]]; then |
1353 |
> |
if [[ "x$have_dyngen_gcc3" = "xyes" ]]; then |
1354 |
|
DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -fno-reorder-blocks -fno-optimize-sibling-calls" |
1355 |
|
fi |
1356 |
|
if [[ "x$DYNGEN_CC" != "x$CXX" ]]; then |