View | Details | Raw Unified | Return to bug 6262
Collapse All | Expand All

(-)configure.sh.orig (-7 / +7 lines)
Lines 9-15 Link Here
9
##########################################################
9
##########################################################
10
paths='/usr/lib /usr/local/lib /usr/lib/mysql /usr/local/lib/mysql /usr/local/mysql4/lib/mysql
10
paths='/usr/lib /usr/local/lib /usr/lib/mysql /usr/local/lib/mysql /usr/local/mysql4/lib/mysql
11
 /usr/local/include/mysql /usr/local/include /usr/include /usr/include/mysql /usr/local/mysql4/include/mysql
11
 /usr/local/include/mysql /usr/local/include /usr/include /usr/include/mysql /usr/local/mysql4/include/mysql
12
 /opt/csw/include /usr/pkg/include/mysql /usr/pkg/lib/mysql '
12
 /opt/csw/include /usr/pkg/include/mysql /usr/pkg/lib/mysql /usr/include/pgsql'
13
 
13
 
14
locate_file(){
14
locate_file(){
15
	for val in $paths; do
15
	for val in $paths; do
Lines 108-120 Link Here
108
108
109
#paths
109
#paths
110
echo "PATH_TO_ETC=/etc" >> $makefile
110
echo "PATH_TO_ETC=/etc" >> $makefile
111
echo "PATH_TO_CONFIG=/etc/netams.cfg" >> $makefile
111
echo "PATH_TO_CONFIG=/etc/netams/netams.conf" >> $makefile
112
echo "PATH_TO_LOG=/var/log/netams.log" >> $makefile
112
echo "PATH_TO_LOG=/var/log/netams/netams.log" >> $makefile
113
echo "PATH_TO_SCRIPTS=/etc/init.d" >> $makefile
113
echo "PATH_TO_SCRIPTS=/etc/rc.d/init.d" >> $makefile
114
echo "DAEMONDIR=/usr/local/sbin"  >> $makefile
114
echo "DAEMONDIR=usr/sbin"  >> $makefile
115
115
116
#ipq
116
#ipq
117
locate_file "libipq.a" && v1=$var && locate_file "libipq.h" && v2=$var
117
locate_file "libipq.so" && v1=$var && locate_file "libipq.h" && v2=$var
118
if [ $v1 -a $v2 ]; then
118
if [ $v1 -a $v2 ]; then
119
	echo "Will have LIBIPQ support"
119
	echo "Will have LIBIPQ support"
120
	ipv=`iptables -V`
120
	ipv=`iptables -V`
Lines 123-129 Link Here
123
		echo "          LIBIPQ is <=1.2.4 (yours is .$ipvn)"
123
		echo "          LIBIPQ is <=1.2.4 (yours is .$ipvn)"
124
		echo "DEFINE += -DIPTBL_OLD" >> $makefile
124
		echo "DEFINE += -DIPTBL_OLD" >> $makefile
125
	fi
125
	fi
126
	echo "LIB += -lipq -L$v1" >> $makefile
126
	echo "LIB += -lipq" >> $makefile
127
else
127
else
128
	echo "DEFINE += -DIPTBL_NONE" >> $makefile
128
	echo "DEFINE += -DIPTBL_NONE" >> $makefile
129
fi
129
fi

Return to bug 6262