aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-02 16:34:57 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-02 16:34:57 +0200
commit4af7b4fa9b0cc85ea8b7a00f748c324d5f56b47b (patch)
tree21ab5ec48049589b5a5f8c1f47a7cd79ebac2190
parentfa75134008bd9206ca02380927c27581feb65c3e (diff)
Use pkg-config file for gnutls if possible.
This allows building against a gnutls built for a an architecture other than the host architecture.
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 22989f60..9b393156 100755
--- a/configure
+++ b/configure
@@ -212,7 +212,14 @@ echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings
detect_gnutls()
{
- if libgnutls-config --version > /dev/null 2> /dev/null; then
+ if $PKG_CONFIG --exists gnutls; then
+ cat <<EOF>>Makefile.settings
+EFLAGS+=`$PKG_CONFIG --libs gnutls`
+CFLAGS+=`$PKG_CONFIG --cflags gnutls`
+EOF
+ ssl=gnutls
+ ret=1
+ elif libgnutls-config --version > /dev/null 2> /dev/null; then
cat <<EOF>>Makefile.settings
EFLAGS+=`libgnutls-config --libs`
CFLAGS+=`libgnutls-config --cflags`