]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5567] Re-add support for --with-dhcp-mysql and --with-dhcp-pgsql
authorThomas Markwalder <tmark@isc.org>
Tue, 10 Apr 2018 11:23:18 +0000 (07:23 -0400)
committerThomas Markwalder <tmark@isc.org>
Tue, 10 Apr 2018 11:23:18 +0000 (07:23 -0400)
configure.ac
  Re-added support --with-dhcp-mysql and --with-dhcp-pgsql but emit a
  deprecation warning message encouraging their replacement with
  --with-mysql and --with-pgsql.

configure.ac

index ed07da276a58235a1f2c0a952c681ac955f848ee..9787560ba60388e97764fec9a47c6c81f007f00f 100644 (file)
@@ -646,6 +646,14 @@ AC_ARG_WITH([mysql],
     [path to the MySQL 'mysql_config' script (MySQL is used for the DHCP database)]),
     [mysql_config="$withval"])
 
+deprec_msg="no"
+AC_ARG_WITH([dhcp-mysql],,
+    [mysql_config="$withval";deprec_msg="yes"])
+
+if test "${deprec_msg}" = "yes" ; then
+    AC_MSG_WARN([--with-dhcp-mysql has been deprecated, please use --with-mysql])
+fi
+
 if test "${mysql_config}" = "yes" ; then
     MYSQL_CONFIG="/usr/bin/mysql_config"
 elif test "${mysql_config}" != "no" ; then
@@ -700,6 +708,14 @@ AC_ARG_WITH([pgsql],
     [path to the PostgreSQL 'pg_config' script]),
     [pg_config="$withval"])
 
+deprec_msg="no"
+AC_ARG_WITH([dhcp-pgsql],,
+    [pg_config="$withval";deprec_msg="yes"])
+
+if test "${deprec_msg}" = "yes" ; then
+    AC_MSG_WARN([--with-dhcp-pgsql has been deprecated, please use --with-pgsql])
+fi
+
 if test "${pg_config}" = "yes" ; then
     PG_CONFIG="/usr/bin/pg_config"
 elif test "${pg_config}" != "no" ; then