]> granicus.if.org Git - libexpat/commitdiff
Fix for issue #1647805 (detecting -fexceptions support doesn't work
authorKarl Waclawek <kwaclaw@users.sourceforge.net>
Wed, 9 May 2007 13:26:48 +0000 (13:26 +0000)
committerKarl Waclawek <kwaclaw@users.sourceforge.net>
Wed, 9 May 2007 13:26:48 +0000 (13:26 +0000)
with Intel compiler). Thanks to Hazael (hmaldonado) for the fix.

expat/configure.in

index 220fe665127dc27c57a24b1193116cdced1c71c3..24bcb407e0db0f408e837e5286a2b5b70aa852b8 100644 (file)
@@ -72,8 +72,8 @@ if test "$GCC" = yes ; then
     dnl
     OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
     CFLAGS="$OLDCFLAGS -fexceptions"
-    AC_MSG_CHECKING(whether gcc accepts -fexceptions)
-    AC_TRY_COMPILE(,(void)1,
+    AC_MSG_CHECKING(whether $CC accepts -fexceptions)
+    AC_TRY_LINK( , ,
                    AC_MSG_RESULT(yes),
                    AC_MSG_RESULT(no); CFLAGS="$OLDCFLAGS")
     CXXFLAGS=`echo "$CFLAGS" | sed 's/ -Wmissing-prototypes -Wstrict-prototypes//'`