Index: src/configure
diff -u src/configure.orig src/configure
--- src/configure.orig	Wed Oct 25 13:25:45 2006
+++ src/configure	Tue Dec 26 11:18:57 2006
@@ -39,6 +39,7 @@
 
 cat << EOF > test.c
 #include <gnutls/openssl.h>
+#include <gcrypt.h>
 #include <errno.h>
 #include <pthread.h>
 
@@ -59,8 +60,8 @@
 	}
 EOF
 
-$CC ${PKG_INCLUDE} -c test.c -o test.o 2>& 5
-$CC test.o -o test ${PKG_LIBS} -lgnutls-openssl 2>& 5
+$CC ${PKG_INCLUDE} -I${GNUTLSINC} -c test.c -o test.o 2>& 5
+$CC test.o -o test ${PKG_LIBS} -L${GNUTLSLIB} -lgnutls-openssl 2>& 5
 
 if [ -x ./test ] && ./test
 then
@@ -99,8 +100,8 @@
 	}
 EOF
 
-$CC ${PKG_INCLUDE} -c test.c -o test.o 2>& 5
-$CC test.o -o test ${PKG_LIBS} -lssl -lcrypto 2>& 5
+$CC ${PKG_INCLUDE} -I${OPENSSLINC} -c test.c -o test.o 2>& 5
+$CC test.o -o test ${PKG_LIBS} -L${OPENSSLLIB} -lssl -lcrypto 2>& 5
 
 if [ -x ./test ] && ./test
 then
