]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2367] Check if --with-dhcp-mysql is used when DHCP components are disabled
authorMukund Sivaraman <muks@isc.org>
Thu, 27 Feb 2014 23:35:46 +0000 (05:05 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 27 Feb 2014 23:35:46 +0000 (05:05 +0530)
configure.ac

index 9a343a0dff745fa445d7bddee4b972d74800daa9..7177d728d01c7eb989679de576764b9c3dfec565 100644 (file)
@@ -924,6 +924,10 @@ elif test "${mysql_config}" != "no" ; then
 fi
 
 if test "$MYSQL_CONFIG" != "" ; then
+    if test "$want_dhcp" != "yes"; then
+        AC_MSG_ERROR([--with-dhcp-mysql should not be used when DHCP components are disabled])
+    fi
+
     if test -d "$MYSQL_CONFIG" -o ! -x "$MYSQL_CONFIG" ; then
         AC_MSG_ERROR([--with-dhcp-mysql should point to a mysql_config program])
     fi