"Fossies" - the Fresh Open Source Software Archive 
Member "dbg-2.15.5/configure.in" (2 Aug 2006, 2226 Bytes) of package /linux/www/old/dbg-2.15.5.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 dnl This file becomes configure.in for self-contained extensions.
2
3 AC_INIT(config.m4)
4
5 PHP_INIT_BUILD_SYSTEM
6
7 AC_DEFUN([PHP_WITH_PHP_CONFIG],[
8 AC_ARG_WITH(php-config,
9 [ --with-php-config=PATH],[
10 PHP_CONFIG=$withval
11 ],[
12 PHP_CONFIG=php-config
13 ])
14
15 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
16 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
17 EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
18
19 if test -z "$prefix"; then
20 AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
21 fi
22 AC_MSG_CHECKING(for PHP prefix)
23 AC_MSG_RESULT($prefix)
24 AC_MSG_CHECKING(for PHP includes)
25 AC_MSG_RESULT($INCLUDES)
26 AC_MSG_CHECKING(for PHP extension directory)
27 AC_MSG_RESULT($EXTENSION_DIR)
28 ])
29 dnl
30 AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl
31 AC_DEFUN([PHP_EXT_DIR],[""])dnl
32 AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl
33 AC_DEFUN([PHP_ALWAYS_SHARED],[
34 ext_output="yes, shared"
35 ext_shared=yes
36 test "[$]$1" = "no" && $1=yes
37 ])dnl
38 dnl
39 abs_srcdir=`(cd $srcdir && pwd)`
40 abs_builddir=`pwd`
41
42 PHP_CONFIG_NICE(config.nice)
43
44 AC_PROG_CC
45 AC_PROG_CC_C_O
46
47 PHP_RUNPATH_SWITCH
48 PHP_SHLIB_SUFFIX_NAME
49 PHP_WITH_PHP_CONFIG
50
51 PHP_BUILD_SHARED
52
53 AC_PREFIX_DEFAULT()
54
55 PHP_PROG_RE2C
56 AC_PROG_AWK
57
58 sinclude(config.m4)
59
60 enable_static=no
61 enable_shared=yes
62
63 AC_PROG_LIBTOOL
64
65 all_targets='$(PHP_MODULES)'
66 install_targets=install-modules
67 phplibdir="`pwd`/modules"
68 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
69 CFLAGS_CLEAN='$(CFLAGS)'
70
71 test "$prefix" = "NONE" && prefix="/usr/local"
72 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
73
74 PHP_SUBST(PHP_MODULES)
75 PHP_SUBST(all_targets)
76 PHP_SUBST(install_targets)
77
78 PHP_SUBST(prefix)
79 PHP_SUBST(exec_prefix)
80 PHP_SUBST(libdir)
81 PHP_SUBST(prefix)
82 PHP_SUBST(phplibdir)
83
84 PHP_SUBST(PHP_COMPILE)
85 PHP_SUBST(CC)
86 PHP_SUBST(CFLAGS)
87 PHP_SUBST(CFLAGS_CLEAN)
88 PHP_SUBST(CPP)
89 PHP_SUBST(CPPFLAGS)
90 PHP_SUBST(CXX)
91 PHP_SUBST(CXXFLAGS)
92 PHP_SUBST(EXTENSION_DIR)
93 PHP_SUBST(EXTRA_LDFLAGS)
94 PHP_SUBST(EXTRA_LIBS)
95 PHP_SUBST(INCLUDES)
96 PHP_SUBST(LEX)
97 PHP_SUBST(LEX_OUTPUT_ROOT)
98 PHP_SUBST(LFLAGS)
99 PHP_SUBST(LDFLAGS)
100 PHP_SUBST(SHARED_LIBTOOL)
101 PHP_SUBST(LIBTOOL)
102 PHP_SUBST(SHELL)
103 PHP_SUBST(AWK)
104 PHP_SUBST(RE2C)
105
106 PHP_GEN_BUILD_DIRS
107 PHP_GEN_GLOBAL_MAKEFILE
108
109 test -d modules || mkdir modules
110 touch .deps
111
112 AC_CONFIG_HEADER(config.h)
113
114 AC_OUTPUT()