[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Generating byteswap.h on Windows
From: |
martin rudalics |
Subject: |
Generating byteswap.h on Windows |
Date: |
Fri, 04 Oct 2013 11:59:02 +0200 |
To avoid a trunk build failure on Windows like
data.c:24:22: fatal error: byteswap.h: No such file or directory
compilation terminated.
make[1]: *** [data.o] Error 1
make[1]: Leaving directory `/c/emacs/trunk/src'
make: *** [src] Error 2
apply the patch below Paul sent me this morning.
I leave it to Eli to install it.
martin
=== modified file 'nt/gnulib.mk'
--- nt/gnulib.mk 2013-07-07 18:00:14 +0000
+++ nt/gnulib.mk 2013-10-04 08:35:33 +0000
@@ -78,6 +78,29 @@
## 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 address@hidden $@ && \
+ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+ cat $(srcdir)/byteswap.in.h; \
+ } > address@hidden && \
+ mv -f address@hidden $@
+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
- Generating byteswap.h on Windows,
martin rudalics <=