summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-05 08:51:04 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-05 08:51:04 +0200
commit8b5f0cfb0cbf54b707e1c16903f841148871baf1 (patch)
treebdd20fcc6542f74743a5666ba629dd038e121faf /configure
parentcfa76744cb9cea2649b0155b1bbdd0233a814307 (diff)
configure: Silence pkg-config calls
Redirect the output of pkg-config to /dev/null so it doesn't clutter the output of the configure script. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 9 insertions, 5 deletions
diff --git a/configure b/configure
index a5e8e21..94cc924 100755
--- a/configure
+++ b/configure
@@ -100,12 +100,12 @@ void main(void)
EOF
$CC -W -Wall \
- $(pkg-config --cflags libnl-3.0) \
- $(pkg-config --cflags libnl-genl-3.0) \
+ $(pkg-config --cflags libnl-3.0 2>&1 > /dev/null) \
+ $(pkg-config --cflags libnl-genl-3.0 2>&1 > /dev/null) \
-o $TMPDIR/libnltest \
$TMPDIR/libnltest.c \
- $(pkg-config --libs libnl-3.0) \
- $(pkg-config --libs libnl-genl-3.0) \
+ $(pkg-config --libs libnl-3.0 2>&1 > /dev/null) \
+ $(pkg-config --libs libnl-genl-3.0 2>&1 > /dev/null) \
>> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/libnltest ] ; then
echo "[NO]"
@@ -153,7 +153,11 @@ void main(void)
}
EOF
- $CC $(pkg-config --cflags ncurses) -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c $(pkg-config --libs ncurses) >> $TMPDIR/config.log 2>&1
+ $CC -W -Wall \
+ $(pkg-config --cflags ncurses 2>&1 > /dev/null) \
+ -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c \
+ $(pkg-config --libs ncurses 2>&1 > /dev/null) \
+ >> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/ncursestest ] ; then
echo "[NO]"
MISSING_DEFS=1