From: Eric Blake <ebb9@byu.net>
Date: Fri, 7 Mar 2008 02:18:38 +0000 (-0700)
Subject: Likewise for ftello.
X-Git-Tag: v0.1~7682
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f9e70e3ef802527ebecd9179ca56cd19fe9946b6;p=gnulib.git

Likewise for ftello.

* modules/ftello (Dependencies): Add extensions.
* m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.

Signed-off-by: Eric Blake <ebb9@byu.net>
---

diff --git a/ChangeLog b/ChangeLog
index 71d79a7473..61347900fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-06  Eric Blake  <ebb9@byu.net>
+
+	Likewise for ftello.
+	* modules/ftello (Dependencies): Add extensions.
+	* m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
+
 2008-03-06  Bruno Haible  <bruno@clisp.org>
 
 	* modules/fseeko (Dependencies): Add extensions.
@@ -76,7 +82,7 @@
 	*.m4 files in this module.
 
 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
-            Bruno Haible  <bruno@clisp.org>
+	    Bruno Haible  <bruno@clisp.org>
 
 	Add support for HP C 7.1 on OpenVMS 8.3.
 	* lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
diff --git a/m4/ftello.m4 b/m4/ftello.m4
index cf986a417d..51308ef53b 100644
--- a/m4/ftello.m4
+++ b/m4/ftello.m4
@@ -1,5 +1,5 @@
-# ftello.m4 serial 3
-dnl Copyright (C) 2007 Free Software Foundation, Inc.
+# ftello.m4 serial 4
+dnl Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -9,6 +9,10 @@ AC_DEFUN([gl_FUNC_FTELLO],
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([gl_STDIN_LARGE_OFFSET])
+
+  dnl Persuade glibc <stdio.h> to declare fseeko().
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+
   AC_CACHE_CHECK([for ftello], [gl_cv_func_ftello],
     [
       AC_TRY_LINK([#include <stdio.h>], [ftello (stdin);],
diff --git a/modules/ftello b/modules/ftello
index d7ea365bba..9a0b62d023 100644
--- a/modules/ftello
+++ b/modules/ftello
@@ -6,6 +6,7 @@ lib/ftello.c
 m4/ftello.m4
 
 Depends-on:
+extensions
 lseek
 stdio