diff options
author | Michal Marek <mmarek@suse.cz> | 2008-03-10 09:56:49 +0000 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2008-03-10 09:56:49 +0000 |
commit | 9bb51d767e7a3a76e1c5c82d8fc3537865b29d95 (patch) | |
tree | a56f0dd39536b4b5d7b279c4dd6388e821ebdf33 | |
parent | 82e095a2759366485c3cb33739992c85ca8a05cc (diff) |
(try to) use LIBS for libraries (-l) and LDFLAGS for paths (-L) in the
gssapi check. Cleans up curl-config --libs output when REQUIRE_LIB_DEPS=no
-rw-r--r-- | configure.ac | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index b3f9a229b..6c532c889 100644 --- a/configure.ac +++ b/configure.ac @@ -1010,18 +1010,23 @@ if test x"$want_gss" = xyes; then if test -n "$gnu_gss"; then curl_gss_msg="enabled (GNU GSS)" - LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgss" + LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" + LIBS="$LIBS -lgss" elif test -z "$GSSAPI_LIB_DIR"; then if test -f "$GSSAPI_ROOT/bin/krb5-config"; then - gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` - LDFLAGS="$LDFLAGS $gss_ldflags" + dnl krb5-config doesn't have --libs-only-L or similar, put everything + dnl into LIBS + gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` + LIBS="$LIBS $gss_libs" elif test "$GSSAPI_ROOT" != "yes"; then - LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi" + LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" + LIBS="$LIBS -lgssapi" else - LDFLAGS="$LDFLAGS -lgssapi" + LIBS="$LIBS -lgssapi" fi else - LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR -lgssapi" + LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" + LIBS="$LIBS -lgssapi" fi else CPPFLAGS="$save_CPPFLAGS" |