You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jf...@apache.org on 2005/04/28 10:03:16 UTC

svn commit: r165114 - /jakarta/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4

Author: jfclere
Date: Thu Apr 28 01:03:15 2005
New Revision: 165114

URL: http://svn.apache.org/viewcvs?rev=165114&view=rev
Log:
Exchange order of  host_os and host_cpu (just for bs20000.

Modified:
    jakarta/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4?rev=165114&r1=165113&r2=165114&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4 (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/support/apsupport.m4 Thu Apr 28 01:03:15 2005
@@ -21,33 +21,6 @@
 
 AC_DEFUN(AP_SUPPORTED_HOST,[
   AC_MSG_CHECKING([C flags dependant on host system type])
-  case $host_cpu in
-  powerpc)
-    CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" ;;
-  sparc*)
-    CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" ;;
-  i?86)
-    CFLAGS="$CFLAGS -DCPU=\\\"i386\\\"" ;;
-  x86_64)
-    CFLAGS="$CFLAGS -DCPU=\\\"amd64\\\"" ;;
-  bs2000)
-    CFLAGS="$CFLAGS -DCPU=\\\"osd\\\" -DCHARSET_EBCDIC -DOSD_POSIX"
-    supported_os="osd"
-    LDFLAGS="-Kno_link_stdlibs -B llm4 -l BLSLIB $LDFLAGS"
-    LDCMD="cc"
-    ;;
-  mips)
-    CFLAGS="$CFLAGS -DCPU=\\\"mips\\\""
-    supported_os="mips"
-    ;;
-  alpha*)
-    CFLAGS="$CFLAGS -DCPU=\\\"alpha\\\""
-    supported_os="alpha"
-    ;;
-  *)
-    AC_MSG_RESULT([failed])
-    AC_MSG_ERROR([Unsupported CPU architecture "$host_cpu"]);;
-  esac
 
   case $host_os in
   darwin*)
@@ -90,6 +63,35 @@
     AC_MSG_ERROR([Unsupported operating system "$host_os"])
     ;;
   esac
+  case $host_cpu in
+  powerpc)
+    CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" ;;
+  sparc*)
+    CFLAGS="$CFLAGS -DCPU=\\\"$host_cpu\\\"" ;;
+  i?86)
+    CFLAGS="$CFLAGS -DCPU=\\\"i386\\\"" ;;
+  x86_64)
+    CFLAGS="$CFLAGS -DCPU=\\\"amd64\\\"" ;;
+  bs2000)
+    CFLAGS="$CFLAGS -DCPU=\\\"osd\\\" -DCHARSET_EBCDIC -DOSD_POSIX"
+    supported_os="osd"
+    LDFLAGS="-Kno_link_stdlibs -B llm4 -l BLSLIB"
+    LDCMD="/opt/C/bin/cc"
+    ;;
+  mips)
+    CFLAGS="$CFLAGS -DCPU=\\\"mips\\\""
+    supported_os="mips"
+    ;;
+  alpha*)
+    CFLAGS="$CFLAGS -DCPU=\\\"alpha\\\""
+    supported_os="alpha"
+    ;;
+  *)
+    AC_MSG_RESULT([failed])
+    AC_MSG_ERROR([Unsupported CPU architecture "$host_cpu"]);;
+  esac
+
   AC_MSG_RESULT([ok])
   AC_SUBST(CFLAGS)
+  AC_SUBST(LDFLAGS)
 ])



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org