From a892c8a8035b11fe0959e6aa24d0caafbb5e90c8 Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Mon, 3 Feb 2025 18:15:14 +0000 Subject: [PATCH] Add AM_MAINTAINER_MODE for users checking out a release tag --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 0ab7f3c83..974edc8dc 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,15 @@ AC_PREREQ([2.60]) AC_INIT([PCRE2],pcre2_major.pcre2_minor[]pcre2_prerelease,[],[pcre2]) AC_CONFIG_SRCDIR([src/pcre2.h.in]) AM_INIT_AUTOMAKE([dist-bzip2 dist-zip foreign]) +ifelse(pcre2_prerelease, [-DEV], + [dnl For development builds, ./configure is not checked in to Git, so we are + dnl happy to have it regenerated as needed. + AM_MAINTAINER_MODE([enable])], + [dnl For a release build (or RC), the ./configure script we ship in the + dnl tarball (and check in to the Git tag) should not be regenerated + dnl implicitly. This is important if users want to check out a release tag + dnl using Git. + AM_MAINTAINER_MODE]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_HEADERS(src/config.h)