summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-09-22 20:15:08 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-09-22 20:15:08 +1000
commitc373a56343f0f70ef88db1848a3888e84b18bd33 (patch)
treeaf0dbed5ac79a99dd7ca1f63a8d4bdc6af727b30 /configure.ac
parent542f62b9d29f4e6f596261f00d2b953cfcb826a5 (diff)
- (dtucker) [configure.ac] Use -R linker flag for libedit too; patch from
skeleten at shillest.net.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 226730f3e..ff1f87abd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.294 2005/09/19 16:33:39 tim Exp $ 1# $Id: configure.ac,v 1.295 2005/09/22 10:15:08 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -1093,8 +1093,12 @@ AC_ARG_WITH(libedit,
1093 [ --with-libedit[[=PATH]] Enable libedit support for sftp], 1093 [ --with-libedit[[=PATH]] Enable libedit support for sftp],
1094 [ if test "x$withval" != "xno" ; then 1094 [ if test "x$withval" != "xno" ; then
1095 if test "x$withval" != "xyes"; then 1095 if test "x$withval" != "xyes"; then
1096 CPPFLAGS="$CPPFLAGS -I$withval/include" 1096 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1097 LDFLAGS="$LDFLAGS -L$withval/lib" 1097 if test -n "${need_dash_r}"; then
1098 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
1099 else
1100 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
1101 fi
1098 fi 1102 fi
1099 AC_CHECK_LIB(edit, el_init, 1103 AC_CHECK_LIB(edit, el_init,
1100 [ AC_DEFINE(USE_LIBEDIT, 1, [Use libedit for sftp]) 1104 [ AC_DEFINE(USE_LIBEDIT, 1, [Use libedit for sftp])