Fri Jun 27 19:19:12 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
[deliverable/binutils-gdb.git] / configure.in
index f91ba09d3b5005d8e94eef18b148861ca734edc5..8d8888bf110f5912c26eb372a24cb1de3db26b81 100644 (file)
@@ -14,7 +14,7 @@
 ## For more information on these two systems, check out the documentation
 ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).  
 
-#   Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc.
+#   Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -42,6 +42,9 @@
 # these libraries are used by various programs built for the host environment
 #
 host_libs="mmalloc libiberty opcodes bfd readline gash db tcl tk tclX itcl"
+# start-sanitize-ide
+host_libs="${host_libs} libide"
+# end-sanitize-ide
 
 if [ "${enable_gdbgui}" = "yes" ] ; then
        host_libs="${host_libs} libgui"
@@ -50,8 +53,10 @@ fi
 # these tools are built for the host environment
 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
 # know that we are building the simulator.
-host_tools="texinfo byacc flex bison binutils ld gas gcc sim gdb make patch prms send-pr gprof gdbtest tgas etc expect dejagnu bash m4 autoconf ispell grep diff rcs cvs fileutils shellutils time textutils wdiff find emacs emacs19 uudecode hello tar gzip indent recode release sed utils guile perl apache inet gawk findutils sn"
-
+host_tools="texinfo byacc flex bison binutils ld gas gcc sim gdb make patch prms send-pr gprof gdbtest tgas etc expect dejagnu bash m4 autoconf automake ispell grep diff rcs cvs fileutils shellutils time textutils wdiff find emacs emacs19 uudecode hello tar gzip indent recode release sed utils guile perl apache inet gawk findutils sn"
+# start-sanitize-ide
+host_tools="${host_tools} ilu vmake"
+# end-sanitize-ide
 
 # these libraries are built for the target environment, and are built after
 # the host libraries and the host tools (which may be a cross compiler)
@@ -66,7 +71,7 @@ target_libs="target-libiberty target-libgloss target-newlib target-libio target-
 # list belongs in this list.  those programs are also very likely
 # candidates for the "native_only" list which follows
 #
-target_tools="target-examples target-groff"
+target_tools="target-examples target-groff target-gperf"
 
 ################################################################################
 
@@ -80,11 +85,11 @@ target_tools="target-examples target-groff"
 #
 # This must be a single line because of the way it is searched by grep in
 # the code below.
-native_only="autoconf cvs emacs emacs19 fileutils find gawk grep gzip hello indent ispell m4 rcs recode sed shellutils tar textutils gash uudecode wdiff gprof target-groff guile perl apache inet time bash prms sn"
+native_only="autoconf automake cvs emacs emacs19 fileutils find gawk grep gzip hello indent ispell m4 rcs recode sed shellutils tar textutils gash uudecode wdiff gprof target-groff guile perl apache inet time bash prms sn gnuserv target-gperf"
 
 # directories to be built in a cross environment only
 #
-cross_only="target-libiberty target-libgloss target-newlib"
+cross_only="target-libgloss target-newlib"
 
 ## All tools belong in one of the four categories, and are assigned above
 ## We assign ${configdirs} this way to remove all embedded newlines.  This
@@ -191,6 +196,7 @@ if [ x${shared} = xyes ]; then
     hppa*)             waugh=config/mh-papic ;;
     i[3456]86-*)       waugh=config/mh-x86pic ;;
     sparc64-*)         waugh=config/mh-sparcpic ;;
+    powerpc*-*)                waugh=config/mh-ppcpic ;;
     *)                 waugh=config/mh-${host_cpu}pic ;;
   esac
   if [ -f ${srcdir}/${waugh} ]; then
@@ -228,6 +234,9 @@ case ${with_x} in
        ;;
   no)
        skipdirs="${skipdirs} tk gash"
+# start-sanitize-ide
+       skipdirs="${skipdirs} libide vmake"
+# end-sanitize-ide
        ;;
   *)
        echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2
@@ -247,21 +256,27 @@ if [ x"${host}" = x"${target}" ] ; then
        skipdirs="${skipdirs} ${cross_only}"
        is_cross_compiler=no
        target_subdir=.
