]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
configure: --with-udev explicity requires libudev to be present
authorRoy Marples <roy@marples.name>
Fri, 11 Jan 2019 12:39:33 +0000 (12:39 +0000)
committerRoy Marples <roy@marples.name>
Fri, 11 Jan 2019 12:39:33 +0000 (12:39 +0000)
configure

index 0f24a759f85a58faad0a1c74043a93e25035862c..d0a80ba22f2604520adac58073192bb3eb8dcfff 100755 (executable)
--- a/configure
+++ b/configure
@@ -91,6 +91,7 @@ for x do
        --without-sha256) SHA2=no;;
        --without-hmac) HMAC=no;;
        --without-dev) DEV=no;;
+       --with-udev) DEV=yes; UDEV=yes;;
        --without-udev) UDEV=no;;
        --with-poll) POLL="$var";;
        --serviceexists) SERVICEEXISTS=$var;;
@@ -1344,6 +1345,10 @@ EOF
        rm -f _udev.c _udev
 elif [ "$DEV" != no -a "$UDEV" != no ]; then
        echo "no"
+       if [ -n "$UDEV" ]; then
+               echo "udev has been explicity requested ... aborting" >&2
+               exit 1
+       fi
 fi
 
 if [ "$DEV" = yes ]; then