Skip to content
Newer
Older
100644 116 lines (91 sloc) 2.29 KB
9d9d39a Please welcome the new build system.
Sascha Schumann authored
1 dnl This file becomes configure.in for self-contained extensions.
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
2
9d9d39a Please welcome the new build system.
Sascha Schumann authored
3 AC_INIT(config.m4)
4
5 PHP_INIT_BUILD_SYSTEM
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
6
69eec3f MFB_4_3: Quote macro names in AC_DEFUN()
foobar authored
7 AC_DEFUN([PHP_WITH_PHP_CONFIG],[
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
8 AC_ARG_WITH(php-config,
83b1883 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
Stig Bakken authored
9 [ --with-php-config=PATH],[
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
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`
cae3b7d Pear Changes:
Sascha Schumann authored
17 EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
18
19 if test -z "$prefix"; then
ea6985a PATH is not optional (we print that message, because php-config isn't…
Sascha Schumann authored
20 AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
21 fi
cae3b7d Pear Changes:
Sascha Schumann authored
22 AC_MSG_CHECKING(for PHP prefix)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
23 AC_MSG_RESULT($prefix)
cae3b7d Pear Changes:
Sascha Schumann authored
24 AC_MSG_CHECKING(for PHP includes)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
25 AC_MSG_RESULT($INCLUDES)
cae3b7d Pear Changes:
Sascha Schumann authored
26 AC_MSG_CHECKING(for PHP extension directory)
27 AC_MSG_RESULT($EXTENSION_DIR)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
28 ])
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
29 dnl
69eec3f MFB_4_3: Quote macro names in AC_DEFUN()
foobar authored
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],[
2ea99fe a bit of refactoring and making always_shared a nop in every day life
Sascha Schumann authored
34 ext_output="yes, shared"
35 ext_shared=yes
36 test "[$]$1" = "no" && $1=yes
37 ])dnl
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
38 dnl
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
39 abs_srcdir=`(cd $srcdir && pwd)`
9d9d39a Please welcome the new build system.
Sascha Schumann authored
40 abs_builddir=`pwd`
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
41
6bd6416 Always output config.nice for standalone extensions. (Really helps with
Andrei Zmievski authored
42 PHP_CONFIG_NICE(config.nice)
43
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
44 AC_PROG_CC
45 AC_PROG_CC_C_O
46
76906e0 - Add --with-libdir to phpized builds too
foobar authored
47 dnl Support systems with system libraries in e.g. /usr/lib64
48 AC_ARG_WITH(libdir,
49 [ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib],
50 [PHP_LIBDIR=$withval], [PHP_LIBDIR=lib])
51
775a064 Fix some phpize problems.
foobar authored
52 PHP_RUNPATH_SWITCH
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
53 PHP_SHLIB_SUFFIX_NAME
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
54 PHP_WITH_PHP_CONFIG
55
9d9d39a Please welcome the new build system.
Sascha Schumann authored
56 PHP_BUILD_SHARED
57
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
58 AC_PREFIX_DEFAULT()
59
7382178 enable re2c check for self-contained extensions
Sascha Schumann authored
60 PHP_PROG_RE2C
2a6da0f - Restructured and added a few comments here and there.
foobar authored
61 PHP_PROG_AWK
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
62
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
63 sinclude(config.m4)
64
65 enable_static=no
66 enable_shared=yes
67
68 AC_PROG_LIBTOOL
69
4a5cb37 - Revert that patch, this was not optional at all.
Derick Rethans authored
70 all_targets='$(PHP_MODULES)'
71 install_targets=install-modules
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
72 phplibdir="`pwd`/modules"
83b1883 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
Stig Bakken authored
73 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
a283caf centralize cflags
Sascha Schumann authored
74 CFLAGS_CLEAN='$(CFLAGS)'
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
75
76 test "$prefix" = "NONE" && prefix="/usr/local"
77 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
78
9d9d39a Please welcome the new build system.
Sascha Schumann authored
79 PHP_SUBST(PHP_MODULES)
80 PHP_SUBST(all_targets)
81 PHP_SUBST(install_targets)
82
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
83 PHP_SUBST(prefix)
84 PHP_SUBST(exec_prefix)
85 PHP_SUBST(libdir)
86 PHP_SUBST(prefix)
87 PHP_SUBST(phplibdir)
88
89 PHP_SUBST(CC)
90 PHP_SUBST(CFLAGS)
e5b8617 CFLAGS_CLEAN was not properly defined
Sascha Schumann authored
91 PHP_SUBST(CFLAGS_CLEAN)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
92 PHP_SUBST(CPP)
93 PHP_SUBST(CPPFLAGS)
94 PHP_SUBST(CXX)
e891278 Add missing subst
foobar authored
95 PHP_SUBST(CXXFLAGS)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
96 PHP_SUBST(DEFS)
5989ae5 Fix building external extensions.
Sascha Schumann authored
97 PHP_SUBST(EXTENSION_DIR)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
98 PHP_SUBST(EXTRA_LDFLAGS)
99 PHP_SUBST(EXTRA_LIBS)
100 PHP_SUBST(INCLUDES)
101 PHP_SUBST(LFLAGS)
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
102 PHP_SUBST(LDFLAGS)
5989ae5 Fix building external extensions.
Sascha Schumann authored
103 PHP_SUBST(SHARED_LIBTOOL)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
104 PHP_SUBST(LIBTOOL)
105 PHP_SUBST(SHELL)
106
9d9d39a Please welcome the new build system.
Sascha Schumann authored
107 PHP_GEN_BUILD_DIRS
108 PHP_GEN_GLOBAL_MAKEFILE
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
109
5989ae5 Fix building external extensions.
Sascha Schumann authored
110 test -d modules || mkdir modules
cae3b7d Pear Changes:
Sascha Schumann authored
111 touch .deps
5989ae5 Fix building external extensions.
Sascha Schumann authored
112
7a75900 HEADS UP: renamed config header file in "phpize"d extensions to
Stig Bakken authored
113 AC_CONFIG_HEADER(config.h)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
114
115 AC_OUTPUT()
Something went wrong with that request. Please try again.