summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-02-22 10:39:59 +1100
committerDarren Tucker <dtucker@zip.com.au>2013-02-22 10:39:59 +1100
commit964de184a8bbb85b1992176c28963f6115c780e1 (patch)
tree1211c3cae526cb70c86d7ec47e11bb053535838d /configure.ac
parent0ec742369243cb4ffaaa0b2938cae9a96dfd27c5 (diff)
- (dtucker) [Makefile.in configure.ac] bz#2072: don't link krb5 libs to
ssh(1) since they're not needed. Patch from Pierre Ossman.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac28
1 files changed, 14 insertions, 14 deletions
diff --git a/configure.ac b/configure.ac
index d62323d97..088bcb652 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
1# $Id: configure.ac,v 1.505 2013/02/15 01:13:01 dtucker Exp $ 1# $Id: configure.ac,v 1.506 2013/02/21 23:40:00 dtucker Exp $
2# 2#
3# Copyright (c) 1999-2004 Damien Miller 3# Copyright (c) 1999-2004 Damien Miller
4# 4#
@@ -15,7 +15,7 @@
15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 16
17AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) 17AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
18AC_REVISION($Revision: 1.505 $) 18AC_REVISION($Revision: 1.506 $)
19AC_CONFIG_SRCDIR([ssh.c]) 19AC_CONFIG_SRCDIR([ssh.c])
20AC_LANG([C]) 20AC_LANG([C])
21 21
@@ -3624,6 +3624,9 @@ AC_ARG_WITH([kerberos5],
3624 [$KRB5ROOT/bin/krb5-config], 3624 [$KRB5ROOT/bin/krb5-config],
3625 [$KRB5ROOT/bin:$PATH]) 3625 [$KRB5ROOT/bin:$PATH])
3626 if test -x $KRB5CONF ; then 3626 if test -x $KRB5CONF ; then
3627 K5CFLAGS="`$KRB5CONF --cflags`"
3628 K5LIBS="`$KRB5CONF --libs`"
3629 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
3627 3630
3628 AC_MSG_CHECKING([for gssapi support]) 3631 AC_MSG_CHECKING([for gssapi support])
3629 if $KRB5CONF | grep gssapi >/dev/null ; then 3632 if $KRB5CONF | grep gssapi >/dev/null ; then
@@ -3631,14 +3634,12 @@ AC_ARG_WITH([kerberos5],
3631 AC_DEFINE([GSSAPI], [1], 3634 AC_DEFINE([GSSAPI], [1],
3632 [Define this if you want GSSAPI 3635 [Define this if you want GSSAPI
3633 support in the version 2 protocol]) 3636 support in the version 2 protocol])
3634 k5confopts=gssapi 3637 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
3638 GSSLIBS="`$KRB5CONF --libs gssapi`"
3639 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
3635 else 3640 else
3636 AC_MSG_RESULT([no]) 3641 AC_MSG_RESULT([no])
3637 k5confopts=""
3638 fi 3642 fi
3639 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
3640 K5LIBS="`$KRB5CONF --libs $k5confopts`"
3641 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
3642 AC_MSG_CHECKING([whether we are using Heimdal]) 3643 AC_MSG_CHECKING([whether we are using Heimdal])
3643 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <krb5.h> 3644 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <krb5.h>
3644 ]], [[ char *tmp = heimdal_version; ]])], 3645 ]], [[ char *tmp = heimdal_version; ]])],
@@ -3670,14 +3671,12 @@ AC_ARG_WITH([kerberos5],
3670 3671
3671 AC_CHECK_LIB([gssapi_krb5], [gss_init_sec_context], 3672 AC_CHECK_LIB([gssapi_krb5], [gss_init_sec_context],
3672 [ AC_DEFINE([GSSAPI]) 3673 [ AC_DEFINE([GSSAPI])
3673 K5LIBS="-lgssapi_krb5 $K5LIBS" ], 3674 GSSLIBS="-lgssapi_krb5" ],
3674 [ AC_CHECK_LIB([gssapi], [gss_init_sec_context], 3675 [ AC_CHECK_LIB([gssapi], [gss_init_sec_context],
3675 [ AC_DEFINE([GSSAPI]) 3676 [ AC_DEFINE([GSSAPI])
3676 K5LIBS="-lgssapi $K5LIBS" ], 3677 GSSLIBS="-lgssapi" ],
3677 AC_MSG_WARN([Cannot find any suitable gss-api library - build may fail]), 3678 AC_MSG_WARN([Cannot find any suitable gss-api library - build may fail]))
3678 $K5LIBS) 3679 ])
3679 ],
3680 $K5LIBS)
3681 3680
3682 AC_CHECK_HEADER([gssapi.h], , 3681 AC_CHECK_HEADER([gssapi.h], ,
3683 [ unset ac_cv_header_gssapi_h 3682 [ unset ac_cv_header_gssapi_h
@@ -3705,12 +3704,13 @@ AC_ARG_WITH([kerberos5],
3705 AC_CHECK_HEADERS([gssapi_krb5.h gssapi/gssapi_krb5.h]) 3704 AC_CHECK_HEADERS([gssapi_krb5.h gssapi/gssapi_krb5.h])
3706 AC_CHECK_HEADERS([gssapi_generic.h gssapi/gssapi_generic.h]) 3705 AC_CHECK_HEADERS([gssapi_generic.h gssapi/gssapi_generic.h])
3707 3706
3708 LIBS="$LIBS $K5LIBS"
3709 AC_SEARCH_LIBS([k_hasafs], [kafs], [AC_DEFINE([USE_AFS], [1], 3707 AC_SEARCH_LIBS([k_hasafs], [kafs], [AC_DEFINE([USE_AFS], [1],
3710 [Define this if you want to use libkafs' AFS support])]) 3708 [Define this if you want to use libkafs' AFS support])])
3711 fi 3709 fi
3712 ] 3710 ]
3713) 3711)
3712AC_SUBST([GSSLIBS])
3713AC_SUBST([K5LIBS])
3714 3714
3715# Looking for programs, paths and files 3715# Looking for programs, paths and files
3716 3716