-
Notifications
You must be signed in to change notification settings - Fork 16
/
config.m4
33 lines (25 loc) · 801 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
PHP_ARG_WITH(mogilefs, for mogilefs support,
[ --with-mogilefs Include mogilefs support])
if test "$PHP_MOGILEFS" != "no"; then
paths="/usr /usr/local /sw"
for path in $paths; do
if test -x "$path/bin/xml2-config"; then
XML2_CONFIG=$path/bin/xml2-config
break
fi
done
test -z "$XML2_CONFIG" && AC_MSG_ERROR(Cannot find libxml2)
for path in $paths; do
if test -x "$path/bin/neon-config"; then
NEON_CONFIG=$path/bin/neon-config
break
fi
done
test -z "$NEON_CONFIG" && AC_MSG_ERROR(Cannot find libneon)
MOGILEFS_LIBS=$($NEON_CONFIG --libs)
MOGILEFS_INCS=$($NEON_CONFIG --cflags)
PHP_EVAL_LIBLINE($MOGILEFS_LIBS, MOGILEFS_SHARED_LIBADD)
PHP_EVAL_INCLINE($MOGILEFS_INCS)
PHP_SUBST(MOGILEFS_SHARED_LIBADD)
PHP_NEW_EXTENSION(mogilefs, mogilefs.c, $ext_shared)
fi