Commit 23f6b2f9 by Paolo Bonzini Committed by Paolo Bonzini

Makefile.def (build_modules): Add bison, byacc, flex, m4, texinfo.

2004-07-01  Paolo Bonzini  <bonzini@gnu.org>

	* Makefile.def (build_modules): Add bison, byacc, flex,
	m4, texinfo.
	(flags_to_pass): Add FLEX.
	* Makefile.tpl (BUILD_DIR_PREFIX, BASE_EXPORTS): New.
	(BUILD_EXPORTS, HOST_EXPORTS, BASE_TARGET_EXPORTS): Include it.
	(DEFAULT_YACC, USUAL_YACC, DEFAULT_LEX, USUAL_LEX, DEFAULT_M4,
	DEFAULT_MAKEINFO): Remove.
	(CONFIGURED_YACC, CONFIGURED_FLEX, CONFIGURED_BISON,
	CONFIGURED_LEX, CONFIGURED_M4, CONFIGURED_MAKEINFO): Substitute.
	(YACC, FLEX, BISON, LEX, M4, MAKEINFO): Define to look into
	objdir or else use configured tool.
	(all-build): New.
	(all): Depend on it.
	(Build module dependencies): Add.
	* Makefile.in: Regenerate.
	* configure.in: Better support for multiple build modules,
	matching what is done for host/target modules.  Do not look
	for "plausible" locations of build tools if Canadian cross.
	Use autoconf's AC_PROG_CC to find a C compiler.  Define
	BUILD_DIR_PREFIX.  Look for flex, makeinfo and m4.
	* configure: Regenerate.

