summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMichael Osipov <1983-01-06@gmx.net>2014-08-08 12:03:58 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-08-25 15:09:26 +0200
commitee40b6882de92b0d5bf58df72777c7c862e1cbee (patch)
tree19356d810112f89110c5e9c44934ce4641607bef /configure.ac
parent36a76380739660ce368d97289d87d0906c412d47 (diff)
downloadcurl-ee40b6882de92b0d5bf58df72777c7c862e1cbee.tar.gz
configure.ac: Add support for recent GSS-API implementations for HP-UX
By default, configure script assumes that libcurl will use the HP-supplied GSS-API implementation which does not have krb5-config. If a dev needs a more recent version which has that config script, the change will allow to pass an appropriate GSSAPI_ROOT.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac25
1 files changed, 15 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 1fa09eea9..3c7054051 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1260,12 +1260,6 @@ if test x"$want_gss" = xyes; then
*-*-darwin*)
LIBS="-lgssapi_krb5 -lresolv $LIBS"
;;
- *-hp-hpux*)
- if test "$GSSAPI_ROOT" != "yes"; then
- LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
- fi
- LIBS="-lgss $LIBS"
- ;;
*)
if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
dnl krb5-config doesn't have --libs-only-L or similar, put everything
@@ -1277,11 +1271,22 @@ if test x"$want_gss" = xyes; then
dnl into LIBS
gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
LIBS="$gss_libs $LIBS"
- elif test "$GSSAPI_ROOT" != "yes"; then
- LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
- LIBS="-lgssapi $LIBS"
else
- LIBS="-lgssapi $LIBS"
+ case $host in
+ *-hp-hpux*)
+ gss_libname="gss"
+ ;;
+ *)
+ gss_libname="gssapi"
+ ;;
+ esac
+
+ if test "$GSSAPI_ROOT" != "yes"; then
+ LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
+ LIBS="-l$gss_libname $LIBS"
+ else
+ LIBS="-l$gss_libname $LIBS"
+ fi
fi
;;
esac