Eliminate AC_TRY_COMPILE (Obsolete).
authorRalf Corsépius <corsepiu@fedoraproject.org>
Sat, 27 Oct 2007 04:28:06 +0000 (06:28 +0200)
committerRalf Corsépius <corsepiu@fedoraproject.org>
Sat, 27 Oct 2007 04:28:06 +0000 (06:28 +0200)
configure.ac

index b67a619..c0b566d 100644 (file)
@@ -34,10 +34,10 @@ if test "$GCC" = yes; then
     echo
     for flag in $cflags_to_try; do
         CFLAGS="$CFLAGS $flag"
-        AC_TRY_COMPILE(, [return 0;], [
+        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[return 0;]])],[
                 echo "   $flag"
                 RPMCFLAGS="$RPMCFLAGS $flag"
-        ])
+        ],[])
         CFLAGS=$old_cflags
     done
     CFLAGS="$CFLAGS $RPMCFLAGS"