This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Don't handle unsupported OSes in configure
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 26 Apr 2012 13:45:20 +0000 (UTC)
- Subject: Don't handle unsupported OSes in configure
configure.in has cases handling various OSes that are not actually
supported in libc or ports. (This includes arm*-none* "standalone"
support, a relic of some support that no longer exists in ports.)
I propose this patch to remove these cases as unused. Obviously any
case relevant to a new port can be added back with that port.
Generally such a case will involve a target triplet different from
that used for the native libc under that kernel (in the modern world
of shared libraries, you can't expect to use the same compiler
configuration in both cases); for example, kFreeBSD/GNU support will
involve kfreebsd-gnu as the OS name and so will be unaffected by the
removal of plain "freebsd*" handling here. (The "*bsd*" case might
have covered kFreeBSD/GNU, but I think that was too general a case
anyway; a case should be specific to the actual OS supported.)
Tested x86_64.
2012-04-26 Joseph Myers <joseph@codesourcery.com>
* configure.in (arm*-none*): Do not allow without
--enable-hacker-mode.
(netbsd*): Remove OS case.
(386bsd*): Likewise.
(freebsd*): Likewise.
(bsdi*): Likewise.
(osf*): Likewise.
(sunos*): Likewise.
(ultrix*): Likewise.
(newsos*): Likewise.
(dynix*): Likewise.
(*bsd*): Likewise.
(sysv*): Likewise.
(isc*): Likewise.
(esix*): Likewise.
(sco*): Likewise.
(minix*): Likewise.
(irix4*): Likewise.
(irix6*): Likewise.
(solaris[2-9]*): Likewise.
(none): Likewise.
* configure: Regenerated.
diff --git a/configure.in b/configure.in
index 42d521f..0f5193e 100644
--- a/configure.in
+++ b/configure.in
@@ -463,7 +463,7 @@ AC_SUBST(add_on_subdirs)
###
if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
case "$machine-$host_os" in
- *-linux* | *-gnu* | arm*-none*)
+ *-linux* | *-gnu*)
;;
*)
echo "*** The GNU C library is currently not available for this platform."
@@ -615,18 +615,8 @@ os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
test "x$base_os" != x || case "$os" in
gnu*)
base_os=mach/hurd ;;
-netbsd* | 386bsd* | freebsd* | bsdi*)
- base_os=unix/bsd/bsd4.4 ;;
-osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
- base_os=unix/bsd ;;
-sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
+linux*)
base_os=unix/sysv ;;
-irix6*)
- base_os=unix/sysv/irix6/$os ;;
-solaris[2-9]*)
- base_os=unix/sysv/sysv4 ;;
-none)
- base_os=standalone ;;
esac
# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
--
Joseph S. Myers
joseph@codesourcery.com