summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-07-27 10:31:14 +0200
committerDarren Tucker <dtucker@dtucker.net>2022-07-27 10:31:14 +0200
commit722a56439aa5972c830e4a9a724cf52aff4a950a (patch)
tree47e4b50f770c0e0e549f129a699f1ade2783f5fe /configure.ac
parentMove libcrypto into CHANNELLIBS. (diff)
downloadopenssh-722a56439aa5972c830e4a9a724cf52aff4a950a.tar.xz
openssh-722a56439aa5972c830e4a9a724cf52aff4a950a.zip
Move stale-configure check as early as possible.
We added a check in Makefile to catch the case where configure needs to be rebuilt, however this did not happen until a build was attempted in which case all of the work done by configure was wasted. Move this check to the start of configure to catch it as early as possible. ok djm@
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 33f9b5f9e..87fad7084 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,14 @@
AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([ssh.c])
+
+# Check for stale configure as early as possible.
+for i in $srcdir/configure.ac $srcdir/m4/*.m4; do
+ if test "$i" -nt "$srcdir/configure"; then
+ AC_MSG_ERROR([$i newer than configure, run autoreconf])
+ fi
+done
+
AC_LANG([C])
AC_CONFIG_HEADERS([config.h])