]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Added libbind checks
authorFrancis Dupont <fdupont@isc.org>
Thu, 22 Sep 2016 14:13:28 +0000 (16:13 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 22 Sep 2016 14:13:28 +0000 (16:13 +0200)
configure
configure.ac

index c0d8cd46d22ecc91d2ea71684db2f656e85d6de2..e07023c6ecade90a7501b2898db91aea4db95c18 100755 (executable)
--- a/configure
+++ b/configure
@@ -6857,6 +6857,15 @@ no)
 
        ;;
 *)
+       if test ! -d "$use_libbind"; then
+               as_fn_error $? "Cannot find bind directory at $use_libbind" "$LINENO" 5
+       fi
+       if test ! -d "$use_libbind/include"; then
+               as_fn_error $? "Cannot find bind includes at $use_libbind/include" "$LINENO" 5
+       fi
+       if test ! -d "$use_libbind/lib"; then
+               as_fn_error $? "Cannot find bind libraries at $use_libbind/lib" "$LINENO" 5
+       fi
        BINDDIR="$use_libbind"
        ;;
 esac
index abf2475b9efdc7b3fbd284e37396cf9e224943f7..36aeace12f8b9d2e093e98fc323e9749121f48bc 100644 (file)
@@ -707,6 +707,15 @@ no)
        AC_CONFIG_FILES([$srcdir/bind/Makefile])
        ;;
 *)
+       if test ! -d "$use_libbind"; then
+               AC_MSG_ERROR([Cannot find bind directory at $use_libbind])
+       fi
+       if test ! -d "$use_libbind/include"; then
+               AC_MSG_ERROR([Cannot find bind includes at $use_libbind/include])
+       fi
+       if test ! -d "$use_libbind/lib"; then
+               AC_MSG_ERROR([Cannot find bind libraries at $use_libbind/lib])
+       fi
        BINDDIR="$use_libbind"
        ;;
 esac