Unify logging and use of environment in configure scripts

- Make the server configure script log the environment just like the
  configure script used for the client.

- Honour the CFLAGS env var too since the other configure does the same
This commit is contained in:
Stefan Gehn 2014-08-23 18:32:41 +02:00
parent 5cd8fb8db0
commit c02a7d57e6
1 changed files with 4 additions and 2 deletions

6
server/configure vendored
View File

@ -16,10 +16,12 @@ done
rm -f configure.h configure.log test test.o test.c
touch configure.h
exec 5>./configure.log
CC=${CC-gcc}
exec 5>./configure.log
echo "CC : ${CC}" 1>& 5
echo "CFLAGS: ${CFLAGS}" 1>& 5
if [ "$without_libsensors" != "yes" ]
then
@ -51,7 +53,7 @@ int main()
}
EOF
$CC -c test.c -o test.o 2>& 5
$CC ${CFLAGS} -c test.c -o test.o 2>& 5
$CC test.o -o test -lsensors 2>& 5
if [ -x ./test ]