Commit 94a3815c authored by nobody's avatar nobody
Browse files

This commit was manufactured by cvs2svn to create tag 'binu_ss_19990602'.

Sprout from cygnus 1999-05-03 07:29:11 UTC Richard Henderson <rth@redhat.com> '19990502 sourceware import'
Cherrypick from master 1999-06-02 12:39:44 UTC Richard Henderson <rth@redhat.com> '* hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.':
    ChangeLog
    bfd/ChangeLog
    bfd/Makefile.am
    bfd/Makefile.in
    bfd/aclocal.m4
    bfd/archive.c
    bfd/bfd-in.h
    bfd/bfd-in2.h
    bfd/coff-arm.c
    bfd/coff-mcore.c
    bfd/coffcode.h
    bfd/coffgen.c
    bfd/coffswap.h
    bfd/config.bfd
    bfd/config.in
    bfd/configure
    bfd/configure.host
    bfd/configure.in
    bfd/dwarf2.c
    bfd/ecoff.c
    bfd/elf-bfd.h
    bfd/elf.c
    bfd/elf32-arm.h
    bfd/elf32-i960.c
    bfd/elf32-m68k.c
    bfd/elf32-mcore.c
    bfd/elf32-mips.c
    bfd/elf32-v850.c
    bfd/elf64-mips.c
    bfd/elfarm-nabi.c
    bfd/elfarm-oabi.c
    bfd/elfxx-target.h
    bfd/hosts/alphalinux.h
    bfd/libbfd-in.h
    bfd/libbfd.h
    bfd/peicode.h
    bfd/reloc.c
    bfd/som.c
    bfd/targets.c
    bfd/vms-misc.c
    binutils/ChangeLog
    binutils/Makefile.am
    binutils/Makefile.in
    binutils/NEWS
    binutils/binutils.texi
    binutils/configure
    binutils/configure.in
    binutils/dlltool.c
    binutils/objcopy.c
    binutils/objdump.c
    binutils/rclex.l
    binutils/rcparse.y
    binutils/readelf.c
    binutils/rename.c
    binutils/rescoff.c
    binutils/resrc.c
    binutils/testsuite/ChangeLog
    binutils/testsuite/binutils-all/readelf.h
    binutils/windres.c
    binutils/windres.h
    config.guess
    config.sub
    gas/ChangeLog
    gas/Makefile.am
    gas/Makefile.in
    gas/NEWS
    gas/aclocal.m4
    gas/atof-generic.c
    gas/config/atof-ieee.c
    gas/config/m68k-parse.h
    gas/config/obj-coff.c
    gas/config/obj-elf.c
    gas/config/tc-arm.c
    gas/config/tc-hppa.c
    gas/config/tc-i386.c
    gas/config/tc-i386.h
    gas/config/tc-i960.c
    gas/config/tc-i960.h
    gas/config/tc-m68k.c
    gas/config/tc-m68k.h
    gas/config/tc-mcore.c
    gas/config/tc-mips.c
    gas/config/tc-ppc.c
    gas/configure
    gas/configure.in
    gas/doc/internals.texi
    gas/ecoff.c
    gas/expr.c
    gas/hash.h
    gas/listing.c
    gas/read.c
    gas/symbols.c
    gas/testsuite/ChangeLog
    gas/testsuite/gas/i386/amd.d
    gas/testsuite/gas/i386/amd.s
    gas/testsuite/gas/i386/i386.exp
    gas/testsuite/gas/i386/katmai.d
    gas/testsuite/gas/i386/katmai.s
    gas/testsuite/gas/i386/opcode.d
    gas/testsuite/gas/i386/prefix.d
    gas/testsuite/gas/i386/prefix.s
    gas/testsuite/gas/i386/reloc.d
    gas/testsuite/gas/i386/reloc.s
    gas/testsuite/gas/mcore/allinsn.d
    gas/testsuite/gas/vtable/vtable.exp
    gas/write.c
    include/coff/ChangeLog
    include/coff/arm.h
    include/coff/mcore.h
    include/elf/ChangeLog
    include/elf/common.h
    include/elf/i960.h
    include/elf/m68k.h
    include/elf/mcore.h
    include/elf/reloc-macros.h
    include/opcode/ChangeLog
    include/opcode/hppa.h
    include/opcode/i386.h
    include/opcode/m68k.h
    include/opcode/ppc.h
    ld/ChangeLog
    ld/Makefile.am
    ld/Makefile.in
    ld/configure.tgt
    ld/emulparams/armelf.sh
    ld/emulparams/armelf_linux.sh
    ld/emulparams/armelf_oabi.sh
    ld/emulparams/elf32_i960.sh
    ld/emulparams/elf32mcore.sh
    ld/emulparams/elf32ppclinux.sh
    ld/emulparams/mcorepe.sh
    ld/emultempl/armcoff.em
    ld/emultempl/armelf.em
    ld/emultempl/armelf_oabi.em
    ld/emultempl/pe.em
    ld/ld.texinfo
    ld/ldlang.c
    ld/lexsup.c
    ld/pe-dll.c
    ld/scripttempl/mcorepe.sc
    ld/scripttempl/pe.sc
    ld/testsuite/ChangeLog
    ld/testsuite/ld-srec/srec.exp
    ld/testsuite/ld-undefined/undefined.exp
    libiberty/ChangeLog
    libiberty/configure
    libiberty/configure.in
    libiberty/cplus-dem.c
    libiberty/getruntime.c
    opcodes/ChangeLog
    opcodes/i386-dis.c
    opcodes/m68k-dis.c
    opcodes/m68k-opc.c
    opcodes/mcore-dis.c
    opcodes/mcore-opc.h
