]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- Clarified --with-default-path option.
authorDamien Miller <djm@mindrot.org>
Thu, 16 Mar 2000 23:54:15 +0000 (10:54 +1100)
committerDamien Miller <djm@mindrot.org>
Thu, 16 Mar 2000 23:54:15 +0000 (10:54 +1100)
 - Added -blibpath handling for AIX to work around stupid runtime linking.
   Problem elucidated by gshapiro@SENDMAIL.ORG by way of Jim Knoble
   <jmknoble@pobox.com>

ChangeLog
INSTALL
UPGRADING
configure.in

index 1c073da2343ad0c0c100db09aea7411d6d88c0be..13dbdd01dd41d3fcf93d7183240be367b3a0e2ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+20000317
+ - Clarified --with-default-path option.
+ - Added -blibpath handling for AIX to work around stupid runtime linking.
+   Problem elucidated by gshapiro@SENDMAIL.ORG by way of Jim Knoble
+   <jmknoble@pobox.com>
+
 20000316
  - Fixed configure not passing LDFLAGS to Solaris. Report from David G. 
    Hesprich <dghespri@sprintparanet.com>
diff --git a/INSTALL b/INSTALL
index 5a7c4189015306a4f53322d0e8e27825e2b07fcd..576fca085065582be28601909f46f6dc1d2e4bd5 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -132,7 +132,7 @@ some platforms.
 $DISPLAY environment variable. Some broken systems need this.
 
 --with-default-path=PATH allows you to specify a default $PATH for sessions
-started by sshd.
+started by sshd. This replaces the standard path entirely.
 
 --with-pid-dir=PATH specifies the directory in which the ssh.pid file is
 created.
index aacc9ab2b6f53637a65c8e589849024322e6d993..df3a23e17ad346eec127bd11e65ab5e31038c195 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -124,5 +124,9 @@ either internally or through RSAref.
 
 scp must be in the default PATH on both the client and the server. You may
 need to use the --with-default-path option to specify a custom path to
-search on the server.
+search on the server. This option replaces the default path, so you need
+to specify all the current directories on your path as well as where you
+have installed scp. For example: 
+
+./configure --with-default-path=/bin:/usr/bin:/usr/local/bin:/path/to/scp
 
index 81265f1e82ad09dcac70057d51ab3c7197638cbb..0eeda65ef60cd4c3fdb650208736059f79392745 100644 (file)
@@ -29,6 +29,9 @@ case "$host" in
        AFS_LIBS="-lld"
        CFLAGS="$CFLAGS -I/usr/local/include"
        LDFLAGS="$LDFLAGS -L/usr/local/lib"
+       if test "$LD" != "gcc" -a -z "$blibpath"; then
+               blibpath="/usr/lib:/lib:/usr/local/lib"
+       fi
        AC_DEFINE(BROKEN_GETADDRINFO)
        ;;
 *-*-hpux10*)
@@ -239,6 +242,9 @@ else
        if test ! -z "$need_dash_r" ; then
                LDFLAGS="$LDFLAGS -R$ssldir/lib -R$ssldir"
        fi
+       if test ! -z "$blibpath" ; then
+               blibpath="$blibpath:$ssldir:$ssldir/lib"
+       fi
 fi
 if test -z "$WANTS_RSAREF" ; then
        LIBS="$saved_LIBS -lcrypto"
@@ -646,6 +652,12 @@ AC_ARG_WITH(kerberos4,
                        if test "x$withval" != "$xyes" ; then
                                CFLAGS="$CFLAGS -I${withval}/include"
                                LDFLAGS="$LDFLAGS -L${withval}/lib"
+                               if test ! -z "$need_dash_r" ; then
+                                       LDFLAGS="$LDFLAGS -R${withval}/lib"
+                               fi
+                               if test ! -z "$blibpath" ; then
+                                       blibpath="$blibpath:${withval}/lib"
+                               fi
                        else
                                if test -d /usr/include/kerberosIV ; then
                                        CFLAGS="$CFLAGS -I/usr/include/kerberosIV"
@@ -826,4 +838,9 @@ AC_ARG_WITH(pid-dir,
 AC_DEFINE_UNQUOTED(PIDDIR, "$piddir")
 AC_SUBST(piddir)
 
+if test ! -z "$blibpath" ; then
+       LDFLAGS="$LDFLAGS -blibpath:$blibpath"
+       AC_MSG_WARN([Please check and edit -blibpath in LDFLAGS in Makefile])
+fi
+
 AC_OUTPUT(Makefile)