mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
From jon@symas.com - NT UUID support requires librpcrt4.
This commit is contained in:
parent
bfe6df6b20
commit
46b42307ea
1 changed files with 20 additions and 0 deletions
20
configure.in
20
configure.in
|
|
@ -883,6 +883,26 @@ if test "$ol_cv_c_posix_regex" = no ; then
|
|||
AC_MSG_ERROR([broken POSIX regex!])
|
||||
fi
|
||||
|
||||
dnl ----------------------------------------------------------------
|
||||
dnl For windows, check for the need of RPCRT for UUID function support
|
||||
AC_MSG_CHECKING(to see if -lrpcrt4 is needed for win32 UUID support)
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$LIBS -lrpcrt4"
|
||||
AC_TRY_LINK([
|
||||
char UuidCreate@4();
|
||||
char UuidToStringA@8();
|
||||
],
|
||||
[
|
||||
UuidCreate@4();
|
||||
UuidToStringA@8();
|
||||
],
|
||||
need_rpcrt=yes, need_rpcrt=no)
|
||||
if test $need_rpcrt = yes; then
|
||||
SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
|
||||
fi
|
||||
LIBS="$save_LIBS"
|
||||
AC_MSG_RESULT($need_rpcrt)
|
||||
|
||||
dnl ----------------------------------------------------------------
|
||||
dnl Check for resolver routines
|
||||
dnl need to check for both res_query and __res_query
|
||||
|
|
|
|||
Loading…
Reference in a new issue