-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.m4
32 lines (26 loc) · 990 Bytes
/
config.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PHP_ARG_WITH(webkitgtk, for webkitgtk support,
[ --with-webkitgtk Include webkitgtk support])
if test "$PHP_WEBKITGTK" != "no"; then
AC_MSG_CHECKING([for webkit2gtk availability])
pkg-config --cflags --libs webkit2gtk-4.0 2>/dev/null > /dev/null
WEBKIT_FOUND=$(echo $?)
if test $WEBKIT_FOUND -lt 1; then
AC_MSG_RESULT(found)
else
AC_MSG_RESULT(not found)
AC_MSG_ERROR([Please install webkit2gtk])
fi
dnl Add header search paths to the PHP build system
PHP_EVAL_INCLINE($(pkg-config --cflags webkit2gtk-4.0))
dnl Add libraries and or library search paths to the PHP build system
PHP_EVAL_LIBLINE($(pkg-config --libs webkit2gtk-4.0), WEBKITGTK_SHARED_LIBADD)
PHP_ADD_BUILD_DIR($ext_builddir/classes, 1)
PHP_ADD_INCLUDE($ext_builddir)
PHP_SUBST(WEBKITGTK_SHARED_LIBADD)
PHP_NEW_EXTENSION(
webkitgtk,
webkitgtk.c \
classes/webview.c \
classes/settings.c,
$ext_shared,,-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
fi