From: Josh Soref Date: Thu, 10 Jan 2019 04:55:01 +0000 (-0500) Subject: Tell people to use --with-(dyn-)modules=... when they use --without-mysql X-Git-Tag: rec-4.2.0-alpha1~22^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7335%2Fhead;p=thirdparty%2Fpdns.git Tell people to use --with-(dyn-)modules=... when they use --without-mysql closes #5140 --- diff --git a/m4/pdns_with_mysql.m4 b/m4/pdns_with_mysql.m4 index 8bfe29103e..036b963fdc 100644 --- a/m4/pdns_with_mysql.m4 +++ b/m4/pdns_with_mysql.m4 @@ -2,6 +2,12 @@ AC_DEFUN([PDNS_WITH_MYSQL],[ AC_ARG_WITH([mysql], [AS_HELP_STRING([--with-mysql=], [root directory path of MySQL installation])], [ + if test "$withval" = "no"; then + modules_without_gmysql=$(echo $modules|sed -e 's/gmysql//;s/ */ /g;') + dynmodules_without_gmysql=$(echo $dynmodules|sed -e 's/gmysql//;s/ */ /g;') + AC_MSG_ERROR([instead of --without-mysql try --with-modules="$modules_without_gmysql" --with-dyn-modules="$dynmodules_without_gmysql"]) + fi + MYSQL_LIBS_check="$withval/lib/mysql $with_mysql/lib" MYSQL_CFLAGS_check="$withval/include/mysql" MYSQL_config_check="$withval/bin/mysql_config"