summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2011-02-08 19:36:50 -0800
committerRoland McGrath <roland@redhat.com>2011-02-08 19:36:50 -0800
commitf64e25f232cc1f508edb1ebb66012265dd76b3f1 (patch)
treee96b0d2bc00ebe1c62bdc3eb999a712ac6ed7cf9
parentbc88fffec993bcf7736ad6060ebc9c55988bb444 (diff)
Use AC_LANG_SOURCE.
-rw-r--r--ChangeLog2
-rw-r--r--configure.ac4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c5e02ddb..0319e7e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2011-02-08 Roland McGrath <roland@redhat.com>
+ * configure.ac (C99 check): Use AC_LANG_SOURCE.
+
* configure.ac (ALL_LINGUAS): Remove variable, now obsolete.
2010-09-13 Ulrich Drepper <drepper@redhat.com>
diff --git a/configure.ac b/configure.ac
index 533d50e5..10698315 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,8 +63,8 @@ AM_PROG_LEX
AC_CACHE_CHECK([for gcc with C99 support], ac_cv_c99, [dnl
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -std=gnu99"
-AC_COMPILE_IFELSE([dnl
-int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; }],
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([dnl
+int foo (int a) { for (int i = 0; i < a; ++i) if (i % 4) break; int s = a; }])],
ac_cv_c99=yes, ac_cv_c99=no)
CFLAGS="$old_CFLAGS"])
AS_IF([test "x$ac_cv_c99" != xyes],