parent 252b5132
Sun May 30 16:03:16 1999 Cort Dougan <cort@cs.nmt.edu>
* config.guess (ppc-*-linux-gnu): Also use ld emul elf32ppclinux.
1999-05-24 Nick Clifton <nickc@cygnus.com>
* config.sub: Updated to match latest EGCS version.
1999-04-30 Tom Tromey <tromey@cygnus.com>
* ltmain.sh: [mode link] Always use CC given by ltconfig.
......
Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
* hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
* reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
(BFD_RELOC_MIPS_GOT_PAGE): Likewise.
(BFD_RELOC_MIPS_GOT_OFST): Likewise.
(BFD_RELOC_MIPS_GOT_DISP): Likewise.
* bfd-in2.h: Regenerated.
* libbfd.h: Likewise.
* elf32-mips.c (mips_info_to_howto_rela): New function.
(USE_REL): Adjust for new conventions.
(MINUS_ONE): New macro.
(elf_mips_howto_table): Add R_MIPS_SUB.
(mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
and MIPS_GOT_DISP.
(mips_elf_final_write_processing): Set sh_link, not sh_info, for a
.MIPS.content section.
(_bfd_mips_elf_fake_sections): Treat all sections that begin
with .MIPS.content as .MIPS.content sections. Set
SHF_MNIPS_NOSTRIP for such section.
(elf_info_to_howto): Define to mips_info_to_howto_rela.
* elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
MIPS_GOT_OFST, and MIPS_GOT_DISP.
Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
variable.
* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
`else'.
1999-05-30 Philip Blundell <philb@gnu.org>
* elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
1993-03-25 (!!). Take into account the bitmasks for the reloc so
the addend does not overflow into the rest of the word.
1999-05-29 Nick Clifton <nickc@cygnus.com>
* bfd-in.h: Amend prototype for
bfd_elf32_arm_process_before_allocation .
* bfd-in.h: Regenerate.
* elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
elements in a fixed sized array.
(ARM_ELF_ABI_VERSION): Define.
(ARM_ELF_OS_ABI_VERSION): Define.
(R_ARM_THM_ABS5): Fix rightshift and size.
(R_ARM_THM_PC22): Fix size.
(R_ARM_PLT32): Define Howto.
(find_howto): New function: Locate a howto based on a reloc
number.
(elf32_arm_info_to_howto): Use find_howto if necessary.
(elf32_arm_reloc_map): Change type of field bfd_reloc_val to
bfd_reloc_code_real_type.
(elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
and BFD_RELOC_VTABLE_ENTRY.
(elf32_arm_reloc_type_lookup): Use find_howto if necessary.
* elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
elements in a fixed sized array.
(ARM_ELF_ABI_VERSION): Define.
(ARM_ELF_OS_ABI_VERSION): Define.
(R_ARM_THM_ABS5): Fix rightshift and size.
(R_ARM_THM_PC22): Fix size.
(elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
(elf32_arm_reloc_map): Change type of field bfd_reloc_val to
bfd_reloc_code_real_type.
* elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
no_pipeline_knowledge.
(elf32_arm_link_hash_create): Initialise new field to zero.
(bfd_elf32_arm_process_before_allocation): Add new paraemter:
no_pipeline_knowledge. Use this parameter to initialise the field
in the globals data structure.
(elf32_arm_final_link_relocate): Only add in pipeline offset if
no_pipeline_knowledge is false and the binary is from an old
toolchain.
(elf32_arm_merge_private_data): Generate an error if an attempt is
made to linl together big endian and little endian code.
(elf32_arm_post_process_headers): New function: Initialise the
EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
header.
(elf_backend_post_process_headers): Define.
1999-05-28 Nick Clifton <nickc@cygnus.com>
* elf-bfd.h (struct elf_backend_data): Add new field:
elf_backend_post_process_headers.
* elfxx-target.h (elf_backend_post_process_headers): Define to
NULL if not already defined.
(elfNN_bed): Initialise elf_backend_post_process_headers field.
* elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
to zero.
(_bfd_elf_compute_section_file_positions): Call
elf_backend_post_process_headers if defined.
1999-05-28 Ian Lance Taylor <ian@zembu.com>
* configure.in: Check whether getuid and getgid exist.
* archive.c: Define getuid and getgid as macros if HAVE_GETUID or
HAVE_GETGID are not defined, respectively.
(bfd_write_armap): Don't special case on _WIN32 for getuid and
getgid.
* configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
* configure, config.in: Rebuild.
1999-05-28 Martin Dorey <mdorey@madge.com>
* elf32-i960.c: New file.
* elf.c (prep_headers): Handle bfd_arch_i960.
* targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
* config.bfd (i960-*-elf*): New target.
* configure.in (bfd_elf32_i960_vec): New target vector.
* Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
(BFD32_BACKENDS_CFILES): Add elf32-i960.c.
* Makefile.in, aclocal.m4, configure: Rebuild.
1999-05-27 Nick Clifton <nickc@cygnus.com>
* elfarm-oabi.c (elf32_arm_howto_table): Add entry for
R_ARM_PLT32.
(find_howto): New function: Find entries in the
elf32_arm_howto_table.
(elf32_arm_info_to_howto): Use find_howto if the entry cannot be
computed simply.
(elf32_arm_reloc_type_lookup): Add lookup for
BFD_RELOC_ARM_PLT32.
1999-05-25 Philip Blundell <pb@nexus.co.uk>
* bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
(elf32_arm_link_hash_table_create): Use above function as the
constructor for hash table entries.
(elf32_arm_relocate_section): Avoid crash when there is no output
section.
(elf32_arm_final_link_relocate): New parameter h.
(elf32_arm_relocate_section): Pass symbol hash entry to above
routine.
(elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
comments.
1999-05-25 Catherine Moore <clm@cygnus.com>
* coff-arm.c (coff_arm_relocate_section): Don't emit
base file entries for pc-relative values.
1999-05-25 DJ Delorie <dj@cygnus.com>
* peicode.h (coff_swap_sym_in): When we create the actual section
to reflect the not-there section C_SECTION symbols refer to,
change the symbol class to C_STAT as the section is now really
there.
1999-05-24 Philip Blundell <pb@nexus.co.uk>
* elf32-arm.h (elf32_arm_relocate_section): Undo change of
1999-03-25.
Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
* coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
F_PIC_INT to F_PIC.
* coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
1999-05-16 Nick Clifton <nickc@cygnus.com>
* coff-mcore.c (in_reloc_p): Reinstate.
1999-05-15 Nick Clifton <nickc@cygnus.com>
* reloc.c (BFD_RELOC_MCORE_RVA): Define.
* bfd-in2.h: Regenerate.
* coff-mcore.c (in_reloc_p): Remove defintion.
(mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
(mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
IMAGE_REL_MCORE_RVA.
(coff_mcore_rtype_to_howto): Add special processing for
IMAGE_REL_MCORE_RVA.
(coff_mcore_relocate_section): Add support for
IMAGE_REL_MCORE_RVA.
* elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
(mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
R_MCORE_RELATIVE.
(mcore_elf_relocate_section): Delete redundant case labels.
Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* elf32-arm.h (elf32_arm_relocate_section): Fix operator
precedence between bit-and and comparison.
Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
* config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
list of target formats (targ_selvecs).
(i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
(powerpcle*-*rtems*, sh-*-rtemself*): New targets.
1999-05-10 DJ Delorie <dj@cygnus.com>
* ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
reasonable mode until "ar x" is smart enough to skip it (fixes
gcc/libgcc.a builds on mips-ecoff targets
* coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
to work. Hack to support MS import libraries, which use different
COMDAT types than GNU.
(coff_slurp_symbol_table): C_SECTION symbols are local; they refer
to implied zero-length sections (see peicode below)
* coffgen.c (coff_get_normalized_symtab): Properly read long MS
filename symbols, which use one *or more* auxents.
* coffswap.h (coff_swap_aux_in): ditto
* peicode.h (coff_swap_sym_in): Build the implied zero-length
sections
Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
* elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
for all relocations.
1999-05-10 Catherine Moore <clm@cygnus.com>
* bfd-in.h (bfd_arm_allocate_interworking_sections): Static
if COFF_IMAGE_WITH_PE.
(bfd_arm_process_before_allocation): Likewise.
(bfd_arm_get_bfd_for_interworking): Likewise.
* coff-arm.c: Likewise.
* bfd-in2.h: Regenerate.
* configure.in (armpe_little_vec): Remove coff-arm.lo.
(armpe_big_vec): Likewise.
* configure: Rebuild.
1999-05-10 Nick Clifton <nickc@cygnus.com>
* elf.c (elf_fake_sections): Check for .rel. as start of rel
section, not just .rel. Same for .rela.
1999-05-07 Nick Clifton <nickc@cygnus.com>
* coff-mcore.c (coff_mcore_relocate_section): Replace assert about
endianism with an error message.
Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
* dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
assignment from "unsigned char *" to "char *".
(decode_line_info): Likewise for dwarf_line_buffer assignment.
1999-05-05 Catherine Moore <clm@cygnus.com>
* coff-arm.c (coff_arm_relocate_section): Add one to
address of ARM_RVA32 thumb functions.
1999-05-05 Catherine Moore <clm@cygnus.com>
* elf32-m68k.c (elf32_m68k_set_private_flags): New.
(elf32_m68k_copy_private_bfd_data): New.
(elf32_m68k_merge_private_bfd_data): New.
(elf32_m68k_print_private_bfd_data): New.
(CPU32_FLAG): Define.
(PLT_CPU32_ENTRY_SIZE): Define.
(elf_cpu32_plt0_entry): Declare.
(elf_cpu32_plt_entry): Declare.
(elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
(elf_m68k_finish_dynamic_symbol): Likewise.
(elf_m68k_finish_dynamic_sections): Likewise.
(elf_backend_plt_header_size): Remove definition.
(bfd_elf32_bfd_copy_private_bfd_data): Define.
(bfd_elf32_bfd_merge_private_bfd_data): Define.
(bfd_elf32_bfd_set_private_flags): Define.
(bfd_elf32_bfd_print_private_bfd_data): Define.
Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
* som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
and R_LONG_PCREL_MODE.
1999-04-29 Nick Clifton <nickc@cygnus.com>
* coff-mcore.c (coff_mcore_relocate_section): Fix typos.
......
......@@ -158,6 +158,7 @@ BFD32_BACKENDS = \
elf32-hppa.lo \
elf32-i386.lo \
elf32-i860.lo \
elf32-i960.lo \
elf32-m32r.lo \
elf32-m68k.lo \
elf32-m88k.lo \
......@@ -276,6 +277,7 @@ BFD32_BACKENDS_CFILES = \
elf32-hppa.c \
elf32-i386.c \
elf32-i860.c \
elf32-i960.c \
elf32-m32r.c \
elf32-m68k.c \
elf32-m88k.c \
......@@ -839,6 +841,9 @@ elf32-i386.lo: elf32-i386.c $(INCDIR)/bfdlink.h elf-bfd.h \
elf32-i860.lo: elf32-i860.c elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
elf32-target.h
elf32-i960.lo: elf32-i960.c elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
$(INCDIR)/elf/i960.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
elf32-m32r.lo: elf32-m32r.c elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
$(INCDIR)/elf/m32r.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
......
......@@ -104,6 +104,7 @@ RANLIB = @RANLIB@
TDEFINES = @TDEFINES@
USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
USE_NLS = @USE_NLS@
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
VERSION = @VERSION@
WIN32LDFLAGS = @WIN32LDFLAGS@
WIN32LIBADD = @WIN32LIBADD@
......@@ -276,6 +277,7 @@ BFD32_BACKENDS = \
elf32-hppa.lo \
elf32-i386.lo \
elf32-i860.lo \
elf32-i960.lo \
elf32-m32r.lo \
elf32-m68k.lo \
elf32-m88k.lo \
......@@ -395,6 +397,7 @@ BFD32_BACKENDS_CFILES = \
elf32-hppa.c \
elf32-i386.c \
elf32-i860.c \
elf32-i960.c \
elf32-m32r.c \
elf32-m68k.c \
elf32-m88k.c \
......@@ -613,7 +616,7 @@ configure.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = tar
TAR = gtar
GZIP_ENV = --best
SOURCES = $(libbfd_a_SOURCES) $(libbfd_la_SOURCES)
OBJECTS = $(libbfd_a_OBJECTS) $(libbfd_la_OBJECTS)
......@@ -1150,7 +1153,6 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES)
config.status: $(srcdir)/configure $(srcdir)/config.bfd $(srcdir)/configure.host
$(SHELL) ./config.status --recheck
elfarm-oabi.lo: elfarm-oabi.c elf32-arm.h elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
$(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
......@@ -1369,6 +1371,9 @@ elf32-i386.lo: elf32-i386.c $(INCDIR)/bfdlink.h elf-bfd.h \
elf32-i860.lo: elf32-i860.c elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
elf32-target.h
elf32-i960.lo: elf32-i960.c elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
$(INCDIR)/elf/i960.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
elf32-m32r.lo: elf32-m32r.c elf-bfd.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \
$(INCDIR)/elf/m32r.h $(INCDIR)/elf/reloc-macros.h elf32-target.h
......
......@@ -208,26 +208,58 @@ fi
AC_SUBST($1)])
# serial 25 AM_PROG_LIBTOOL
AC_DEFUN(AM_PROG_LIBTOOL,
[AC_REQUIRE([AM_ENABLE_SHARED])dnl
AC_REQUIRE([AM_ENABLE_STATIC])dnl
# serial 35 AC_PROG_LIBTOOL
AC_DEFUN(AC_PROG_LIBTOOL,
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
# Save cache, so that ltconfig can load it
AC_CACHE_SAVE
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
DLLTOOL="$DLLTOOL" AS="$AS" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
AC_CACHE_LOAD
# This can be used to rebuild libtool when needed
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
])
AC_DEFUN(AC_LIBTOOL_SETUP,
[AC_PREREQ(2.13)dnl
AC_REQUIRE([AC_ENABLE_SHARED])dnl
AC_REQUIRE([AC_ENABLE_STATIC])dnl
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
AC_REQUIRE([AC_PROG_RANLIB])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AM_PROG_LD])dnl
AC_REQUIRE([AM_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LD])dnl
AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_SYS_NM_PARSE])dnl
AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
dnl
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
AC_SUBST(LIBTOOL)dnl
# Check for any special flags to pass to ltconfig.
libtool_flags=
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
......@@ -256,37 +288,46 @@ case "$host" in
*-*-sco3.2v5*)
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -belf"
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
[AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
CFLAGS="$SAVE_CFLAGS"
fi
;;
*-*-cygwin*)
AM_SYS_LIBTOOL_CYGWIN
AC_SYS_LIBTOOL_CYGWIN
;;
esac
# Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
DLLTOOL="$DLLTOOL" AS="$AS" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| AC_MSG_ERROR([libtool configure failed])
# enable the --disable-libtool-lock switch
# Redirect the config.log output again, so that the ltconfig log is not
# clobbered by the next message.
exec 5>>./config.log
AC_ARG_ENABLE(libtool-lock,
[ --disable-libtool-lock force libtool not to do file locking],
need_locks=$enableval,
need_locks=yes)
if test x"$need_locks" = xno; then
libtool_flags="$libtool_flags --disable-lock"
fi
])
# AM_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AM_ENABLE_SHARED[(DEFAULT)]
# AC_LIBTOOL_DLOPEN - check for dlopen support
AC_DEFUN(AC_LIBTOOL_DLOPEN, [lt_dlopen=yes])
# AC_ENABLE_SHARED - implement the --enable-shared flag
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AM_ENABLE_SHARED,
[define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
AC_DEFUN(AC_ENABLE_SHARED,
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(shared,
changequote(<<, >>)dnl
<< --enable-shared[=PKGS] build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT],
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
......@@ -304,26 +345,22 @@ no) enable_shared=no ;;
IFS="$ac_save_ifs"
;;
esac],
enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
])
# AM_DISABLE_SHARED - set the default shared flag to --disable-shared
AC_DEFUN(AM_DISABLE_SHARED,
[AM_ENABLE_SHARED(no)])
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
AC_DEFUN(AC_DISABLE_SHARED,
[AC_ENABLE_SHARED(no)])
# AM_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN(AM_DISABLE_STATIC,
[AM_ENABLE_STATIC(no)])
# AM_ENABLE_STATIC - implement the --enable-static flag
# Usage: AM_ENABLE_STATIC[(DEFAULT)]
# AC_ENABLE_STATIC - implement the --enable-static flag
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AM_ENABLE_STATIC,
[define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
AC_DEFUN(AC_ENABLE_STATIC,
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(static,
changequote(<<, >>)dnl
<< --enable-static[=PKGS] build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT],
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
......@@ -341,16 +378,56 @@ no) enable_static=no ;;
IFS="$ac_save_ifs"
;;
esac],
enable_static=AM_ENABLE_STATIC_DEFAULT)dnl
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
])
# AC_DISABLE_STATIC - set the default static flag to --disable-static
AC_DEFUN(AC_DISABLE_STATIC,
[AC_ENABLE_STATIC(no)])
# AM_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN(AM_PROG_LD,
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
# `yes'.
AC_DEFUN(AC_ENABLE_FAST_INSTALL,
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
AC_ARG_ENABLE(fast-install,
changequote(<<, >>)dnl
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
changequote([, ])dnl
[p=${PACKAGE-default}
case "$enableval" in
yes) enable_fast_install=yes ;;
no) enable_fast_install=no ;;
*)
enable_fast_install=no
# Look at the argument we got. We use all the common list separators.
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
for pkg in $enableval; do
if test "X$pkg" = "X$p"; then
enable_fast_install=yes
fi
done
IFS="$ac_save_ifs"
;;
esac],
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
])
# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
AC_DEFUN(AC_DISABLE_FAST_INSTALL,
[AC_ENABLE_FAST_INSTALL(no)])
# AC_PROG_LD - find the path to the GNU or non-GNU linker
AC_DEFUN(AC_PROG_LD,
[AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_CANONICAL_HOST])dnl
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
......@@ -359,8 +436,14 @@ if test "$ac_cv_prog_gcc" = yes; then
case "$ac_prog" in
# Accept absolute paths.
changequote(,)dnl
/* | [A-Za-z]:\\*)
/* | [A-Za-z]:[\\/]*)
re_direlt='/[^/][^/]*/\.\./'
changequote([,])dnl
# Canonicalize the path of ld
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
done
test -z "$LD" && LD="$ac_prog"
;;
"")
......@@ -406,10 +489,10 @@ else
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_SUBST(LD)
AM_PROG_LD_GNU
AC_PROG_LD_GNU
])
AC_DEFUN(AM_PROG_LD_GNU,
AC_DEFUN(AC_PROG_LD_GNU,
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
......@@ -419,8 +502,8 @@ else
fi])
])
# AM_PROG_NM - find the path to a BSD-compatible name lister
AC_DEFUN(AM_PROG_NM,
# A