Displaying 1 result from an estimated 1 matches for "f05a56fb8".
2018 Jan 23
1
[PATCH] customize: Use libxcrypt if available to provide crypt(3).
...@@
#include <stdlib.h>
#include <unistd.h>
+#if HAVE_CRYPT_H
+#include <crypt.h>
+#endif
+
#include <caml/alloc.h>
#include <caml/memory.h>
#include <caml/mlvalues.h>
diff --git a/m4/guestfs-misc-libraries.m4 b/m4/guestfs-misc-libraries.m4
index 2f371873f..f05a56fb8 100644
--- a/m4/guestfs-misc-libraries.m4
+++ b/m4/guestfs-misc-libraries.m4
@@ -17,14 +17,25 @@
dnl Miscellaneous libraries used by other programs.
-dnl Check if crypt() is provided by a separate library.
-old_LIBS="$LIBS"
-AC_SEARCH_LIBS([crypt],[crypt])
-LIBS="$old_LIBS"...