From 02cebcd93be1fc789f260202ccbfb600b1ba7e0f Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Thu, 25 Oct 2001 10:01:30 -0700 Subject: Give path given in --with-xxx= for pcre,zlib, and tcp-wrappers precedence over system libraries and includes. Report from Dave Dykstra --- ChangeLog | 5 ++++- configure.ac | 38 +++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f6388b5e..c14f7d81c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 20011025 - (bal) Use VDISABLE if _POSIX_VDISABLE is set in readpassphrase.c. Patch by todd@ + - (tim) [configure.ac] Give path given in --with-xxx= for pcre,zlib, and + tcp-wrappers precedence over system libraries and includes. + Report from Dave Dykstra 20011024 - (bal) Should be 3.0p1 not 3.0p2. Corrected version.h already. @@ -6760,4 +6763,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.1617 2001/10/25 15:02:35 mouring Exp $ +$Id: ChangeLog,v 1.1618 2001/10/25 17:01:30 tim Exp $ diff --git a/configure.ac b/configure.ac index 185ed30ef..10cca440c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.1 2001/10/25 04:15:26 tim Exp $ +# $Id: configure.ac,v 1.2 2001/10/25 17:01:31 tim Exp $ AC_INIT AC_CONFIG_SRCDIR([ssh.c]) @@ -324,21 +324,21 @@ AC_ARG_WITH(pcre, if test "x$withval" != "xyes"; then if test -d "$withval/lib"; then if test -n "${need_dash_r}"; then - LDFLAGS="${LDFLAGS} -L$withval/lib -R$withval/lib" + LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" else - LDFLAGS="${LDFLAGS} -L$withval/lib" + LDFLAGS="-L${withval}/lib ${LDFLAGS}" fi else if test -n "${need_dash_r}"; then - LDFLAGS="${LDFLAGS} -L$withval -R$withval" + LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" else - LDFLAGS="${LDFLAGS} -L$withval" + LDFLAGS="-L${withval} ${LDFLAGS}" fi fi if test -d "$withval/include"; then - CPPFLAGS="${CPPFLAGS} -I$withval/include" + CPPFLAGS="-I${withval}/include ${CPPFLAGS}" else - CPPFLAGS="${CPPFLAGS} -I$withval" + CPPFLAGS="-I${withval} ${CPPFLAGS}" fi fi @@ -377,21 +377,21 @@ AC_ARG_WITH(zlib, [ if test -d "$withval/lib"; then if test -n "${need_dash_r}"; then - LDFLAGS="${LDFLAGS} -L$withval/lib -R$withval/lib" + LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" else - LDFLAGS="${LDFLAGS} -L$withval/lib" + LDFLAGS="-L${withval}/lib ${LDFLAGS}" fi else if test -n "${need_dash_r}"; then - LDFLAGS="${LDFLAGS} -L$withval -R$withval" + LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" else - LDFLAGS="${LDFLAGS} -L$withval" + LDFLAGS="-L${withval} ${LDFLAGS}" fi fi if test -d "$withval/include"; then - CPPFLAGS="${CPPFLAGS} -I$withval/include" + CPPFLAGS="-I${withval}/include ${CPPFLAGS}" else - CPPFLAGS="${CPPFLAGS} -I$withval" + CPPFLAGS="-I${withval} ${CPPFLAGS}" fi ] ) @@ -524,21 +524,21 @@ AC_ARG_WITH(tcp-wrappers, if test -n "${withval}" -a "${withval}" != "yes"; then if test -d "${withval}/lib"; then if test -n "${need_dash_r}"; then - LDFLAGS="$LDFLAGS -L${withval}/lib -R${withval}/lib" + LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" else - LDFLAGS="$LDFLAGS -L${withval}/lib" + LDFLAGS="-L${withval}/lib ${LDFLAGS}" fi else if test -n "${need_dash_r}"; then - LDFLAGS="$LDFLAGS -L${withval} -R${withval}" + LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" else - LDFLAGS="$LDFLAGS -L${withval}" + LDFLAGS="-L${withval} ${LDFLAGS}" fi fi if test -d "${withval}/include"; then - CPPFLAGS="$CPPFLAGS -I${withval}/include" + CPPFLAGS="-I${withval}/include ${CPPFLAGS}" else - CPPFLAGS="$CPPFLAGS -I${withval}" + CPPFLAGS="-I${withval} ${CPPFLAGS}" fi fi LIBS="-lwrap $LIBS" -- cgit v1.2.3