bug-gnulib
[Top][All Lists]
Advanced

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

Re: m4 brackets question


From: Bruno Haible
Subject: Re: m4 brackets question
Date: Thu, 15 Sep 2011 00:25:34 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Eric Blake wrote:
> > Underquoted (and autoconf has magic in AC_CHECK_DECL that tries to deal 
> > with the underquoting, since this is so common), since the fourth 
> > argument of AC_CHECK_DECL is supposed to allow further m4 macro 
> > expansion when used properly.

The same apparently holds for AC_CHECK_DECLS.

I'm adding this patch, for consistency among AC_CHECK_DECLS invocations:


2011-09-14  Bruno Haible  <address@hidden>

        Properly quote AC_CHECK_DECLS' 4th argument.
        * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
        argument.
        * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
        * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
        * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
        * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
        * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
        * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
        * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
        * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
        * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
        * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
        * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
        * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
        * m4/isfinite.m4 (gl_ISFINITE): Likewise.
        * m4/isinf.m4 (gl_ISINF): Likewise.
        * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
        * m4/readutmp.m4 (gl_READUTMP): Likewise.
        * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
        * m4/round.m4 (gl_FUNC_ROUND): Likewise.
        * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
        * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
        * m4/signbit.m4 (gl_SIGNBIT): Likewise.
        * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
        * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
        * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
        * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
        * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
        * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
        * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
        * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.

--- m4/c-stack.m4.orig  Thu Sep 15 00:04:00 2011
+++ m4/c-stack.m4       Wed Sep 14 23:59:47 2011
@@ -7,7 +7,7 @@
 
 # Written by Paul Eggert.
 
