forked from libgit2/php-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.m4
38 lines (33 loc) · 964 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
33
34
35
36
37
38
PHP_ARG_ENABLE(git2, Whether to enable the "git2" extension,
[ --enable-git2 Enable "php-git2" extension support])
if test $PHP_GIT2 != "no"; then
PHP_SUBST(GIT2_SHARED_LIBADD)
PHP_NEW_EXTENSION(git2, git2.c \
repository.c \
commit.c \
blob.c \
tree.c \
tree_builder.c \
tree_entry.c \
signature.c \
walker.c \
reference.c \
index.c \
index_entry.c \
config.c \
remote.c \
tag.c \
odb.c \
odb_object.c \
backend.c \
, $ext_shared)
PHP_ADD_INCLUDE([$ext_srcdir/libgit2/include])
CFLAGS=" $CFLAGS -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement"
PHP_ADD_LIBPATH($ext_srcdir/libgit2/build, GIT2_SHARED_LIBADD)
PHP_ADD_LIBRARY(git2,, GIT2_SHARED_LIBADD)
PHP_SUBST([CFLAGS])
ifdef([PHP_ADD_EXTENSION_DEP],
[
PHP_ADD_EXTENSION_DEP(git, spl, true)
])
fi