1 dnl GNUPG_CHECK_TYPEDEF(TYPE, HAVE_NAME)
2 dnl Check whether a typedef exists and create a #define $2 if it exists
4 AC_DEFUN(GNUPG_CHECK_TYPEDEF,
5 [ AC_MSG_CHECKING(for $1 typedef)
6 AC_CACHE_VAL(gnupg_cv_typedef_$1,
7 [AC_TRY_COMPILE([#include <stdlib.h>
8 #include <sys/types.h>], [
11 ], gnupg_cv_typedef_$1=yes, gnupg_cv_typedef_$1=no )])
12 AC_MSG_RESULT($gnupg_cv_typedef_$1)
13 if test "$gnupg_cv_typedef_$1" = yes; then