aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2000-12-28 22:38:34 +0800
committerdirk <dirk@FreeBSD.org>2000-12-28 22:38:34 +0800
commit9d8aa4b371c16ddc5e58f9b30b6c99a5110f241d (patch)
treedf382b8f25ee5bb89f726df93149626018c35f6a /www
parentf4a4e22882db7274988deb637056f56eeddbb267 (diff)
downloadfreebsd-ports-graphics-9d8aa4b371c16ddc5e58f9b30b6c99a5110f241d.tar.gz
freebsd-ports-graphics-9d8aa4b371c16ddc5e58f9b30b6c99a5110f241d.tar.zst
freebsd-ports-graphics-9d8aa4b371c16ddc5e58f9b30b6c99a5110f241d.zip
Quick and dirty hack to fix build if postgresql is build with ssl
support. PR: ports/23588
Diffstat (limited to 'www')
-rw-r--r--www/mod_php3/scripts/configure.php9
-rw-r--r--www/mod_php4/scripts/configure.php9
-rw-r--r--www/mod_php5/scripts/configure.php9
3 files changed, 24 insertions, 3 deletions
diff --git a/www/mod_php3/scripts/configure.php b/www/mod_php3/scripts/configure.php
index 6bdb59bf297..db7df8f41e6 100644
--- a/www/mod_php3/scripts/configure.php
+++ b/www/mod_php3/scripts/configure.php
@@ -97,6 +97,9 @@ while [ "$1" ]; do
\"PostgreSQL\")
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
+ if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then
+ LIBS="-lcrypto -lssl"
+ fi
;;
\"SybaseDB\")
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
@@ -126,7 +129,7 @@ while [ "$1" ]; do
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
- echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
+ LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
fi
;;
\"SNMP\")
@@ -154,3 +157,7 @@ while [ "$1" ]; do
esac
shift
done
+
+if [ "${LIBS}" ]; then
+ echo "CONFIGURE_ENV+= LIBS='${LIBS}'"
+fi
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php
index a4abc82102c..228f6949c72 100644
--- a/www/mod_php4/scripts/configure.php
+++ b/www/mod_php4/scripts/configure.php
@@ -101,6 +101,9 @@ while [ "$1" ]; do
\"PostgreSQL\")
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
+ if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then
+ LIBS="-lcrypto -lssl"
+ fi
;;
\"SybaseDB\")
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
@@ -130,7 +133,7 @@ while [ "$1" ]; do
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
- echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
+ LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
fi
;;
\"SNMP\")
@@ -177,3 +180,7 @@ EOF
esac
shift
done
+
+if [ "${LIBS}" ]; then
+ echo "CONFIGURE_ENV+= LIBS='${LIBS}'"
+fi
diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php
index a4abc82102c..228f6949c72 100644
--- a/www/mod_php5/scripts/configure.php
+++ b/www/mod_php5/scripts/configure.php
@@ -101,6 +101,9 @@ while [ "$1" ]; do
\"PostgreSQL\")
echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
echo "CONFIGURE_ARGS+=--with-pgsql=\${PREFIX}/pgsql"
+ if /usr/bin/ldd ${PREFIX}/pgsql/bin/postgres | /usr/bin/grep -q "libssl"; then
+ LIBS="-lcrypto -lssl"
+ fi
;;
\"SybaseDB\")
echo "LIB_DEPENDS+= sybdb.0:\${PORTSDIR}/databases/freetds"
@@ -130,7 +133,7 @@ while [ "$1" ]; do
echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap"
echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}"
if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
- echo "CONFIGURE_ENV+= LIBS='-lkrb -ldes -L\${PREFIX}/lib'"
+ LIBS="${LIBS} -lkrb -ldes -L\${PREFIX}/lib"
fi
;;
\"SNMP\")
@@ -177,3 +180,7 @@ EOF
esac
shift
done
+
+if [ "${LIBS}" ]; then
+ echo "CONFIGURE_ENV+= LIBS='${LIBS}'"
+fi