diff options
Diffstat (limited to 'gas/configure.in')
-rw-r--r-- | gas/configure.in | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/gas/configure.in b/gas/configure.in index 3275b8e..17893fe 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -26,9 +26,13 @@ esac])dnl AC_ARG_ENABLE(shared, [ --enable-shared build shared BFD library], [case "${enableval}" in - yes) shared=true ;; + yes) shared=true shared_bfd=true shared_opcodes=true ;; no) shared=false ;; - *) AC_MSG_ERROR([bad value ${enableval} for BFD shared option]) ;; + *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 # Generate a header file -- gets more post-processing by Makefile later. @@ -230,6 +234,18 @@ changequote([,])dnl *) targ=ppc-lit ;; esac ;; + ppc-*-linux*) fmt=elf + case "$endian" in + big) targ=ppc-big ;; + *) AC_MSG_ERROR(Linux must be configured big endian) ;; + esac + ;; + ppc-*-solaris*) fmt=elf + case "$endian" in + big) AC_MSG_ERROR(Solaris must be configured little endian) ;; + *) targ=ppc-sol ;; + esac + ;; ppc-*-macos* | ppc-*-mpw*) fmt=coff em=macos ;; ppc-*-netware*) fmt=elf em=ppcnw ;; @@ -300,7 +316,7 @@ changequote([,])dnl ;; *) need_opcodes=yes - if test "${shared}" = "true"; then + if test "${shared_opcodes}" = "true"; then # A shared libopcodes must be linked against libbfd. need_bfd=yes fi @@ -519,7 +535,7 @@ case "${need_opcodes}" in OPCODES_LIB='-L../opcodes -lopcodes' # We need to handle some special cases if opcodes was built shared. - if test "${shared}" = "true"; then + if test "${shared_opcodes}" = "true"; then case "${host}" in *-*-sunos*) # On SunOS, we must link against the name we are going to install, @@ -540,7 +556,7 @@ case "${need_bfd}" in ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h" # We need to handle some special cases if BFD was built shared. - if test "${shared}" = "true"; then + if test "${shared_bfd}" = "true"; then case "${host}" in *-*-sunos*) # On SunOS, we must link against the name we are going to install, |