]> git.ozlabs.org Git - ppp.git/commitdiff
Previously, 64-bit compilation was dependent upon the version of the OS,
authorAdi Masputra <adi.masputra@sun.com>
Tue, 21 Sep 1999 20:35:18 +0000 (20:35 +0000)
committerAdi Masputra <adi.masputra@sun.com>
Tue, 21 Sep 1999 20:35:18 +0000 (20:35 +0000)
e.g., Solaris 7 and above. This certainly will not work on machines
other than Sparc, i.e., x86. Therefore, until Merced (IA-64) is supported,
64-bit compilation will only be done on Sparc-based machines.

configure

index 035ef6fb9efe858f03c96fa1b1416b9f2dd84d16..8aac73308c06e45d0ce558ecdf789e5efaeb45d7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #!/bin/sh
 #!/bin/sh
-# $Id: configure,v 1.20 1999/09/17 05:30:57 paulus Exp $
+# $Id: configure,v 1.21 1999/09/21 20:35:18 masputra Exp $
 
 if [ -d /NextApps ]; then
   system="NeXTStep"
 
 if [ -d /NextApps ]; then
   system="NeXTStep"
@@ -21,11 +21,15 @@ case $system in
                state="late"; ksrc="netbsd-1.2";;
     esac;;
   SunOS)
                state="late"; ksrc="netbsd-1.2";;
     esac;;
   SunOS)
+    machine=`uname -p`
     case $release in
       [0-3]*)  state="ancient";;
       4*)      state="known"; ksrc="sunos4"; makext="sunos4";;
       5.[1-6]*)        state="known"; ksrc="svr4"; makext="sol2";;
     case $release in
       [0-3]*)  state="ancient";;
       4*)      state="known"; ksrc="sunos4"; makext="sunos4";;
       5.[1-6]*)        state="known"; ksrc="svr4"; makext="sol2";;
-      5.[789]*)        state="known"; ksrc="svr4"; makext="sol2"; lp64="y";;
+      5.[789]*)        state="known"; ksrc="svr4"; makext="sol2";
+                if [ "$machine" = sparc ]; then 
+                 lp64="y" 
+               fi;;
     esac;;
   ULTRIX)
     makext="ultrix";
     esac;;
   ULTRIX)
     makext="ultrix";