X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fpsi.m4;h=4ea5590a4e4af6985818b80b07cba106a75e7f21;hp=ff483bf17f6e78d04229176f8bc4ca7e49ddae3d;hb=81b71a515e2024cee739deb6e207eb3b0e7c5d64;hpb=574519ef5e3ab76f00253fad870afce7135638d1 diff --git a/m4/psi.m4 b/m4/psi.m4 index ff483bf..4ea5590 100644 --- a/m4/psi.m4 +++ b/m4/psi.m4 @@ -1,9 +1,72 @@ -PSI_TYPES= -PSI_STRUCTS= -PSI_CONSTS= -PSI_REDIRS= -PSI_MACROS= -PSI_DECLS= +PSI_STDINC=$PHP_PSI_SRCDIR/php_psi_stdinc.h +PSI_TYPES=$PHP_PSI_SRCDIR/php_psi_types.h +PSI_STRUCTS=$PHP_PSI_SRCDIR/php_psi_structs.h +PSI_CONSTS=$PHP_PSI_SRCDIR/php_psi_consts.h +PSI_REDIRS=$PHP_PSI_SRCDIR/php_psi_redirs.h +PSI_MACROS=$PHP_PSI_SRCDIR/php_psi_macros.h +PSI_DECLS=$PHP_PSI_SRCDIR/php_psi_decls.h +PSI_VA_DECLS=$PHP_PSI_SRCDIR/php_psi_va_decls.h + +AC_DEFUN(PSI_CONFIG_INIT, [ + cat >$PSI_TYPES <@ = { +EOF + cat >$PSI_STRUCTS <@ = { +EOF + cat >$PSI_CONSTS <@ = { +EOF + cat >$PSI_REDIRS <@ = { +EOF + cat >$PSI_MACROS $PSI_DECLS <@ = { +EOF + cat >$PSI_VA_DECLS <@ = { +EOF +]) + +AC_DEFUN(PSI_CONFIG_DONE, [ + cat >$PSI_STDINC <>$i < +#endif +#ifdef HAVE_GLOB_H +# include +#endif +#ifdef HAVE_LOCALE_H +# include +#endif +#ifdef HAVE_XLOCALE_H +# include +#endif +#ifdef HAVE_NETINET_IN_H +# include +#endif +#ifdef HAVE_ARPA_NAMESER_H +# include +#endif +#ifdef HAVE_NETDB_H +# include +#endif +#ifdef HAVE_RESOLV_H +# include +#endif +#ifdef HAVE_SYS_SELECT_H +# include +#endif +#ifdef HAVE_SYS_SOCKET_H +# include +#endif +#ifdef HAVE_SYS_TIME_H +# include +#endif +#ifdef HAVE_SYS_TIMES_H +# include +#endif +#ifdef HAVE_SYS_UIO_H +# include +#endif +#ifdef HAVE_SYS_UTSNAME_H +# include +#endif +#ifdef HAVE_TIME_H +# include +#endif +#ifdef HAVE_SYSLOG_H +# include +#endif +#ifdef HAVE_WCHAR_H +# include +#endif +#ifdef HAVE_WCTYPE_H +# include +#endif +]) AC_DEFUN(PSI_LEMON, [ AC_ARG_VAR(LEMON, The lemon parser generator of the SQLite project) @@ -129,6 +246,10 @@ AC_DEFUN(PSI_CHECK_LIBFFI, [ ], [ ], -L$psi_cv_libffi_dir/$PHP_LIBDIR) ], -L$psi_cv_libffi_dir/$PHP_LIBDIR) + PHP_CHECK_LIBRARY(ffi, ffi_prep_cif_var, [ + AC_DEFINE(PSI_HAVE_FFI_PREP_CIF_VAR, 1, [ ]) + ], [ + ], -L$psi_cv_libffi_dir/$PHP_LIBDIR) ]) dnl PSI_COMPUTE_STR(variable, string or expression)