we need the typedef also for release builds
authorMichael Wallner <mike@php.net>
Mon, 6 Feb 2017 12:08:06 +0000 (13:08 +0100)
committerMichael Wallner <mike@php.net>
Mon, 6 Feb 2017 12:08:06 +0000 (13:08 +0100)
m4/psi/psi_type.m4

index 502c48ad0058c8f62a904146482082d7e765f5ec..27aeeaccf76e95603a96c9987dc4c81aa25389c8 100644 (file)
@@ -135,12 +135,10 @@ AC_DEFUN(PSI_FUNCTOR_TYPE, [
        dnl psi_add_type "{PSI_T_POINTER, \"void\", \"PSI_VAR_NAME($1)\"}"
        AS_TR_SH([ac_cv_sizeof_]PSI_VAR_NAME($1))=PSI_SH_SIZEOF(void *)
        PSI_DECL_TYPE([$1], [$2])
-       if test "$PHP_DEBUG" = "1"; then
-               AC_CHECK_TYPE(PSI_VAR_NAME($1), [], [
-                       psi_add_macro ["#undef ]PSI_VAR_NAME($1)["]
-                       psi_add_macro ["typedef ]PSI_VAR_TYPE($1)[ (*]PSI_VAR_NAME($1)[)]$2;"
-               ])
-       fi
+       AC_CHECK_TYPE(PSI_VAR_NAME($1), [], [
+               psi_add_macro ["#undef ]PSI_VAR_NAME($1)["]
+               psi_add_macro ["typedef ]PSI_VAR_TYPE($1)[ (*]PSI_VAR_NAME($1)[)]$2;"
+       ])
 ])
 
 dnl PSI_VAR_TYPE(decl arg)