X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=config.m4;h=f25cc06dc0b83f236ef2cf33adc37a2769c8f96e;hp=b4107c878b64c800d03da213c7d0f4df57f0a55a;hb=3b44aae43e81d56d0686d2dee8b1ded3c277f2fd;hpb=21e56bfe786b2490cc02ba8b6b8275547171b048 diff --git a/config.m4 b/config.m4 index b4107c8..f25cc06 100644 --- a/config.m4 +++ b/config.m4 @@ -16,6 +16,7 @@ m4_foreach(incfile, [ [psi/psi_decl.m4], [psi/psi_macro.m4], [psi/psi_composite.m4], + [posix/arpa_inet.m4], [posix/errno.m4], [posix/fcntl.m4], [posix/glob.m4], @@ -24,6 +25,7 @@ m4_foreach(incfile, [ [posix/stdio.m4], [posix/stdint.m4], [posix/stdlib.m4], + [posix/stdarg.m4], [posix/sys_select.m4], [posix/sys_socket.m4], [posix/sys_stat.m4], @@ -85,11 +87,14 @@ if test "$PHP_PSI" != no; then AC_MSG_RESULT([already defined]) ]) - PSI_LEMON + AC_MSG_CHECKING([psi source dir]) + AC_MSG_RESULT([$PHP_PSI_SRCDIR]) + AC_MSG_CHECKING([psi build dir]) + AC_MSG_RESULT([$PHP_PSI_BUILDDIR]) + PSI_CHECK_LIBJIT PSI_CHECK_LIBFFI - AC_PATH_PROG(NM, nm) AC_FUNC_FNMATCH AC_FUNC_MMAP @@ -125,8 +130,11 @@ if test "$PHP_PSI" != no; then PSI_CONFIG_POSIX(stdio, stdio.h) PSI_CONFIG_POSIX(stdlib, stdlib.h) PSI_CONFIG_POSIX(unistd, unistd.h) + PSI_CONFIG_POSIX(stdarg, stdarg.h) PSI_CONFIG_POSIX(sys/socket, sys/socket.h, [ - PSI_CONFIG_POSIX(netinet/in, netinet/in.h) + PSI_CONFIG_POSIX(netinet/in, netinet/in.h, [ + PSI_CONFIG_POSIX(arpa/inet, arpa/inet.h) + ]) PSI_CONFIG_POSIX(netdb, netdb.h) ]) PSI_CONFIG_POSIX(netinet/tcp, netinet/tcp.h) @@ -148,18 +156,29 @@ if test "$PHP_PSI" != no; then PHP_ADD_INCLUDE($PHP_PSI_SRCDIR) PHP_ADD_INCLUDE($PHP_PSI_SRCDIR/src) + PHP_ADD_INCLUDE($PHP_PSI_SRCDIR/src/calc) PHP_ADD_INCLUDE($PHP_PSI_SRCDIR/src/types) PHP_ADD_INCLUDE($PHP_PSI_BUILDDIR) PHP_ADD_BUILD_DIR($PHP_PSI_BUILDDIR/src) PHP_ADD_BUILD_DIR($PHP_PSI_BUILDDIR/src/types) - PHP_PSI_HEADERS=`(cd $PHP_PSI_SRCDIR/src && ls *.h types/*.h)` + PHP_PSI_HEADERS=" \ + src/calc/basic.h src/calc/bin.h src/calc/bool.h src/calc/cast.h \ + src/calc/cmp.h src/calc/oper.h \ + `(cd $PHP_PSI_SRCDIR/src && ls *.h types/*.h)` \ + " # parser* should come first PHP_PSI_SOURCES=" \ - src/parser_proc.c src/parser.c - `(cd $PHP_PSI_SRCDIR && ls src/*.c src/types/*.c | $EGREP -v '^src/parser')` \ + src/parser_proc.c src/parser.c \ + `(cd $PHP_PSI_SRCDIR && ls src/*.c src/types/*.c \ + | $EGREP -v '^src/parser' \ + )` \ + " + PHP_PSI_GENERATED=" \ + src/parser_proc.c src/parser.c \ + src/calc/basic.h src/calc/bin.h src/calc/bool.h src/calc/cast.h \ + src/calc/cmp.h src/calc/oper.h \ " - PHP_PSI_GENERATED="src/parser_proc.y src/parser_proc.c src/parser.c" PHP_NEW_EXTENSION(psi, $PHP_PSI_SOURCES, $ext_shared) PHP_INSTALL_HEADERS(ext/psi, php_psi.h $PHP_PSI_HEADERS)