]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3697] Error in configure if autoreconf needed for premium hooks
authorDoug Freed <dwfreed@isc.org>
Tue, 17 Dec 2024 21:14:18 +0000 (15:14 -0600)
committerDoug Freed <dwfreed@isc.org>
Wed, 22 Jan 2025 16:59:03 +0000 (16:59 +0000)
This ensures that configure will find the premium hooks if they exist,
or error if autoreconf needs to be run again to pick up the hooks'
additions to configure.

configure.ac

index 8f6760e25ced3d29672c0a3c4db15d430a902a15..bc9aceb5e14119c76d1f7ac8069e7ad21f0a7d81 100644 (file)
@@ -144,7 +144,10 @@ INCLUDED_HOOKS=
 PREMIUM=no
 PREMIUM_DIR=
 DISTCHECK_PREMIUM_CONFIGURE_FLAG=
-AC_DEFUN([AX_PREMIUM],[])
+AC_DEFUN([AX_PREMIUM],
+  [if test -f premium/config.m4; then
+    AC_MSG_ERROR([You appear to have added premium hooks after running autoreconf. Please run 'autoreconf -f -i' and then rerun this script.])
+  fi])
 # m4_sinclude includes the file if it exists at autoreconf time
 m4_sinclude(premium/config.m4)
 AC_SUBST(PREMIUM_DIR)