dependency tracking in ld

ld/:
	* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus.  Add
	no-texinfo.tex, no-dist, foreign.
	(TEXINFO_TEX): New variable.
	(install-data-local): Removed, not needed any more.
	(all): Dependencies upon info and ld.1 not needed any more.
	(MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
	(mkdep generated section): Removed.
	(ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
	use automake dependency tracking mechanism.
	(EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
	$(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
	dependencies are tracked too.
	(BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
	are built early.
	* configure.in: Use AM_MAINTAINER_MODE.
	* configure, Makefile.in: Regenerate.
This commit is contained in:
Ralf Wildenhues 2009-08-22 17:59:33 +00:00
parent af542c2e31
commit 64ac50ac86
5 changed files with 573 additions and 875 deletions

View File

@ -1,5 +1,22 @@
2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus. Add
no-texinfo.tex, no-dist, foreign.
(TEXINFO_TEX): New variable.
(install-data-local): Removed, not needed any more.
(all): Dependencies upon info and ld.1 not needed any more.
(MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
(mkdep generated section): Removed.
(ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
use automake dependency tracking mechanism.
(EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
$(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
dependencies are tracked too.
(BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
are built early.
* configure.in: Use AM_MAINTAINER_MODE.
* aclocal.m4, configure, Makefile.in: Regenerate.
* Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
(install-pdf-recursive, html__strip_dir, install-html)
(install-html-am, install-html-recursive): Remove.

View File

@ -1,7 +1,8 @@
## Process this file with automake to generate Makefile.in
AUTOMAKE_OPTIONS = cygnus dejagnu
AUTOMAKE_OPTIONS = dejagnu no-texinfo.tex no-dist foreign
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
SUBDIRS = po
@ -36,7 +37,6 @@ LIB_PATH = @LIB_PATH@
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
INCDIR = $(BASEDIR)/include
MKDEP = gcc -MM
# What version of the manual to build
DOCVER = gen
@ -449,6 +449,10 @@ HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
# Require an early dependency on the generated headers, as the dependency
# tracking will not cause them to be built beforehand.
BUILT_SOURCES = $(GENERATED_HFILES)
OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
@ -457,12 +461,41 @@ STAGESTUFF = *.o ldscripts/* e*.c
# Disable -Werror, if it has been enabled, since old versions of bison/
# yacc will produce working code which contain compile time warnings.
ldgram.o:
$(COMPILE) -c $< $(NO_WERROR)
ldlex.o:
$(COMPILE) -c $< $(NO_WERROR)
deffilep.o:
$(COMPILE) -c $< $(NO_WERROR)
ldgram.o: ldgram.c
if am__fastdepCC
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ ldgram.c $(NO_WERROR)
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
else
if AMDEP
source='ldgram.c' object='$@' libtool=no @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif
$(COMPILE) -c ldgram.c $(NO_WERROR)
endif
ldlex.o: ldlex.c
if am__fastdepCC
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ ldlex.c $(NO_WERROR)
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
else
if AMDEP
source='ldlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif
$(COMPILE) -c ldlex.c $(NO_WERROR)
endif
deffilep.o: deffilep.c
if am__fastdepCC
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ deffilep.c $(NO_WERROR)
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
else
if AMDEP
source='deffilep.c' object='$@' libtool=no @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif
$(COMPILE) -c deffilep.c $(NO_WERROR)
endif
# At the moment this is just a list of those emulation template files
# that contain internationalised strings.
@ -475,15 +508,39 @@ po/POTFILES.in: @MAINT@ Makefile
&& mv tmp $(srcdir)/po/POTFILES.in
ldmain.o: ldmain.c config.status
if am__fastdepCC
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
-DDEFAULT_EMULATION='"$(EMUL)"' \
-DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
-DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
$(srcdir)/ldmain.c
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
else
if AMDEP
source='deffilep.c' object='$@' libtool=no @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif
$(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' \
-DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
-DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
$(srcdir)/ldmain.c
endif
ldfile.o: ldfile.c config.status
$(COMPILE) -c -DSCRIPTDIR='"$(scriptdir)"' \
-DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
if am__fastdepCC
$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
-DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
$(srcdir)/ldfile.c
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
else
if AMDEP
source='deffilep.c' object='$@' libtool=no @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif
$(COMPILE) -c -DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' \
-DTOOLBINDIR='"$(tooldir)/bin"' \
$(srcdir)/ldfile.c
endif
eelf32_spu.o: eelf32_spu.c
$(COMPILE) -c -DEMBEDSPU="\"`echo embedspu | sed '$(transform)'`\"" \
@ -1761,16 +1818,16 @@ ez8002.c: $(srcdir)/emulparams/z8002.sh \
# We need this for automake to use YLWRAP.
EXTRA_ld_new_SOURCES = deffilep.y
# Allow dependency tracking to work for these files, too.
EXTRA_ld_new_SOURCES += pep-dll.c pe-dll.c
ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL_DEP)
ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
# The generated emulation files mostly have the same dependencies.
$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
ldctor.h ldexp.h ldlang.h ldgram.h
# Dependency tracking for the generated emulation files.
EXTRA_ld_new_SOURCES += $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c)
# This is the real libbfd.a created by libtool.
TESTBFDLIB = @TESTBFDLIB@
@ -1903,16 +1960,11 @@ install-data-local:
$(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
done
# We want install to imply install-info as per GNU standards, despite the
# cygnus option.
install-data-local: install-info
# Stuff that should be included in a distribution. The diststuff
# target is run by the taz target in ../Makefile.in.
EXTRA_DIST = ldgram.c ldgram.h ldlex.c emultempl/spu_ovl.o_c \
emultempl/spu_icache.o_c deffilep.c deffilep.h $(man_MANS)
diststuff: info $(EXTRA_DIST)
all: info ld.1
# Both info (ld.info) and ld.1 depend on configdoc.texi.
# But info isn't a direct target. Make info-recursive to depend on
@ -1931,393 +1983,3 @@ MAINTAINERCLEANFILES += ld.info
if GENINSRC_NEVER
DISTCLEANFILES += ld.info
endif
# Targets to rebuild dependencies in this Makefile.
# Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
rm -f DEP1
$(MAKE) MKDEP="$(MKDEP)" DEP1
echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEP1
if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
echo 'make DEP failed!'; exit 1; \
else \
mv -f DEP1 $@; \
fi
DEP1: $(CFILES) $(GENERATED_CFILES)
echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
for f in $?; do \
$(MKDEP) $(INCLUDES) $(CFLAGS) $$f > DEPA; \
sed -n -e '1s/: .*/: \\/p' -e q < DEPA >> DEP2; \
sed -e '1s/.*: //' -f dep.sed < DEPA | \
LC_ALL=C sort | LC_ALL=C uniq | \
sed -e 's/^[AB]/ /' -e '$$s/ \\$$//' >> DEP2; \
done
rm -f DEPA
mv -f DEP2 $@
dep.sed: dep-in.sed config.status
sed <$(srcdir)/dep-in.sed >dep.sed \
-e 's!@INCDIR@!$(INCDIR)!' \
-e 's!@BFDDIR@!$(BFDDIR)!' \
-e 's!@SRCDIR@!$(srcdir)!' \
-e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/ld$$,,`'!'
dep: DEP
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
cat DEP >> tmp-Makefile
$(srcdir)/../move-if-change tmp-Makefile Makefile
dep-in: DEP
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
cat DEP >> tmp-Makefile.in
$(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
dep-am: DEP
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
cat DEP >> tmp-Makefile.am
$(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
.PHONY: dep dep-in dep-am
# What appears below is generated by a hacked mkdep using gcc -MM.
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
ldctor.o: \
ldctor.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldctor.h \
ldexp.h \
ldgram.h \
ldlang.h \
ldmain.h \
ldmisc.h \
sysdep.h
ldemul.o: \
ldemul.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldemul-list.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldlang.h \
ldmain.h \
ldmisc.h \
sysdep.h
ldexp.o: \
ldexp.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldexp.h \
ldgram.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
sysdep.h
ldfile.o: \
ldfile.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/filenames.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
sysdep.h
ldlang.o: \
ldlang.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/demangle.h \
$(INCDIR)/fnmatch.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/hashtab.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/obstack.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldctor.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
sysdep.h
ldmain.o: \
ldmain.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/filenames.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/progress.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldctor.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
ldwrite.h \
sysdep.h
ldmisc.o: \
ldmisc.c \
$(BFDDIR)/elf-bfd.h \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/demangle.h \
$(INCDIR)/elf/common.h \
$(INCDIR)/elf/external.h \
$(INCDIR)/elf/internal.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
sysdep.h
ldver.o: \
ldver.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
../bfd/bfdver.h \
config.h \
ld.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldlang.h \
ldmain.h \
ldver.h \
sysdep.h
ldwrite.o: \
ldwrite.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldexp.h \
ldgram.h \
ldlang.h \
ldmain.h \
ldmisc.h \
ldwrite.h \
sysdep.h
lexsup.o: \
lexsup.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/demangle.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
../bfd/bfdver.h \
config.h \
ld.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
ldver.h \
sysdep.h
mri.o: \
mri.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldexp.h \
ldgram.h \
ldlang.h \
ldmisc.h \
mri.h \
sysdep.h
ldcref.o: \
ldcref.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/demangle.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/objalloc.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldexp.h \
ldlang.h \
ldmain.h \
ldmisc.h \
sysdep.h
pe-dll.o: \
pe-dll.c \
$(BFDDIR)/libcoff.h \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/coff/internal.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
deffile.h \
ld.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldmain.h \
ldmisc.h \
ldwrite.h \
pe-dll.h \
sysdep.h
pep-dll.o: \
pep-dll.c \
$(BFDDIR)/libcoff.h \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/coff/internal.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
deffile.h \
ld.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldmain.h \
ldmisc.h \
ldwrite.h \
pe-dll.c \
pep-dll.h \
sysdep.h
ldgram.o: \
ldgram.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldctor.h \
ldemul.h \
ldexp.h \
ldfile.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
ldver.h \
mri.h \
sysdep.h
ldlex.o: \
ldlex.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/bfdlink.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
ld.h \
ldexp.h \
ldfile.h \
ldgram.h \
ldlang.h \
ldlex.h \
ldmain.h \
ldmisc.h \
sysdep.h
deffilep.o: \
deffilep.c \
$(INCDIR)/ansidecl.h \
$(INCDIR)/fopen-same.h \
$(INCDIR)/libiberty.h \
$(INCDIR)/safe-ctype.h \
$(INCDIR)/symcat.h \
../bfd/bfd.h \
config.h \
deffile.h \
ld.h \
ldmisc.h \
sysdep.h
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY

File diff suppressed because it is too large Load Diff

67
ld/configure vendored
View File

@ -755,9 +755,6 @@ HDEFINES
do_compare
GENINSRC_NEVER_FALSE
GENINSRC_NEVER_TRUE
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
LEXLIB
LEX_OUTPUT_ROOT
LEX
@ -803,6 +800,9 @@ WARN_CFLAGS
TARGET_SYSTEM_ROOT_DEFINE
TARGET_SYSTEM_ROOT
use_sysroot
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
@ -896,6 +896,7 @@ ac_subst_files='TDIRS'
ac_user_opts='
enable_option_checking
enable_dependency_tracking
enable_maintainer_mode
with_lib_path
enable_targets
enable_64_bit_bfd
@ -911,7 +912,6 @@ enable_fast_install
with_gnu_ld
enable_libtool_lock
enable_nls
enable_maintainer_mode
'
ac_precious_vars='build_alias
host_alias
@ -1544,6 +1544,8 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
--enable-targets alternative target configurations
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
--enable-got=<type> GOT handling scheme (target, single, negative,
@ -1557,8 +1559,6 @@ Optional Features:
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--disable-nls do not use Native Language Support
--enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -4209,6 +4209,29 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Check whether --enable-maintainer-mode was given.
if test "${enable_maintainer_mode+set}" = set; then :
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
else
USE_MAINTAINER_MODE=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
$as_echo "$USE_MAINTAINER_MODE" >&6; }
if test $USE_MAINTAINER_MODE = yes; then
MAINTAINER_MODE_TRUE=
MAINTAINER_MODE_FALSE='#'
else
MAINTAINER_MODE_TRUE='#'
MAINTAINER_MODE_FALSE=
fi
MAINT=$MAINTAINER_MODE_TRUE
# Check whether --with-lib-path was given.
if test "${with_lib_path+set}" = set; then :
@ -6064,13 +6087,13 @@ if test "${lt_cv_nm_interface+set}" = set; then :
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:6067: $ac_compile\"" >&5)
(eval echo "\"\$as_me:6090: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:6070: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval echo "\"\$as_me:6093: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:6073: output\"" >&5)
(eval echo "\"\$as_me:6096: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@ -7275,7 +7298,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 7278 "configure"' > conftest.$ac_ext
echo '#line 7301 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
@ -8537,11 +8560,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8540: $lt_compile\"" >&5)
(eval echo "\"\$as_me:8563: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:8544: \$? = $ac_status" >&5
echo "$as_me:8567: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -8876,11 +8899,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8879: $lt_compile\"" >&5)
(eval echo "\"\$as_me:8902: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:8883: \$? = $ac_status" >&5
echo "$as_me:8906: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -8981,11 +9004,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8984: $lt_compile\"" >&5)
(eval echo "\"\$as_me:9007: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:8988: \$? = $ac_status" >&5
echo "$as_me:9011: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -9036,11 +9059,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:9039: $lt_compile\"" >&5)
(eval echo "\"\$as_me:9062: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:9043: \$? = $ac_status" >&5
echo "$as_me:9066: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -11418,7 +11441,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11421 "configure"
#line 11444 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -11514,7 +11537,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11517 "configure"
#line 11540 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -13066,6 +13089,10 @@ else
am__EXEEXT_FALSE=
fi
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5

View File

@ -11,6 +11,7 @@ changequote(,)dnl
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
changequote([,])dnl
AM_INIT_AUTOMAKE(ld, ${BFD_VERSION})
AM_MAINTAINER_MODE
AC_ARG_WITH(lib-path, [ --with-lib-path=dir1:dir2... set default LIB_PATH],LIB_PATH=$withval)
AC_ARG_ENABLE(targets,