diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-08-01 03:49:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-08-01 03:49:39 +0000 |
commit | d467c30d18f2f620113efbf52dbed09007734246 (patch) | |
tree | a56fb83aae978bbfcd9cd836e1b70537c7099710 /binutils/configure.in | |
parent | 1daed53f649e59ca014be31f814b040eb4d940d6 (diff) | |
download | gdb-d467c30d18f2f620113efbf52dbed09007734246.zip gdb-d467c30d18f2f620113efbf52dbed09007734246.tar.gz gdb-d467c30d18f2f620113efbf52dbed09007734246.tar.bz2 |
* Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, from old aclocal.m4.
* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
shared library handling; now handled by libtool. Replace
AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
AM_EXEEXT. Replace AC_PROG_INSTALL with AM_PROG_INSTALL. Remove
stamp-h handling in AC_OUTPUT.
* acconfig.h: Mention PACKAGE and VERSION.
* stamp-h.in: New file.
* Makefile.in: Now built with automake.
* aclocal.m4: Now built with aclocal.
* config.in, configure: Rebuild.
Diffstat (limited to 'binutils/configure.in')
-rw-r--r-- | binutils/configure.in | 92 |
1 files changed, 19 insertions, 73 deletions
diff --git a/binutils/configure.in b/binutils/configure.in index 67fdb06..db82531 100644 --- a/binutils/configure.in +++ b/binutils/configure.in @@ -3,6 +3,12 @@ dnl AC_PREREQ(2.5) AC_INIT(ar.c) +AC_CANONICAL_SYSTEM + +AM_INIT_AUTOMAKE(binutils, 2.8.2) + +AM_PROG_LIBTOOL + AC_ARG_ENABLE(targets, [ --enable-targets alternative target configurations], [case "${enableval}" in @@ -11,17 +17,6 @@ AC_ARG_ENABLE(targets, no) enable_targets= ;; *) enable_targets=$enableval ;; esac])dnl -AC_ARG_ENABLE(shared, -[ --enable-shared build shared BFD library], -[case "${enableval}" in - yes) shared=true shared_bfd=true shared_opcodes=true ;; - no) shared=false ;; - *bfd*opcodes*) shared=true shared_bfd=true shared_opcodes=true ;; - *opcodes*bfd*) shared=true shared_bfd=true shared_opcodes=true ;; - *bfd*) shared=true shared_bfd=true ;; - *opcodes*) shared=true shared_opcodes=true ;; - *) shared=false ;; -esac])dnl AC_ARG_ENABLE(commonbfdlib, [ --enable-commonbfdlib build shared BFD/opcodes/libiberty library], [case "${enableval}" in @@ -30,10 +25,8 @@ AC_ARG_ENABLE(commonbfdlib, *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;; esac])dnl -AC_CONFIG_HEADER(config.h:config.in) +AM_CONFIG_HEADER(config.h:config.in) -AC_CONFIG_AUX_DIR(`cd $srcdir/..; pwd`) -AC_CANONICAL_SYSTEM if test -z "$target" ; then AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) fi @@ -42,73 +35,27 @@ if test -z "$host" ; then fi AC_ARG_PROGRAM +AC_PROG_CC + +AC_PROG_YACC +AC_PROG_LEX +AC_DECL_YYTEXT + +AM_MAINTAINER_MODE +AM_CYGWIN32 +AM_EXEEXT + # host-specific stuff: HDEFINES= -HLDFLAGS= -HLDENV= -RPATH_ENVVAR=LD_LIBRARY_PATH - -AC_PROG_CC . ${srcdir}/../bfd/configure.host AC_SUBST(HDEFINES) -AC_SUBST(HLDFLAGS) -AC_SUBST(HLDENV) -AC_SUBST(RPATH_ENVVAR) AR=${AR-ar} AC_SUBST(AR) AC_PROG_RANLIB -AC_PROG_INSTALL - -# For most hosts we can use a simple definition to pick up the BFD and -# opcodes libraries. However, if we are building shared libraries, we -# need to handle some hosts specially. -BFDLIB='-L../bfd -lbfd' -OPCODES='-L../opcodes -lopcodes' - -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_bfd}" = "true"; then - BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`' - fi - if test "${shared_opcodes}" = "true"; then - OPCODES='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`' - 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_bfd}" != "true"; then - BFDLIB='../bfd/libbfd.a' - fi - if test "${shared_opcodes}" != "true"; then - OPCODES='../opcodes/libopcodes.a' - fi - ;; -esac - -if test "${commonbfdlib}" = "true"; then - # when a shared libbfd is built with --enable-commonbfdlib, - # all of libopcodes is available in libbfd.so. Unfortunately, on - # HP/UX, when using gcc -g, the linker does a static link, so we - # need to continue linking against opcodes on that platform. - case "${host}" in - *-*-hpux*) ;; - *) OPCODES= ;; - esac -fi - -AC_SUBST(BFDLIB) -AC_SUBST(OPCODES) +AM_PROG_INSTALL BFD_CC_FOR_BUILD @@ -258,5 +205,4 @@ else fi AC_SUBST(UNDERSCORE) -AC_OUTPUT(Makefile, -[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac]) +AC_OUTPUT(Makefile) |