]> git.sur5r.net Git - openldap/blobdiff - configure.in
remove lint (ITS#4878)
[openldap] / configure.in
index 6d001d23a797c450ec8195b1c1d9b3cf816b8870..8fe6c17bb200ea89dfcc3ead347a5cf91362be16 100644 (file)
@@ -988,7 +988,7 @@ have_uuid=no
 AC_CHECK_HEADERS(sys/uuid.h)
 if test $ac_cv_header_sys_uuid_h = yes ; then
        save_LIBS="$LIBS"
-       AC_SEARCH_LIBS(uuid_to_str, uuid, [have_uuid=yes], :)
+       AC_SEARCH_LIBS([uuid_to_str], [uuid], [have_uuid=yes], :)
        LIBS="$save_LIBS"
 
        if test have_uuid = yes ; then
@@ -1000,6 +1000,24 @@ if test $ac_cv_header_sys_uuid_h = yes ; then
        fi
 fi
 
+dnl Look for uuid_generate
+if test $have_uuid = no ; then
+       AC_CHECK_HEADERS(uuid/uuid.h)
+       if test $ac_cv_header_uuid_uuid_h = yes ; then
+               save_LIBS="$LIBS"
+               AC_SEARCH_LIBS([uuid_generate], [uuid], [have_uuid=yes], :)
+               LIBS="$save_LIBS"
+
+               if test have_uuid = yes ; then
+                       AC_DEFINE(HAVE_UUID_GENERATE,1,
+                               [define if you have uuid_generate()])
+
+                       test "$ac_cv_search_uuid_generate" = "none required" || \
+                               SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
+               fi
+       fi
+fi
+
 dnl For windows, check for the need of RPCRT for UUID function support
 if test $have_uuid = no ; then
        AC_MSG_CHECKING(to see if -lrpcrt4 is needed for win32 UUID support)
@@ -1340,7 +1358,7 @@ pthread_rwlock_t rwlock;
                        ])
                        if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
                                AC_DEFINE(HAVE_PTHREAD_RWLOCK_DESTROY,1,
-                                       [define if you have pthread_rwlock_destroy function])],
+                                       [define if you have pthread_rwlock_destroy function])
                        fi
 
                        dnl Check for pthread_detach with <pthread.h> inclusion