Skip to content

Commit cef4533

Browse files
author
foobar
committed
fix build..
1 parent 8c19b75 commit cef4533

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ext/overload/config.m4

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
dnl
22
dnl $Id$
33
dnl
4+
45
PHP_ARG_ENABLE(overload,whether to enable user-space object overloading support,
56
[ --disable-overload Disable user-space object overloading support.], yes)
67

7-
88
if test "$PHP_OVERLOAD" != "no"; then
9-
AC_CHECK_FILE([Zend/zend_objects.h], [
10-
AC_MSG_CHECKING(for overload)
11-
AC_MSG_RESULT(not needed with ZendEngine 2)
12-
], [
13-
AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
14-
PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
15-
])
9+
if test -f $php_abs_top_srcdir/Zend/zend_objects.h; then
10+
AC_MSG_CHECKING(for overload)
11+
AC_MSG_RESULT(not needed with ZendEngine 2)
12+
else
13+
AC_DEFINE(HAVE_OVERLOAD, 1, [ ])
14+
PHP_NEW_EXTENSION(overload, overload.c, $ext_shared)
15+
fi
1616
fi

0 commit comments

Comments
 (0)