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)