+       case "${host}" in
+          # We need multilib support for irix6, to get libiberty built
+         #  properly for o32 and n32.
+          mips-sgi-irix6*) target_subdir=${host} ;;
+       esac
 else
        # similarly, don't build the targets in the 'native only' 
        # list when building a cross compiler
        skipdirs="${skipdirs} ${native_only}"
        is_cross_compiler=yes
        target_subdir=${target_alias}
-       if [ ! -d ${target_subdir} ] ; then
-           if mkdir ${target_subdir} ; then true
-           else
-               echo "'*** could not make ${PWD=`pwd`}/${target_subdir}" 1>&2
-                exit 1
-           fi
-       fi
 fi     
 
+if [ ! -d ${target_subdir} ] ; then
+  if mkdir ${target_subdir} ; then true
+  else
+    echo "'*** could not make ${PWD=`pwd`}/${target_subdir}" 1>&2
+    exit 1
+  fi
+fi
+
 copy_dirs=
 
 # Handle --with-headers=XXX.  The contents of the named directory are
@@ -338,7 +353,7 @@ while [ $# != 0 ]; do
       :
     else
       echo >config.temp
-      ${srcdir}/install.sh -c -m 644 config.temp $2/COPIED
+      ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
     fi
 
     # Copy the directory, assuming we have tar.
@@ -371,21 +386,31 @@ noconfigdirs=""
 
 case "${host}" in
   i[3456]86-*-vsta)
-    noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inet itcl db sn"
+    noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inet itcl db sn gnuserv"
+# start-sanitize-ide
+    noconfigdirs="$noconfigdirs libide vmake"
+# end-sanitize-ide
     ;;
   i[3456]86-*-go32)
-    noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inet itcl db sn"
+    noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inet itcl db sn gnuserv"
+# start-sanitize-ide
+    noconfigdirs="$noconfigdirs libide vmake"
+# end-sanitize-ide
        ;;
   *-*-cygwin32)
-     noconfigdirs="expect dejagnu cvs autoconf bison send-pr gprof rcs guile perl texinfo apache inet itcl db sn"
+     noconfigdirs="expect dejagnu cvs autoconf automake bison send-pr gprof rcs guile perl texinfo apache inet"
     ;;
   *-*-windows*)
 # This is only used to build WinGDB...
-     configdirs="bfd gdb libiberty opcodes readline sim"
+# note that powerpc-eabi depends on sim configured before gdb.
+     configdirs="bfd libiberty opcodes readline sim gdb"
      target_configdirs=
     ;;
   ppc*-*-pe)
-     noconfigdirs="patch diff make tk tcl expect dejagnu cvs autoconf texinfo bison send-pr gprof rcs guile perl apache inet itcl db sn"
+     noconfigdirs="patch diff make tk tcl expect dejagnu cvs autoconf automake texinfo bison send-pr gprof rcs guile perl apache inet itcl db sn gnuserv"
+# start-sanitize-ide
+     noconfigdirs="$noconfigdirs libide vmake"
+# end-sanitize-ide
     ;;
 esac
 
@@ -429,7 +454,10 @@ case "${target}" in
     ;;
 # start-sanitize-d30v
   d30v-*-*)
-    noconfigdirs="$noconfigdirs tcl tk expect gcc gdb newlib target-librx target-libg++ target-libstdc++ target-libio target-libgloss itcl db sn target-libiberty target-newlib target-examples"
+    noconfigdirs="$noconfigdirs tcl tk expect gcc gdb newlib target-librx target-libg++ target-libstdc++ target-libio target-libgloss itcl db sn gnuserv target-libiberty target-newlib target-examples"
+# start-sanitize-ide
+    noconfigdirs="$noconfigdirs libide vmake"
+# end-sanitize-ide
     ;;
 # end-sanitize-d30v
   h8300*-*-* | \
@@ -437,7 +465,8 @@ case "${target}" in
     noconfigdirs="$noconfigdirs target-libg++ target-libstdc++ target-libio target-librx target-libgloss"
     ;;
   hppa*-*-*elf* | \
-  hppa*-*-lites*)
+  hppa*-*-lites* | \
+  hppa*-*-rtems* )
     # Do configure ld/binutils/gas for this case.
     ;;
   hppa*-*-*)
@@ -456,14 +485,18 @@ case "${target}" in
     ;;
   *-*-cygwin32)
     target_configdirs="$target_configdirs target-winsup"
-    noconfigdirs="$noconfigdirs expect target-libgloss itcl db sn"
+    noconfigdirs="$noconfigdirs expect target-libgloss"
     # always build newlib.
     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
 
     # Can't build gdb for cygwin32 if not native.
     case "${host}" in
