Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 10481 | Differences between
and this patch

Collapse All | Expand All

(-)configure.in.orig (-3 / +5 lines)
Lines 104-120 Link Here
104
	elif test -z "$withval" -o "$withval" = 'yes'
104
	elif test -z "$withval" -o "$withval" = 'yes'
105
	then
105
	then
106
		: Search for LDAP in normal directory path
106
		: Search for LDAP in normal directory path
107
		HAVE_LDAP=1
108
		LIBLDAP="-lldap -lresolv -llber"
107
	else
109
	else
108
		: Search for LDAP in specific directory
110
		: Search for LDAP in specific directory
109
		LDFLAGS="$LDFLAGS -L${withval}/lib"
111
		LDFLAGS="$LDFLAGS -L${withval}/lib"
110
		LIBLDAP="-L${withval}/lib"
112
		LIBLDAP="-L${withval}/lib -lldap -llber -lresolv"
111
		LDAP_FLAGS="-I${withval}/include"
113
		LDAP_FLAGS="-I${withval}/include"
112
	fi
114
	fi
113
)
115
)
114
if test -z "$HAVE_LDAP"; then
116
if test -z "$HAVE_LDAP"; then
115
	HAVE_LDAP=0
117
	HAVE_LDAP=0
116
	AC_CHECK_LIB(ldap, ldap_init, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap -llber", ,
118
	AC_CHECK_LIB(ldap, ldap_init, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap -llber -lresolv", ,
117
		     -llber)
119
		     -llber -lresolv)
118
fi
120
fi
119
121
120
AC_SUBST(LDAP_FLAGS)
122
AC_SUBST(LDAP_FLAGS)

Return to bug 10481