{ echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
echo "${ECHO_T}$LDAP_LIBS" >&6; }
fi
- { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
+ OLIBS="$LIBS"
+ { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
if test "${ac_cv_search_ber_set_option+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
found=no
fi
- if test $found="yes"; then
- case "$LIBS" in
- *-llber*) LDAP_LIBS="$LDAP_LIBS -llber";;
- esac
+ if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
+ LDAP_LIBS="$LDAP_LIBS -llber"
fi
{ echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
else
AC_MSG_RESULT([$LDAP_LIBS])
fi
- dnl check if we need to link with -llbre for ber_set_option
+ dnl check if we need to link with -llber for ber_set_option
+ OLIBS="$LIBS"
AC_SEARCH_LIBS([ber_set_option], [lber], [found=yes], [found=no])
- if test $found="yes"; then
- case "$LIBS" in
- *-llber*) LDAP_LIBS="$LDAP_LIBS -llber";;
- esac
+ if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
+ LDAP_LIBS="$LDAP_LIBS -llber"
fi
dnl check if ldap.h includes lber.h for us
AC_MSG_CHECKING([whether lber.h is needed])