summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-09-22 13:57:58 +0000
committerRoy Marples <roy@marples.name>2014-09-22 13:57:58 +0000
commitbe111d4b7179f89cce2530bbc5b802ab873726a9 (patch)
treec7bf34a7fda9dffe21f43d0a344a61d3f38f3c95 /configure
parent6c666347cd5f9e01fd387a724c4c7278ba2b91a0 (diff)
downloaddhcpcd-be111d4b7179f89cce2530bbc5b802ab873726a9.tar.xz
Fix configure errors without pkg-config installed.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 64092211..294f49a0 100755
--- a/configure
+++ b/configure
@@ -971,8 +971,10 @@ fi
if [ "$DEV" != no -a "$UDEV" != no ]; then
printf "Checking for libudev ... "
- LIBUDEV_CFLAGS=$(pkg-config --cflags libudev 2>&3)
- LIBUDEV_LIBS=$(pkg-config --libs libudev 2>&3)
+ if type pkg-config >/dev/null 2>&1; then
+ LIBUDEV_CFLAGS=$(pkg-config --cflags libudev 2>&3)
+ LIBUDEV_LIBS=$(pkg-config --libs libudev 2>&3)
+ fi
fi
if [ "$DEV" != no -a "$UDEV" != no -a -n "$LIBUDEV_LIBS" ]; then
echo "yes"