From 1dbb5967ee7e786d08d728e6f53f3b67026c1e7a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 17 May 2003 11:52:47 +0000 Subject: [PATCH] Fix quoting bugs. --- m4/ChangeLog | 9 +++++++++ m4/dirfd.m4 | 8 ++++---- m4/strtoimax.m4 | 10 +++++----- m4/strtoumax.m4 | 10 +++++----- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 3c8231facc..39e48c85db 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,12 @@ +2003-05-17 Bruno Haible + + * dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an invalid + expansion for AC_EGREP_CPP. + * strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise. + * strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise. + Suggested by Akim Demaille in + http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html + 2003-04-21 Paul Eggert * error.m4 (gl_ERROR): Do not put under dynamic conditions some diff --git a/m4/dirfd.m4 b/m4/dirfd.m4 index 0e1090ed2a..16f54d4c3a 100644 --- a/m4/dirfd.m4 +++ b/m4/dirfd.m4 @@ -1,4 +1,4 @@ -#serial 4 +#serial 5 dnl Find out how to get the file descriptor associated with an open DIR*. dnl From Jim Meyering @@ -31,12 +31,12 @@ AC_DEFUN([UTILS_FUNC_DIRFD], AC_CACHE_CHECK([whether dirfd is a macro], jm_cv_func_dirfd_macro, - AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers + [AC_EGREP_CPP([dirent_header_defines_dirfd], [$dirfd_headers #ifdef dirfd dirent_header_defines_dirfd #endif], - jm_cv_func_dirfd_macro=yes, - jm_cv_func_dirfd_macro=no)) + jm_cv_func_dirfd_macro=yes, + jm_cv_func_dirfd_macro=no)]) # Use the replacement only if we have no function, macro, # or declaration with that name. diff --git a/m4/strtoimax.m4 b/m4/strtoimax.m4 index fd277671c0..7a338f2aa8 100644 --- a/m4/strtoimax.m4 +++ b/m4/strtoimax.m4 @@ -1,5 +1,5 @@ -# strtoimax.m4 serial 1 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# strtoimax.m4 serial 2 +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -14,12 +14,12 @@ AC_DEFUN([gl_FUNC_STRTOIMAX], AC_CACHE_CHECK([whether defines strtoimax as a macro], jm_cv_func_strtoimax_macro, - AC_EGREP_CPP([inttypes_h_defines_strtoimax], [#include + [AC_EGREP_CPP([inttypes_h_defines_strtoimax], [#include #ifdef strtoimax inttypes_h_defines_strtoimax #endif], - jm_cv_func_strtoimax_macro=yes, - jm_cv_func_strtoimax_macro=no)) + jm_cv_func_strtoimax_macro=yes, + jm_cv_func_strtoimax_macro=no)]) if test "$jm_cv_func_strtoimax_macro" != yes; then AC_REPLACE_FUNCS(strtoimax) diff --git a/m4/strtoumax.m4 b/m4/strtoumax.m4 index f93693a87c..5a2d569a77 100644 --- a/m4/strtoumax.m4 +++ b/m4/strtoumax.m4 @@ -1,5 +1,5 @@ -# strtoumax.m4 serial 1 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# strtoumax.m4 serial 2 +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -14,12 +14,12 @@ AC_DEFUN([gl_FUNC_STRTOUMAX], AC_CACHE_CHECK([whether defines strtoumax as a macro], jm_cv_func_strtoumax_macro, - AC_EGREP_CPP([inttypes_h_defines_strtoumax], [#include + [AC_EGREP_CPP([inttypes_h_defines_strtoumax], [#include #ifdef strtoumax inttypes_h_defines_strtoumax #endif], - jm_cv_func_strtoumax_macro=yes, - jm_cv_func_strtoumax_macro=no)) + jm_cv_func_strtoumax_macro=yes, + jm_cv_func_strtoumax_macro=no)]) if test "$jm_cv_func_strtoumax_macro" != yes; then AC_REPLACE_FUNCS(strtoumax) -- 2.30.2