AC_DEFUN(PSI_CONFIG_INIT, [
cat >$PSI_STDTYPES <<EOF
/* generated by configure */
-static struct psi_predef_type {
+static struct psi_std_type {
token_t type_tag;
const char *type_name;
const char *alias;
EOF
cat >$PSI_TYPES <<EOF
/* generated by configure */
-static struct psi_predef_type psi_predef_types@<:@@:>@ = {
+static struct psi_predef_type {
+ token_t type_tag;
+ const char *type_name;
+ const char *alias;
+} psi_predef_types@<:@@:>@ = {
EOF
cat >$PSI_STRUCTS <<EOF
/* generated by configure */
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().