From: Bruno Haible Date: Thu, 18 Dec 2008 02:28:36 +0000 (+0100) Subject: Don't override a newer version of an autoconf macro with an older version. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb252a70ec76d7386a3b1f60eb2946bf15c19db8;p=pspp Don't override a newer version of an autoconf macro with an older version. --- diff --git a/ChangeLog b/ChangeLog index 5c1d1811d4..89d8b8db5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-17 Bruno Haible + + * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60. + Suggested by Eric Blake. + 2008-12-17 Bruno Haible * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition. diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 index 16ad6ca155..a0274933b0 100644 --- a/m4/mbrtowc.m4 +++ b/m4/mbrtowc.m4 @@ -9,6 +9,7 @@ dnl From Paul Eggert dnl This override of an autoconf macro can be removed when autoconf 2.60 or dnl newer can be assumed everywhere. +m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.60]),[-1],[ AC_DEFUN([AC_FUNC_MBRTOWC], [ dnl Same as AC_FUNC_MBRTOWC in autoconf-2.60. @@ -29,3 +30,4 @@ AC_DEFUN([AC_FUNC_MBRTOWC], [Define to 1 if mbrtowc and mbstate_t are properly declared.]) fi ]) +])