Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
[platform/upstream/glibc.git] / configure.in
index 711635c..e3154b6 100644 (file)
@@ -1,6 +1,6 @@
 Dnl Process this file with autoconf to produce a configure script.
 AC_REVISION([$CVSid$])
-AC_PREREQ(2.9)dnl              dnl Minimum Autoconf version required.
+AC_PREREQ(2.10)dnl             dnl Minimum Autoconf version required.
 AC_INIT(features.h)
 AC_CONFIG_HEADER(config.h)
 
@@ -34,7 +34,7 @@ esac
 
 dnl Arguments to specify presence of other packages/features.
 AC_ARG_WITH(fp, dnl
-  --with-fp              if using floating-point hardware,
+  --with-fp              if using floating-point hardware [default=yes],
            with_fp=$withval, with_fp=yes)
 AC_ARG_WITH(gnu-binutils, dnl
   --with-gnu-binutils    if using GNU binutils (as and ld),
@@ -86,18 +86,12 @@ esac
 case "$host_os" in
 gnu* | linux* | sysv4* | solaris2*)
   # These systems always use the ELF format.
-  elf=yes ;;
-esac
-
-# Linux/Alpha does not use ELF yet.
-case "$host_cpu-$host_os" in
-alpha*-linux*)
-  gnu_ld=no elf=no ;;
+  if test "$host_cpu" != alpha; then   # Linux/Alpha is not fully ELF yet
+    elf=yes
+  fi
+  ;;
 esac
 
-# Compute the list of sysdep directories for this configuration.
-sysdep_dir=$srcdir/sysdeps
-AC_CACHE_CHECK(sysdep dirs, libc_cv_sysdirs, [dnl
 machine=$config_machine
 vendor=$config_vendor
 os=$config_os
@@ -107,20 +101,27 @@ changequote(,)dnl
 # Expand the configuration machine name into a subdirectory by architecture
 # type and particular chip.
 case "$machine" in
-a29k | am29000)        machine=a29k ;;
-alpha*)                machine=alpha/$machine ;;
-hppa*)         machine=hppa/$machine ;;
-i[345]86)      machine=i386/$machine ;;
-m680?0)                machine=m68k/$machine ;;
-m68k)          machine=m68k/m68020 ;;
-m88???)                machine=m88k/$machine ;;
-m88k)          machine=m88k/m88100 ;;
-mips*)         machine=mips/$machine ;;
-mips64*)       machine=mips/mips64/$machine ;;
-sparc[6789])   machine=sparc/$machine ;;
-supersparc)    machine=sparc/sparc8 ;;
+a29k | am29000)        base_machine=a29k machine=a29k ;;
+alpha*)                base_machine=alpha machine=alpha/$machine ;;
+hppa*)         base_machine=hppa machine=hppa/$machine ;;
+i[345]86)      base_machine=i386 machine=i386/$machine ;;
+m680?0)                base_machine=m68k machine=m68k/$machine ;;
+m68k)          base_machine=m68k machine=m68k/m68020 ;;
+m88???)                base_machine=m88k machine=m88k/$machine ;;
+m88k)          base_machine=m88k machine=m88k/m88100 ;;
+mips*)         base_machine=mips machine=mips/$machine ;;
+mips64*)       base_machine=mips64 machine=mips/mips64/$machine ;;
+sparc[6789])   base_machine=sparc machine=sparc/$machine ;;
+supersparc)    base_machine=sparc machine=sparc/sparc8 ;;
 esac
+changequote([,])dnl
+AC_SUBST(base_machine)
 
+# Compute the list of sysdep directories for this configuration.
+sysdep_dir=$srcdir/sysdeps
+AC_CACHE_CHECK(sysdep dirs, libc_cv_sysdirs, [dnl
+dnl We need to use [ and ] for other purposes for a while now.
+changequote(,)dnl
 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
 
@@ -293,11 +294,13 @@ if test "$INSTALL" = "${srcdir}/install-sh"; then
   # The makefiles need to use a different form to find it in $srcdir.
   INSTALL='$(..)./install-sh'
 fi
+AC_PROG_LN_S
+AC_CHECK_PROGS(MSGFMT, msgfmt gmsgfmt, :)
 
 AC_CHECK_TOOL(CC, gcc)
+AC_PROG_CPP
 AC_CHECK_TOOL(AR, ar)
 AC_CHECK_TOOL(RANLIB, ranlib, :)
-AC_PROG_CPP
 
 AC_CACHE_CHECK(for signed size_t type, libc_cv_signed_size_t, [dnl
 echo '#include <stddef.h>
@@ -400,7 +403,8 @@ fi
 if test $elf != yes; then
   AC_CACHE_CHECK(for .init and .fini sections, libc_cv_have_initfini,
                 [AC_TRY_COMPILE(, [asm (".section .init");
-                                   asm (".section .fini");],
+                                   asm (".section .fini");
+                                   asm (".text");],
                                 libc_cv_have_initfini=yes,
                                 libc_cv_have_initfini=no)])
   AC_SUBST(libc_cv_have_initfini)dnl