This is the mail archive of the autoconf-patches@gnu.org mailing list for the autoconf project.


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

config.guess: s390-ibm-linux






As you may have heard, Linux has been ported to the S/390 class of IBM
mainframes.  I've been putting together ports of Linux programs to the s390
architecture.  I'll attach the patches to config.guess and config.sub that
are required to detect the architecture correctly.

Also, at the current time, -O2 (and up) is broken on s390 gcc.  I haven't
yet figured out where I'd need to put a line something like 
CFLAGS = echo $CFLAGS | sed -e 's/\-O[2-9]/\-O1/g' 
to work around that bug.  Where should that go?  (And yes, the sed script
should be a little more robust; that's a first, and ugly, cut.)

Adam
-- 
adam@princeton.edu 
"My eyes say their prayers to her / Sailors ring her bell / Like a moth
mistakes a light bulb / For the moon and goes to hell."  -- Tom Waits
diff -urN config-orig/config.guess config/config.guess
--- config-orig/config.guess	Tue Jan 11 12:22:55 2000
+++ config/config.guess	Tue Jan 11 12:23:03 2000
@@ -377,6 +377,8 @@
 	  echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
 	elif test "${UNAME_MACHINE}" = "alpha" ; then
 	  echo alpha-unknown-linux ; exit 0
+	elif test "${UNAME_MACHINE}" = "s390"; then
+	  echo s390-ibm-linux ; exit 0
 	else
 	  # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us
 	  # useful --help.  Gcc wants to distinguish between linuxoldld and linuxaout.
diff -urN config-orig/config.sub config/config.sub
--- config-orig/config.sub	Tue Jan 11 12:22:44 2000
+++ config/config.sub	Tue Jan 11 12:28:05 2000
@@ -172,7 +172,8 @@
 	      | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
 	      | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* \
 	      | mips64-* | mipsel-* | mips64el-* | mips64orion-* \
-	      | mips64orionel-* | sparc8-* | supersparc-* | microsparc-* | ultrasparc-*)
+	      | mips64orionel-* | sparc8-* | supersparc-* | microsparc-* | ultrasparc-* \
+	      | s390-*) 
 		;;
 	m88110-* | m680[012346]0-* | m683?2-* | m68360-* | z8k-* | h8500-*) # CYGNUS LOCAL
 		;;



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