From 33032d591f8e39edae0ce4b35ca1b6e25f04a04b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 18 Oct 2008 17:49:41 +0200 Subject: Move ufc to libreplace. --- lib/replace/crypt.m4 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lib/replace/crypt.m4 (limited to 'lib/replace/crypt.m4') diff --git a/lib/replace/crypt.m4 b/lib/replace/crypt.m4 new file mode 100644 index 0000000000..5a9fe88aaf --- /dev/null +++ b/lib/replace/crypt.m4 @@ -0,0 +1,6 @@ +############################################### +# test for where we get crypt() from +AC_SEARCH_LIBS(crypt, [crypt], + [test "$ac_cv_search_crypt" = "none required" || CRYPT_LIBS="-lcrypt" + AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function])], + [ LIBREPLACEOBJ="${LIBREPLACEOBJ} crypt.o" ]) -- cgit From 974ab9d2f9ffabe20fab687f7e63cb168570f7e5 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 19 Oct 2008 15:47:36 +0200 Subject: Use _EXT version of autoconf macro. --- lib/replace/crypt.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/replace/crypt.m4') diff --git a/lib/replace/crypt.m4 b/lib/replace/crypt.m4 index 5a9fe88aaf..0b31ae4964 100644 --- a/lib/replace/crypt.m4 +++ b/lib/replace/crypt.m4 @@ -1,6 +1,6 @@ ############################################### # test for where we get crypt() from -AC_SEARCH_LIBS(crypt, [crypt], +AC_SEARCH_LIBS_EXT(crypt, [crypt], [test "$ac_cv_search_crypt" = "none required" || CRYPT_LIBS="-lcrypt" AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function])], [ LIBREPLACEOBJ="${LIBREPLACEOBJ} crypt.o" ]) -- cgit From 620a27bdf140e5e9091cc922f62b6fd12b12330e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 20 Oct 2008 10:38:03 +0200 Subject: Don't assume crypt.h is present even if crypt() is. --- lib/replace/crypt.m4 | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/replace/crypt.m4') diff --git a/lib/replace/crypt.m4 b/lib/replace/crypt.m4 index 0b31ae4964..047766d470 100644 --- a/lib/replace/crypt.m4 +++ b/lib/replace/crypt.m4 @@ -1,5 +1,6 @@ ############################################### # test for where we get crypt() from +AC_CHECK_HEADERS(crypt.h) AC_SEARCH_LIBS_EXT(crypt, [crypt], [test "$ac_cv_search_crypt" = "none required" || CRYPT_LIBS="-lcrypt" AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function])], -- cgit