X-Git-Url: http://git.dolda2000.com/gitweb/?p=doldaconnect.git;a=blobdiff_plain;f=configure.in;h=d93efa0ac94b8ca99ab7662a23293415fa577674;hp=f90ec5f43088bb3e89ea80e068ef4da71a2296f1;hb=8af979f318c0e3d1d00a35996f6b5fecb055ac33;hpb=a9477b339d8edadb9eb109718e3acffc178d65c6 diff --git a/configure.in b/configure.in index f90ec5f..d93efa0 100644 --- a/configure.in +++ b/configure.in @@ -243,6 +243,18 @@ CPPFLAGS="-I\$(top_srcdir)/include $CPPFLAGS" DOLDA_AC_GROUP([Writing output]) +AH_TEMPLATE(RELEASEINFO, [define release information reported by various programs (should be left to configure to define)]) +relinfo="relver ${VERSION}\\n" +relinfo="${relinfo}builddate $(date)\\n" +if test -d .git && which git-rev-parse >/dev/null 2>&1; then + relinfo="${relinfo}source git $(git-rev-parse HEAD)\\n" +elif test -r source; then + relinfo="${relinfo}source $(cat source)\\n" +else + relinfo="${relinfo}source unknown\\n" +fi +AC_DEFINE_UNQUOTED([RELEASEINFO], ["$relinfo"]) + AC_SUBST([extlibs]) AC_OUTPUT([ Makefile