Permalink
Browse files

Only link against -lcrypt on Linux & BSD systems.

git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@707861 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
janl committed Oct 25, 2008
1 parent e556a8d commit 5d222134f9029462d61e2f8b3674a86561641f32
Showing with 8 additions and 1 deletion.
  1. +2 −1 bin/Makefile.am
  2. +6 −0 configure.ac
View
@@ -15,7 +15,8 @@ noinst_SCRIPTS = couchjs_dev
bin_PROGRAMS = couchpw
couchpw_SOURCES = couchpw.c
-couchpw_LDADD = -lcrypt
+
+couchpw_LDADD = $(LIBS)
if HELP2MAN
dist_man1_MANS = couchdb.1 couchjs.1
View
@@ -108,6 +108,12 @@ AC_CHECK_CURL(7.16.0)
AC_SUBST(CURL_CFLAGS)
AC_SUBST(CURL_LIBS)
+case "$(uname -s)" in
+ Linux | *BSD)
+ LIBS="$LIBS -lcrypt"
+ ;;
+esac
+
AC_PATH_PROG([ERL], [erl])
if test x${ERL} = x; then

0 comments on commit 5d22213

Please sign in to comment.