-
Notifications
You must be signed in to change notification settings - Fork 16
/
config.m4
41 lines (36 loc) · 1.29 KB
/
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
33
34
35
36
37
38
39
40
41
PHP_ARG_ENABLE(sundown,Whether to enable the "sundown" extension,
[ --enable-sundown Enable "sundown" extension support])
PHP_ARG_ENABLE(sundown-debug, for sundown debug support,
[ --enable-sundown-debug Enable sundown debug support], no, no)
if test $PHP_SUNDOWN != "no"; then
SUNDOWN_SOURCES="
php_sundown.c
sundown_markdown.c
render_base.c
render_html.c
render_xhtml.c
render_html_toc.c
sundown/src/buffer.c
sundown/src/markdown.c
sundown/src/autolink.c
sundown/src/stack.c
sundown/html/html.c
sundown/html/html_smartypants.c
sundown/html/houdini_href_e.c
sundown/html/houdini_html_e.c
"
# patch -p1 -N -b < buffer_win32_compat.patch
PHP_NEW_EXTENSION(sundown,$SUNDOWN_SOURCES, $ext_shared)
CFLAGS="-Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement"
if test "$PHP_SUNDOWN_DEBUG" != "no"; then
CFLAGS="-g -O0 $CFLAGS"
fi
PHP_SUBST([CFLAGS])
PHP_ADD_BUILD_DIR([$ext_builddir/sundown/src])
PHP_ADD_BUILD_DIR([$ext_builddir/sundown/html])
PHP_ADD_INCLUDE([$ext_srcdir/sundown/src])
PHP_ADD_INCLUDE([$ext_srcdir/sundown/html])
PHP_ADD_INCLUDE([$ext_builddir/sundown/src])
PHP_ADD_INCLUDE([$ext_builddir/sundown/html])
PHP_ADD_MAKEFILE_FRAGMENT
fi