]> git.ozlabs.org Git - ppp.git/blobdiff - configure
try to cope gracefully with the situation where someone else
[ppp.git] / configure
index 3b2bb809a62c63f58e034282b6a470e7034a6ec2..038ed60232bfb22ae4f6202663fdace04edf58c8 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $Id: configure,v 1.12 1996/10/08 04:36:56 paulus Exp $
+# $Id: configure,v 1.15 1999/04/01 11:48:30 paulus Exp $
 
 if [ -d /NextApps ]; then
   system="NeXTStep"
@@ -14,10 +14,11 @@ case $system in
     makext="bsd";
     case $release in
       0.*)     state="ancient";;
-      1.0*)    state="known"; ksrc="netbsd-1.0";;
+      1.0*)    state="ancient";;
       1.1*)    state="known"; ksrc="netbsd-1.1";;
-      1.[2-9]*|[2-9]*)
-               state="late"; ksrc="netbsd-1.1";;
+      1.2*)    state="known"; ksrc="netbsd-1.2"; makext="netbsd-1.2";;
+      1.[3-9]*|[2-9]*)
+               state="late"; ksrc="netbsd-1.2";;
     esac;;
   SunOS)
     case $release in
@@ -85,8 +86,8 @@ case $state in
     echo "This software should install and run on this system,"
     echo "but it hasn't been tested.";;
   late)
-    echo "This is a newer release of $system than was available when"
-    echo "this software was released.  It may or may not work.";;
+    echo "This is a newer release of $system than is supported by"
+    echo "this software.  It may or may not work.";;
   unknown)
     echo "This software has not been ported to this system.  Sorry.";;
   notincluded)
@@ -104,9 +105,11 @@ if [ -d "$ksrc" ]; then
     ln -s Makefile.$makext $ksrc/Makefile
     echo "  $ksrc/Makefile -> Makefile.$makext"
   fi
-  for dir in pppd pppstats chat; do
+  for dir in pppd pppstats chat pppdump; do
     rm -f $dir/Makefile
-    ln -s Makefile.$makext $dir/Makefile
-    echo "  $dir/Makefile -> Makefile.$makext"
+    if [ -f $dir/Makefile.$makext ]; then
+      ln -s Makefile.$makext $dir/Makefile
+      echo "  $dir/Makefile -> Makefile.$makext"
+    fi
   done
 fi