pread: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / unistr / base
index 06846a6de228caee58155bec8544c012e606418e..b76031effd61882b6bb5cb8d611f895f412acc8d 100644 (file)
@@ -2,7 +2,8 @@ Description:
 Base layer for elementary Unicode string functions.
 
 Files:
-lib/unistr.h
+lib/unistr.in.h
+m4/libunistring-base.m4
 
 Depends-on:
 unitypes
@@ -11,14 +12,24 @@ stdbool
 inline
 
 configure.ac:
+gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
 
 Makefile.am:
+BUILT_SOURCES += $(LIBUNISTRING_UNISTR_H)
+
+unistr.h: unistr.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/unistr.in.h; \
+       } > $@-t && \
+       mv -f $@-t $@
+MOSTLYCLEANFILES += unistr.h unistr.h-t
 
 Include:
 "unistr.h"
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Bruno Haible