This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Recognise i586-pc-syllable


> On Wed, 2007-12-05 at 02:59 -0800, Roland McGrath wrote:
> It looks to me like you could be using a preconfigure file of:
> 
> case "$host_os" in
> syllable*) elf=yes; libc_config_ok=yes ;;
> esac
> 
> and not need any configure.in change.

I'm just splitting out my original changes as suggested. The only thing
that hasn't worked so far was that I need to set $base_os, but the
configure script always sets this variable itself, regardless of if I've
already set it in the add-on configure fragment. The attached patch
fixes this so that configure checks that $libc_config_ok is not set
before it sets $base_os itself.

2008-01-24  Kristian Van Der Vliet  <vanders@liqwyd.com>

        * configure.in: Check $libc_config_ok before setting $base_os
        * configure: Regenerate.


-- 
Vanders
http://www.syllable.org
--- glibc-2.7_orig/configure.in	2007-06-08 03:16:36.000000000 +0000
+++ glibc-2.7/configure.in	2008-01-24 11:57:21.000000000 +0000
@@ -528,31 +528,33 @@
 AC_MSG_CHECKING(sysdep dirs)
 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'`"
-
-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*)
-  base_os=unix/sysv ;;
-irix6*)
-  base_os=unix/sysv/irix6/$os ;;
-solaris[2-9]*)
-  base_os=unix/sysv/sysv4 ;;
-hpux*)
-  base_os=unix/sysv/hpux/$os ;;
-aix4.3*)
-  base_os=unix/sysv/aix/aix4.3 ;;
-none)
-  base_os=standalone ;;
-*)
-  base_os='' ;;
-esac
+if test x"$libc_config_ok" != xyes; then
+  # 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'`"
+
+  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*)
+    base_os=unix/sysv ;;
+  irix6*)
+    base_os=unix/sysv/irix6/$os ;;
+  solaris[2-9]*)
+    base_os=unix/sysv/sysv4 ;;
+  hpux*)
+    base_os=unix/sysv/hpux/$os ;;
+  aix4.3*)
+    base_os=unix/sysv/aix/aix4.3 ;;
+  none)
+    base_os=standalone ;;
+  *)
+    base_os='' ;;
+  esac
+fi
 
 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
 tail=$os

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]