1 dnl Macros to configure gpgme
3 dnl GNUPG_FIX_HDR_VERSION(FILE, NAME)
5 AC_DEFUN(GNUPG_FIX_HDR_VERSION,
6 [ sed "s/^#define $2 \".*/#define $2 \"$VERSION\"/" $srcdir/$1 > $srcdir/$1.tmp
7 if cmp -s $srcdir/$1 $srcdir/$1.tmp 2>/dev/null; then
11 if mv $srcdir/$1.tmp $srcdir/$1 ; then
15 *** Failed to fix the version string macro $2 in $1.
16 *** The old file has been saved as $1.tmp
19 AC_MSG_WARN([fixed the $2 macro in $1])