unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Generating byteswap.h on Windows
@ 2013-10-04  9:59 martin rudalics
  2013-10-04 10:54 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: martin rudalics @ 2013-10-04  9:59 UTC (permalink / raw)
  To: emacs-devel

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 $@-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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-10-04 17:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-04  9:59 Generating byteswap.h on Windows martin rudalics
2013-10-04 10:54 ` Eli Zaretskii
2013-10-04 12:47   ` martin rudalics
2013-10-04 14:09     ` Eli Zaretskii
2013-10-04 14:33       ` martin rudalics
2013-10-04 15:45         ` Paul Eggert
2013-10-04 17:55           ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).