summaryrefslogtreecommitdiffstats
path: root/packaging/Caldera/OpenServer/Configure
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Caldera/OpenServer/Configure')
-rwxr-xr-xpackaging/Caldera/OpenServer/Configure43
1 files changed, 36 insertions, 7 deletions
diff --git a/packaging/Caldera/OpenServer/Configure b/packaging/Caldera/OpenServer/Configure
index 65a4f1186fa..0c63f7ff5b4 100755
--- a/packaging/Caldera/OpenServer/Configure
+++ b/packaging/Caldera/OpenServer/Configure
@@ -7,13 +7,18 @@
V=
[ "$1" = "-n" ] && V=echo
-CC="gcc -I/usr/local/include -L/usr/local/lib"
-CFLAGS="-O3 -I/usr/local/include -L/usr/local/lib"
+CC="gcc"
+CFLAGS="-O3"
CXX="g++"
-CXXFLAGS="-O3 -I/usr/local/include/stl -I/usr/local/include -L/usr/local/lib"
+#CXXFLAGS="-O3 -I/usr/local/include/stl -I/usr/local/include -L/usr/local/lib"
+CXXFLAGS="-O3"
RANLIB=true
-MAKE=/usr/local/bin/make
-PREFIX=/usr/local/samba
+MAKE=/usr/gnu/bin/make
+PREFIX=/usr/lib/samba
+LIBDIR=/etc/samba.d
+PRIVATEDIR=/etc/samba.d
+LOCKDIR=/var/locks/samba.d
+LOGDIR=/var/log/samba.d
if [ "$V" = "echo" ]
then
echo "exporting the following shell variables:"
@@ -41,23 +46,31 @@ if [ "$V" = "echo" ]
then
echo "./configure \
--prefix=${PREFIX} \
+ --libdir=${LIBDIR} \
+ --with-privatedir=${PRIVATEDIR} \
+ --with-lockdir=${LOCKDIR} \
+ --with-logfilebase=${LOGDIR} \
--with-profile \
--with-syslog \
--with-utmp \
--with-vfs \
--with-msdfs \
- --with-netatalk \
+ --with-readline=/usr \
--with-sambabook=${PREFIX}/swat/using_samba \
2>&1 | tee mout-config"
else
./configure \
--prefix=${PREFIX} \
+ --libdir=${LIBDIR} \
+ --with-privatedir=${PRIVATEDIR} \
+ --with-lockdir=${LOCKDIR} \
+ --with-logfilebase=${LOGDIR} \
--with-profile \
--with-syslog \
--with-utmp \
--with-vfs \
--with-msdfs \
- --with-netatalk \
+ --with-readline=/usr \
--with-sambabook=${PREFIX}/swat/using_samba \
2>&1 | tee mout-config
fi
@@ -71,3 +84,19 @@ EOF
sed -e "s/nobody/nouser/" include/local.h > /tmp/nouser$$
cp /tmp/nouser$$ include/local.h
rm -f /tmp/nouser$$
+
+cd ../examples/VFS
+[ -f mout-config ] && {
+ if [ "$V" = "echo" ]
+ then
+ echo "mv mout-config mout-config$$"
+ else
+ mv mout-config mout-config$$
+ fi
+}
+if [ "$V" = "echo" ]
+then
+ echo "./configure 2>&1 | tee mout-config"
+else
+ ./configure 2>&1 | tee mout-config
+fi