-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.m4
46 lines (38 loc) · 1.56 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
42
43
44
45
46
dnl $Id$
dnl config.m4 for DeepTrace extension
PHP_ARG_ENABLE(DeepTrace, whether to enable DeepTrace support,
[ --enable-DeepTrace Enable DeepTrace support], no, yes)
PHP_ARG_ENABLE(DeepTrace-notices, whether to show DeepTrace notices,
[ --disable-DeepTrace-notices Show DeepTrace notices], inherit, no)
PHP_ARG_ENABLE(DeepTrace-legacy-proctitle, whether to force the legacy proctitle call,
[ --enable-DeepTrace-legacy-proctitle Force legacy proctitle call], inherit, no)
if test "$PHP_DEEPTRACE" != "no"; then
if test "$PHP_DEEPTRACE_NOTICES" == "yes"; then
PHP_DEEPTRACE_NOTICES=yes
fi
if test "$PHP_DEEPTRACE_LEGACY_PROCTITLE" == "inherit"; then
PHP_DEEPTRACE_LEGACY_PROCTITLE=no
fi
fi
if test "$PHP_DEEPTRACE" != "no"; then
if test "$PHP_DEEPTRACE_NOTICES" != "no"; then
AC_DEFINE(DEEPTRACE_NOTICES, 1, [Whether to show notices])
fi
if test "$PHP_DEEPTRACE_LEGACY_PROCTITLE" == "no"; then
AC_CACHE_VAL(_cv_dt_system_has_setproctitle, [
AC_CHECK_FUNCS(setproctitle, [
_cv_dt_system_has_setproctitle=yes
break
],[
_cv_dt_system_has_setproctitle=no
])])
AC_MSG_CHECKING([if your OS has setproctitle])
if test "$_cv_dt_system_has_setproctitle" = "yes"; then
AC_MSG_RESULT(yes)
AC_DEFINE(DEEPTRACE_SYSTEM_PROVIDES_SETPROCTITLE, 1, [Define if your system has setproctitle])
else
AC_MSG_RESULT(no)
fi
fi
PHP_NEW_EXTENSION(DeepTrace, DeepTrace.c DeepTrace_misc.c DeepTrace_exit_handler.c DeepTrace_functions.c DeepTrace_class.c DeepTrace_constants.c DeepTrace_methods.c, $ext_shared)
fi