diff --git a/server/configure b/server/configure index 5485c6f..4be92dd 100755 --- a/server/configure +++ b/server/configure @@ -13,9 +13,6 @@ do fi done -PKG_INCLUDE=`pkg-config gtk+-2.0 --cflags` -PKG_LIB=`pkg-config gtk+-2.0 --libs` - rm -f configure.h configure.log test test.o test.c touch configure.h @@ -54,8 +51,8 @@ int main() } EOF -$CC ${PKG_INCLUDE} -c test.c -o test.o 2>& 5 -$CC test.o -o test ${PKG_LIBS} -lsensors 2>& 5 +$CC -c test.c -o test.o 2>& 5 +$CC test.o -o test -lsensors 2>& 5 if [ -x ./test ] && ./test then diff --git a/src/configure b/src/configure index 1be1c27..20197b7 100755 --- a/src/configure +++ b/src/configure @@ -32,8 +32,6 @@ touch configure.h touch configure.mk exec 5>./configure.log -GTK_CFLAGS=$(pkg-config gtk+-2.0 --cflags 2>& 5) -GTK_LIBS=$(pkg-config gtk+-2.0 --libs 2>& 5) CC=${CC-gcc} echo "CC : ${CC}" 1>& 5 @@ -69,8 +67,8 @@ int main() } EOF -$CC ${CFLAGS} ${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 +$CC ${CFLAGS} ${OPENSSL_INCLUDE} -c test.c -o test.o 2>& 5 || true +$CC test.o -o test ${LINK_FLAGS} ${OPENSSL_LIBS} 2>& 5 || true if [ -x ./test ] && ./test then @@ -124,8 +122,8 @@ int main() } EOF -${CC} ${CFLAGS} ${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 +${CC} ${CFLAGS} ${GNUTLS_INCLUDE} -c test.c -o test.o 2>& 5 || true +${CC} test.o -o test ${LINK_FLAGS} ${GNUTLS_LIBS} 2>& 5 || true if [ -x ./test ] && ./test then @@ -166,8 +164,8 @@ int main() } EOF -${CC} ${CFLAGS} ${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 +${CC} ${CFLAGS} ${PKG_NTLM_INCLUDE} -c test.c -o test.o 2>& 5 || true +${CC} test.o -o test ${LINK_FLAGS} ${PKG_NTLM_LIBS} 2>& 5 || true if [ -x ./test ] && ./test then @@ -216,8 +214,8 @@ int main() } EOF -${CC} ${CFLAGS} ${GTK_INCLUDE} -c test.c -o test.o 2>& 5 || true -${CC} test.o -o test ${LINK_FLAGS} ${GTK_LIBS} -lsensors 2>& 5 || true +${CC} ${CFLAGS} -c test.c -o test.o 2>& 5 || true +${CC} test.o -o test ${LINK_FLAGS} -lsensors 2>& 5 || true if [ -x ./test ] && ./test then