dnl parallel
AC_MSG_CHECKING([for POSIX modules: $PHP_PSI_POSIX])
+ PSI_CONFIG_POSIX(signal, signal.h, [
+ PSI_CONFIG_POSIX(time, time.h, [
+ PSI_CONFIG_POSIX(sys/stat, sys/stat.h)
+ PSI_CONFIG_POSIX(wchar, wchar.h, [
+ PSI_CONFIG_POSIX(wctype, wctype.h)
+ ])
+ ])
+ PSI_CONFIG_POSIX(sys/select, sys/select.h)
+ ])
+ PSI_CONFIG_POSIX(poll, poll.h)
+ PSI_CONFIG_POSIX(syslog, syslog.h)
PSI_CONFIG_POSIX(errno, errno.h)
PSI_CONFIG_POSIX(fcntl, fcntl.h)
PSI_CONFIG_POSIX(glob, glob.h)
PSI_CONFIG_POSIX(stdio, stdio.h)
PSI_CONFIG_POSIX(stdlib, stdlib.h)
PSI_CONFIG_POSIX(unistd, unistd.h)
- PSI_CONFIG_POSIX(time, time.h)
- PSI_CONFIG_POSIX(sys/select, sys/select.h)
- PSI_CONFIG_POSIX(sys/socket, sys/socket.h)
+ PSI_CONFIG_POSIX(sys/socket, sys/socket.h, [
+ PSI_CONFIG_POSIX(netinet/in, netinet/in.h)
+ PSI_CONFIG_POSIX(netdb, netdb.h)
+ ])
+ PSI_CONFIG_POSIX(netinet/tcp, netinet/tcp.h)
PSI_CONFIG_POSIX(sys/time, sys/time.h)
PSI_CONFIG_POSIX(sys/times, sys/times.h)
- PSI_CONFIG_POSIX(sys/stat, sys/stat.h)
PSI_CONFIG_POSIX(sys/uio, sys/uio.h)
PSI_CONFIG_POSIX(sys/utsname, sys/utsname.h)
PSI_CONFIG_POSIX(ndbm, dnl
relic.h dnl qdbm
gdbm-ndbm.h dnl gdbm
)
- PSI_CONFIG_POSIX(netdb, netdb.h)
- PSI_CONFIG_POSIX(netinet/in, netinet/in.h)
- PSI_CONFIG_POSIX(netinet/tcp, netinet/tcp.h)
- PSI_CONFIG_POSIX(poll, poll.h)
- PSI_CONFIG_POSIX(signal, signal.h)
- PSI_CONFIG_POSIX(syslog, syslog.h)
- PSI_CONFIG_POSIX(wchar, wchar.h)
- PSI_CONFIG_POSIX(wctype, wctype.h)
PSI_CONFIG_DONE
PHP_SUBST(PSI_DEPS)
PSI_CONFIG_TMP=$(mktemp -d)
+ PSI_FUNC_LIBC_MAIN
else
PSI_FAST_CONFIG=false
PSI_DEPS=false
AS_TR_SH([psi_config_posix_]$1)=true
;;
*)
- if expr "$PHP_PSI_POSIX" : '\b$1\b' >/dev/null; then
+ if expr "$PHP_PSI_POSIX" : '.*\b$1\b' >/dev/null; then
AS_TR_SH([psi_config_posix_]$1)=true
fi
;;
fi
])
-dnl PSI_CONFIG_POSIX(section, headers)
+dnl PSI_CONFIG_POSIX(section, headers, dependents)
AC_DEFUN(PSI_CONFIG_POSIX, [
PSI_CONFIG_POSIX_ENABLED($1, [
if $PSI_FAST_CONFIG; then
- PSI_CONFIG_POSIX_PARALLEL($1, $2)
+ PSI_CONFIG_POSIX_PARALLEL($1, $2, [$3])
else
ifelse([$2],,:,[AC_CHECK_HEADERS($2)])
AS_TR_CPP([PSI_CHECK_$1])
+ $3
fi
])
])
(
dnl setup
mkdir $PSI_CONFIG_TMP/AS_TR_SH([$1])
+ printenv > $PSI_CONFIG_TMP/AS_TR_SH([$1])/start.env
ln -s $(pwd)/confdefs.h $PSI_CONFIG_TMP/AS_TR_SH([$1])/confdefs.h
dnl restore stdio
AS_TR_CPP([PSI_CHECK_$1])
dnl save env
+ printenv > $PSI_CONFIG_TMP/AS_TR_SH([$1])/end.env
cat >$PSI_CONFIG_TMP/AS_TR_SH([$1])/conf.env <<EOF
LIBS="$LIBS \$LIBS"
EOF
fi
done
+ _AC_CACHE_DUMP >>$PSI_CONFIG_TMP/AS_TR_SH([$1])/conf.env
+
dnl done
printf "%s " "$1" >&66
+
+ $3
+ wait
) &
])