pread: Fix test whether it works.
authorBruno Haible <bruno@clisp.org>
Sun, 2 Jan 2011 17:35:20 +0000 (18:35 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 2 Jan 2011 17:35:20 +0000 (18:35 +0100)
* m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.

ChangeLog
m4/pread.m4

index 427b4b33a1ab81ed097568aeff3ba682aca8f9d0..f72058a8a0ee5858b49a37ef3edaf96951d8b80b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-02  Bruno Haible  <bruno@clisp.org>
+
+       pread: Fix test whether it works.
+       * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
+
 2011-01-02  Bruno Haible  <bruno@clisp.org>
 
        Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
index c6d1888f33ac82b8242942cb553d144777b1cfbd..92e8da3603310e2f344a637843832139ad942452 100644 (file)
@@ -1,4 +1,4 @@
-# pread.m4 serial 3
+# pread.m4 serial 4
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,7 +32,7 @@ changequote([,])dnl
         gl_save_CPPFLAGS="$CPPFLAGS"
         CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
         AC_RUN_IFELSE(
-          [AC_LANG_SOURCE([[
+          [AC_LANG_PROGRAM([[
 #include <sys/types.h>
 #include <unistd.h>
 #include <fcntl.h>