summaryrefslogtreecommitdiffstats
path: root/packaging/Caldera/UnixWare/Configure
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Caldera/UnixWare/Configure')
-rwxr-xr-xpackaging/Caldera/UnixWare/Configure32
1 files changed, 24 insertions, 8 deletions
diff --git a/packaging/Caldera/UnixWare/Configure b/packaging/Caldera/UnixWare/Configure
index e5a7fbba4dc..e899742ce90 100755
--- a/packaging/Caldera/UnixWare/Configure
+++ b/packaging/Caldera/UnixWare/Configure
@@ -7,15 +7,33 @@
V=
[ "$1" = "-n" ] && V=echo
-CC="cc -Kthread -Kalloca -I/usr/local/include -L/usr/local/lib"
+#CC="cc -Kthread -Kalloca -I/usr/local/include -L/usr/local/lib"
+CC="cc -Kthread -Kalloca"
CPP="$CC -E"
CFLAGS="-Xa -Dasm=__asm -DANSICPP -O3"
-LDFLAGS="-L/usr/local/lib"
-CXX="CC -I/usr/local/include"
-CXXFLAGS="-O3 -I/usr/local/include/stl -L/usr/local/lib"
+#LDFLAGS="-L/usr/local/lib"
+LDFLAGS=
+#CXX="CC -I/usr/local/include"
+CXX="CC"
+#CXXFLAGS="-O3 -I/usr/local/include/stl -L/usr/local/lib"
+CXXFLAGS="-O3"
RANLIB=true
-MAKE=/usr/local/bin/make
-PREFIX=/usr/local/samba
+PREFIX=/usr/lib/samba
+
+if [ -x /usr/gnu/bin/make ]
+then
+ MAKE=/usr/gnu/bin/make
+elif [ -x /usr/local/bin/make ]
+then
+ MAKE=/usr/local/bin/make
+elif [ -x /usr/bin/make ]
+then
+ MAKE=/usr/bin/make
+else
+ echo "Can't find make - exiting"
+ exit 1
+fi
+
if [ "$V" = "echo" ]
then
echo "exporting the following shell variables:"
@@ -50,7 +68,6 @@ then
--with-utmp \
--with-vfs \
--with-msdfs \
- --with-netatalk \
--with-sambabook=${PREFIX}/swat/using_samba \
2>&1 | tee mout-config"
else
@@ -61,7 +78,6 @@ else
--with-utmp \
--with-vfs \
--with-msdfs \
- --with-netatalk \
--with-sambabook=${PREFIX}/swat/using_samba \
2>&1 | tee mout-config
fi