X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=config.m4;h=74fefdb3ed4ce0fef45a7b84a56c0b6d7eb65c52;hb=ef5079cd02c9d8666f6b9336853d2ab393e33467;hp=16db302f21bdd7de505561fdc6e9f4bc26456a1f;hpb=b4a3c33fc143fd57288fcfe0878e7a22eeaf61bf;p=m6w6%2Fext-psi diff --git a/config.m4 b/config.m4 index 16db302..74fefdb 100644 --- a/config.m4 +++ b/config.m4 @@ -1,12 +1,3 @@ -PHP_ARG_ENABLE(psi, whether to enable PHP System Interface support, -[ --enable-psi Enable PHP System Interface support]) - -PHP_ARG_WITH(psi-libjit, where to find libjit, -[ --with-psi-libjit=DIR PSI: path to libjit], [ ], [ ]) - -PHP_ARG_WITH(psi-libffi, where to find libffi, -[ --with-psi-libffi=DIR PSI: path to libffi], [ ], [ ]) - PHP_PSI_SRCDIR=PHP_EXT_SRCDIR(psi) PHP_PSI_BUILDDIR=PHP_EXT_BUILDDIR(psi) @@ -49,6 +40,18 @@ m4_foreach(incfile, [ sinclude([ext/psi/m4/]incfile) ]) +PHP_ARG_ENABLE(psi, whether to enable PHP System Interface support, +[ --enable-psi Enable PHP System Interface support]) + +PHP_ARG_ENABLE(psi-posix, whether to pre-define POSIX decls, +[ --ebable-psi-posix PSI: pre-define POSIX decls], [ ], [ ]) + +PHP_ARG_WITH(psi-libjit, where to find libjit, +[ --with-psi-libjit=DIR PSI: path to libjit], [ ], [ ]) + +PHP_ARG_WITH(psi-libffi, where to find libffi, +[ --with-psi-libffi=DIR PSI: path to libffi], [ ], [ ]) + if test "$PHP_PSI" != no; then PHP_CONFIGURE_PART(Configuring PSI) @@ -62,8 +65,8 @@ if test "$PHP_PSI" != no; then PSI_CONFIG_INIT PSI_CHECK_STD_TYPES PSI_CHECK_STDINT - PSI_CHECK_STDDEF PSI_CHECK_SYS_TYPES + PSI_CHECK_STDDEF PSI_CHECK_ERRNO PSI_CHECK_FCNTL PSI_CHECK_GLOB @@ -105,10 +108,11 @@ if test "$PHP_PSI" != no; then PHP_ADD_BUILD_DIR($PHP_PSI_BUILDDIR/src) PHP_PSI_HEADERS=`(cd $PHP_PSI_SRCDIR/src && echo *.h)` - PHP_PSI_SOURCES=`(cd $PHP_PSI_SRCDIR && echo src/context*.c)` + PHP_PSI_SOURCES= # parser* should come first PHP_PSI_SOURCES="$PHP_PSI_SOURCES src/parser_proc.c src/parser.c" PHP_PSI_SOURCES="$PHP_PSI_SOURCES src/libjit.c src/libffi.c src/engine.c" PHP_PSI_SOURCES="$PHP_PSI_SOURCES src/marshal.c src/calc.c src/module.c" + PHP_PSI_SOURCES="$PHP_PSI_SOURCES `(cd $PHP_PSI_SRCDIR && echo src/context*.c)`" PHP_NEW_EXTENSION(psi, $PHP_PSI_SOURCES, $ext_shared) PHP_INSTALL_HEADERS(ext/psi, php_psi.h $PHP_PSI_HEADERS)