gcc -Wall lint:
[binutils-gdb.git] / configure.in
index 08d8104ffcfb17b8d2d3c65f829fd5c04d3181ab..4fa6382a1f908251b69800471752e98b505f7771 100644 (file)
@@ -30,9 +30,9 @@ host_libs="mmalloc libiberty opcodes bfd readline glob gash tcl tk tclX"
 #
 host_tools="texinfo byacc flex bison binutils ld gas gcc gdb make patch
            prms send-pr gprof gdbtest tgas etc expect dejagnu sim
-            m4 autoconf ispell grep diff rcs cvs dosutils fileutils shellutils
+            m4 autoconf ispell grep diff rcs cvs fileutils shellutils
            textutils wdiff find emacs uudecode hello tar gzip indent
-           recode release"
+           recode release sed utils"
 
 
 # these libraries are built for the target environment, and are built after
@@ -88,10 +88,10 @@ case "${host}" in
   m68k-apollo-bsd*)       host_makefile_frag=config/mh-a68bsd ;;
   m88k-motorola-sysv*)    host_makefile_frag=config/mh-delta88;;
   m88k-dg-dgux*)         host_makefile_frag=config/mh-dgux ;;
-  mips-dec-ultrix*)       host_makefile_frag=config/mh-decstation ;;
-  mips-sgi-irix4*)        host_makefile_frag=config/mh-irix4 ;;
-  mips-sgi-irix3*)        host_makefile_frag=config/mh-sysv ;;
-  mips-*-sysv*)                  host_makefile_frag=config/mh-riscos ;;
+  mips*-dec-ultrix*)      host_makefile_frag=config/mh-decstation ;;
+  mips*-sgi-irix4*)       host_makefile_frag=config/mh-irix4 ;;
+  mips*-sgi-irix3*)       host_makefile_frag=config/mh-sysv ;;
+  mips*-*-sysv*)         host_makefile_frag=config/mh-riscos ;;
   i[34]86-ncr-sysv4*)     host_makefile_frag=config/mh-ncr3000 ;;
   i[34]86-*-sco*)         host_makefile_frag=config/mh-sco ;;
   i[34]86-*-isc*)        host_makefile_frag=config/mh-sysv ;;
@@ -106,7 +106,8 @@ case "${host}" in
   *-sun-*)               host_makefile_frag=config/mh-sun ;;
   *-hp-hpux)              host_makefile_frag=config/mh-hpux ;;
   *-*-hiux*)              host_makefile_frag=config/mh-hpux ;;
-  *-*-lynxos*)           host_makefile_frag=config/mh-lynxos ;;
+  *-*-lynxos*)           host_makefile_frag=config/mh-lynxos
+                               cross_only="xiberty" ;;
   *-*-sysv4*)             host_makefile_frag=config/mh-sysv4 ;;
   *-*-sysv*)              host_makefile_frag=config/mh-sysv ;;
 esac
@@ -165,7 +166,7 @@ fi
 # complain if the target or host isn't supported.
 
 case "${host}" in
-  alpha-dec-osf1)
+  alpha-dec-osf1*)
     configdirs=`echo ${configdirs} | sed -e 's/gdb//'`
     ;;
   i[34]86-*-go32)
@@ -179,8 +180,8 @@ case "${host}" in
 esac
 
 case "${target}" in
-  alpha-dec-osf1)
-    configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas //'`
+  alpha-dec-osf1*)
+    configdirs=`echo ${configdirs} | sed -e 's/gas //'`
     configdirs=`echo ${configdirs} | sed -e 's/gdb//;s/emacs//;s/fileutils//'`
     configdirs=`echo ${configdirs} | sed -e 's/grep//;s/libg++//;s/libio//'`
     ;; 
@@ -199,7 +200,17 @@ case "${target}" in
   hppa*-*-osf)
     # Do configure ld/binutils/gas for this case.
     ;;
+  m68k-hp-hpux*)
+    configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
+    ;; 
   hppa*-*-*)
+    # HP's C compiler doesn't handle Emacs correctly (but on BSD and Mach
+    # cc is gcc, and on any system a user should be able to link cc to
+    # whatever they want.  FIXME, emacs).
+    case "${CC}" in
+       "" | cc*) configdirs=`echo ${configdirs} | sed -e 's/emacs//'` ;;
+        *) echo "building emacs" ;;
+    esac
     configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas /pagas /;s/shellutils//'`
     gasdir=pagas
     ;;
@@ -207,8 +218,18 @@ case "${target}" in
     # add the go32 support tools to the list
     configdirs=`echo go32 ${configdirs}`
     ;;
+  i[34]86-*-sysv4*)
+    # The SYSV4 C compiler doesn't handle Emacs correctly
+    case "${CC}" in
+       "" | cc*) configdirs=`echo ${configdirs} | sed -e 's/emacs//'` ;;
+        *) ;;
+    esac
+    # but that's okay since emacs doesn't work anyway
+    configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
+    ;;
   rs6000-*-*)
-    configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas //;s/gprof//'`
+    # a gcc built textutils will cause the linker to hang on 'join'
+    configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas //;s/gprof//;s/textutils//'`
     ;;
   mips-*-*)
     configdirs=`echo ${configdirs} | sed -e 's/gprof//'`
@@ -222,6 +243,9 @@ case "${target}" in
   sparc-*-sunos4*)
     use_gnu_ld=no
     ;;
+  sparc-*-solaris2*)
+    configdirs=`echo ${configdirs} | sed -e 's/ld//'`
+    ;;
   i[34]86-*-sco*)
     configdirs=`echo ${configdirs} | sed -e 's/gprof//'`
     ;;