]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix configure errors without pkg-config installed.
authorRoy Marples <roy@marples.name>
Mon, 22 Sep 2014 13:57:58 +0000 (13:57 +0000)
committerRoy Marples <roy@marples.name>
Mon, 22 Sep 2014 13:57:58 +0000 (13:57 +0000)
configure

index 64092211e345d92920ac5e28911b18a614d6dadc..294f49a0edb80711eb530d79365803ff45d935d1 100755 (executable)
--- 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"