fseeko: fix m4 regression
authorEric Blake <ebb9@byu.net>
Sat, 31 Oct 2009 13:23:11 +0000 (07:23 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 31 Oct 2009 13:25:31 +0000 (07:25 -0600)
* m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
regression from 2009-10-27.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
m4/fseeko.m4

index 251829a..e062128 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-31  Eric Blake  <ebb9@byu.net>
+
+       fseeko: fix m4 regression
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
+       regression from 2009-10-27.
+       Reported by Ralf Wildenhues.
+
 2009-10-31  Jim Meyering  <meyering@redhat.com>
 
        inttostr: aesthetics and improved (compile-time) safety
index c9fbfb7..a370648 100644 (file)
@@ -1,4 +1,4 @@
-# fseeko.m4 serial 5
+# fseeko.m4 serial 6
 dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -15,7 +15,8 @@ AC_DEFUN([gl_FUNC_FSEEKO],
 
   AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko],
     [
-      AC_TRY_LINK([[#include <stdio.h>]], [fseeko (stdin, 0, 0);],
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>
+]], [fseeko (stdin, 0, 0);])],
        [gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no])
     ])
   if test $gl_cv_func_fseeko = no; then