diff options
Diffstat (limited to 'winsup/mingw/aclocal.m4')
-rw-r--r-- | winsup/mingw/aclocal.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/winsup/mingw/aclocal.m4 b/winsup/mingw/aclocal.m4 index b407036..02b2f11 100644 --- a/winsup/mingw/aclocal.m4 +++ b/winsup/mingw/aclocal.m4 @@ -2,7 +2,22 @@ # # This provides configure definitions used by all the winsup # configure.in files. + +# MINGW_AC_CONFIG_SRCDIR( VERSION_TAG, UNIQUE_FILE ) +# -------------------------------------------------- +# Wrapper for AC_CONFIG_SRCDIR; in addition to checking for a +# unique file reference within the source tree, it resolves the +# definition for PACKAGE_VERSION, based on a tagged definition +# within that file, and adjusts PACKAGE_TARNAME to match. # +AC_DEFUN([MINGW_AC_CONFIG_SRCDIR], +[AC_CONFIG_SRCDIR([$2]) + AC_MSG_CHECKING([package version]) + PACKAGE_VERSION=`awk '$[2] == "'"$1"'" { print $[3] }' ${srcdir}/$2` + PACKAGE_TARNAME=${PACKAGE_NAME}-${PACKAGE_VERSION} + AC_MSG_RESULT([$PACKAGE_VERSION])dnl +]) #MINGW_AC_CONFIG_SRCDIR + # The following is copied from `no-executables.m4', in the top # `src/config' directory. # |