]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
address root cause of compilation failures:
authorJim Meyering <meyering@redhat.com>
Sun, 15 Jun 2008 16:57:13 +0000 (18:57 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 15 Jun 2008 16:57:13 +0000 (18:57 +0200)
The affected code wasn't even being compiled on my system,
because HAVE_NL_LANGINFO was not defined.  On other systems, where
vasnprintf.m4 determines it needs %A or %a replacement support, it
_would_ check for nl_langinfo, and expose the compilation failure.
* m4/jm-macros.m4: Check for nl_langinfo, required by sort.c.

m4/jm-macros.m4

index 9680e95c5864800ef209a5d2f9e310245d2bf57e..062737b09dabf47194cfcc6ef42fe4f9ebd8db34 100644 (file)
@@ -1,4 +1,4 @@
-#serial 106   -*- autoconf -*-
+#serial 107   -*- autoconf -*-
 
 dnl Misc type-related macros for coreutils.
 
@@ -49,6 +49,9 @@ AC_DEFUN([coreutils_MACROS],
   # Used by install.c.
   AC_CHECK_FUNCS_ONCE([matchpathcon_init_prefix])
 
+  # Used by sort.c.
+  AC_CHECK_FUNCS_ONCE([nl_langinfo])
+
   AC_CHECK_FUNCS_ONCE( \
     endgrent \
     endpwent \