aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>2013-10-04 16:27:11 +0200
committerMartin Rudalics <[email protected]>2013-10-04 16:27:11 +0200
commitcd30a8e09c1bf7c64132eba5d27cb26583596b98 (patch)
tree58e82abcea046b0a8ec8ee7a52942b00d1b8a39b
parent942f6f82c991254317f1fe109e3072350d6986d6 (diff)
In nt/gnulib.mk create <byteswap.h> from <byteswap.in.h>.
* gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/gnulib.mk23
2 files changed, 27 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 2f9a2f5608..94bd71d28f 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-04 Paul Eggert <[email protected]>
+
+ * gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.
+
2013-09-20 Eli Zaretskii <[email protected]>
* mingw-cfg.site (gl_cv_sys_struct_timeval_tv_sec): Set to "yes"
diff --git a/nt/gnulib.mk b/nt/gnulib.mk
index df27dcf610..ff46e9f09a 100644
--- a/nt/gnulib.mk
+++ b/nt/gnulib.mk
@@ -78,6 +78,29 @@ EXTRA_DIST += alloca.in.h
## end gnulib module alloca-opt
+## begin gnulib module byteswap
+
+BUILT_SOURCES += $(BYTESWAP_H)
+
+# We need the following in order to create <byteswap.h> when the system
+# doesn't have one.
+if GL_GENERATE_BYTESWAP_H
+byteswap.h: byteswap.in.h $(top_builddir)/config.status
+ $(AM_V_GEN)rm -f $@-t $@ && \
+ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+ cat $(srcdir)/byteswap.in.h; \
+ } > $@-t && \
+ mv -f $@-t $@
+else
+byteswap.h: $(top_builddir)/config.status
+ rm -f $@
+endif
+MOSTLYCLEANFILES += byteswap.h byteswap.h-t
+
+EXTRA_DIST += byteswap.in.h
+
+## end gnulib module byteswap
+
## begin gnulib module c-ctype
libgnu_a_SOURCES += c-ctype.h c-ctype.c