-# serial 13
+# serial 14
 
 AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
   [
@@ -338,7 +338,7 @@
    AC_REQUIRE([AC_FUNC_ALLOCA])
 
    AC_CHECK_FUNCS_ONCE([sigaltstack])
-   AC_CHECK_DECLS([sigaltstack], , , [#include <signal.h>])
+   AC_CHECK_DECLS([sigaltstack], , , [[#include <signal.h>]])
 
    AC_CHECK_HEADERS_ONCE([unistd.h ucontext.h])
 
--- m4/ceilf.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/ceilf.m4 Wed Sep 14 23:56:33 2011
@@ -1,4 +1,4 @@
-# ceilf.m4 serial 11
+# ceilf.m4 serial 12
 dnl Copyright (C) 2007, 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,
@@ -11,7 +11,7 @@
   dnl Persuade glibc <math.h> to declare ceilf().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether ceilf() is declared.
-  AC_CHECK_DECLS([ceilf], , , [#include <math.h>])
+  AC_CHECK_DECLS([ceilf], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_ceilf" = yes; then
     dnl Test whether ceilf() can be used without libm.
     gl_FUNC_CEILF_LIBS
--- m4/ceill.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/ceill.m4 Wed Sep 14 23:59:51 2011
@@ -1,4 +1,4 @@
-# ceill.m4 serial 10
+# ceill.m4 serial 11
 dnl Copyright (C) 2007, 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,
@@ -11,7 +11,7 @@
   dnl Persuade glibc <math.h> to declare ceill().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether ceill() is declared.
-  AC_CHECK_DECLS([ceill], , , [#include <math.h>])
+  AC_CHECK_DECLS([ceill], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_ceill" = yes; then
     dnl Test whether ceill() can be used without libm.
     gl_FUNC_CEILL_LIBS
--- m4/dirfd.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/dirfd.m4 Wed Sep 14 23:59:40 2011
@@ -1,4 +1,4 @@
-# serial 21   -*- Autoconf -*-
+# serial 22   -*- Autoconf -*-
 
 dnl Find out how to get the file descriptor associated with an open DIR*.
 
@@ -18,8 +18,8 @@
 
   AC_CHECK_FUNCS([dirfd])
   AC_CHECK_DECLS([dirfd], , ,
-    [#include <sys/types.h>
-     #include <dirent.h>])
+    [[#include <sys/types.h>
+      #include <dirent.h>]])
   if test $ac_cv_have_decl_dirfd = no; then
     HAVE_DECL_DIRFD=0
   fi
--- m4/floorf.m4.orig   Thu Sep 15 00:04:00 2011
+++ m4/floorf.m4        Wed Sep 14 23:59:35 2011
@@ -1,4 +1,4 @@
-# floorf.m4 serial 10
+# floorf.m4 serial 11
 dnl Copyright (C) 2007, 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,
@@ -11,7 +11,7 @@
   dnl Persuade glibc <math.h> to declare floorf().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether floorf() is declared.
-  AC_CHECK_DECLS([floorf], , , [#include <math.h>])
+  AC_CHECK_DECLS([floorf], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_floorf" = yes; then
     dnl Test whether floorf() can be used without libm.
     gl_FUNC_FLOORF_LIBS
--- m4/floorl.m4.orig   Thu Sep 15 00:04:00 2011
+++ m4/floorl.m4        Wed Sep 14 23:59:30 2011
@@ -1,4 +1,4 @@
-# floorl.m4 serial 8
+# floorl.m4 serial 9
 dnl Copyright (C) 2007, 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,
@@ -10,7 +10,7 @@
   dnl Persuade glibc <math.h> to declare floorl().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether floorl() is declared.
-  AC_CHECK_DECLS([floorl], , , [#include <math.h>])
+  AC_CHECK_DECLS([floorl], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_floorl" = yes; then
     dnl Test whether floorl() can be used without libm.
     gl_FUNC_FLOORL_LIBS
--- m4/fnmatch.m4.orig  Thu Sep 15 00:04:00 2011
+++ m4/fnmatch.m4       Wed Sep 14 23:59:24 2011
@@ -1,4 +1,4 @@
-# Check for fnmatch - serial 7.
+# Check for fnmatch - serial 8.
 
 # Copyright (C) 2000-2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -150,7 +150,7 @@
     [Define to a replacement function name for fnmatch().])
   dnl Prerequisites of lib/fnmatch.c.
   AC_REQUIRE([AC_TYPE_MBSTATE_T])
-  AC_CHECK_DECLS([isblank], [], [], [#include <ctype.h>])
+  AC_CHECK_DECLS([isblank], [], [], [[#include <ctype.h>]])
   AC_CHECK_FUNCS_ONCE([btowc isblank iswctype mbsrtowcs mempcpy wmemchr 
wmemcpy wmempcpy])
   AC_CHECK_HEADERS_ONCE([wctype.h])
 ])
--- m4/getaddrinfo.m4.orig      Thu Sep 15 00:04:00 2011
+++ m4/getaddrinfo.m4   Wed Sep 14 23:59:20 2011
@@ -1,4 +1,4 @@
-# getaddrinfo.m4 serial 28
+# getaddrinfo.m4 serial 29
 dnl Copyright (C) 2004-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,
@@ -146,7 +146,7 @@
 
   AC_CHECK_HEADERS_ONCE([netinet/in.h])
 
-  AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, getnameinfo],,,[
+  AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, getnameinfo],,,[[
   /* sys/types.h is not needed according to POSIX, but the
      sys/socket.h in i386-unknown-freebsd4.10 and
      powerpc-apple-darwin5.5 required it. */
@@ -160,7 +160,7 @@
 #ifdef HAVE_WS2TCPIP_H
 #include <ws2tcpip.h>
 #endif
-])
+]])
   if test $ac_cv_have_decl_getaddrinfo = no; then
     HAVE_DECL_GETADDRINFO=0
   fi
--- m4/getdomainname.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/getdomainname.m4 Wed Sep 14 23:59:17 2011
@@ -1,4 +1,4 @@
-# getdomainname.m4 serial 8
+# getdomainname.m4 serial 9
 dnl Copyright (C) 2002-2003, 2008-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,
@@ -45,15 +45,15 @@
   dnl - It's  int getdomainname(char *, int)  on MacOS X, FreeBSD, AIX, IRIX,
   dnl   OSF/1.
   AC_CHECK_DECLS([getdomainname], , ,
-    [#include <sys/types.h>
-     #ifdef HAVE_SYS_SOCKET_H
-     #include <sys/socket.h>
-     #endif
-     #ifdef HAVE_NETDB_H
-     #include <netdb.h>
-     #endif
-     #include <unistd.h>
-    ])
+    [[#include <sys/types.h>
+      #ifdef HAVE_SYS_SOCKET_H
+      #include <sys/socket.h>
+      #endif
+      #ifdef HAVE_NETDB_H
+      #include <netdb.h>
+      #endif
+      #include <unistd.h>
+    ]])
   AC_CACHE_CHECK([for getdomainname's second argument type],
     [gl_cv_decl_getdomainname_argtype2],
     [if test $ac_cv_have_decl_getdomainname; then
--- m4/gethrxtime.m4.orig       Thu Sep 15 00:04:00 2011
+++ m4/gethrxtime.m4    Wed Sep 14 23:59:11 2011
@@ -1,4 +1,4 @@
-# gethrxtime.m4 serial 10
+# gethrxtime.m4 serial 11
 dnl Copyright (C) 2005-2006, 2008-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,
@@ -11,7 +11,7 @@
   AC_REQUIRE([gl_ARITHMETIC_HRTIME_T])
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   AC_REQUIRE([gl_XTIME])
-  AC_CHECK_DECLS([gethrtime], [], [], [#include <time.h>])
+  AC_CHECK_DECLS([gethrtime], [], [], [[#include <time.h>]])
   LIB_GETHRXTIME=
   if test $ac_cv_have_decl_gethrtime = no \
      || test $gl_cv_arithmetic_hrtime_t = no; then
--- m4/getpass.m4.orig  Thu Sep 15 00:04:00 2011
+++ m4/getpass.m4       Wed Sep 14 23:59:09 2011
@@ -1,4 +1,4 @@
-# getpass.m4 serial 13
+# getpass.m4 serial 14
 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2011 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -45,10 +45,10 @@
   AC_CHECK_HEADERS_ONCE([stdio_ext.h termios.h])
   AC_CHECK_FUNCS_ONCE([__fsetlocking tcgetattr tcsetattr])
   AC_CHECK_DECLS([__fsetlocking],,,
-    [#include <stdio.h>
-     #if HAVE_STDIO_EXT_H
-      #include <stdio_ext.h>
-     #endif])
+    [[#include <stdio.h>
+      #if HAVE_STDIO_EXT_H
+       #include <stdio_ext.h>
+      #endif]])
   AC_CHECK_DECLS_ONCE([fflush_unlocked])
   AC_CHECK_DECLS_ONCE([flockfile])
   AC_CHECK_DECLS_ONCE([fputs_unlocked])
--- m4/inet_ntop.m4.orig        Thu Sep 15 00:04:00 2011
+++ m4/inet_ntop.m4     Wed Sep 14 23:59:05 2011
@@ -1,4 +1,4 @@
-# inet_ntop.m4 serial 15
+# inet_ntop.m4 serial 16
 dnl Copyright (C) 2005-2006, 2008-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,
@@ -30,11 +30,11 @@
 
   AC_CHECK_HEADERS_ONCE([netdb.h])
   AC_CHECK_DECLS([inet_ntop],,,
-    [#include <arpa/inet.h>
-     #if HAVE_NETDB_H
-     # include <netdb.h>
-     #endif
-    ])
+    [[#include <arpa/inet.h>
+      #if HAVE_NETDB_H
+      # include <netdb.h>
+      #endif
+    ]])
   if test $ac_cv_have_decl_inet_ntop = no; then
     HAVE_DECL_INET_NTOP=0
     AC_REQUIRE([AC_C_RESTRICT])
--- m4/inet_pton.m4.orig        Thu Sep 15 00:04:00 2011
+++ m4/inet_pton.m4     Wed Sep 14 23:58:40 2011
@@ -1,4 +1,4 @@
-# inet_pton.m4 serial 13
+# inet_pton.m4 serial 14
 dnl Copyright (C) 2006, 2008-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,
@@ -30,11 +30,11 @@
 
   AC_CHECK_HEADERS_ONCE([netdb.h])
   AC_CHECK_DECLS([inet_pton],,,
-    [#include <arpa/inet.h>
-     #if HAVE_NETDB_H
-     # include <netdb.h>
-     #endif
-    ])
+    [[#include <arpa/inet.h>
+      #if HAVE_NETDB_H
+      # include <netdb.h>
+      #endif
+    ]])
   if test $ac_cv_have_decl_inet_pton = no; then
     HAVE_DECL_INET_PTON=0
     AC_REQUIRE([AC_C_RESTRICT])
--- m4/isfinite.m4.orig Thu Sep 15 00:04:00 2011
+++ m4/isfinite.m4      Wed Sep 14 23:58:35 2011
@@ -1,4 +1,4 @@
-# isfinite.m4 serial 10
+# isfinite.m4 serial 11
 dnl Copyright (C) 2007-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,
@@ -9,7 +9,7 @@
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Persuade glibc <math.h> to declare isfinite.
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
-  AC_CHECK_DECLS([isfinite], , , [#include <math.h>])
+  AC_CHECK_DECLS([isfinite], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_isfinite" = yes; then
     gl_CHECK_MATH_LIB([ISFINITE_LIBM],
      [x = isfinite (x) + isfinite ((float) x);])
--- m4/isinf.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/isinf.m4 Wed Sep 14 23:58:30 2011
@@ -1,4 +1,4 @@
-# isinf.m4 serial 5
+# isinf.m4 serial 6
 dnl Copyright (C) 2007-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,
@@ -9,7 +9,7 @@
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Persuade glibc <math.h> to declare isinf.
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
-  AC_CHECK_DECLS([isinf], , , [#include <math.h>])
+  AC_CHECK_DECLS([isinf], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_isinf" = yes; then
     gl_CHECK_MATH_LIB([ISINF_LIBM], [x = isinf (x) + isinf ((float) x);])
     if test "$ISINF_LIBM" != missing; then
--- m4/logb.m4.orig     Thu Sep 15 00:04:00 2011
+++ m4/logb.m4  Wed Sep 14 23:58:26 2011
@@ -1,4 +1,4 @@
-# logb.m4 serial 3
+# logb.m4 serial 4
 dnl Copyright (C) 2010-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,
@@ -8,7 +8,7 @@
 [
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Test whether logb() is declared.
-  AC_CHECK_DECLS([logb], , , [#include <math.h>])
+  AC_CHECK_DECLS([logb], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_logb" != yes; then
     HAVE_DECL_LOGB=0
   fi
--- m4/readutmp.m4.orig Thu Sep 15 00:04:00 2011
+++ m4/readutmp.m4      Wed Sep 14 23:58:20 2011
@@ -1,4 +1,4 @@
-# readutmp.m4 serial 18
+# readutmp.m4 serial 19
 dnl Copyright (C) 2002-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,
@@ -14,13 +14,13 @@
     dnl Prerequisites of lib/readutmp.h and lib/readutmp.c.
     AC_REQUIRE([AC_C_INLINE])
     AC_CHECK_FUNCS_ONCE([utmpname utmpxname])
-    AC_CHECK_DECLS([getutent],,,[
+    AC_CHECK_DECLS([getutent],,,[[
 /* <sys/types.h> is a prerequisite of <utmp.h> on FreeBSD 8.0, OpenBSD 4.6.  */
 #include <sys/types.h>
 #ifdef HAVE_UTMP_H
 # include <utmp.h>
 #endif
-])
+]])
     utmp_includes="\
 AC_INCLUDES_DEFAULT
 #ifdef HAVE_UTMPX_H
--- m4/regex.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/regex.m4 Wed Sep 14 23:58:15 2011
@@ -1,4 +1,4 @@
-# serial 59
+# serial 60
 
 # Copyright (C) 1996-2001, 2003-2011 Free Software Foundation, Inc.
 #
@@ -219,5 +219,5 @@
   AC_REQUIRE([AC_TYPE_MBSTATE_T])
   AC_CHECK_HEADERS([libintl.h])
   AC_CHECK_FUNCS_ONCE([isblank iswctype wcscoll])
-  AC_CHECK_DECLS([isblank], [], [], [#include <ctype.h>])
+  AC_CHECK_DECLS([isblank], [], [], [[#include <ctype.h>]])
 ])
--- m4/round.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/round.m4 Wed Sep 14 23:58:00 2011
@@ -1,4 +1,4 @@
-# round.m4 serial 12
+# round.m4 serial 13
 dnl Copyright (C) 2007, 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,
@@ -10,7 +10,7 @@
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Persuade glibc <math.h> to declare round().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
-  AC_CHECK_DECLS([round], , , [#include <math.h>])
+  AC_CHECK_DECLS([round], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_round" = yes; then
     gl_CHECK_MATH_LIB([ROUND_LIBM], [x = round (x);])
     if test "$ROUND_LIBM" != missing; then
--- m4/roundf.m4.orig   Thu Sep 15 00:04:00 2011
+++ m4/roundf.m4        Wed Sep 14 23:58:09 2011
@@ -1,4 +1,4 @@
-# roundf.m4 serial 13
+# roundf.m4 serial 14
 dnl Copyright (C) 2007-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,
@@ -10,7 +10,7 @@
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Persuade glibc <math.h> to declare roundf().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
-  AC_CHECK_DECLS([roundf], , , [#include <math.h>])
+  AC_CHECK_DECLS([roundf], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_roundf" = yes; then
     gl_CHECK_MATH_LIB([ROUNDF_LIBM], [x = roundf (x);])
     if test "$ROUNDF_LIBM" != missing; then
@@ -96,7 +96,7 @@
   fi
   if test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then
     dnl Find libraries needed to link lib/roundf.c.
-    AC_CHECK_DECLS([ceilf, floorf], , , [#include <math.h>])
+    AC_CHECK_DECLS([ceilf, floorf], , , [[#include <math.h>]])
     if test "$ac_cv_have_decl_floorf" = yes \
        && test "$ac_cv_have_decl_ceilf" = yes; then
       gl_FUNC_FLOORF_LIBS
--- m4/roundl.m4.orig   Thu Sep 15 00:04:00 2011
+++ m4/roundl.m4        Wed Sep 14 23:58:04 2011
@@ -1,4 +1,4 @@
-# roundl.m4 serial 11
+# roundl.m4 serial 12
 dnl Copyright (C) 2007, 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,
@@ -10,7 +10,7 @@
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
   dnl Persuade glibc <math.h> to declare roundl().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
-  AC_CHECK_DECLS([roundl], , , [#include <math.h>])
+  AC_CHECK_DECLS([roundl], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_roundl" = yes; then
     gl_CHECK_MATH_LIB([ROUNDL_LIBM], [x = roundl (x);])
     if test "$ROUNDL_LIBM" = missing; then
@@ -61,7 +61,7 @@
   fi
   if test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; then
     dnl Find libraries needed to link lib/roundl.c.
-    AC_CHECK_DECLS([ceill, floorl], , , [#include <math.h>])
+    AC_CHECK_DECLS([ceill, floorl], , , [[#include <math.h>]])
     if test "$ac_cv_have_decl_floorl" = yes \
        && test "$ac_cv_have_decl_ceill" = yes; then
       gl_FUNC_FLOORL_LIBS
--- m4/signbit.m4.orig  Thu Sep 15 00:04:00 2011
+++ m4/signbit.m4       Wed Sep 14 23:57:55 2011
@@ -1,4 +1,4 @@
-# signbit.m4 serial 10
+# signbit.m4 serial 11
 dnl Copyright (C) 2007-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,
@@ -65,7 +65,7 @@
       gl_LONG_DOUBLE_SIGN_LOCATION
       if test "$gl_cv_cc_float_signbit" = unknown; then
         dnl Test whether copysignf() is declared.
-        AC_CHECK_DECLS([copysignf], , , [#include <math.h>])
+        AC_CHECK_DECLS([copysignf], , , [[#include <math.h>]])
         if test "$ac_cv_have_decl_copysignf" = yes; then
           dnl Test whether copysignf() can be used without libm.
           AC_CACHE_CHECK([whether copysignf can be used without linking with 
libm],
@@ -87,7 +87,7 @@
       fi
       if test "$gl_cv_cc_double_signbit" = unknown; then
         dnl Test whether copysign() is declared.
-        AC_CHECK_DECLS([copysign], , , [#include <math.h>])
+        AC_CHECK_DECLS([copysign], , , [[#include <math.h>]])
         if test "$ac_cv_have_decl_copysign" = yes; then
           dnl Test whether copysign() can be used without libm.
           AC_CACHE_CHECK([whether copysign can be used without linking with 
libm],
@@ -109,7 +109,7 @@
       fi
       if test "$gl_cv_cc_long_double_signbit" = unknown; then
         dnl Test whether copysignl() is declared.
-        AC_CHECK_DECLS([copysignl], , , [#include <math.h>])
+        AC_CHECK_DECLS([copysignl], , , [[#include <math.h>]])
         if test "$ac_cv_have_decl_copysignl" = yes; then
           dnl Test whether copysignl() can be used without libm.
           AC_CACHE_CHECK([whether copysignl can be used without linking with 
libm],
--- m4/sleep.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/sleep.m4 Wed Sep 14 23:57:51 2011
@@ -1,4 +1,4 @@
-# sleep.m4 serial 5
+# sleep.m4 serial 6
 dnl Copyright (C) 2007-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,
@@ -12,7 +12,7 @@
   dnl _sleep() in MSVCRT. It has a different signature than POSIX sleep():
   dnl it takes the number of milliseconds as argument and returns void.
   dnl mingw does not declare this function.
-  AC_CHECK_DECLS([sleep], , , [#include <unistd.h>])
+  AC_CHECK_DECLS([sleep], , , [[#include <unistd.h>]])
   AC_CHECK_FUNCS_ONCE([sleep])
   if test $ac_cv_have_decl_sleep != yes; then
     HAVE_SLEEP=0
--- m4/strsignal.m4.orig        Thu Sep 15 00:04:00 2011
+++ m4/strsignal.m4     Wed Sep 14 23:57:04 2011
@@ -1,4 +1,4 @@
-# strsignal.m4 serial 6
+# strsignal.m4 serial 7
 dnl Copyright (C) 2008-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,
@@ -54,5 +54,5 @@
 # Prerequisites of lib/strsignal.c.
 AC_DEFUN([gl_PREREQ_STRSIGNAL], [
   AC_REQUIRE([AC_DECL_SYS_SIGLIST])
-  AC_CHECK_DECLS([_sys_siglist], [], [], [#include <signal.h>])
+  AC_CHECK_DECLS([_sys_siglist], [], [], [[#include <signal.h>]])
 ])
--- m4/trunc.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/trunc.m4 Wed Sep 14 23:56:47 2011
@@ -1,4 +1,4 @@
-# trunc.m4 serial 7
+# trunc.m4 serial 8
 dnl Copyright (C) 2007, 2010-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,
@@ -11,7 +11,7 @@
   dnl Persuade glibc <math.h> to declare trunc().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether trunc() is declared.
-  AC_CHECK_DECLS([trunc], , , [#include <math.h>])
+  AC_CHECK_DECLS([trunc], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_trunc" = yes; then
     dnl Test whether trunc() can be used without libm.
     TRUNC_LIBM=?
--- m4/truncf.m4.orig   Thu Sep 15 00:04:00 2011
+++ m4/truncf.m4        Wed Sep 14 23:56:57 2011
@@ -1,4 +1,4 @@
-# truncf.m4 serial 6
+# truncf.m4 serial 8
 dnl Copyright (C) 2007, 2010-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,
@@ -11,7 +11,7 @@
   dnl Persuade glibc <math.h> to declare truncf().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether truncf() is declared.
-  AC_CHECK_DECLS([truncf], , , [#include <math.h>])
+  AC_CHECK_DECLS([truncf], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_truncf" = yes; then
     dnl Test whether truncf() can be used without libm.
     TRUNCF_LIBM=?
--- m4/truncl.m4.orig   Thu Sep 15 00:04:00 2011
+++ m4/truncl.m4        Wed Sep 14 23:56:52 2011
@@ -1,4 +1,4 @@
-# truncl.m4 serial 8
+# truncl.m4 serial 9
 dnl Copyright (C) 2007-2008, 2010-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,
@@ -12,7 +12,7 @@
   dnl Persuade glibc <math.h> to declare truncl().
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether truncl() is declared.
-  AC_CHECK_DECLS([truncl], , , [#include <math.h>])
+  AC_CHECK_DECLS([truncl], , , [[#include <math.h>]])
   if test "$ac_cv_have_decl_truncl" = yes; then
     dnl Test whether truncl() can be used without libm.
     TRUNCL_LIBM=?
--- m4/vasnprintf.m4.orig       Thu Sep 15 00:04:00 2011
+++ m4/vasnprintf.m4    Wed Sep 14 23:56:42 2011
@@ -1,4 +1,4 @@
-# vasnprintf.m4 serial 32
+# vasnprintf.m4 serial 33
 dnl Copyright (C) 2002-2004, 2006-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,
@@ -63,7 +63,7 @@
   AC_CHECK_FUNCS([snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
   dnl Use the _snprintf function only if it is declared (because on NetBSD it
   dnl is defined as a weak alias of snprintf; we prefer to use the latter).
-  AC_CHECK_DECLS([_snprintf], , , [#include <stdio.h>])
+  AC_CHECK_DECLS([_snprintf], , , [[#include <stdio.h>]])
   dnl We can avoid a lot of code by assuming that snprintf's return value
   dnl conforms to ISO C99. So check that.
   AC_REQUIRE([gl_SNPRINTF_RETVAL_C99])
--- m4/wctob.m4.orig    Thu Sep 15 00:04:00 2011
+++ m4/wctob.m4 Wed Sep 14 23:56:37 2011
@@ -1,4 +1,4 @@
-# wctob.m4 serial 9
+# wctob.m4 serial 10
 dnl Copyright (C) 2008-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,
@@ -104,7 +104,7 @@
     if test $REPLACE_WCTOB = 0; then
 
       dnl IRIX 6.5 has the wctob() function but does not declare it.
-      AC_CHECK_DECLS([wctob], [], [], [
+      AC_CHECK_DECLS([wctob], [], [], [[
 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
    <wchar.h>.
    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
@@ -113,7 +113,7 @@
 #include <stdio.h>
 #include <time.h>
 #include <wchar.h>
-])
+]])
       if test $ac_cv_have_decl_wctob != yes; then
         HAVE_DECL_WCTOB=0
       fi
--- m4/wcwidth.m4.orig  Thu Sep 15 00:04:00 2011
+++ m4/wcwidth.m4       Wed Sep 14 23:56:30 2011
@@ -1,4 +1,4 @@
-# wcwidth.m4 serial 20
+# wcwidth.m4 serial 21
 dnl Copyright (C) 2006-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,
@@ -18,7 +18,7 @@
   AC_CHECK_HEADERS_ONCE([wchar.h])
   AC_CHECK_FUNCS_ONCE([wcwidth])
 
-  AC_CHECK_DECLS([wcwidth], [], [], [
+  AC_CHECK_DECLS([wcwidth], [], [], [[
 /* AIX 3.2.5 declares wcwidth in <string.h>. */
 #include <string.h>
 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
@@ -29,7 +29,7 @@
 #include <stdio.h>
 #include <time.h>
 #include <wchar.h>
-])
+]])
   if test $ac_cv_have_decl_wcwidth != yes; then
     HAVE_DECL_WCWIDTH=0
   fi

-- 
In memoriam Jerzy Popiełuszko <http://en.wikipedia.org/wiki/Jerzy_Popiełuszko>



reply via email to

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