From af720b41e1f1b198600e9e94b968d3209d5bb11a Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 26 Feb 2014 01:16:09 -0500 Subject: [PATCH] configure.ac: Intentionally underquote m4_normalize calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This works around a bug in Autoconf 2.64 and earlier, which generated ridiculous symbols like /* #undef HAVE_M4_NORMALIZE___FCNTL_H__LANGINFO_H__LIMITS_H__… */ instead of the ones we need. It was fixed by v2.65~21: http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=81c80d1bf6c8ddf732d0b89f6fc5e306dac9705e Signed-off-by: Anders Kaseorg --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 83d6ceb..7649f0a 100644 --- a/configure.ac +++ b/configure.ac @@ -170,7 +170,7 @@ AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([inet_addr], [nsl]) # Checks for header files. -AC_CHECK_HEADERS([m4_normalize([ +AC_CHECK_HEADERS(m4_normalize([ fcntl.h langinfo.h limits.h @@ -191,7 +191,7 @@ AC_CHECK_HEADERS([m4_normalize([ unistd.h wchar.h wctype.h - ])], [], [AC_MSG_ERROR([Missing required header file.])]) + ]), [], [AC_MSG_ERROR([Missing required header file.])]) AC_CHECK_HEADERS([pty.h util.h libutil.h paths.h]) AC_CHECK_HEADERS([endian.h sys/endian.h]) @@ -216,7 +216,7 @@ AC_TYPE_UINTPTR_T # Checks for library functions. AC_FUNC_FORK AC_FUNC_MBRTOWC -AC_CHECK_FUNCS([m4_normalize([ +AC_CHECK_FUNCS(m4_normalize([ gettimeofday setrlimit iswprint @@ -239,7 +239,7 @@ AC_CHECK_FUNCS([m4_normalize([ pselect getaddrinfo getnameinfo - ])]) + ])) AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Define if clock_gettime is available.])])