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

(-)mod_php4/scripts/configure.php (-7 / +22 lines)
Lines 34-40 Link Here
34
dBase		"dBase database support" OFF \
34
dBase		"dBase database support" OFF \
35
GDBM		"GNU database manager support" OFF \
35
GDBM		"GNU database manager support" OFF \
36
OpenLDAP1	"OpenLDAP 1.x support" OFF \
36
OpenLDAP1	"OpenLDAP 1.x support" OFF \
37
OpenLDAP2	"OpenLDAP 2.x support" OFF \
37
OpenLDAP20	"OpenLDAP 2.0 support" OFF \
38
OpenLDAP21	"OpenLDAP 2.1 support" OFF \
38
OpenSSL		"OpenSSL support" OFF \
39
OpenSSL		"OpenSSL support" OFF \
39
SNMP		"SNMP support" OFF \
40
SNMP		"SNMP support" OFF \
40
XML		"XML support" OFF \
41
XML		"XML support" OFF \
Lines 222-229 Link Here
222
			echo "LIB_DEPENDS+=	ldap.1:\${PORTSDIR}/net/openldap12"
223
			echo "LIB_DEPENDS+=	ldap.1:\${PORTSDIR}/net/openldap12"
223
			echo "LIB_DEPENDS+=	lber.1:\${PORTSDIR}/net/openldap12"
224
			echo "LIB_DEPENDS+=	lber.1:\${PORTSDIR}/net/openldap12"
224
			echo "CONFIGURE_ARGS+=--with-ldap=\${LOCALBASE}"
225
			echo "CONFIGURE_ARGS+=--with-ldap=\${LOCALBASE}"
225
			if [ "$OPENLDAP2" ]; then
226
			if [ "$OPENLDAP20" -o "$OPENLDAP21" ]; then
226
				echo "OpenLDAP1 and OpenLDAP2 are mutually exclusive." > /dev/stderr
227
				echo "OpenLDAP1, OpenLDAP20 and OpenLDAP21 are mutually exclusive." > /dev/stderr
227
				rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
228
				rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
228
				exit 1
229
				exit 1
229
			fi
230
			fi
Lines 232-250 Link Here
232
			fi
233
			fi
233
			OPENLDAP1=1
234
			OPENLDAP1=1
234
			;;
235
			;;
235
		\"OpenLDAP2\")
236
		\"OpenLDAP20\")
236
			echo "LIB_DEPENDS+=	ldap.2:\${PORTSDIR}/net/openldap20"
237
			echo "LIB_DEPENDS+=	ldap.2:\${PORTSDIR}/net/openldap20"
237
			echo "LIB_DEPENDS+=	lber.2:\${PORTSDIR}/net/openldap20"
238
			echo "LIB_DEPENDS+=	lber.2:\${PORTSDIR}/net/openldap20"
238
			echo "CONFIGURE_ARGS+=--with-ldap=\${LOCALBASE}"
239
			echo "CONFIGURE_ARGS+=--with-ldap=\${LOCALBASE}"
239
			if [ "$OPENLDAP1" ]; then
240
			if [ "$OPENLDAP1" -o "$OPENLDAP21" ]; then
240
				echo "OpenLDAP1 and OpenLDAP2 are mutually exclusive." > /dev/stderr
241
				echo "OpenLDAP1, OpenLDAP20 and OpenLDAP21 are mutually exclusive." > /dev/stderr
241
				rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
242
				rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
242
				exit 1
243
				exit 1
243
			fi
244
			fi
244
			if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
245
			if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
245
				LIBS="${LIBS} -lkrb -ldes -L\${LOCALBASE}/lib"
246
				LIBS="${LIBS} -lkrb -ldes -L\${LOCALBASE}/lib"
246
			fi
247
			fi
247
			OPENLDAP2=1
248
			OPENLDAP20=1
249
			;;
250
		\"OpenLDAP21\")
251
			echo "LIB_DEPENDS+=	ldap.2:\${PORTSDIR}/net/openldap21"
252
			echo "LIB_DEPENDS+=	lber.2:\${PORTSDIR}/net/openldap21"
253
			echo "CONFIGURE_ARGS+=--with-ldap=\${LOCALBASE}"
254
			if [ "$OPENLDAP1" -o "$OPENLDAP20" ]; then
255
				echo "OpenLDAP1, OpenLDAP20 and OpenLDAP21 are mutually exclusive." > /dev/stderr
256
				rm -f ${WRKDIRPREFIX}${REALCURDIR}/Makefile.inc
257
				exit 1
258
			fi
259
			if [ -f /usr/lib/libkrb.a -a -f /usr/lib/libdes.a -a ! -L /usr/lib/libdes.a ]; then
260
				LIBS="${LIBS} -lkrb -ldes -L\${LOCALBASE}/lib"
261
			fi
262
			OPENLDAP21=1
248
			;;
263
			;;
249
		\"OpenSSL\")
264
		\"OpenSSL\")
250
			echo "USE_OPENSSL=yes"
265
			echo "USE_OPENSSL=yes"

Return to bug 48623