escape backslash
[m6w6/ext-psi] / m4 / psi.m4
index 63407beb24bb9fd0c61856c65668475fd0da3aed..9f770c903b9854a61dc0af61016332d8a7832355 100644 (file)
--- a/m4/psi.m4
+++ b/m4/psi.m4
@@ -75,9 +75,10 @@ static struct psi_predef_const {
 EOF
        cat >$PSI_REDIRS <<EOF
 /* generated by configure */
+typedef void (*psi_func_ptr)();
 static struct psi_func_redir {
        const char *name;
-       void (*func)(void);
+       psi_func_ptr func;
 } psi_func_redirs@<:@@:>@ = {
 EOF
        cat >$PSI_MACROS </dev/null
@@ -151,7 +152,7 @@ dnl PSI_CONFIG_POSIX(section, headers)
 AC_DEFUN(PSI_CONFIG_POSIX, [
        PSI_CONFIG_POSIX_ENABLED($1, [
                PHP_CONFIGURE_PART(Configuring PSI POSIX: $1)
-               ifelse([$2],,,AC_CHECK_HEADERS($2))
+               ifelse([$2],,:,[AC_CHECK_HEADERS($2)])
        ], [
                return 0
        ])