mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 20:15:03 -05:00
- configure now tries to use pkg-config for a number of sub-dependencies even
when cross-compiling. The key to success is then you properly setup PKG_CONFIG_PATH before invoking configure. I also improved how NSS is detected by trying nss-config if pkg-config isn't present, and as a last resort just use the lib name and force the user to setup the LIBS/LDFLAGS/CFLAGS etc properly. The previous last resort would add a range of various libs that would almost never be quite correct.
This commit is contained in:
parent
2d0aca3b92
commit
ceda7e98f8
10
CHANGES
10
CHANGES
@ -6,6 +6,16 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel Stenberg (1 Sep 2009)
|
||||||
|
- configure now tries to use pkg-config for a number of sub-dependencies even
|
||||||
|
when cross-compiling. The key to success is then you properly setup
|
||||||
|
PKG_CONFIG_PATH before invoking configure.
|
||||||
|
|
||||||
|
I also improved how NSS is detected by trying nss-config if pkg-config isn't
|
||||||
|
present, and as a last resort just use the lib name and force the user to
|
||||||
|
setup the LIBS/LDFLAGS/CFLAGS etc properly. The previous last resort would
|
||||||
|
add a range of various libs that would almost never be quite correct.
|
||||||
|
|
||||||
Daniel Stenberg (31 Aug 2009)
|
Daniel Stenberg (31 Aug 2009)
|
||||||
- When using the multi interface with FTP and you asked for NOBODY, you did no
|
- When using the multi interface with FTP and you asked for NOBODY, you did no
|
||||||
QUOTE commands and the request used the same path as the connection had
|
QUOTE commands and the request used the same path as the connection had
|
||||||
|
@ -25,6 +25,8 @@ This release includes the following bugfixes:
|
|||||||
o ftp response reader bug on failed control connections
|
o ftp response reader bug on failed control connections
|
||||||
o improved NSS error message on failed host name verifications
|
o improved NSS error message on failed host name verifications
|
||||||
o ftp NOBODY on re-used connection hang
|
o ftp NOBODY on re-used connection hang
|
||||||
|
o configure uses pkg-config for cross-compiles as well
|
||||||
|
o improved NSS detection in configure
|
||||||
|
|
||||||
This release includes the following known bugs:
|
This release includes the following known bugs:
|
||||||
|
|
||||||
@ -34,6 +36,6 @@ This release would not have looked like this without help, code, reports and
|
|||||||
advice from friends like these:
|
advice from friends like these:
|
||||||
|
|
||||||
Karl Moerder, Kamil Dudka, Krister Johansen, Andre Guibert de Bruet,
|
Karl Moerder, Kamil Dudka, Krister Johansen, Andre Guibert de Bruet,
|
||||||
Michal Marek, Eric Wong
|
Michal Marek, Eric Wong, Guenter Knauf
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
@ -3200,8 +3200,7 @@ dnl "no" anyway!
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
||||||
if test x$cross_compiling != xyes; then
|
|
||||||
dnl only do pkg-config magic when not cross-compiling
|
|
||||||
AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
|
||||||
|
|
||||||
if test x$PKGCONFIG != xno; then
|
if test x$PKGCONFIG != xno; then
|
||||||
@ -3217,8 +3216,4 @@ AC_DEFUN([CURL_CHECK_PKGCONFIG], [
|
|||||||
AC_MSG_RESULT([found])
|
AC_MSG_RESULT([found])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
|
||||||
PKGCONFIG="no"
|
|
||||||
fi
|
|
||||||
])
|
])
|
||||||
|
20
configure.ac
20
configure.ac
@ -1663,13 +1663,21 @@ if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then
|
|||||||
addcflags=`$PKGCONFIG --cflags nss`
|
addcflags=`$PKGCONFIG --cflags nss`
|
||||||
version=`$PKGCONFIG --modversion nss`
|
version=`$PKGCONFIG --modversion nss`
|
||||||
nssprefix=`$PKGCONFIG --variable=prefix nss`
|
nssprefix=`$PKGCONFIG --variable=prefix nss`
|
||||||
|
else
|
||||||
|
dnl Without pkg-config, we check for nss-config
|
||||||
|
|
||||||
|
check=`nss-config --version 2>/dev/null`
|
||||||
|
if test -n "$check"; then
|
||||||
|
addlib=`nss-config --libs`
|
||||||
|
addcflags=`nss-config --cflags`
|
||||||
|
version=`nss-config --version`
|
||||||
|
nssprefix=`nss-config --prefix`
|
||||||
|
else
|
||||||
|
addlib="-lnss3"
|
||||||
|
addcflags=""
|
||||||
|
version="unknown"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
# Without pkg-config, we'll kludge in some defaults
|
|
||||||
addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
|
|
||||||
addcflags="-I$OPT_NSS/include"
|
|
||||||
version="unknown"
|
|
||||||
nssprefix=$OPT_NSS
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check for functionPK11_CreateGenericObject
|
dnl Check for functionPK11_CreateGenericObject
|
||||||
|
Loading…
Reference in New Issue
Block a user