Skip to content

Commit 9726f48

Browse files
committed
Add AM_MAINTAINER_MODE for users checking out a release tag (#682)
1 parent 1dd34dc commit 9726f48

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

configure.ac

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ AC_PREREQ([2.60])
2626
AC_INIT([PCRE2],pcre2_major.pcre2_minor[]pcre2_prerelease,[],[pcre2])
2727
AC_CONFIG_SRCDIR([src/pcre2.h.in])
2828
AM_INIT_AUTOMAKE([dist-bzip2 dist-zip foreign])
29+
ifelse(pcre2_prerelease, [-DEV],
30+
[dnl For development builds, ./configure is not checked in to Git, so we are
31+
dnl happy to have it regenerated as needed.
32+
AM_MAINTAINER_MODE([enable])],
33+
[dnl For a release build (or RC), the ./configure script we ship in the
34+
dnl tarball (and check in to the Git tag) should not be regenerated
35+
dnl implicitly. This is important if users want to check out a release tag
36+
dnl using Git.
37+
AM_MAINTAINER_MODE])
2938
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
3039
AC_CONFIG_HEADERS(src/config.h)
3140

0 commit comments

Comments
 (0)