----- "Nishio Futoshi" <fut_nis@xxxxxxxxxxxxx> wrote: > Thanks for your patch. But i think that it is not enough. > > AC_CHECK_SIZEOF([int *]) is not define #define SIZEOF_INT_P > in config.h. In config.log "#define SIZEOF_INT_P > $ac_cv_sizeof_int_p" > was written. > > I tried to write AC_CHECK_SIZEOF([int]) and AC_CHECK_SIZEOF([int *]) > in configure.ac > > config.log > #define SIZEOF_INT 4 > #define SIZEOF_INT_P $ac_cv_sizeof_int_p > > config.h.in > /* The size of `int', as computed by sizeof. */ > #undef SIZEOF_INT > > ( there is not SIZEOF_INT_P ) Indeed, I spent a bit more time, and reproduced your follow-on issue. Here's the complete patch (the same as before in types.m4, plus a new patch in m4sh.m4), which should resolve the issue. diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4 index ee07148..9f482da 100644 --- a/lib/autoconf/types.m4 +++ b/lib/autoconf/types.m4 @@ -763,7 +763,7 @@ Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.]) # AC_CHECK_SIZEOF(TYPE, [IGNORED], [INCLUDES = DEFAULT-INCLUDES]) # --------------------------------------------------------------- AC_DEFUN([AC_CHECK_SIZEOF], -[AS_LITERAL_IF([$1], [], +[AS_LITERAL_IF(m4_translit([[$1]], [*], [p]), [], [m4_fatal([$0: requires literal arguments])])]dnl [# The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index e1d03d9..051107a 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -1779,7 +1779,7 @@ m4_defun_init([AS_TR_SH], [_$0(m4_expand([$1]))]) m4_define([_AS_TR_SH], -[_AS_LITERAL_IF([$1], [ ][ +[_AS_LITERAL_IF([$1], [*+][ ][ ])([], [$0_INDIR], [$0_LITERAL])([$1])]) m4_define([_AS_TR_SH_LITERAL], @@ -1812,7 +1812,7 @@ m4_defun_init([AS_TR_CPP], [_$0(m4_expand([$1]))]) m4_define([_AS_TR_CPP], -[_AS_LITERAL_IF([$1], [ ][ +[_AS_LITERAL_IF([$1], [*][ ][ ])([], [$0_INDIR], [$0_LITERAL])([$1])]) m4_define([_AS_TR_CPP_LITERAL], -- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf