openat: provide more convenience names
[pspp] / modules / locale
index 2110f15dde06f3798bca6191e8d59e721869ffeb..41f9e536e87104c6fbe0c05e9fd94994fa681ed1 100644 (file)
@@ -2,11 +2,12 @@ Description:
 A <locale.h> that conforms to POSIX.
 
 Files:
-lib/locale_.h
+lib/locale.in.h
 m4/locale_h.m4
 
 Depends-on:
-absolute-header
+include_next
+stddef
 
 configure.ac:
 gl_LOCALE_H
@@ -16,12 +17,14 @@ BUILT_SOURCES += $(LOCALE_H)
 
 # We need the following in order to create <locale.h> when the system
 # doesn't have one that provides all definitions.
-locale.h: locale_.h
-       rm -f $@-t $@
+locale.h: locale.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
-         sed -e 's|@''ABSOLUTE_LOCALE_H''@|$(ABSOLUTE_LOCALE_H)|g' \
-             < $(srcdir)/locale_.h; \
-       } > $@-t
+         sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+             -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+             -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
+             < $(srcdir)/locale.in.h; \
+       } > $@-t && \
        mv $@-t $@
 MOSTLYCLEANFILES += locale.h locale.h-t
 
@@ -33,4 +36,3 @@ LGPL
 
 Maintainer:
 Bruno Haible
-