Don't override a newer version of an autoconf macro with an older version.
[pspp] / m4 / mbrtowc.m4
index 16ad6ca1550e64f5f35c1b689e2d0b9e9e82d8de..a0274933b0bbb077dd6182ae8ef72cd734dc7805 100644 (file)
@@ -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
 ])
+])