From 2e013bb7663d652d32ca4a6f1ecc0768e4a2e8e5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 28 Mar 1997 23:16:18 +0000 Subject: Fri Mar 28 18:03:19 1997 Alan Modra * configure.in: Add AC_ARG_ENABLE for commonbfdlib. If it is set, set OPCODES_LIB to empty. * configure: Rebuild. --- gas/configure.in | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'gas/configure.in') diff --git a/gas/configure.in b/gas/configure.in index d102e31..596fc19 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -34,6 +34,13 @@ AC_ARG_ENABLE(shared, *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 + yes) commonbfdlib=true ;; + no) commonbfdlib=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;; +esac])dnl # Generate a header file -- gets more post-processing by Makefile later. AC_CONFIG_HEADER(conf) @@ -288,6 +295,8 @@ changequote([,])dnl sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;; sparc-*-coff) fmt=coff ;; + sparc-*-linux*aout*) fmt=aout em=linux ;; + sparc-*-linux*) fmt=elf em=linux ;; sparc-*-lynxos*) fmt=coff em=lynx ;; sparc-fujitsu-none) fmt=aout ;; sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*) @@ -614,8 +623,6 @@ yes) esac ;; esac -AC_SUBST(OPCODES_DEP) -AC_SUBST(OPCODES_LIB) case "${need_bfd}" in yes) @@ -645,10 +652,20 @@ yes) fi ;; esac + + if test "${commonbfdlib}" = "true"; then + # when a shared libbfd is built with --enable-commonbfdlib, + # all of libopcodes is available in libbfd.so + OPCODES_LIB= + fi ;; esac + AC_SUBST(BFDDEP) AC_SUBST(BFDLIB) +AC_SUBST(OPCODES_DEP) +AC_SUBST(OPCODES_LIB) + AC_SUBST(ALL_OBJ_DEPS) AC_DEFINE_UNQUOTED(TARGET_ALIAS, "${target_alias}") -- cgit v1.1