The previous libsocket/libresolv configure cleanup broke
LDAP support for at least Solaris. Therefore assume, that if we have to use libsocket, probe for libresolv as well although OpenSC's internals don't use it. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1442 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
c5eea382ee
commit
508b20ada5
|
@ -152,7 +152,12 @@ AC_SUBST(LIBDL)
|
|||
AC_CHECK_LIB(dl, dlopen, [LIBDL="$LIBDL -ldl" ac_cv_func_dlopen_ldl=yes], ac_cv_func_dlopen_ldl=no)
|
||||
|
||||
dnl See if socket() is found from libsocket
|
||||
AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])
|
||||
AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket" ac_cv_func_socket_in_lsocket=yes], ac_cv_func_socket_in_lsocket=no)
|
||||
|
||||
ac_cv_func_res_query_in_lresolv=no
|
||||
if test x$ac_cv_func_socket_in_lsocket = xyes; then
|
||||
AC_CHECK_LIB(resolv, res_query, [LIBS="$LIBS -lresolv" ac_cv_func_res_query_in_lresolv=yes])
|
||||
fi
|
||||
|
||||
AC_SUBST(GETOPTSRC)
|
||||
AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG, 1, [Define if you have the `getopt_long' function.]),
|
||||
|
|
Loading…
Reference in New Issue