From-SVN: r84017
parent 902054ef
2004-07-01 Paolo Bonzini <bonzini@gnu.org>
* Makefile.def (build_modules): Add bison, byacc, flex,
m4, texinfo.
(flags_to_pass): Add FLEX.
* Makefile.tpl (BUILD_DIR_PREFIX, BASE_EXPORTS): New.
(BUILD_EXPORTS, HOST_EXPORTS, BASE_TARGET_EXPORTS): Include it.
(DEFAULT_YACC, USUAL_YACC, DEFAULT_LEX, USUAL_LEX, DEFAULT_M4,
DEFAULT_MAKEINFO): Remove.
(CONFIGURED_YACC, CONFIGURED_FLEX, CONFIGURED_BISON,
CONFIGURED_LEX, CONFIGURED_M4, CONFIGURED_MAKEINFO): Substitute.
(YACC, FLEX, BISON, LEX, M4, MAKEINFO): Define to look into
objdir or else use configured tool.
(all-build): New.
(all): Depend on it.
(Build module dependencies): Add.
* Makefile.in: Regenerate.
* configure.in: Better support for multiple build modules,
matching what is done for host/target modules. Do not look
for "plausible" locations of build tools if Canadian cross.
Use autoconf's AC_PROG_CC to find a C compiler. Define
BUILD_DIR_PREFIX. Look for flex, makeinfo and m4.
* configure: Regenerate.
2004-06-22 Paolo Bonzini <bonzini@gnu.org> 2004-06-22 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl (HOST_EXPORTS): Fix pasto. * Makefile.tpl (HOST_EXPORTS): Fix pasto.
......
...@@ -26,6 +26,11 @@ AutoGen definitions Makefile.tpl; ...@@ -26,6 +26,11 @@ AutoGen definitions Makefile.tpl;
build_modules= { module= libiberty; }; build_modules= { module= libiberty; };
build_modules= { module= libbanshee; }; build_modules= { module= libbanshee; };
build_modules= { module= bison; };
build_modules= { module= byacc; };
build_modules= { module= flex; };
build_modules= { module= m4; };
build_modules= { module= texinfo; };
host_modules= { module= ash; }; host_modules= { module= ash; };
host_modules= { module= autoconf; }; host_modules= { module= autoconf; };
...@@ -177,6 +182,7 @@ flags_to_pass = { flag= BISON ; }; ...@@ -177,6 +182,7 @@ flags_to_pass = { flag= BISON ; };
flags_to_pass = { flag= CC_FOR_BUILD ; }; flags_to_pass = { flag= CC_FOR_BUILD ; };
flags_to_pass = { flag= CXX_FOR_BUILD ; }; flags_to_pass = { flag= CXX_FOR_BUILD ; };
flags_to_pass = { flag= EXPECT ; }; flags_to_pass = { flag= EXPECT ; };
flags_to_pass = { flag= FLEX ; };
flags_to_pass = { flag= INSTALL ; }; flags_to_pass = { flag= INSTALL ; };
flags_to_pass = { flag= INSTALL_DATA ; }; flags_to_pass = { flag= INSTALL_DATA ; };
flags_to_pass = { flag= INSTALL_PROGRAM ; }; flags_to_pass = { flag= INSTALL_PROGRAM ; };
......
...@@ -110,11 +110,23 @@ BUILD_SUBDIR = @build_subdir@ ...@@ -110,11 +110,23 @@ BUILD_SUBDIR = @build_subdir@
# This is set by the configure script to the arguments to use when configuring # This is set by the configure script to the arguments to use when configuring
# directories built for the build system. # directories built for the build system.
BUILD_CONFIGARGS = @build_configargs@ BUILD_CONFIGARGS = @build_configargs@
# This is the list of variables to export in the environment when
# configuring any subdirectory. It must also be exported whenever
# recursing into a build directory in case that directory's Makefile
# re-runs configure.
BASE_EXPORTS = \
FLEX="$(FLEX)"; export FLEX; \
LEX="$(LEX)"; export LEX; \
BISON="$(BISON)"; export BISON; \
YACC="$(YACC)"; export YACC; \
M4="$(M4)"; export M4; \
MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
# This is the list of variables to export in the environment when # This is the list of variables to export in the environment when
# configuring subdirectories for the build system. It must also be # configuring subdirectories for the build system.
# exported whenever recursing into a build directory in case that
# directory's Makefile re-runs configure.
BUILD_EXPORTS = \ BUILD_EXPORTS = \
$(BASE_EXPORTS) \
AR="$(AR_FOR_BUILD)"; export AR; \ AR="$(AR_FOR_BUILD)"; export AR; \
AS="$(AS_FOR_BUILD)"; export AS; \ AS="$(AS_FOR_BUILD)"; export AS; \
CC="$(CC_FOR_BUILD)"; export CC; \ CC="$(CC_FOR_BUILD)"; export CC; \
...@@ -137,10 +149,9 @@ SUBDIRS = @configdirs@ ...@@ -137,10 +149,9 @@ SUBDIRS = @configdirs@
# directories built for the host system. # directories built for the host system.
HOST_CONFIGARGS = @host_configargs@ HOST_CONFIGARGS = @host_configargs@
# This is the list of variables to export in the environment when # This is the list of variables to export in the environment when
# configuring subdirectories for the host system. It must also be # configuring subdirectories for the host system.
# exported whenever recursing into a host directory in case that
# directory's Makefile re-runs configure.
HOST_EXPORTS = \ HOST_EXPORTS = \
$(BASE_EXPORTS) \
CC="$(CC)"; export CC; \ CC="$(CC)"; export CC; \
CFLAGS="$(CFLAGS)"; export CFLAGS; \ CFLAGS="$(CFLAGS)"; export CFLAGS; \
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
...@@ -176,10 +187,9 @@ TARGET_SUBDIR = @target_subdir@ ...@@ -176,10 +187,9 @@ TARGET_SUBDIR = @target_subdir@
# directories built for the target. # directories built for the target.
TARGET_CONFIGARGS = @target_configargs@ TARGET_CONFIGARGS = @target_configargs@
# This is the list of variables to export in the environment when # This is the list of variables to export in the environment when
# configuring subdirectories for the host system. It must also be # configuring subdirectories for the host system.
# exported whenever recursing into a host directory in case that
# directory's Makefile re-runs configure.
BASE_TARGET_EXPORTS = \ BASE_TARGET_EXPORTS = \
$(BASE_EXPORTS) \
AR="$(AR_FOR_TARGET)"; export AR; \ AR="$(AR_FOR_TARGET)"; export AR; \
AS="$(AS_FOR_TARGET)"; export AS; \ AS="$(AS_FOR_TARGET)"; export AS; \
CC="$(CC_FOR_TARGET)"; export CC; \ CC="$(CC_FOR_TARGET)"; export CC; \
...@@ -230,47 +240,55 @@ CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ ...@@ -230,47 +240,55 @@ CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CXX_FOR_BUILD = $(CXX) CXX_FOR_BUILD = $(CXX)
# Path to the build directory for a Canadian cross, empty otherwise.
BUILD_DIR_PREFIX = @BUILD_DIR_PREFIX@
# Special variables passed down in EXTRA_GCC_FLAGS. They are defined # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
# here so that they can be overridden by Makefile fragments. # here so that they can be overridden by Makefile fragments.
BUILD_PREFIX = @BUILD_PREFIX@ BUILD_PREFIX = @BUILD_PREFIX@
BUILD_PREFIX_1 = @BUILD_PREFIX_1@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@
BISON=@BISON@ CONFIGURED_BISON = @CONFIGURED_BISON@
USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \ BISON = `if [ -f $$r/$(BUILD_DIR_PREFIX)/bison/bison ] ; then \
echo $$r/bison/bison -L $$s/bison/ ; \ echo $$r/$(BUILD_DIR_PREFIX)/bison/bison -L $$s/bison/ ; \
else \ else \
echo bison ; \ echo ${CONFIGURED_BISON} ; \
fi` fi`
DEFAULT_YACC = @DEFAULT_YACC@ CONFIGURED_YACC = @CONFIGURED_YACC@
YACC=@YACC@ YACC = `if [ -f $$s/$(BUILD_DIR_PREFIX)/bison/bison ] ; then \
USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \ echo $$r/$(BUILD_DIR_PREFIX)/bison/bison -y -L $$s/bison/ ; \
echo $$r/bison/bison -y -L $$s/bison/ ; \ elif [ -f $$s/$(BUILD_DIR_PREFIX)/byacc/byacc ] ; then \
elif [ -f $$r/byacc/byacc ] ; then \ echo $$r/$(BUILD_DIR_PREFIX)/byacc/byacc ; \
echo $$r/byacc/byacc ; \
else \ else \
echo ${DEFAULT_YACC} ; \ echo ${CONFIGURED_YACC} ; \
fi` fi`
DEFAULT_LEX = @DEFAULT_LEX@ CONFIGURED_FLEX = @CONFIGURED_FLEX@
LEX=@LEX@ FLEX = `if [ -f $$r/$(BUILD_DIR_PREFIX)/flex/flex ] ; \
USUAL_LEX = `if [ -f $$r/flex/flex ] ; \ then echo $$r/$(BUILD_DIR_PREFIX)/flex/flex ; \
then echo $$r/flex/flex ; \ else echo ${CONFIGURED_FLEX} ; fi`
else echo ${DEFAULT_LEX} ; fi`
DEFAULT_M4 = @DEFAULT_M4@ CONFIGURED_LEX = @CONFIGURED_LEX@
M4 = `if [ -f $$r/m4/m4 ] ; \ LEX = `if [ -f $$r/$(BUILD_DIR_PREFIX)/flex/flex ] ; \
then echo $$r/m4/m4 ; \ then echo $$r/$(BUILD_DIR_PREFIX)/flex/flex ; \
else echo ${DEFAULT_M4} ; fi` else echo ${CONFIGURED_LEX} ; fi`
CONFIGURED_M4 = @CONFIGURED_M4@
M4 = `if [ -f $$r/$(BUILD_DIR_PREFIX)/m4/m4 ] ; \
then echo $$r/$(BUILD_DIR_PREFIX)/m4/m4 ; \
else echo ${CONFIGURED_M4} ; fi`
# For an installed makeinfo, we require it to be from texinfo 4.2 or # For an installed makeinfo, we require it to be from texinfo 4.2 or
# higher, else we use the "missing" dummy. # higher, else we use the "missing" dummy. We also pass the subdirectory
MAKEINFO=@MAKEINFO@ # makeinfo even if only the Makefile is there, because Texinfo builds its
USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \ # manual when made, and it requires its own version.
then echo $$r/texinfo/makeinfo/makeinfo ; \ CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
else if (makeinfo --version \ MAKEINFO = `if [ -f $$r/$(BUILD_DIR_PREFIX)/texinfo/makeinfo/Makefile ] ; \
then echo $$r/$(BUILD_DIR_PREFIX)/texinfo/makeinfo/makeinfo ; \
else if (${CONFIGURED_MAKEINFO} --version \
| egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \ | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
then echo makeinfo; else echo $$s/missing makeinfo; fi; fi` then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
# This just becomes part of the MAKEINFO definition passed down to # This just becomes part of the MAKEINFO definition passed down to
# sub-makes. It lets flags be given on the command line while still # sub-makes. It lets flags be given on the command line while still
...@@ -506,6 +524,7 @@ BASE_FLAGS_TO_PASS = \ ...@@ -506,6 +524,7 @@ BASE_FLAGS_TO_PASS = \
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
"CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
"EXPECT=$(EXPECT)" \ "EXPECT=$(EXPECT)" \
"FLEX=$(FLEX)" \
"INSTALL=$(INSTALL)" \ "INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \ "INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
...@@ -713,8 +732,17 @@ configure-target: \ ...@@ -713,8 +732,17 @@ configure-target: \
# The target built for a native non-bootstrap build. # The target built for a native non-bootstrap build.
.PHONY: all .PHONY: all
all: @all_build_modules@ all-host all-target all: all-build all-host all-target
.PHONY: all-build
all-build: \
maybe-all-build-libiberty \
maybe-all-build-libbanshee \
maybe-all-build-bison \
maybe-all-build-byacc \
maybe-all-build-flex \
maybe-all-build-m4 \
maybe-all-build-texinfo
.PHONY: all-host .PHONY: all-host
all-host: maybe-all-gcc \ all-host: maybe-all-gcc \
maybe-all-ash \ maybe-all-ash \
...@@ -2159,6 +2187,321 @@ all-build-libbanshee: configure-build-libbanshee ...@@ -2159,6 +2187,321 @@ all-build-libbanshee: configure-build-libbanshee
(cd $(BUILD_SUBDIR)/libbanshee && $(MAKE) all) (cd $(BUILD_SUBDIR)/libbanshee && $(MAKE) all)
@endif build-libbanshee @endif build-libbanshee
.PHONY: configure-build-bison maybe-configure-build-bison
maybe-configure-build-bison:
@if build-bison
maybe-configure-build-bison: configure-build-bison
configure-build-bison:
@test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/bison; \
cd "$(BUILD_SUBDIR)/bison" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/bison "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/bison"; \
libsrcdir="$$s/bison"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-bison
.PHONY: all-build-bison maybe-all-build-bison
maybe-all-build-bison:
@if build-bison
maybe-all-build-bison: all-build-bison
all-build-bison: configure-build-bison
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/bison && $(MAKE) all)
@endif build-bison
.PHONY: configure-build-byacc maybe-configure-build-byacc
maybe-configure-build-byacc:
@if build-byacc
maybe-configure-build-byacc: configure-build-byacc
configure-build-byacc:
@test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/byacc; \
cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/byacc "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/byacc"; \
libsrcdir="$$s/byacc"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-byacc
.PHONY: all-build-byacc maybe-all-build-byacc
maybe-all-build-byacc:
@if build-byacc
maybe-all-build-byacc: all-build-byacc
all-build-byacc: configure-build-byacc
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/byacc && $(MAKE) all)
@endif build-byacc
.PHONY: configure-build-flex maybe-configure-build-flex
maybe-configure-build-flex:
@if build-flex
maybe-configure-build-flex: configure-build-flex
configure-build-flex:
@test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/flex; \
cd "$(BUILD_SUBDIR)/flex" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/flex "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/flex"; \
libsrcdir="$$s/flex"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-flex
.PHONY: all-build-flex maybe-all-build-flex
maybe-all-build-flex:
@if build-flex
maybe-all-build-flex: all-build-flex
all-build-flex: configure-build-flex
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/flex && $(MAKE) all)
@endif build-flex
.PHONY: configure-build-m4 maybe-configure-build-m4
maybe-configure-build-m4:
@if build-m4
maybe-configure-build-m4: configure-build-m4
configure-build-m4:
@test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/m4; \
cd "$(BUILD_SUBDIR)/m4" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/m4 "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/m4"; \
libsrcdir="$$s/m4"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-m4
.PHONY: all-build-m4 maybe-all-build-m4
maybe-all-build-m4:
@if build-m4
maybe-all-build-m4: all-build-m4
all-build-m4: configure-build-m4
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/m4 && $(MAKE) all)
@endif build-m4
.PHONY: configure-build-texinfo maybe-configure-build-texinfo
maybe-configure-build-texinfo:
@if build-texinfo
maybe-configure-build-texinfo: configure-build-texinfo
configure-build-texinfo:
@test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
$(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
echo Configuring in $(BUILD_SUBDIR)/texinfo; \
cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
case $(srcdir) in \
/* | [A-Za-z]:[\\/]*) \
topdir=$(srcdir) ;; \
*) \
case "$(BUILD_SUBDIR)" in \
.) topdir="../$(srcdir)" ;; \
*) topdir="../../$(srcdir)" ;; \
esac ;; \
esac; \
if [ "$(srcdir)" = "." ] ; then \
if [ "$(BUILD_SUBDIR)" != "." ] ; then \
if $(SHELL) $$s/symlink-tree $${topdir}/texinfo "no-such-file" ; then \
if [ -f Makefile ]; then \
if $(MAKE) distclean; then \
true; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
else \
exit 1; \
fi; \
else \
true; \
fi; \
srcdiroption="--srcdir=."; \
libsrcdir="."; \
else \
srcdiroption="--srcdir=$${topdir}/texinfo"; \
libsrcdir="$$s/texinfo"; \
fi; \
rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
--with-build-subdir="$(BUILD_SUBDIR)" \
|| exit 1
@endif build-texinfo
.PHONY: all-build-texinfo maybe-all-build-texinfo
maybe-all-build-texinfo:
@if build-texinfo
maybe-all-build-texinfo: all-build-texinfo
all-build-texinfo: configure-build-texinfo
@r=`${PWD_COMMAND}`; export r; \
s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
$(BUILD_EXPORTS) \
(cd $(BUILD_SUBDIR)/texinfo && $(MAKE) all)
@endif build-texinfo
# -------------------------------------- # --------------------------------------
# Modules which run on the host machine # Modules which run on the host machine
...@@ -28842,6 +29185,12 @@ profiledbootstrap: all-bootstrap configure-gcc ...@@ -28842,6 +29185,12 @@ profiledbootstrap: all-bootstrap configure-gcc
# are specified by depending on a 'maybe-' target. If you're not sure, # are specified by depending on a 'maybe-' target. If you're not sure,
# it's safer to use a soft dependency. # it's safer to use a soft dependency.
# Build modules
all-build-bison: maybe-all-build-texinfo
all-build-flex: maybe-all-build-texinfo
all-build-libiberty: maybe-all-build-texinfo
all-build-m4: maybe-all-build-libiberty maybe-all-build-texinfo
# Host modules specific to gcc. # Host modules specific to gcc.
# GCC needs to identify certain tools. # GCC needs to identify certain tools.
# GCC also needs the information exported by the intl configure script. # GCC also needs the information exported by the intl configure script.
......
...@@ -113,11 +113,23 @@ BUILD_SUBDIR = @build_subdir@ ...@@ -113,11 +113,23 @@ BUILD_SUBDIR = @build_subdir@
# This is set by the configure script to the arguments to use when configuring # This is set by the configure script to the arguments to use when configuring
# directories built for the build system. # directories built for the build system.
BUILD_CONFIGARGS = @build_configargs@ BUILD_CONFIGARGS = @build_configargs@
# This is the list of variables to export in the environment when
# configuring any subdirectory. It must also be exported whenever
# recursing into a build directory in case that directory's Makefile
# re-runs configure.
BASE_EXPORTS = \
FLEX="$(FLEX)"; export FLEX; \
LEX="$(LEX)"; export LEX; \
BISON="$(BISON)"; export BISON; \
YACC="$(YACC)"; export YACC; \
M4="$(M4)"; export M4; \
MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
# This is the list of variables to export in the environment when # This is the list of variables to export in the environment when
# configuring subdirectories for the build system. It must also be # configuring subdirectories for the build system.
# exported whenever recursing into a build directory in case that
# directory's Makefile re-runs configure.
BUILD_EXPORTS = \ BUILD_EXPORTS = \
$(BASE_EXPORTS) \
AR="$(AR_FOR_BUILD)"; export AR; \ AR="$(AR_FOR_BUILD)"; export AR; \
AS="$(AS_FOR_BUILD)"; export AS; \ AS="$(AS_FOR_BUILD)"; export AS; \
CC="$(CC_FOR_BUILD)"; export CC; \ CC="$(CC_FOR_BUILD)"; export CC; \
...@@ -140,10 +152,9 @@ SUBDIRS = @configdirs@ ...@@ -140,10 +152,9 @@ SUBDIRS = @configdirs@
# directories built for the host system. # directories built for the host system.
HOST_CONFIGARGS = @host_configargs@ HOST_CONFIGARGS = @host_configargs@
# This is the list of variables to export in the environment when # This is the list of variables to export in the environment when
# configuring subdirectories for the host system. It must also be # configuring subdirectories for the host system.
# exported whenever recursing into a host directory in case that
# directory's Makefile re-runs configure.
HOST_EXPORTS = \ HOST_EXPORTS = \
$(BASE_EXPORTS) \
CC="$(CC)"; export CC; \ CC="$(CC)"; export CC; \
CFLAGS="$(CFLAGS)"; export CFLAGS; \ CFLAGS="$(CFLAGS)"; export CFLAGS; \
CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \ CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
...@@ -179,10 +190,9 @@ TARGET_SUBDIR = @target_subdir@ ...@@ -179,10 +190,9 @@ TARGET_SUBDIR = @target_subdir@
# directories built for the target. # directories built for the target.
TARGET_CONFIGARGS = @target_configargs@ TARGET_CONFIGARGS = @target_configargs@
# This is the list of variables to export in the environment when # This is the list of variables to export in the environment when
# configuring subdirectories for the host system. It must also be # configuring subdirectories for the host system.
# exported whenever recursing into a host directory in case that
# directory's Makefile re-runs configure.
BASE_TARGET_EXPORTS = \ BASE_TARGET_EXPORTS = \
$(BASE_EXPORTS) \
AR="$(AR_FOR_TARGET)"; export AR; \ AR="$(AR_FOR_TARGET)"; export AR; \
AS="$(AS_FOR_TARGET)"; export AS; \ AS="$(AS_FOR_TARGET)"; export AS; \
CC="$(CC_FOR_TARGET)"; export CC; \ CC="$(CC_FOR_TARGET)"; export CC; \
...@@ -233,47 +243,55 @@ CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ ...@@ -233,47 +243,55 @@ CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CXX_FOR_BUILD = $(CXX) CXX_FOR_BUILD = $(CXX)
# Path to the build directory for a Canadian cross, empty otherwise.
BUILD_DIR_PREFIX = @BUILD_DIR_PREFIX@
# Special variables passed down in EXTRA_GCC_FLAGS. They are defined # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
# here so that they can be overridden by Makefile fragments. # here so that they can be overridden by Makefile fragments.
BUILD_PREFIX = @BUILD_PREFIX@ BUILD_PREFIX = @BUILD_PREFIX@
BUILD_PREFIX_1 = @BUILD_PREFIX_1@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@
BISON=@BISON@ CONFIGURED_BISON = @CONFIGURED_BISON@
USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \ BISON = `if [ -f $$r/$(BUILD_DIR_PREFIX)/bison/bison ] ; then \
echo $$r/bison/bison -L $$s/bison/ ; \ echo $$r/$(BUILD_DIR_PREFIX)/bison/bison -L $$s/bison/ ; \
else \ else \
echo bison ; \ echo ${CONFIGURED_BISON} ; \
fi` fi`
DEFAULT_YACC = @DEFAULT_YACC@ CONFIGURED_YACC = @CONFIGURED_YACC@
YACC=@YACC@ YACC = `if [ -f $$s/$(BUILD_DIR_PREFIX)/bison/bison ] ; then \
USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \ echo $$r/$(BUILD_DIR_PREFIX)/bison/bison -y -L $$s/bison/ ; \
echo $$r/bison/bison -y -L $$s/bison/ ; \ elif [ -f $$s/$(BUILD_DIR_PREFIX)/byacc/byacc ] ; then \
elif [ -f $$r/byacc/byacc ] ; then \ echo $$r/$(BUILD_DIR_PREFIX)/byacc/byacc ; \
echo $$r/byacc/byacc ; \
else \ else \
echo ${DEFAULT_YACC} ; \ echo ${CONFIGURED_YACC} ; \
fi` fi`
DEFAULT_LEX = @DEFAULT_LEX@ CONFIGURED_FLEX = @CONFIGURED_FLEX@
LEX=@LEX@ FLEX = `if [ -f $$r/$(BUILD_DIR_PREFIX)/flex/flex ] ; \
USUAL_LEX = `if [ -f $$r/flex/flex ] ; \ then echo $$r/$(BUILD_DIR_PREFIX)/flex/flex ; \
then echo $$r/flex/flex ; \ else echo ${CONFIGURED_FLEX} ; fi`
else echo ${DEFAULT_LEX} ; fi`
CONFIGURED_LEX = @CONFIGURED_LEX@
LEX = `if [ -f $$r/$(BUILD_DIR_PREFIX)/flex/flex ] ; \
then echo $$r/$(BUILD_DIR_PREFIX)/flex/flex ; \
else echo ${CONFIGURED_LEX} ; fi`
DEFAULT_M4 = @DEFAULT_M4@ CONFIGURED_M4 = @CONFIGURED_M4@
M4 = `if [ -f $$r/m4/m4 ] ; \ M4 = `if [ -f $$r/$(BUILD_DIR_PREFIX)/m4/m4 ] ; \
then echo $$r/m4/m4 ; \ then echo $$r/$(BUILD_DIR_PREFIX)/m4/m4 ; \
else echo ${DEFAULT_M4} ; fi` else echo ${CONFIGURED_M4} ; fi`
# For an installed makeinfo, we require it to be from texinfo 4.2 or # For an installed makeinfo, we require it to be from texinfo 4.2 or
# higher, else we use the "missing" dummy. # higher, else we use the "missing" dummy. We also pass the subdirectory
MAKEINFO=@MAKEINFO@ # makeinfo even if only the Makefile is there, because Texinfo builds its
USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \ # manual when made, and it requires its own version.
then echo $$r/texinfo/makeinfo/makeinfo ; \ CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
else if (makeinfo --version \ MAKEINFO = `if [ -f $$r/$(BUILD_DIR_PREFIX)/texinfo/makeinfo/Makefile ] ; \
then echo $$r/$(BUILD_DIR_PREFIX)/texinfo/makeinfo/makeinfo ; \
else if (${CONFIGURED_MAKEINFO} --version \
| egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \ | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
then echo makeinfo; else echo $$s/missing makeinfo; fi; fi` then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
# This just becomes part of the MAKEINFO definition passed down to # This just becomes part of the MAKEINFO definition passed down to
# sub-makes. It lets flags be given on the command line while still # sub-makes. It lets flags be given on the command line while still
...@@ -577,8 +595,13 @@ configure-target: [+ ...@@ -577,8 +595,13 @@ configure-target: [+
# The target built for a native non-bootstrap build. # The target built for a native non-bootstrap build.
.PHONY: all .PHONY: all
all: @all_build_modules@ all-host all-target all: all-build all-host all-target
.PHONY: all-build
all-build: [+
FOR build_modules +] \
maybe-all-build-[+module+][+
ENDFOR build_modules +]
.PHONY: all-host .PHONY: all-host
all-host: maybe-all-gcc [+ all-host: maybe-all-gcc [+
FOR host_modules +] \ FOR host_modules +] \
...@@ -1642,6 +1665,12 @@ profiledbootstrap: all-bootstrap configure-gcc ...@@ -1642,6 +1665,12 @@ profiledbootstrap: all-bootstrap configure-gcc
# are specified by depending on a 'maybe-' target. If you're not sure, # are specified by depending on a 'maybe-' target. If you're not sure,
# it's safer to use a soft dependency. # it's safer to use a soft dependency.
# Build modules
all-build-bison: maybe-all-build-texinfo
all-build-flex: maybe-all-build-texinfo
all-build-libiberty: maybe-all-build-texinfo
all-build-m4: maybe-all-build-libiberty maybe-all-build-texinfo
# Host modules specific to gcc. # Host modules specific to gcc.
# GCC needs to identify certain tools. # GCC needs to identify certain tools.
# GCC also needs the information exported by the intl configure script. # GCC also needs the information exported by the intl configure script.
......
...@@ -877,6 +877,14 @@ fi ...@@ -877,6 +877,14 @@ fi
# Double entries in build_configdirs, configdirs, or target_configdirs may # Double entries in build_configdirs, configdirs, or target_configdirs may
# cause circular dependencies and break everything horribly. # cause circular dependencies and break everything horribly.
# these library is used by various programs built for the build
# environment
#
build_libs="build-libiberty"
# these tools are built for the build environment
build_tools="build-texinfo build-byacc build-flex build-bison build-m4"
# these libraries are used by various programs built for the host environment # these libraries are used by various programs built for the host environment
# #
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp" host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp"
...@@ -924,20 +932,14 @@ target_tools="target-examples target-groff target-gperf target-rda" ...@@ -924,20 +932,14 @@ target_tools="target-examples target-groff target-gperf target-rda"
## is important because configure will choke if they ever get through. ## is important because configure will choke if they ever get through.
## ${configdirs} is directories we build using the host tools. ## ${configdirs} is directories we build using the host tools.
## ${target_configdirs} is directories we build using the target tools. ## ${target_configdirs} is directories we build using the target tools.
#
configdirs=`echo ${host_libs} ${host_tools}` configdirs=`echo ${host_libs} ${host_tools}`
target_configdirs=`echo ${target_libraries} ${target_tools}` target_configdirs=`echo ${target_libraries} ${target_tools}`
# Only make build modules if build != host. # Only make build modules if build != host.
# This should be done more generally, but at the moment it doesn't matter.
if test ${host_alias} != ${build_alias} ; then if test ${host_alias} != ${build_alias} ; then
# This is the only build module. build_configdirs=`echo ${build_libs} ${build_tools}`
build_modules=libiberty
else
build_modules=
fi fi
################################################################################ ################################################################################
srcname="gnu development package" srcname="gnu development package"
...@@ -1736,7 +1738,6 @@ if test "${build}" != "${host}" ; then ...@@ -1736,7 +1738,6 @@ if test "${build}" != "${host}" ; then
# If we are doing a Canadian Cross, in which the host and build systems # If we are doing a Canadian Cross, in which the host and build systems
# are not the same, we set reasonable default values for the tools. # are not the same, we set reasonable default values for the tools.
BISON=${BISON-bison}
CC=${CC-${host_alias}-gcc} CC=${CC-${host_alias}-gcc}
CFLAGS=${CFLAGS-"-g -O2"} CFLAGS=${CFLAGS-"-g -O2"}
CXX=${CXX-${host_alias}-c++} CXX=${CXX-${host_alias}-c++}
...@@ -1746,49 +1747,9 @@ if test "${build}" != "${host}" ; then ...@@ -1746,49 +1747,9 @@ if test "${build}" != "${host}" ; then
CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++} CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj} GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}} GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
BUILD_DIR_PREFIX=${build_subdir}
BUILD_PREFIX=${build_alias}- BUILD_PREFIX=${build_alias}-
BUILD_PREFIX_1=${build_alias}- BUILD_PREFIX_1=${build_alias}-
MAKEINFO=${MAKEINFO-makeinfo}
if test -z "${YACC}" ; then
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/bison; then
YACC="bison -y"
break
fi
if test -f $dir/byacc; then
YACC=byacc
break
fi
if test -f $dir/yacc; then
YACC=yacc
break
fi
done
IFS="$save_ifs"
if test -z "${YACC}" ; then
YACC="bison -y"
fi
fi
if test -z "${LEX}" ; then
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/flex; then
LEX=flex
break
fi
if test -f $dir/lex; then
LEX=lex
break
fi
done
IFS="$save_ifs"
LEX=${LEX-flex}
fi
else else
# Set reasonable default values for some tools even if not Canadian. # Set reasonable default values for some tools even if not Canadian.
...@@ -1799,100 +1760,16 @@ else ...@@ -1799,100 +1760,16 @@ else
# in Makefile.in, so can still be overridden by fragments. # in Makefile.in, so can still be overridden by fragments.
# This is all going to change when we autoconfiscate... # This is all going to change when we autoconfiscate...
BISON="\$(USUAL_BISON)"
CC_FOR_BUILD="\$(CC)" CC_FOR_BUILD="\$(CC)"
GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)" GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
BUILD_DIR_PREFIX=
BUILD_PREFIX= BUILD_PREFIX=
BUILD_PREFIX_1=loser- BUILD_PREFIX_1=loser-
MAKEINFO="\$(USUAL_MAKEINFO)"
LEX="\$(USUAL_LEX)"
YACC="\$(USUAL_YACC)"
# If CC is still not set, try to get gcc. # Extract the first word of "gcc", so it can be a program name with args.
cc_prog_is_gcc=
if test -z "${CC}" ; then
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/gcc; then
CC="gcc"
cc_prog_is_gcc=yes
echo 'void f(){}' > conftest.c
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
CFLAGS=${CFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
else
CFLAGS=${CFLAGS-"-O2"}
CXXFLAGS=${CXXFLAGS-"-O2"}
fi
rm -f conftest*
break
fi
done
IFS="$save_ifs"
CC=${CC-cc}
else
# Determine if we are using gcc.
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
cc_prog_is_gcc=yes
fi
rm -f conftest.c
if test -z "${CFLAGS}"; then
# Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
# is set to a version of gcc.
if test "$cc_prog_is_gcc" = yes; then
echo 'void f(){}' > conftest.c
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
CFLAGS=${CFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
else
CFLAGS=${CFLAGS-"-O2"}
CXXFLAGS=${CXXFLAGS-"-O2"}
fi
rm -f conftest*
fi
fi
fi
# We must set the default linker to the linker used by gcc for the correct
# operation of libtool. If LD is not defined and we are using gcc, try to
# set the LD default to the ld used by gcc.
if test -z "$LD"; then
if test "$cc_prog_is_gcc" = yes; then
case $build in
*-*-mingw*)
gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
*)
gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
esac
case $gcc_prog_ld in
# Accept absolute paths.
[\\/]* | [A-Za-z]:[\\/]*)
LD="$gcc_prog_ld" ;;
esac
fi
fi
CXX=${CXX-"c++"}
CFLAGS=${CFLAGS-"-g"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
fi
if test $host != $build; then
ac_tool_prefix=${host_alias}-
else
ac_tool_prefix=
fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2 set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1896: checking for $ac_word" >&5 echo "configure:1773: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -1922,7 +1799,7 @@ if test -z "$CC"; then ...@@ -1922,7 +1799,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args. # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2 set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1926: checking for $ac_word" >&5 echo "configure:1803: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -1973,7 +1850,7 @@ fi ...@@ -1973,7 +1850,7 @@ fi
# Extract the first word of "cl", so it can be a program name with args. # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2 set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1977: checking for $ac_word" >&5 echo "configure:1854: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -2005,7 +1882,7 @@ fi ...@@ -2005,7 +1882,7 @@ fi
fi fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:2009: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 echo "configure:1886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
...@@ -2016,12 +1893,12 @@ cross_compiling=$ac_cv_prog_cc_cross ...@@ -2016,12 +1893,12 @@ cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF cat > conftest.$ac_ext << EOF
#line 2020 "configure" #line 1897 "configure"
#include "confdefs.h" #include "confdefs.h"
main(){return(0);} main(){return(0);}
EOF EOF
if { (eval echo configure:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler. # If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then if (./conftest; exit) 2>/dev/null; then
...@@ -2047,12 +1924,12 @@ if test $ac_cv_prog_cc_works = no; then ...@@ -2047,12 +1924,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:2051: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "configure:1928: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:2056: checking whether we are using GNU C" >&5 echo "configure:1933: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -2061,7 +1938,7 @@ else ...@@ -2061,7 +1938,7 @@ else
yes; yes;
#endif #endif
EOF EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes ac_cv_prog_gcc=yes
else else
ac_cv_prog_gcc=no ac_cv_prog_gcc=no
...@@ -2080,7 +1957,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ...@@ -2080,7 +1957,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS" ac_save_CFLAGS="$CFLAGS"
CFLAGS= CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:2084: checking whether ${CC-cc} accepts -g" >&5 echo "configure:1961: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -2112,11 +1989,42 @@ else ...@@ -2112,11 +1989,42 @@ else
fi fi
# We must set the default linker to the linker used by gcc for the correct
# operation of libtool. If LD is not defined and we are using gcc, try to
# set the LD default to the ld used by gcc.
if test -z "$LD"; then
if test "$GCC" = yes; then
case $build in
*-*-mingw*)
gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
*)
gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
esac
case $gcc_prog_ld in
# Accept absolute paths.
[\\/]* | [A-Za-z]:[\\/]*)
LD="$gcc_prog_ld" ;;
esac
fi
fi
CXX=${CXX-"c++"}
CFLAGS=${CFLAGS-"-g"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
fi
if test $host != $build; then
ac_tool_prefix=${host_alias}-
else
ac_tool_prefix=
fi
# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2120: checking for $ac_word" >&5 echo "configure:2028: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -2148,7 +2056,7 @@ if test -n "$ac_tool_prefix"; then ...@@ -2148,7 +2056,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "gnatbind", so it can be a program name with args. # Extract the first word of "gnatbind", so it can be a program name with args.
set dummy gnatbind; ac_word=$2 set dummy gnatbind; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2152: checking for $ac_word" >&5 echo "configure:2060: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -2181,7 +2089,7 @@ fi ...@@ -2181,7 +2089,7 @@ fi
fi fi
echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
echo "configure:2185: checking whether compiler driver understands Ada" >&5 echo "configure:2093: checking whether compiler driver understands Ada" >&5
if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -2214,7 +2122,7 @@ else ...@@ -2214,7 +2122,7 @@ else
fi fi
echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
echo "configure:2218: checking how to compare bootstrapped objects" >&5 echo "configure:2126: checking how to compare bootstrapped objects" >&5
if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -2287,9 +2195,9 @@ saved_CFLAGS="$CFLAGS" ...@@ -2287,9 +2195,9 @@ saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $gmpinc" CFLAGS="$CFLAGS $gmpinc"
# Check GMP actually works # Check GMP actually works
echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
echo "configure:2291: checking for correct version of gmp.h" >&5 echo "configure:2199: checking for correct version of gmp.h" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2293 "configure" #line 2201 "configure"
#include "confdefs.h" #include "confdefs.h"
#include "gmp.h" #include "gmp.h"
int main() { int main() {
...@@ -2300,7 +2208,7 @@ choke me ...@@ -2300,7 +2208,7 @@ choke me
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:2212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
else else
...@@ -2313,19 +2221,19 @@ rm -f conftest* ...@@ -2313,19 +2221,19 @@ rm -f conftest*
if test x"$have_gmp" = xyes; then if test x"$have_gmp" = xyes; then
echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6 echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6
echo "configure:2317: checking for mpf_init in -lgmp" >&5 echo "configure:2225: checking for mpf_init in -lgmp" >&5
saved_LIBS="$LIBS" saved_LIBS="$LIBS"
LIBS="$LIBS $gmplibs" LIBS="$LIBS $gmplibs"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2322 "configure" #line 2230 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <gmp.h> #include <gmp.h>
int main() { int main() {
mpf_t n; mpf_init(n); mpf_t n; mpf_init(n);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
else else
...@@ -2531,6 +2439,15 @@ fi ...@@ -2531,6 +2439,15 @@ fi
# Quietly strip out all directories which aren't configurable in this tree. # Quietly strip out all directories which aren't configurable in this tree.
# This relies on all configurable subdirectories being autoconfiscated, which # This relies on all configurable subdirectories being autoconfiscated, which
# is now the case. # is now the case.
build_configdirs_all="$build_configdirs"
build_configdirs=
for i in ${build_configdirs_all} ; do
j=`echo $i | sed -e s/build-//g`
if test -f ${srcdir}/$j/configure ; then
build_configdirs="${build_configdirs} $i"
fi
done
configdirs_all="$configdirs" configdirs_all="$configdirs"
configdirs= configdirs=
for i in ${configdirs_all} ; do for i in ${configdirs_all} ; do
...@@ -2538,6 +2455,7 @@ for i in ${configdirs_all} ; do ...@@ -2538,6 +2455,7 @@ for i in ${configdirs_all} ; do
configdirs="${configdirs} $i" configdirs="${configdirs} $i"
fi fi
done done
target_configdirs_all="$target_configdirs" target_configdirs_all="$target_configdirs"
target_configdirs= target_configdirs=
for i in ${target_configdirs_all} ; do for i in ${target_configdirs_all} ; do
...@@ -2564,7 +2482,7 @@ if test -n "${notsupp}" && test -z "${norecursion}" ; then ...@@ -2564,7 +2482,7 @@ if test -n "${notsupp}" && test -z "${norecursion}" ; then
appdirs="" appdirs=""
break break
fi fi
if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
appdirs="" appdirs=""
break break
fi fi
...@@ -2779,113 +2697,219 @@ esac ...@@ -2779,113 +2697,219 @@ esac
tooldir='${exec_prefix}'/${target_alias} tooldir='${exec_prefix}'/${target_alias}
build_tooldir=${tooldir} build_tooldir=${tooldir}
# Generate default definitions for YACC, M4, LEX. These are used if the # Generate default definitions for YACC, M4, LEX and other programs that run
# Makefile can't locate these programs in objdir. # on the build machine. These are used if the Makefile can't locate these
# programs in objdir.
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
for ac_prog in bison
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2710: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CONFIGURED_BISON"; then
ac_cv_prog_CONFIGURED_BISON="$CONFIGURED_BISON" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CONFIGURED_BISON="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CONFIGURED_BISON="$ac_cv_prog_CONFIGURED_BISON"
if test -n "$CONFIGURED_BISON"; then
echo "$ac_t""$CONFIGURED_BISON" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$CONFIGURED_BISON" && break
done
test -n "$CONFIGURED_BISON" || CONFIGURED_BISON="$MISSING bison"
for ac_prog in 'bison -y' byacc yacc for ac_prog in 'bison -y' byacc yacc
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2791: checking for $ac_word" >&5 echo "configure:2745: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$DEFAULT_YACC"; then if test -n "$CONFIGURED_YACC"; then
ac_cv_prog_DEFAULT_YACC="$DEFAULT_YACC" # Let the user override the test. ac_cv_prog_CONFIGURED_YACC="$CONFIGURED_YACC" # Let the user override the test.
else else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then if test -f $ac_dir/$ac_word; then
ac_cv_prog_DEFAULT_YACC="$ac_prog" ac_cv_prog_CONFIGURED_YACC="$ac_prog"
break break
fi fi
done done
IFS="$ac_save_ifs" IFS="$ac_save_ifs"
fi fi
fi fi
DEFAULT_YACC="$ac_cv_prog_DEFAULT_YACC" CONFIGURED_YACC="$ac_cv_prog_CONFIGURED_YACC"
if test -n "$DEFAULT_YACC"; then if test -n "$CONFIGURED_YACC"; then
echo "$ac_t""$DEFAULT_YACC" 1>&6 echo "$ac_t""$CONFIGURED_YACC" 1>&6
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
test -n "$DEFAULT_YACC" && break test -n "$CONFIGURED_YACC" && break
done done
test -n "$DEFAULT_YACC" || DEFAULT_YACC="$MISSING bison" test -n "$CONFIGURED_YACC" || CONFIGURED_YACC="$MISSING bison -y"
for ac_prog in gm4 gnum4 m4 for ac_prog in gm4 gnum4 m4
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2826: checking for $ac_word" >&5 echo "configure:2780: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CONFIGURED_M4"; then
ac_cv_prog_CONFIGURED_M4="$CONFIGURED_M4" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CONFIGURED_M4="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CONFIGURED_M4="$ac_cv_prog_CONFIGURED_M4"
if test -n "$CONFIGURED_M4"; then
echo "$ac_t""$CONFIGURED_M4" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$CONFIGURED_M4" && break
done
test -n "$CONFIGURED_M4" || CONFIGURED_M4="$MISSING m4"
for ac_prog in flex
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2815: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$DEFAULT_M4"; then if test -n "$CONFIGURED_FLEX"; then
ac_cv_prog_DEFAULT_M4="$DEFAULT_M4" # Let the user override the test. ac_cv_prog_CONFIGURED_FLEX="$CONFIGURED_FLEX" # Let the user override the test.
else else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then if test -f $ac_dir/$ac_word; then
ac_cv_prog_DEFAULT_M4="$ac_prog" ac_cv_prog_CONFIGURED_FLEX="$ac_prog"
break break
fi fi
done done
IFS="$ac_save_ifs" IFS="$ac_save_ifs"
fi fi
fi fi
DEFAULT_M4="$ac_cv_prog_DEFAULT_M4" CONFIGURED_FLEX="$ac_cv_prog_CONFIGURED_FLEX"
if test -n "$DEFAULT_M4"; then if test -n "$CONFIGURED_FLEX"; then
echo "$ac_t""$DEFAULT_M4" 1>&6 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
test -n "$DEFAULT_M4" && break test -n "$CONFIGURED_FLEX" && break
done done
test -n "$DEFAULT_M4" || DEFAULT_M4="$MISSING m4" test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX="$MISSING flex"
for ac_prog in flex lex for ac_prog in flex lex
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2861: checking for $ac_word" >&5 echo "configure:2850: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$DEFAULT_LEX"; then if test -n "$CONFIGURED_LEX"; then
ac_cv_prog_DEFAULT_LEX="$DEFAULT_LEX" # Let the user override the test. ac_cv_prog_CONFIGURED_LEX="$CONFIGURED_LEX" # Let the user override the test.
else else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then if test -f $ac_dir/$ac_word; then
ac_cv_prog_DEFAULT_LEX="$ac_prog" ac_cv_prog_CONFIGURED_LEX="$ac_prog"
break break
fi fi
done done
IFS="$ac_save_ifs" IFS="$ac_save_ifs"
fi fi
fi fi
DEFAULT_LEX="$ac_cv_prog_DEFAULT_LEX" CONFIGURED_LEX="$ac_cv_prog_CONFIGURED_LEX"
if test -n "$DEFAULT_LEX"; then if test -n "$CONFIGURED_LEX"; then
echo "$ac_t""$DEFAULT_LEX" 1>&6 echo "$ac_t""$CONFIGURED_LEX" 1>&6
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
test -n "$DEFAULT_LEX" && break test -n "$CONFIGURED_LEX" && break
done done
test -n "$DEFAULT_LEX" || DEFAULT_LEX="$MISSING flex" test -n "$CONFIGURED_LEX" || CONFIGURED_LEX="$MISSING flex"
for ac_prog in makeinfo
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2885: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test -n "$CONFIGURED_MAKEINFO"; then
ac_cv_prog_CONFIGURED_MAKEINFO="$CONFIGURED_MAKEINFO" # Let the user override the test.
else
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_dummy="$PATH"
for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
ac_cv_prog_CONFIGURED_MAKEINFO="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
CONFIGURED_MAKEINFO="$ac_cv_prog_CONFIGURED_MAKEINFO"
if test -n "$CONFIGURED_MAKEINFO"; then
echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
else
echo "$ac_t""no" 1>&6
fi
test -n "$CONFIGURED_MAKEINFO" && break
done
test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO="$MISSING makeinfo"
# Create a .gdbinit file which runs the one in srcdir # Create a .gdbinit file which runs the one in srcdir
...@@ -2969,17 +2993,7 @@ esac ...@@ -2969,17 +2993,7 @@ esac
# Record target_configdirs and the configure arguments for target and # Record target_configdirs and the configure arguments for target and
# build configuration in Makefile. # build configuration in Makefile.
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
# This is the final value for target_configdirs. configdirs already
# has its final value, as does build_modules. It's time to create some
# lists of valid targets.
all_build_modules=
configure_build_modules=
for module in ${build_modules} ; do
all_build_modules=all-build-${module}
configure_build_modules=configure-build-${module}
done
# Determine whether gdb needs tk/tcl or not. # Determine whether gdb needs tk/tcl or not.
# Use 'maybe' since enable_gdbtk might be true even if tk isn't available # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
...@@ -3050,7 +3064,7 @@ case "$enable_bootstrap" in ...@@ -3050,7 +3064,7 @@ case "$enable_bootstrap" in
esac esac
for module in ${build_modules} ; do for module in ${build_configdirs} ; do
if test -z "${no_recursion}" \ if test -z "${no_recursion}" \
&& test -f ${build_subdir}/${module}/Makefile; then && test -f ${build_subdir}/${module}/Makefile; then
echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
...@@ -3438,8 +3452,8 @@ ospace_frag=${srcdir}/${ospace_frag} ...@@ -3438,8 +3452,8 @@ ospace_frag=${srcdir}/${ospace_frag}
# Build module lists & subconfigure args.
# Build module lists & subconfigure args.
...@@ -3455,10 +3469,6 @@ ospace_frag=${srcdir}/${ospace_frag} ...@@ -3455,10 +3469,6 @@ ospace_frag=${srcdir}/${ospace_frag}
# Host tools. # Host tools.
ncn_tool_prefix= ncn_tool_prefix=
test -n "$host_alias" && ncn_tool_prefix=$host_alias- test -n "$host_alias" && ncn_tool_prefix=$host_alias-
...@@ -3469,7 +3479,7 @@ test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- ...@@ -3469,7 +3479,7 @@ test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
# Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
set dummy ${ncn_tool_prefix}ar; ac_word=$2 set dummy ${ncn_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3473: checking for $ac_word" >&5 echo "configure:3483: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3502,7 +3512,7 @@ if test -z "$ac_cv_prog_AR" ; then ...@@ -3502,7 +3512,7 @@ if test -z "$ac_cv_prog_AR" ; then
# Extract the first word of "ar", so it can be a program name with args. # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2 set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3506: checking for $ac_word" >&5 echo "configure:3516: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3541,7 +3551,7 @@ fi ...@@ -3541,7 +3551,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args.
set dummy ${ncn_tool_prefix}as; ac_word=$2 set dummy ${ncn_tool_prefix}as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3545: checking for $ac_word" >&5 echo "configure:3555: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3574,7 +3584,7 @@ if test -z "$ac_cv_prog_AS" ; then ...@@ -3574,7 +3584,7 @@ if test -z "$ac_cv_prog_AS" ; then
# Extract the first word of "as", so it can be a program name with args. # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2 set dummy as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3578: checking for $ac_word" >&5 echo "configure:3588: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3613,7 +3623,7 @@ fi ...@@ -3613,7 +3623,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ncn_tool_prefix}dlltool; ac_word=$2 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3617: checking for $ac_word" >&5 echo "configure:3627: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3646,7 +3656,7 @@ if test -z "$ac_cv_prog_DLLTOOL" ; then ...@@ -3646,7 +3656,7 @@ if test -z "$ac_cv_prog_DLLTOOL" ; then
# Extract the first word of "dlltool", so it can be a program name with args. # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2 set dummy dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3650: checking for $ac_word" >&5 echo "configure:3660: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3685,7 +3695,7 @@ fi ...@@ -3685,7 +3695,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args.
set dummy ${ncn_tool_prefix}ld; ac_word=$2 set dummy ${ncn_tool_prefix}ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3689: checking for $ac_word" >&5 echo "configure:3699: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3718,7 +3728,7 @@ if test -z "$ac_cv_prog_LD" ; then ...@@ -3718,7 +3728,7 @@ if test -z "$ac_cv_prog_LD" ; then
# Extract the first word of "ld", so it can be a program name with args. # Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2 set dummy ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3722: checking for $ac_word" >&5 echo "configure:3732: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3757,7 +3767,7 @@ fi ...@@ -3757,7 +3767,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args.
set dummy ${ncn_tool_prefix}nm; ac_word=$2 set dummy ${ncn_tool_prefix}nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3761: checking for $ac_word" >&5 echo "configure:3771: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3790,7 +3800,7 @@ if test -z "$ac_cv_prog_NM" ; then ...@@ -3790,7 +3800,7 @@ if test -z "$ac_cv_prog_NM" ; then
# Extract the first word of "nm", so it can be a program name with args. # Extract the first word of "nm", so it can be a program name with args.
set dummy nm; ac_word=$2 set dummy nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3794: checking for $ac_word" >&5 echo "configure:3804: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3829,7 +3839,7 @@ fi ...@@ -3829,7 +3839,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ncn_tool_prefix}ranlib; ac_word=$2 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3833: checking for $ac_word" >&5 echo "configure:3843: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3862,7 +3872,7 @@ if test -z "$ac_cv_prog_RANLIB" ; then ...@@ -3862,7 +3872,7 @@ if test -z "$ac_cv_prog_RANLIB" ; then
# Extract the first word of "ranlib", so it can be a program name with args. # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2 set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3866: checking for $ac_word" >&5 echo "configure:3876: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3901,7 +3911,7 @@ fi ...@@ -3901,7 +3911,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args.
set dummy ${ncn_tool_prefix}windres; ac_word=$2 set dummy ${ncn_tool_prefix}windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3905: checking for $ac_word" >&5 echo "configure:3915: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3934,7 +3944,7 @@ if test -z "$ac_cv_prog_WINDRES" ; then ...@@ -3934,7 +3944,7 @@ if test -z "$ac_cv_prog_WINDRES" ; then
# Extract the first word of "windres", so it can be a program name with args. # Extract the first word of "windres", so it can be a program name with args.
set dummy windres; ac_word=$2 set dummy windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3938: checking for $ac_word" >&5 echo "configure:3948: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -3973,7 +3983,7 @@ fi ...@@ -3973,7 +3983,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args.
set dummy ${ncn_tool_prefix}objcopy; ac_word=$2 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:3977: checking for $ac_word" >&5 echo "configure:3987: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4006,7 +4016,7 @@ if test -z "$ac_cv_prog_OBJCOPY" ; then ...@@ -4006,7 +4016,7 @@ if test -z "$ac_cv_prog_OBJCOPY" ; then
# Extract the first word of "objcopy", so it can be a program name with args. # Extract the first word of "objcopy", so it can be a program name with args.
set dummy objcopy; ac_word=$2 set dummy objcopy; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4010: checking for $ac_word" >&5 echo "configure:4020: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4045,7 +4055,7 @@ fi ...@@ -4045,7 +4055,7 @@ fi
# Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args. # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args.
set dummy ${ncn_tool_prefix}objdump; ac_word=$2 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4049: checking for $ac_word" >&5 echo "configure:4059: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4078,7 +4088,7 @@ if test -z "$ac_cv_prog_OBJDUMP" ; then ...@@ -4078,7 +4088,7 @@ if test -z "$ac_cv_prog_OBJDUMP" ; then
# Extract the first word of "objdump", so it can be a program name with args. # Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2 set dummy objdump; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4082: checking for $ac_word" >&5 echo "configure:4092: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4119,15 +4129,12 @@ fi ...@@ -4119,15 +4129,12 @@ fi
# Target tools. # Target tools.
if test -n "$ncn_target_tool_prefix"; then if test -n "$ncn_target_tool_prefix"; then
# Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args. # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}ar; ac_word=$2 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4131: checking for $ac_word" >&5 echo "configure:4138: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4160,7 +4167,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then ...@@ -4160,7 +4167,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
# Extract the first word of "ar", so it can be a program name with args. # Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2 set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4164: checking for $ac_word" >&5 echo "configure:4171: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4199,7 +4206,7 @@ fi ...@@ -4199,7 +4206,7 @@ fi
# Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args. # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}as; ac_word=$2 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4203: checking for $ac_word" >&5 echo "configure:4210: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4232,7 +4239,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then ...@@ -4232,7 +4239,7 @@ if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
# Extract the first word of "as", so it can be a program name with args. # Extract the first word of "as", so it can be a program name with args.
set dummy as; ac_word=$2 set dummy as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4236: checking for $ac_word" >&5 echo "configure:4243: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4271,7 +4278,7 @@ fi ...@@ -4271,7 +4278,7 @@ fi
# Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args. # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4275: checking for $ac_word" >&5 echo "configure:4282: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4304,7 +4311,7 @@ if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then ...@@ -4304,7 +4311,7 @@ if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
# Extract the first word of "dlltool", so it can be a program name with args. # Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2 set dummy dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4308: checking for $ac_word" >&5 echo "configure:4315: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4343,7 +4350,7 @@ fi ...@@ -4343,7 +4350,7 @@ fi
# Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args. # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}ld; ac_word=$2 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4347: checking for $ac_word" >&5 echo "configure:4354: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4376,7 +4383,7 @@ if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then ...@@ -4376,7 +4383,7 @@ if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
# Extract the first word of "ld", so it can be a program name with args. # Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2 set dummy ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4380: checking for $ac_word" >&5 echo "configure:4387: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4415,7 +4422,7 @@ fi ...@@ -4415,7 +4422,7 @@ fi
# Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args. # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}nm; ac_word=$2 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4419: checking for $ac_word" >&5 echo "configure:4426: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4448,7 +4455,7 @@ if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then ...@@ -4448,7 +4455,7 @@ if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
# Extract the first word of "nm", so it can be a program name with args. # Extract the first word of "nm", so it can be a program name with args.
set dummy nm; ac_word=$2 set dummy nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4452: checking for $ac_word" >&5 echo "configure:4459: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4487,7 +4494,7 @@ fi ...@@ -4487,7 +4494,7 @@ fi
# Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args. # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4491: checking for $ac_word" >&5 echo "configure:4498: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4520,7 +4527,7 @@ if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then ...@@ -4520,7 +4527,7 @@ if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
# Extract the first word of "ranlib", so it can be a program name with args. # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2 set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4524: checking for $ac_word" >&5 echo "configure:4531: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4559,7 +4566,7 @@ fi ...@@ -4559,7 +4566,7 @@ fi
# Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args. # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}windres; ac_word=$2 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4563: checking for $ac_word" >&5 echo "configure:4570: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4592,7 +4599,7 @@ if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then ...@@ -4592,7 +4599,7 @@ if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
# Extract the first word of "windres", so it can be a program name with args. # Extract the first word of "windres", so it can be a program name with args.
set dummy windres; ac_word=$2 set dummy windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:4596: checking for $ac_word" >&5 echo "configure:4603: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4677,7 +4684,7 @@ RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} ...@@ -4677,7 +4684,7 @@ RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
echo "configure:4681: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo "configure:4688: checking whether to enable maintainer-specific portions of Makefiles" >&5
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then if test "${enable_maintainer_mode+set}" = set; then
enableval="$enable_maintainer_mode" enableval="$enable_maintainer_mode"
...@@ -4724,7 +4731,7 @@ esac ...@@ -4724,7 +4731,7 @@ esac
# gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not # gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not
# possible, however, we can resort to mv. # possible, however, we can resort to mv.
echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6 echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6
echo "configure:4728: checking if symbolic links between directories work" >&5 echo "configure:4735: checking if symbolic links between directories work" >&5
if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
...@@ -4838,34 +4845,15 @@ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 ...@@ -4838,34 +4845,15 @@ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
# Transform confdefs.h into DEFS. # Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules. # Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion. # Protect against Makefile macro expansion.
# cat > conftest.defs <<\EOF
# If the first sed substitution is executed (which looks for macros that s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
# take arguments), then we branch to the quote section. Otherwise, s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
# look for a macro that doesn't take arguments. s%\[%\\&%g
cat >confdef2opt.sed <<\_ACEOF s%\]%\\&%g
t clear s%\$%$$%g
: clear EOF
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
t quote rm -f conftest.defs
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
t quote
d
: quote
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
s,\[,\\&,g
s,\],\\&,g
s,\$,$$,g
p
_ACEOF
# We use echo to avoid assuming a particular line-breaking character.
# The extra dot is to prevent the shell from consuming trailing
# line-breaks from the sub-command output. A line-break within
# single-quotes doesn't work because, if this script is created in a
# platform that uses two characters for line-breaks (e.g., DOS), tr
# would break.
ac_LF_and_DOT=`echo; echo .`
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
rm -f confdef2opt.sed
# Without the "./", some shells look in PATH for config.status. # Without the "./", some shells look in PATH for config.status.
...@@ -4966,9 +4954,12 @@ s%@do_compare@%$do_compare%g ...@@ -4966,9 +4954,12 @@ s%@do_compare@%$do_compare%g
s%@gmplibs@%$gmplibs%g s%@gmplibs@%$gmplibs%g
s%@gmpinc@%$gmpinc%g s%@gmpinc@%$gmpinc%g
s%@stage1_languages@%$stage1_languages%g s%@stage1_languages@%$stage1_languages%g
s%@DEFAULT_YACC@%$DEFAULT_YACC%g s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
s%@DEFAULT_M4@%$DEFAULT_M4%g s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
s%@DEFAULT_LEX@%$DEFAULT_LEX%g s%@CONFIGURED_M4@%$CONFIGURED_M4%g
s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
s%@default_target@%$default_target%g s%@default_target@%$default_target%g
/@serialization_dependencies@/r $serialization_dependencies /@serialization_dependencies@/r $serialization_dependencies
s%@serialization_dependencies@%%g s%@serialization_dependencies@%%g
...@@ -4982,6 +4973,7 @@ s%@alphaieee_frag@%%g ...@@ -4982,6 +4973,7 @@ s%@alphaieee_frag@%%g
s%@ospace_frag@%%g s%@ospace_frag@%%g
s%@SET_LIB_PATH@%$SET_LIB_PATH%g s%@SET_LIB_PATH@%$SET_LIB_PATH%g
s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
s%@BUILD_DIR_PREFIX@%$BUILD_DIR_PREFIX%g
s%@BUILD_PREFIX@%$BUILD_PREFIX%g s%@BUILD_PREFIX@%$BUILD_PREFIX%g
s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
s%@gcc_version_trigger@%$gcc_version_trigger%g s%@gcc_version_trigger@%$gcc_version_trigger%g
...@@ -4992,17 +4984,12 @@ s%@GDB_TK@%$GDB_TK%g ...@@ -4992,17 +4984,12 @@ s%@GDB_TK@%$GDB_TK%g
s%@gxx_include_dir@%$gxx_include_dir%g s%@gxx_include_dir@%$gxx_include_dir%g
s%@libstdcxx_incdir@%$libstdcxx_incdir%g s%@libstdcxx_incdir@%$libstdcxx_incdir%g
s%@build_configargs@%$build_configargs%g s%@build_configargs@%$build_configargs%g
s%@configure_build_modules@%$configure_build_modules%g s%@build_configdirs@%$build_configdirs%g
s%@all_build_modules@%$all_build_modules%g
s%@host_configargs@%$host_configargs%g s%@host_configargs@%$host_configargs%g
s%@configdirs@%$configdirs%g s%@configdirs@%$configdirs%g
s%@target_configargs@%$target_configargs%g s%@target_configargs@%$target_configargs%g
s%@target_configdirs@%$target_configdirs%g s%@target_configdirs@%$target_configdirs%g
s%@BISON@%$BISON%g
s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
s%@LEX@%$LEX%g
s%@MAKEINFO@%$MAKEINFO%g
s%@YACC@%$YACC%g
s%@config_shell@%$config_shell%g s%@config_shell@%$config_shell%g
s%@AR@%$AR%g s%@AR@%$AR%g
s%@ncn_cv_AR@%$ncn_cv_AR%g s%@ncn_cv_AR@%$ncn_cv_AR%g
......
...@@ -126,6 +126,14 @@ fi ...@@ -126,6 +126,14 @@ fi
# Double entries in build_configdirs, configdirs, or target_configdirs may # Double entries in build_configdirs, configdirs, or target_configdirs may
# cause circular dependencies and break everything horribly. # cause circular dependencies and break everything horribly.
# these library is used by various programs built for the build
# environment
#
build_libs="build-libiberty"
# these tools are built for the build environment
build_tools="build-texinfo build-byacc build-flex build-bison build-m4"
# these libraries are used by various programs built for the host environment # these libraries are used by various programs built for the host environment
# #
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp" host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp"
...@@ -173,20 +181,14 @@ target_tools="target-examples target-groff target-gperf target-rda" ...@@ -173,20 +181,14 @@ target_tools="target-examples target-groff target-gperf target-rda"
## is important because configure will choke if they ever get through. ## is important because configure will choke if they ever get through.
## ${configdirs} is directories we build using the host tools. ## ${configdirs} is directories we build using the host tools.
## ${target_configdirs} is directories we build using the target tools. ## ${target_configdirs} is directories we build using the target tools.
#
configdirs=`echo ${host_libs} ${host_tools}` configdirs=`echo ${host_libs} ${host_tools}`
target_configdirs=`echo ${target_libraries} ${target_tools}` target_configdirs=`echo ${target_libraries} ${target_tools}`
# Only make build modules if build != host. # Only make build modules if build != host.
# This should be done more generally, but at the moment it doesn't matter.
if test ${host_alias} != ${build_alias} ; then if test ${host_alias} != ${build_alias} ; then
# This is the only build module. build_configdirs=`echo ${build_libs} ${build_tools}`
build_modules=libiberty
else
build_modules=
fi fi
################################################################################ ################################################################################
srcname="gnu development package" srcname="gnu development package"
...@@ -956,7 +958,6 @@ if test "${build}" != "${host}" ; then ...@@ -956,7 +958,6 @@ if test "${build}" != "${host}" ; then
# If we are doing a Canadian Cross, in which the host and build systems # If we are doing a Canadian Cross, in which the host and build systems
# are not the same, we set reasonable default values for the tools. # are not the same, we set reasonable default values for the tools.
BISON=${BISON-bison}
CC=${CC-${host_alias}-gcc} CC=${CC-${host_alias}-gcc}
CFLAGS=${CFLAGS-"-g -O2"} CFLAGS=${CFLAGS-"-g -O2"}
CXX=${CXX-${host_alias}-c++} CXX=${CXX-${host_alias}-c++}
...@@ -966,49 +967,9 @@ if test "${build}" != "${host}" ; then ...@@ -966,49 +967,9 @@ if test "${build}" != "${host}" ; then
CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++} CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++}
GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj} GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj}
GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}} GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
BUILD_DIR_PREFIX=${build_subdir}
BUILD_PREFIX=${build_alias}- BUILD_PREFIX=${build_alias}-
BUILD_PREFIX_1=${build_alias}- BUILD_PREFIX_1=${build_alias}-
MAKEINFO=${MAKEINFO-makeinfo}
if test -z "${YACC}" ; then
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/bison; then
YACC="bison -y"
break
fi
if test -f $dir/byacc; then
YACC=byacc
break
fi
if test -f $dir/yacc; then
YACC=yacc
break
fi
done
IFS="$save_ifs"
if test -z "${YACC}" ; then
YACC="bison -y"
fi
fi
if test -z "${LEX}" ; then
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/flex; then
LEX=flex
break
fi
if test -f $dir/lex; then
LEX=lex
break
fi
done
IFS="$save_ifs"
LEX=${LEX-flex}
fi
else else
# Set reasonable default values for some tools even if not Canadian. # Set reasonable default values for some tools even if not Canadian.
...@@ -1019,71 +980,19 @@ else ...@@ -1019,71 +980,19 @@ else
# in Makefile.in, so can still be overridden by fragments. # in Makefile.in, so can still be overridden by fragments.
# This is all going to change when we autoconfiscate... # This is all going to change when we autoconfiscate...
BISON="\$(USUAL_BISON)"
CC_FOR_BUILD="\$(CC)" CC_FOR_BUILD="\$(CC)"
GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)" GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)"
BUILD_DIR_PREFIX=
BUILD_PREFIX= BUILD_PREFIX=
BUILD_PREFIX_1=loser- BUILD_PREFIX_1=loser-
MAKEINFO="\$(USUAL_MAKEINFO)"
LEX="\$(USUAL_LEX)"
YACC="\$(USUAL_YACC)"
# If CC is still not set, try to get gcc. AC_PROG_CC
cc_prog_is_gcc=
if test -z "${CC}" ; then
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/gcc; then
CC="gcc"
cc_prog_is_gcc=yes
echo 'void f(){}' > conftest.c
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
CFLAGS=${CFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
else
CFLAGS=${CFLAGS-"-O2"}
CXXFLAGS=${CXXFLAGS-"-O2"}
fi
rm -f conftest*
break
fi
done
IFS="$save_ifs"
CC=${CC-cc}
else
# Determine if we are using gcc.
cat > conftest.c <<EOF
#ifdef __GNUC__
yes;
#endif
EOF
if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then
cc_prog_is_gcc=yes
fi
rm -f conftest.c
if test -z "${CFLAGS}"; then
# Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC
# is set to a version of gcc.
if test "$cc_prog_is_gcc" = yes; then
echo 'void f(){}' > conftest.c
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
CFLAGS=${CFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
else
CFLAGS=${CFLAGS-"-O2"}
CXXFLAGS=${CXXFLAGS-"-O2"}
fi
rm -f conftest*
fi
fi
fi
# We must set the default linker to the linker used by gcc for the correct # We must set the default linker to the linker used by gcc for the correct
# operation of libtool. If LD is not defined and we are using gcc, try to # operation of libtool. If LD is not defined and we are using gcc, try to
# set the LD default to the ld used by gcc. # set the LD default to the ld used by gcc.
if test -z "$LD"; then if test -z "$LD"; then
if test "$cc_prog_is_gcc" = yes; then if test "$GCC" = yes; then
case $build in case $build in
*-*-mingw*) *-*-mingw*)
gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
...@@ -1349,6 +1258,15 @@ fi ...@@ -1349,6 +1258,15 @@ fi
# Quietly strip out all directories which aren't configurable in this tree. # Quietly strip out all directories which aren't configurable in this tree.
# This relies on all configurable subdirectories being autoconfiscated, which # This relies on all configurable subdirectories being autoconfiscated, which
# is now the case. # is now the case.
build_configdirs_all="$build_configdirs"
build_configdirs=
for i in ${build_configdirs_all} ; do
j=`echo $i | sed -e s/build-//g`
if test -f ${srcdir}/$j/configure ; then
build_configdirs="${build_configdirs} $i"
fi
done
configdirs_all="$configdirs" configdirs_all="$configdirs"
configdirs= configdirs=
for i in ${configdirs_all} ; do for i in ${configdirs_all} ; do
...@@ -1356,6 +1274,7 @@ for i in ${configdirs_all} ; do ...@@ -1356,6 +1274,7 @@ for i in ${configdirs_all} ; do
configdirs="${configdirs} $i" configdirs="${configdirs} $i"
fi fi
done done
target_configdirs_all="$target_configdirs" target_configdirs_all="$target_configdirs"
target_configdirs= target_configdirs=
for i in ${target_configdirs_all} ; do for i in ${target_configdirs_all} ; do
...@@ -1382,7 +1301,7 @@ if test -n "${notsupp}" && test -z "${norecursion}" ; then ...@@ -1382,7 +1301,7 @@ if test -n "${notsupp}" && test -z "${norecursion}" ; then
appdirs="" appdirs=""
break break
fi fi
if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
appdirs="" appdirs=""
break break
fi fi
...@@ -1597,12 +1516,16 @@ esac ...@@ -1597,12 +1516,16 @@ esac
tooldir='${exec_prefix}'/${target_alias} tooldir='${exec_prefix}'/${target_alias}
build_tooldir=${tooldir} build_tooldir=${tooldir}
# Generate default definitions for YACC, M4, LEX. These are used if the # Generate default definitions for YACC, M4, LEX and other programs that run
# Makefile can't locate these programs in objdir. # on the build machine. These are used if the Makefile can't locate these
# programs in objdir.
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
AC_CHECK_PROGS([DEFAULT_YACC], ['bison -y' byacc yacc], [$MISSING bison]) AC_CHECK_PROGS([CONFIGURED_BISON], [bison], [$MISSING bison])
AC_CHECK_PROGS([DEFAULT_M4], [gm4 gnum4 m4], [$MISSING m4]) AC_CHECK_PROGS([CONFIGURED_YACC], ['bison -y' byacc yacc], [$MISSING bison -y])
AC_CHECK_PROGS([DEFAULT_LEX], [flex lex], [$MISSING flex]) AC_CHECK_PROGS([CONFIGURED_M4], [gm4 gnum4 m4], [$MISSING m4])
AC_CHECK_PROGS([CONFIGURED_FLEX], [flex], [$MISSING flex])
AC_CHECK_PROGS([CONFIGURED_LEX], [flex lex], [$MISSING flex])
AC_CHECK_PROGS([CONFIGURED_MAKEINFO], makeinfo, [$MISSING makeinfo])
# Create a .gdbinit file which runs the one in srcdir # Create a .gdbinit file which runs the one in srcdir
# and tells GDB to look there for source files. # and tells GDB to look there for source files.
...@@ -1685,17 +1608,7 @@ esac ...@@ -1685,17 +1608,7 @@ esac
# Record target_configdirs and the configure arguments for target and # Record target_configdirs and the configure arguments for target and
# build configuration in Makefile. # build configuration in Makefile.
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
# This is the final value for target_configdirs. configdirs already
# has its final value, as does build_modules. It's time to create some
# lists of valid targets.
all_build_modules=
configure_build_modules=
for module in ${build_modules} ; do
all_build_modules=all-build-${module}
configure_build_modules=configure-build-${module}
done
# Determine whether gdb needs tk/tcl or not. # Determine whether gdb needs tk/tcl or not.
# Use 'maybe' since enable_gdbtk might be true even if tk isn't available # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
...@@ -1761,7 +1674,7 @@ case "$enable_bootstrap" in ...@@ -1761,7 +1674,7 @@ case "$enable_bootstrap" in
esac esac
AC_SUBST(default_target) AC_SUBST(default_target)
for module in ${build_modules} ; do for module in ${build_configdirs} ; do
if test -z "${no_recursion}" \ if test -z "${no_recursion}" \
&& test -f ${build_subdir}/${module}/Makefile; then && test -f ${build_subdir}/${module}/Makefile; then
echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
...@@ -2138,6 +2051,7 @@ AC_SUBST_FILE(ospace_frag) ...@@ -2138,6 +2051,7 @@ AC_SUBST_FILE(ospace_frag)
# Miscellanea: directories, flags, etc. # Miscellanea: directories, flags, etc.
AC_SUBST(SET_LIB_PATH) AC_SUBST(SET_LIB_PATH)
AC_SUBST(RPATH_ENVVAR) AC_SUBST(RPATH_ENVVAR)
AC_SUBST(BUILD_DIR_PREFIX)
AC_SUBST(BUILD_PREFIX) AC_SUBST(BUILD_PREFIX)
AC_SUBST(BUILD_PREFIX_1) AC_SUBST(BUILD_PREFIX_1)
AC_SUBST(gcc_version_trigger) AC_SUBST(gcc_version_trigger)
...@@ -2150,8 +2064,7 @@ AC_SUBST(libstdcxx_incdir) ...@@ -2150,8 +2064,7 @@ AC_SUBST(libstdcxx_incdir)
# Build module lists & subconfigure args. # Build module lists & subconfigure args.
AC_SUBST(build_configargs) AC_SUBST(build_configargs)
AC_SUBST(configure_build_modules) AC_SUBST(build_configdirs)
AC_SUBST(all_build_modules)
# Host module lists & subconfigure args. # Host module lists & subconfigure args.
AC_SUBST(host_configargs) AC_SUBST(host_configargs)
...@@ -2162,11 +2075,7 @@ AC_SUBST(target_configargs) ...@@ -2162,11 +2075,7 @@ AC_SUBST(target_configargs)
AC_SUBST(target_configdirs) AC_SUBST(target_configdirs)
# Build tools. # Build tools.
AC_SUBST(BISON)
AC_SUBST(CC_FOR_BUILD) AC_SUBST(CC_FOR_BUILD)
AC_SUBST(LEX)
AC_SUBST(MAKEINFO)
AC_SUBST(YACC)
AC_SUBST(config_shell) AC_SUBST(config_shell)
# Host tools. # Host tools.
...@@ -2184,9 +2093,6 @@ AC_SUBST(CXX) ...@@ -2184,9 +2093,6 @@ AC_SUBST(CXX)
AC_SUBST(CFLAGS) AC_SUBST(CFLAGS)
AC_SUBST(CFLAGS_FOR_BUILD) AC_SUBST(CFLAGS_FOR_BUILD)
AC_SUBST(CXXFLAGS) AC_SUBST(CXXFLAGS)
AC_SUBST(DEFAULT_YACC)
AC_SUBST(DEFAULT_LEX)
AC_SUBST(DEFAULT_M4)
# Target tools. # Target tools.
NCN_STRICT_CHECK_TARGET_TOOL(CONFIGURED_AR_FOR_TARGET, ar) NCN_STRICT_CHECK_TARGET_TOOL(CONFIGURED_AR_FOR_TARGET, ar)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment