From a5a4996a639101859bc183c85b33a6e04f5133f9 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 3 Nov 2006 15:40:33 +0000 Subject: Add alloca files, required for *BSD git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1534 f882894a-f735-0410-b71e-b25c423dba1c --- lib/Makefile.am | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/Makefile.am') diff --git a/lib/Makefile.am b/lib/Makefile.am index 80455690..7edac1f2 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -38,8 +38,9 @@ other_coreutils_files = \ xmalloc.c -libcoreutils_a_LIBADD = $(LIBOBJS) +libcoreutils_a_LIBADD = $(LIBOBJS) $(ALLOCA) libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD) +lib_OBJECTS = $(libcoreutils_a_OBJECTS) libnagiosplug_a_SOURCES = snprintf.c utils_base.c utils_disk.c EXTRA_DIST += utils_base.h utils_disk.h @@ -61,6 +62,17 @@ stdbool.h: stdbool_.h sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t mv $@t $@ +BUILT_SOURCES += $(ALLOCA_H) +EXTRA_DIST += alloca_.h + +# We need the following in order to create an when the system +# doesn't have one that works with the given compiler +all-local $(lib_OBJECTS): $(ALLOCA_H) +alloca.h: alloca_.h + cp $(srcdir)/alloca_.h $@-t + mv $@-t $@ +MOSTLYCLEANFILES += alloca.h alloca.h-t + BUILT_SOURCES += $(GETOPT_H) EXTRA_DIST += getopt_.h getopt_int.h -- cgit v1.2.3-74-g34f1