summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/replace/crypt.m4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-11-25 16:36:40 +0100
committerMichael Adam <obnox@samba.org>2011-11-26 00:34:54 +0100
commit2c0abf2dcf040e6e32612e65f04ff488745612ae (patch)
treed2c86b044dd2727e469f65e66bca49fe958d6b66 /ctdb/lib/replace/crypt.m4
parent5d94dff27e96e09e1f81d4811ce1e2492edff13f (diff)
update lib/replace to current upstream version (samba master)
(This used to be ctdb commit 17bcffab19fdbb435b4745ff90c327342bbbf0f8)
Diffstat (limited to 'ctdb/lib/replace/crypt.m4')
-rw-r--r--ctdb/lib/replace/crypt.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/lib/replace/crypt.m4 b/ctdb/lib/replace/crypt.m4
new file mode 100644
index 0000000000..fae2a58685
--- /dev/null
+++ b/ctdb/lib/replace/crypt.m4
@@ -0,0 +1,6 @@
+###############################################
+# test for where we get crypt() from
+AC_CHECK_HEADERS(crypt.h)
+AC_SEARCH_LIBS_EXT(crypt, [crypt], CRYPT_LIBS,
+ [ AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function]) ],
+ [ LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/crypt.o" ])