CC = @CC@
CFLAGS = @CFLAGS@
CC_FOR_BUILD = @CC_FOR_BUILD@
+CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
MAKEINFO = makeinfo
RANLIB = @RANLIB@
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
DEP = mkdep
-# compilers to use to create programs which must be run in the build
-# environment.
-CC_FOR_BUILD = $(CC)
-
#### Makefile fragments come in here.
# @target_makefile_frag@
###
FLAGS_TO_PASS = \
"prefix=$(prefix)" \
"exec_prefix=$(exec_prefix)" \
+ "bindir=$(bindir)" \
+ "mandir=$(mandir)" \
+ "libdir=$(libdir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
"CFLAGS=$(CFLAGS)" \
+ "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
"RANLIB=$(RANLIB)" \
"MAKEINFO=$(MAKEINFO)" \
"INSTALL=$(INSTALL)" \
if [ "$$dir" = "." ]; then \
true; \
elif [ -d $$dir ]; then \
- (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
+ (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)) || exit 1; \
else true; fi; \
done
if [ "$$dir" = "." ]; then \
true; \
elif [ -d $$dir ]; then \
- (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+ (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
else true; fi; \
done
if [ "$$dir" = "." ]; then \
true; \
elif [ -d $$dir ]; then \
- (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \
+ (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@) || exit 1; \
else true; fi; \
done
rm -f Makefile config.cache config.log config.status
if [ "$$dir" = "." ]; then \
true; \
elif [ -d $$dir ]; then \
- (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
+ (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install) || exit 1; \
else true; fi; \
done
# Utility to run autoconf in each directory that uses the common framework.
# This is intended to be invoked in $srcdir as
-# "make -f Makefile.in autoconf-common".
-.PHONY: autoconf-common
+# "make -f Makefile.in autoconf-common SHELL=/bin/sh".
+.PHONY: autoconf-common autoheader-common
autoconf-common autoheader-common:
for d in * ; \
do \
- if [ -d $$d -a -f $$d/configure.in ] ; \
+ if [ -d $$d -a -f $$d/configure.ac ] ; \
then \
echo "Running autoconf in $$d ..." ; \
- (cd $$d && autoconf) ; \
- if [ $@ = autoheader-common ] ; \
+ (cd $$d && autoconf --force) ; \
+ if [ $@ = autoheader-common ] && [ -f $$d/config.in ] ; \
then \
echo "Running autoheader in $$d ..." ; \
- (cd $$d && autoheader) ; \
+ (cd $$d && autoheader --force) ; \
fi ; \
fi ; \
done
echo "$$date $$name $$id@$$host" ; \
for d in * ; \
do \
- if [ -d $$d -a -f $$d/configure.in ] ; \
+ if [ -d $$d -a -f $$d/configure.ac ] ; \
then \
echo "Creating new-$(ChangeLog) in $$d ..." ; \
( echo "$$date $$name <$$id@$$host>" ; \
autoconf-install autoheader-install:
for d in * ; \
do \
- if [ -d $$d -a -f $$d/configure.in ] ; \
+ if [ -d $$d -a -f $$d/configure.ac ] ; \
then \
echo "Moving $$d/new-$(ChangeLog) to $$d/$(ChangeLog) ..." ; \
mv $$d/new-$(ChangeLog) $$d/$(ChangeLog) ; \