-      *-*-cygwin32) ;; # keep gdb
-      *) noconfigdirs="$noconfigdirs gdb"
+      *-*-cygwin32) ;; # keep gdb tcl tk expect etc.
+      *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl db sn gnuserv"
+# start-sanitize-ide
+         noconfigdirs="$noconfigdirs libide vmake"
+# end-sanitize-ide
+         ;;
     esac
     ;;    
   i[3456]86-*-pe)
@@ -506,13 +539,19 @@ case "${target}" in
     ;;
   powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
     target_configdirs="$target_configdirs target-winsup"
-    noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl db sn"
+    noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl db sn gnuserv"
+# start-sanitize-ide
+    noconfigdirs="$noconfigdirs libide vmake"
+# end-sanitize-ide
     # always build newlib.
     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
     ;;
     # This is temporary until we can link against shared libraries
   powerpcle-*-solaris*)
-    noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl db sn"
+    noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl db sn gnuserv"
+# start-sanitize-ide
+    noconfigdirs="$noconfigdirs libide vmake"
+# end-sanitize-ide
     ;;
   rs6000-*-lynxos*)
     # The CVS server code doesn't work on the RS/6000
@@ -536,7 +575,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs ld gprof emacs target-libgloss"
     ;;
   mips*-*-irix6*)
-    # The GNU linker does not support shared libraries.
+    # The GNU assembler and linker do not support IRIX 6.
     # emacs is emacs 18, which does not work on Irix 5 (emacs19 does work)
     noconfigdirs="$noconfigdirs ld gas gprof emacs target-libgloss"
     ;;
@@ -567,11 +606,6 @@ case "${target}" in
            use_gnu_ld=no
     fi
     ;;
-# start-sanitize-tic80
-  tic80-*-*)
-    noconfigdirs="$noconfigdirs gdb"
-    ;;
-# end-sanitize-tic80
   v810-*-*)
     noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libio target-libg++ target-libstdc++ opcodes target-libgloss"
     ;;
@@ -614,7 +648,7 @@ esac
 # If we are building a Canadian Cross, discard tools that can not be built
 # using a cross compiler.  FIXME: These tools should be fixed.
 if [ "${build}" != "${host}" ]; then
-  noconfigdirs="$noconfigdirs expect dejagnu itcl db sn"
+  noconfigdirs="$noconfigdirs expect dejagnu"
 fi
 
 # Make sure we don't let GNU ld be added if we didn't want it.
@@ -764,7 +798,8 @@ fi
 if [ x${shared} = xyes ]; then
   case "${target}" in
     hppa*)             target_makefile_frag=config/mt-papic ;;
-    i[3456]86-*)               target_makefile_frag=config/mt-x86pic ;;
+    i[3456]86-*)       target_makefile_frag=config/mt-x86pic ;;
+    powerpc*-*)                target_makefile_frag=config/mt-ppcpic ;;
     *)                 target_makefile_frag=config/mt-${target_cpu}pic ;;
   esac
 fi
@@ -839,6 +874,7 @@ targargs=`echo "${arguments}" | \
        sed -e 's/--norecursion//' \
            -e 's/--cache[a-z-]*=[^     ]*//' \
            -e 's/--ho[a-z-]*=[^        ]*//' \
+           -e 's/--bu[a-z-]*=[^        ]*//' \
            -e 's/--ta[a-z-]*=[^        ]*//'`
 
 # Passing a --with-cross-host argument lets the target libraries know
@@ -850,7 +886,12 @@ if [ x${is_cross_compiler} = xyes ]; then
   targargs="--with-cross-host=${host_alias} ${targargs}"
 fi
 
-targargs="--host=${target_alias} ${targargs}"
+# Default to --enable-multilib.
+if [ x${enable_multilib} = x ]; then
+  targargs="--enable-multilib ${targargs}"
+fi
+
+targargs="--host=${target_alias} --build=${build_alias} ${targargs}"
 sed -e "s:^TARGET_CONFIGDIRS[  ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \
     -e "s%^CONFIG_ARGUMENTS[   ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \
     -e "s%^TARGET_SUBDIR[      ]*=.*$%TARGET_SUBDIR = ${target_subdir}%" \
This page took 0.084612 seconds and 4 git commands to generate.