--- src/configure.orig 2010-09-14 14:40:38 UTC +++ src/configure @@ -46,8 +46,8 @@ echo -n "Checking for OpenSSL... " echo "Checking for OpenSSL... " 1>& 5 -OPENSSL_INCLUDE="$(pkg-config openssl --cflags 2>& 5 || true)" -OPENSSL_LIBS="$(pkg-config openssl --libs 2>& 5 || true)" +OPENSSL_INCLUDE="-I${OPENSSLINC}" +OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" if [ -z "$OPENSSL_LIBS" ] then echo "OpenSSL not found via pkg-config, using hardcoded library names" 1>& 5 @@ -69,7 +69,7 @@ } EOF -$CC ${CFLAGS} ${GTK_INCLUDE} ${OPENSSL_INCLUDE} -c test.c -o test.o 2>& 5 || true +$CC ${GTK_INCLUDE} ${OPENSSL_INCLUDE} -c test.c -o test.o 2>& 5 || true $CC test.o -o test ${LINK_FLAGS} ${GTK_LIBS} ${OPENSSL_LIBS} 2>& 5 || true if [ -x ./test ] && ./test @@ -117,7 +117,7 @@ } EOF -${CC} ${CFLAGS} ${GTK_INCLUDE} ${GNUTLS_INCLUDE} -c test.c -o test.o 2>& 5 || true +${CC} ${GTK_INCLUDE} ${GNUTLS_INCLUDE} -c test.c -o test.o 2>& 5 || true ${CC} test.o -o test ${LINK_FLAGS} ${GTK_LIBS} ${GNUTLS_LIBS} 2>& 5 || true if [ -x ./test ] && ./test @@ -159,7 +159,7 @@ } EOF -${CC} ${CFLAGS} ${GTK_INCLUDE} ${PKG_NTLM_INCLUDE} -c test.c -o test.o 2>& 5 || true +${CC} ${GTK_INCLUDE} ${PKG_NTLM_INCLUDE} -c test.c -o test.o 2>& 5 || true ${CC} test.o -o test ${LINK_FLAGS} ${GTK_LIBS} ${PKG_NTLM_LIBS} 2>& 5 || true if [ -x ./test ] && ./test @@ -209,7 +209,7 @@ } EOF -${CC} ${CFLAGS} ${GTK_INCLUDE} -c test.c -o test.o 2>& 5 || true +${CC} ${GTK_INCLUDE} -c test.c -o test.o 2>& 5 || true ${CC} test.o -o test ${LINK_FLAGS} ${GTK_LIBS} -lsensors 2>& 5 || true if [ -x ./test ] && ./test