summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-12-09 17:23:35 +0100
committerWerner Koch <wk@gnupg.org>1999-12-09 17:23:35 +0100
commitf8848d9c5cb6d679d806d702d1657e9165e972be (patch)
tree1215362f1d7fd38d565eb61596401edd87776980 /acinclude.m4
parentSee ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner Koch (diff)
downloadgnupg2-f8848d9c5cb6d679d806d702d1657e9165e972be.tar.xz
gnupg2-f8848d9c5cb6d679d806d702d1657e9165e972be.zip
See ChangeLog: Thu Dec 9 17:22:27 CET 1999 Werner Koch
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m426
1 files changed, 25 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index aa721ea88..4a8f0a2b2 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -27,6 +27,28 @@ AC_DEFUN(GNUPG_CHECK_TYPEDEF,
])
+dnl GNUPG_FIX_HDR_VERSION(FILE, NAME)
+dnl Make the version number in gcrypt/gcrypt.h the same as the one here.
+dnl (this is easier than to have a .in file just for one substitution)
+dnl
+AC_DEFUN(GNUPG_FIX_HDR_VERSION,
+ [ sed "s/^#define $2 \".*/#define $2 \"$VERSION\"/" $1 > $1.tmp
+ if cmp -s $1 $1.tmp 2>/dev/null; then
+ rm -f $1.tmp
+ else
+ rm -f $1
+ if mv $1.tmp $1 ; then
+ :
+ else
+ AC_MSG_ERROR([[
+*** Failed to fix the version string macro $2 in $1.
+*** The old file has been saved as $1.tmp
+ ]])
+ fi
+ AC_MSG_WARN([fixed the $2 macro in $1])
+ fi
+ ])
+
dnl GNUPG_LINK_FILES( SRC, DEST )
dnl same as AC_LINK_FILES, but collect the files to link in
@@ -49,6 +71,8 @@ define(GNUPG_DO_LINK_FILES,
])
+
+
dnl GNUPG_CHECK_ENDIAN
dnl define either LITTLE_ENDIAN_HOST or BIG_ENDIAN_HOST
dnl
@@ -633,7 +657,7 @@ AC_DEFUN(GNUPG_FUNC_MKDIR_TAKES_ONE_ARG,
#ifdef HAVE_DIRECT_H
# include <direct.h>
#endif], [mkdir ("foo", 0);],
- gnupg_cv_mkdir_takes_one_arg=no, gnupg_cv_mkdir_takes_one_arg=yes)])
+ gnupg_cv_mkdir_takes_one_arg=no, gnupg_cv_mkdir_takes_one_arg=yes)])
if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
AC_DEFINE(MKDIR_TAKES_ONE_ARG)
fi