flush
[m6w6/ext-psi] / m4 / psi.m4
index 97ea6fec13115ef0391aa843b56904a8b3835bfd..e8d8069c35b4f0642a187cf3e0a3d07f05220813 100644 (file)
--- a/m4/psi.m4
+++ b/m4/psi.m4
@@ -99,6 +99,15 @@ EOF
        done
 ])
 
+dnl PSI_CONFIG_POSIX(section, headers)
+AC_DEFUN(PSI_CONFIG_POSIX, [
+       case "$PHP_PSI_POSIX" in
+       yes|all) ;;
+       *) expr "$PHP_PSI_POSIX" : '\b$1\b' >/dev/null || return 0 ;;
+       esac
+       ifelse($2,,,AC_CHECK_HEADERS($2))
+])
+
 dnl PSI_INCLUDES()
 dnl Expands to a complete list of include statements including
 dnl AC_INCLUDES_DEFAULT().