summaryrefslogtreecommitdiff
path: root/lib/replace/crypt.m4
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/crypt.m4')
-rw-r--r--lib/replace/crypt.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/crypt.m4 b/lib/replace/crypt.m4
new file mode 100644
index 0000000000..4e90866205
--- /dev/null
+++ b/lib/replace/crypt.m4
@@ -0,0 +1,7 @@
+###############################################
+# test for where we get crypt() from
+AC_CHECK_HEADERS(crypt.h)
+AC_SEARCH_LIBS_EXT(crypt, [crypt],
+ [test "$ac_cv_search_ext_crypt" = "none required" || CRYPT_LIBS="-lcrypt"
+ AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function])],
+ [ LIBREPLACEOBJ="${LIBREPLACEOBJ} crypt.o" ])