X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fpsi%2Fpsi.m4;h=b979719862a2db08fff771411158c4c7def3fe7d;hp=c8eec1850d9f546efeef16b550e39bbf1be9c38a;hb=3ef8c66ab1300801bcdb15b43f9f28e77b6487b6;hpb=991b10eeadb51b0b3309f140391ecf0b4c1e1859 diff --git a/m4/psi/psi.m4 b/m4/psi/psi.m4 index c8eec18..b979719 100644 --- a/m4/psi/psi.m4 +++ b/m4/psi/psi.m4 @@ -16,6 +16,27 @@ dnl Creates stubs of the headers with pre-defined types etc. dnl These headers are included by src/context.c. dnl This macro must be called prior any checks for a type, struct, decl etc. AC_DEFUN(PSI_CONFIG_INIT, [ + psi_save_LIBS=$LIBS + LIBS= + + if test "$PHP_PSI_MAINTAINER_MODE" = "yes"; then + PSI_FAST_CONFIG=true + PSI_DEPS=true + PSI_EXTRA_REDIRS=true + + PHP_SUBST(PSI_DEPS) + + PSI_CONFIG_TMP=$(mktemp -d) + else + PSI_FAST_CONFIG=false + PSI_DEPS=false + if test "$PHP_DEBUG" = "1"; then + PSI_EXTRA_REDIRS=true + else + PSI_EXTRA_REDIRS=false + fi + fi + cat >$PHP_PSI_BUILDDIR/php_psi.dep <$PSI_STDINC <&AS_MESSAGE_FD + exec AS_MESSAGE_FD>$PSI_CONFIG_TMP/AS_TR_SH([$1])/stdout.log + exec 2>$PSI_CONFIG_TMP/AS_TR_SH([$1])/stderr.log + + dnl check for headers? + ifelse([$2],,:,[AC_CHECK_HEADERS($2)]) + + dnl chaway + cd $PSI_CONFIG_TMP/AS_TR_SH([$1]) + + dnl run checks + AS_TR_CPP([PSI_CHECK_$1]) + + dnl save libs + cat >$PSI_CONFIG_TMP/AS_TR_SH([$1])/conf.env <&66 + ) & +]) + AC_DEFUN(PSI_PTHREAD_ONCE, [ AX_PTHREAD([ LIBS="$PTHREAD_LIBS $LIBS"