bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] patch for AC_GNU_SOURCE on Solaris


From: Bruno Haible
Subject: Re: [Bug-gnulib] patch for AC_GNU_SOURCE on Solaris
Date: Sun, 17 Aug 2003 17:25:45 +0200
User-agent: KMail/1.5

Paul Eggert wrote:

> --- /dev/null Tue Mar 18 13:55:57 2003
> +++ modules/extensions        Fri Aug  8 13:11:42 2003
> @@ -0,0 +1,18 @@
> +Description:
> +Enable extensions in standard headers
> +
> +Files:
> +m4/extensions.m4
> +
> +Depends-on:
> +
> +configure.ac:
> +gl_USE_SYSTEM_EXTENSIONS

Like AC_GNU_SOURCE, gl_USE_SYSTEM_EXTENSIONS must be mentioned early in the
configure files. When using
"./gnulib-tool --create-testdir --dir=/tmp/testdir alloca fnmatch-gnu"
I now get the following warning from 'autoheader' and 'autoconf':

configure.ac:22: warning: AC_COMPILE_IFELSE was called before 
gl_USE_SYSTEM_EXTENSIONS
configure.ac:22: warning: AC_RUN_IFELSE was called before 
gl_USE_SYSTEM_EXTENSIONS

To fix this for users of gnulib-tool, I've committed this fix.

2003-08-17  Bruno Haible  <address@hidden>

        * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
        like AC_GNU_SOURCE.
        * modules/extensions (configure.ac): Comment out the invocation of
        gl_USE_SYSTEM_EXTENSIONS.

*** gnulib-tool 22 May 2003 13:57:59 -0000      1.10
--- gnulib-tool 17 Aug 2003 15:24:10 -0000
***************
*** 421,426 ****
--- 421,430 ----
       echo "AC_GNU_SOURCE"
       echo
     fi
+    if grep gl_USE_SYSTEM_EXTENSIONS "$testdir"/m4/*.m4 > /dev/null; then
+      echo "gl_USE_SYSTEM_EXTENSIONS"
+      echo
+    fi
     for module in $modules; do
       func_verify_module
       if test -n "$module"; then
*** modules/extensions  8 Aug 2003 20:15:52 -0000       1.1
--- modules/extensions  17 Aug 2003 15:24:10 -0000
***************
*** 7,13 ****
  Depends-on:
  
  configure.ac:
! gl_USE_SYSTEM_EXTENSIONS
  
  Makefile.am:
  
--- 7,13 ----
  Depends-on:
  
  configure.ac:
! dnl gl_USE_SYSTEM_EXTENSIONS must be added quite early to configure.ac.
  
  Makefile.am:
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]