* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for

win32 dependencies.
        * configure: Regenerated with autoconf 2.12.
        * Makefile.in: Add $(EXEEXT) to executable.
This commit is contained in:
Rob Savoye 1997-07-29 01:34:09 +00:00
parent f1bea83b2b
commit b9a5c27fa7
4 changed files with 668 additions and 124 deletions

View File

@ -1,3 +1,10 @@
Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* Makefile.in: Add $(EXEEXT) to executable.
Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".

View File

@ -59,6 +59,7 @@ INSTALL_DATA = @INSTALL_DATA@
AR = ar
AR_FLAGS = qv
CC = @CC@
EXEEXT = @EXEEXT@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
HLDFLAGS = @HLDFLAGS@
@ -167,7 +168,7 @@ CXX_FOR_TARGET = ` \
# go directly to ld.new in case this ld isn't capable of
# linking native object on this host. It can be renamed on
# install.
LD_PROG = ld.new
LD_PROG = ld.new$(EXEEXT)
all: $(LD_PROG)
.PHONY: all
@ -408,19 +409,19 @@ eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfmips.sc ${GEN_DEPENDS}
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfmips.sc ${GEN_DEPENDS}
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfmips.sc ${GEN_DEPENDS}
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfmips.sc ${GEN_DEPENDS}
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
@ -955,13 +956,13 @@ TAGS:
etags -t $(srcdir)/*.[chly] *.[chly]
install: ld.new installdirs
install: ld.new$(EXEEXT) installdirs
n=`echo ld | sed '$(program_transform_name)'`; \
$(INSTALL_PROGRAM) ld.new $(bindir)/$$n; \
$(INSTALL_PROGRAM) ld.new$(EXEEXT) $(bindir)/$$n$(EXEEXT); \
$(INSTALL_DATA) $(srcdir)/ld.1 $(man1dir)/$$n.1; \
rm -f $(tooldir)/bin/ld; \
ln $(bindir)/$$n $(tooldir)/bin/ld >/dev/null 2>/dev/null \
|| $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld
rm -f $(tooldir)/bin/ld$(EXEEXT); \
ln $(bindir)/$$n $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
|| $(INSTALL_PROGRAM) ld.new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT)
for f in ldscripts/*; do \
$(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
done

705
ld/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script
dnl
AC_PREREG(2.0)
AC_PREREG(2.5)
AC_INIT(ldmain.c)
AC_ARG_ENABLE(targets,
@ -16,8 +16,16 @@ AC_ARG_ENABLE(shared,
[case "${enableval}" in
yes) shared=true ;;
no) shared=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for BFD shared option]) ;;
*bfd*) shared=true ;;
*) shared=false ;;
esac])dnl
AC_ARG_ENABLE(64-bit-bfd,
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
[case "${enableval}" in
yes) want64=true ;;
no) want64=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
esac],[want64=false])dnl
AC_CONFIG_HEADER(config.h:config.in)
@ -34,11 +42,14 @@ AC_ARG_PROGRAM
# host-specific stuff:
AC_PROG_CC
AC_PROG_INSTALL
CY_CYGWIN32
CY_EXEEXT
. ${srcdir}/configure.host
AC_SUBST(CFLAGS)
AC_SUBST(HLDFLAGS)
AC_SUBST(HLDENV)
AC_SUBST(RPATH_ENVVAR)
AC_SUBST(HDEFINES)
AC_SUBST(HOSTING_CRT0)
@ -49,15 +60,27 @@ AC_SUBST(NATIVE_LIB_DIRS)
# opcodes libraries. However, if we are building shared libraries, we
# need to handle some hosts specially.
BFDLIB='-L../bfd -lbfd'
if test "${shared}" = "true"; then
case "${host}" in
*-*-sunos*)
# On SunOS, we must link against the name we are going to install,
# not -lbfd, since SunOS does not support SONAME.
case "${host}" in
*-*-sunos*)
# On SunOS, we must link against the name we are going to install,
# not -lbfd, since SunOS does not support SONAME.
if test "${shared}" = "true"; then
BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
;;
esac
fi
fi
;;
alpha*-*-osf*)
# On Alpha OSF/1, the native linker searches all the -L
# directories for any LIB.so files, and only then searches for any
# LIB.a files. That means that if there is an installed
# libbfd.so, but this build is not done with --enable-shared, the
# link will wind up being against the install libbfd.so rather
# than the newly built libbfd. To avoid this, we must explicitly
# link against libbfd.a when --enable-shared is not used.
if test "${shared}" != "true"; then
BFDLIB='../bfd/libbfd.a'
fi
;;
esac
AC_SUBST(BFDLIB)
AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h)
@ -66,7 +89,10 @@ AC_HEADER_DIRENT
BFD_BINARY_FOPEN
BFD_NEED_DECLARATION(strstr)
BFD_NEED_DECLARATION(free)
BFD_NEED_DECLARATION(sbrk)
BFD_NEED_DECLARATION(getenv)
# target-specific stuff:
@ -81,7 +107,7 @@ do
all_targets=true
else
# Canonicalize the secondary target names.
result=`$ac_config_sub $targ_alias 2>/dev/null`
result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
if test -n "$result"; then
targ=$result
else
@ -112,8 +138,15 @@ done
AC_SUBST(EMUL)
AC_SUBST(TDIRS)
dnl FIXME: We will build a 64 bit BFD for a 64 bit host or a 64 bit
dnl target, and in those cases we should also build the 64 bit
dnl emulations.
if test x${all_targets} = xtrue; then
EMULATION_OFILES='$(ALL_EMULATIONS)'
if test x${want64} = xtrue; then
EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
else
EMULATION_OFILES='$(ALL_EMULATIONS)'
fi
else
EMULATION_OFILES=$all_emuls
fi