summaryrefslogtreecommitdiff
path: root/modules/errno
diff options
context:
space:
mode:
Diffstat (limited to 'modules/errno')
-rw-r--r--modules/errno7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/errno b/modules/errno
index 221bebf0de..d44f377557 100644
--- a/modules/errno
+++ b/modules/errno
@@ -19,7 +19,8 @@ BUILT_SOURCES += $(ERRNO_H)
# We need the following in order to create <errno.h> when the system
# doesn't have one that is POSIX compliant.
-errno.h: errno.in.h
+if GL_GENERATE_ERRNO_H
+errno.h: errno.in.h $(top_builddir)/config.status
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
@@ -35,6 +36,10 @@ errno.h: errno.in.h
< $(srcdir)/errno.in.h; \
} > $@-t && \
mv $@-t $@
+else
+errno.h: $(top_builddir)/config.status
+ rm -f $@
+endif
MOSTLYCLEANFILES += errno.h errno.h-t
Include: