Make sure we're running dejagnu tests with the right compiler.

This commit is contained in:
Anthony Green
2013-01-08 15:14:21 -05:00
parent f26c7ca671
commit 8308984e47
5 changed files with 19 additions and 0 deletions

View File

@@ -40,6 +40,11 @@ AX_CC_MAXOPT
AX_CFLAGS_WARN_ALL
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -fexceptions"
touch testsuite/local.exp
else
cat > local.exp <<EOF
set CC_FOR_TARGET $CC
EOF
fi
AM_MAINTAINER_MODE