]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (dtucker) [configure.ac contrib/Makefile] bz#1996: use AC_PATH_TOOL to find V_6_0 anongit/V_6_0 github-selfhosted/V_6_0 github/V_6_0
authorDarren Tucker <dtucker@zip.com.au>
Sat, 19 May 2012 05:25:03 +0000 (15:25 +1000)
committerDarren Tucker <dtucker@zip.com.au>
Sat, 19 May 2012 05:25:03 +0000 (15:25 +1000)
   pkg-config so it does the right thing when cross-compiling.  Patch from
   cjwatson at debian org.

ChangeLog
configure.ac
contrib/Makefile

index 3ef71c77f6f816dac111dcadec191c6016b4babb..2432cfcb6ffe46f967abff8eed42100c052ffaa8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 20120519
  - (dtucker) [configure.ac] bz#2010: fix non-portable shell construct.  Patch
    from cjwatson at debian org.
+ - (dtucker) [configure.ac contrib/Makefile] bz#1996: use AC_PATH_TOOL to find
+   pkg-config so it does the right thing when cross-compiling.  Patch from
+   cjwatson at debian org.
 
 20120504
  - (dtucker) [configure.ac] Include <sys/param.h> rather than <sys/types.h>
index 6be17b89ae9174ca1a05bf6716a135178b2e145a..6d38864c556c80687f4574d7e4c615763ff81c10 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.489.2.2 2012/05/19 04:26:11 dtucker Exp $
+# $Id: configure.ac,v 1.489.2.3 2012/05/19 05:25:04 dtucker Exp $
 #
 # Copyright (c) 1999-2004 Damien Miller
 #
@@ -15,7 +15,7 @@
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
-AC_REVISION($Revision: 1.489.2.2 $)
+AC_REVISION($Revision: 1.489.2.3 $)
 AC_CONFIG_SRCDIR([ssh.c])
 AC_LANG([C])
 
@@ -1410,7 +1410,7 @@ AC_ARG_WITH([libedit],
        [  --with-libedit[[=PATH]]   Enable libedit support for sftp],
        [ if test "x$withval" != "xno" ; then
                if test "x$withval" = "xyes" ; then
-                       AC_PATH_PROG([PKGCONFIG], [pkg-config], [no])
+                       AC_PATH_TOOL([PKGCONFIG], [pkg-config], [no])
                        if test "x$PKGCONFIG" != "xno"; then
                                AC_MSG_CHECKING([if $PKGCONFIG knows about libedit])
                                if "$PKGCONFIG" libedit; then
index 8b34eb221ceb1f73e4f9fb0791706a17a2c8f819..c6c48e78aaaaca1d0c6c8244c4796618fcb12120 100644 (file)
@@ -1,3 +1,5 @@
+PKG_CONFIG = pkg-config
+
 all:
        @echo "Valid targets: gnome-ssh-askpass1 gnome-ssh-askpass2"
 
@@ -7,9 +9,9 @@ gnome-ssh-askpass1: gnome-ssh-askpass1.c
                `gnome-config --libs gnome gnomeui`
 
 gnome-ssh-askpass2: gnome-ssh-askpass2.c
-       $(CC) `pkg-config --cflags gtk+-2.0` \
+       $(CC) `$(PKG_CONFIG) --cflags gtk+-2.0` \
                gnome-ssh-askpass2.c -o gnome-ssh-askpass2 \
-               `pkg-config --libs gtk+-2.0 x11`
+               `$(PKG_CONFIG) --libs gtk+-2.0 x11`
 
 clean:
        rm -f *.o gnome-ssh-askpass1 gnome-ssh-askpass2 gnome-ssh-askpass