From: Eric Blake Date: Sat, 31 Oct 2009 13:23:11 +0000 (-0600) Subject: fseeko: fix m4 regression X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a9c05de878d2f3efd2c4612ab2b64cc94ee0b7;hp=c74c2411db5f3bf06848008c0d121a23fd31cf91;p=pspp fseeko: fix m4 regression * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes regression from 2009-10-27. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 251829a376..e062128905 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-10-31 Eric Blake + + 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 inttostr: aesthetics and improved (compile-time) safety diff --git a/m4/fseeko.m4 b/m4/fseeko.m4 index c9fbfb7fcd..a370648e9f 100644 --- a/m4/fseeko.m4 +++ b/m4/fseeko.m4 @@ -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 ]], [fseeko (stdin, 0, 0);], + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include +]], [fseeko (stdin, 0, 0);])], [gl_cv_func_fseeko=yes], [gl_cv_func_fseeko=no]) ]) if test $gl_cv_func_fseeko = no; then