-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.m4
28 lines (24 loc) · 872 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
PHP_ARG_ENABLE(augmented_types, whether to enable augmented_types support,
[ --enable-augmented_types Enable augmented_types support], yes)
if test "$PHP_AUGMENTED_TYPES" != "no"; then
AC_PROG_LEX
AC_PROG_YACC
PHP_REQUIRE_CXX()
PHP_SUBST(AUGMENTED_TYPES_SHARED_LIBADD)
PHP_ADD_LIBRARY(stdc++, 1, AUGMENTED_TYPES_SHARED_LIBADD)
AC_DEFINE(HAVE_AUGMENTED_TYPES, 1, [Whether you have Augmented Types])
PHP_NEW_EXTENSION(augmented_types,
augmented_types.cc \
augmented_types_module.cc \
augmented_util.cc \
PHPDoc_Bison_Compiler.cc \
augmented_annotation_compiler.cc,
shared,,,,yes)
PHP_ADD_LIBRARY_WITH_PATH(phpdoc, $ext_srcdir/phpdoc/, AUGMENTED_TYPES_SHARED_LIBADD)
PHP_ADD_MAKEFILE_FRAGMENT(Makefile-parser-targets.frag)
if test `uname` == "Darwin"; then
INCLUDES="$INCLUDES -ll -Wall"
else
INCLUDES="$INCLUDES -lfl -Wall"
fi
fi