2 # $Id: configure,v 1.29 2002/09/07 05:15:25 carlsonj Exp $
4 # if [ -d /NextApps ]; then
21 # [0-3]*) state="ancient";;
22 # 4*) state="known"; ksrc="sunos4"; makext="sunos4";;
23 5.[7-9]*|5.[1-9][0-9]) state="known"; ksrc="solaris"; makext="sol2";
25 sun4u) archvariant='-64';;
28 5.[1-6]*) state="known"; ksrc="solaris"; makext="sol2";;
30 if [ -x /opt/SUNWspro/bin/cc ] &&
31 /opt/SUNWspro/bin/cc -flags >/dev/null 2>&1; then
32 : # use Sun WorkShop compiler
33 elif gcc --version >/dev/null 2>&1; then
34 archvariant=gcc$archvariant
36 if [ "$arch" = "sun4u" ]; then
37 ( cd /tmp; touch ppp$$.c
38 gcc -c -m64 ppp$$.c >/dev/null 2>&1 || (
39 echo "gcc is unable to make 64 bit modules, and your $arch system needs them."
40 echo "consider upgrading gcc on this machine, or switching to Sun WorkShop."
48 echo "C compiler not found; hoping for the best."
50 NetBSD|FreeBSD|ULTRIX|OSF1|NeXTStep|SINIX-?|UNIX_SV|UNIX_System_V)
55 # 0.*) state="ancient";;
56 # 1.0*) state="ancient";;
57 # 1.1*) state="known"; ksrc="netbsd-1.1";;
58 # 1.2*) state="known"; ksrc="netbsd-1.2"; makext="netbsd-1.2";;
60 # state="late"; ksrc="netbsd-1.2";;
65 # [0-3]*) state="ancient";;
66 # 4.[01]*) state="early"; ksrc="ultrix";;
67 # 4.[234]) state="known"; ksrc="ultrix";;
72 # V1.*) state="neolithic"; ksrc="osf1";;
73 # V[23].*) state="neolithic"; ksrc="osf1";;
74 # V4.*) state="known"; ksrc="osf1";;
75 # V[5-9]*) state="late"; ksrc="osf1";;
80 # 1.*) state="known"; ksrc="freebsd-old";;
81 # 2.[01]*) state="known"; ksrc="freebsd-2.0";;
82 # 2.2.[2-7]*) state="late"; ksrc="freebsd-2.0";;
83 # 2.2.8*) state="known"; ksrc="freebsd-2.2.8";;
84 # 3.[0-1]*) state="known"; ksrc="freebsd-3.0";;
92 # 5.4[01]) state=known; ksrc=svr4; makext=svr4;;
93 # 5.4[2-9]) state=late; ksrc=svr4; makext=svr4;;
95 # # Intel SVR4 systems come with a bug in the uname program. Unless
96 # # your provider fixed the bug, or you get a fix for it, uname -S will
97 # # overwrite the system name with the node name!
98 # UNIX_SV|UNIX_System_V|`uname -n`)
100 # 4.0) state=known; ksrc=svr4; makext=svr4;;
101 # 4.2) state=late; ksrc=svr4; makext=svr4;;
105 if [ -d "$ksrc" ]; then :; else
112 echo "This is a newer release on an outdated OS ($system)."
113 echo " This software may or may not work on this OS."
114 echo " You may want to download an older version of PPP for this OS.";;
116 echo "This is an old release of a supported OS ($system)."
117 echo "This software cannot be used as-is on this system,"
118 echo "but you may be able to port it. Good luck!"
121 echo "This is an old release of a supported OS ($system)."
122 echo "This software should install and run on this system,"
123 echo "but it hasn't been tested.";;
125 echo "This is a newer release of $system than is supported by"
126 echo "this software. It may or may not work.";;
128 echo "This software has not been ported to this system. Sorry.";;
130 echo "Support for this system has not been included"
131 echo "in this distribution. Sorry.";;
134 if [ -d "$ksrc" ]; then
135 echo "Creating links to Makefiles."
137 ln -s $ksrc/Makefile.top Makefile
138 echo " Makefile -> $ksrc/Makefile.top"
140 ln -s $ksrc/Makedefs$compiletype Makedefs.com
141 echo " $ksrc/Makedefs$compiletype -> Makedefs.com"
142 for dir in pppd pppstats chat pppdump pppd/plugins pppd/plugins/rp-pppoe pppd/plugins/radius; do
144 if [ -f $dir/Makefile.$makext ]; then
145 ln -s Makefile.$makext $dir/Makefile
146 echo " $dir/Makefile -> Makefile.$makext"
149 if [ "$archvariant" ]; then
150 makext=$makext$archvariant
152 ln -s Makefile.$makext $ksrc/Makefile
153 echo " $ksrc/Makefile -> Makefile.$makext"
156 echo "Unable to locate kernel source $ksrc"