Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 127 lines (100 sloc) 2.691 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
c28f59a - Proper fix for phpize when dealing with PECL
foobar authored
3 divert(1)
4
5 AC_PREREQ(2.13)
9d9d39a Please welcome the new build system.
Sascha Schumann authored
6 AC_INIT(config.m4)
7
b74a5ea - Make sure EGREP and SED get set early enough.
foobar authored
8 PHP_CONFIG_NICE(config.nice)
9
69eec3f MFB_4_3: Quote macro names in AC_DEFUN()
foobar authored
10 AC_DEFUN([PHP_WITH_PHP_CONFIG],[
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
11 AC_ARG_WITH(php-config,
83b1883 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
Stig Bakken authored
12 [ --with-php-config=PATH],[
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
13 PHP_CONFIG=$withval
14 ],[
15 PHP_CONFIG=php-config
16 ])
17
18 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
19 phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
20 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
cae3b7d Pear Changes:
Sascha Schumann authored
21 EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
ee5fd96 - Made it possible to do "make test" for phpized extensions
foobar authored
22 PHP_EXECUTABLE=`$PHP_CONFIG --php-binary`
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
23
24 if test -z "$prefix"; then
ea6985a PATH is not optional (we print that message, because php-config isn't…
Sascha Schumann authored
25 AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=PATH)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
26 fi
6262539 - Added PHP_INSTALL_HEADERS() macro
foobar authored
27
28 php_shtool=$srcdir/build/shtool
29 PHP_INIT_BUILD_SYSTEM
30
cae3b7d Pear Changes:
Sascha Schumann authored
31 AC_MSG_CHECKING(for PHP prefix)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
32 AC_MSG_RESULT($prefix)
cae3b7d Pear Changes:
Sascha Schumann authored
33 AC_MSG_CHECKING(for PHP includes)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
34 AC_MSG_RESULT($INCLUDES)
cae3b7d Pear Changes:
Sascha Schumann authored
35 AC_MSG_CHECKING(for PHP extension directory)
36 AC_MSG_RESULT($EXTENSION_DIR)
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
37 AC_MSG_CHECKING(for PHP installed headers prefix)
38 AC_MSG_RESULT($phpincludedir)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
39 ])
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
40 dnl
69eec3f MFB_4_3: Quote macro names in AC_DEFUN()
foobar authored
41 AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl
42 AC_DEFUN([PHP_EXT_DIR],[""])dnl
43 AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir])dnl
44 AC_DEFUN([PHP_ALWAYS_SHARED],[
2ea99fe a bit of refactoring and making always_shared a nop in every day life
Sascha Schumann authored
45 ext_output="yes, shared"
46 ext_shared=yes
47 test "[$]$1" = "no" && $1=yes
48 ])dnl
e10ca10 Provide context-specific functions which yield the directories
Sascha Schumann authored
49 dnl
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
50 abs_srcdir=`(cd $srcdir && pwd)`
9d9d39a Please welcome the new build system.
Sascha Schumann authored
51 abs_builddir=`pwd`
3b9bcd7 Set abs_srcdir. Last example in README.S-C-EXTENSIONS works now.
Sascha Schumann authored
52
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
53 AC_PROG_CC
54 AC_PROG_CC_C_O
55
76906e0 - Add --with-libdir to phpized builds too
foobar authored
56 dnl Support systems with system libraries in e.g. /usr/lib64
57 AC_ARG_WITH(libdir,
58 [ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib],
59 [PHP_LIBDIR=$withval], [PHP_LIBDIR=lib])
60
775a064 Fix some phpize problems.
foobar authored
61 PHP_RUNPATH_SWITCH
276171f MFH: - Determine the shared/link lib suffixes in one macro.
foobar authored
62 PHP_SHLIB_SUFFIX_NAMES
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
63 PHP_WITH_PHP_CONFIG
64
9d9d39a Please welcome the new build system.
Sascha Schumann authored
65 PHP_BUILD_SHARED
66
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
67 AC_PREFIX_DEFAULT()
68
7382178 enable re2c check for self-contained extensions
Sascha Schumann authored
69 PHP_PROG_RE2C
2a6da0f - Restructured and added a few comments here and there.
foobar authored
70 PHP_PROG_AWK
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
71
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
72 sinclude(config.m4)
73
74 enable_static=no
75 enable_shared=yes
76
77 AC_PROG_LIBTOOL
78
4a5cb37 - Revert that patch, this was not optional at all.
Derick Rethans authored
79 all_targets='$(PHP_MODULES)'
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
80 install_targets="install-modules install-headers"
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
81 phplibdir="`pwd`/modules"
83b1883 @Define HAVE_CONFIG_H when building standalone DSO extensions (Stig)
Stig Bakken authored
82 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
a283caf centralize cflags
Sascha Schumann authored
83 CFLAGS_CLEAN='$(CFLAGS)'
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
84
85 test "$prefix" = "NONE" && prefix="/usr/local"
86 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
87
9d9d39a Please welcome the new build system.
Sascha Schumann authored
88 PHP_SUBST(PHP_MODULES)
89 PHP_SUBST(all_targets)
90 PHP_SUBST(install_targets)
91
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
92 PHP_SUBST(prefix)
93 PHP_SUBST(exec_prefix)
94 PHP_SUBST(libdir)
95 PHP_SUBST(prefix)
96 PHP_SUBST(phplibdir)
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
97 PHP_SUBST(phpincludedir)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
98
99 PHP_SUBST(CC)
100 PHP_SUBST(CFLAGS)
e5b8617 CFLAGS_CLEAN was not properly defined
Sascha Schumann authored
101 PHP_SUBST(CFLAGS_CLEAN)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
102 PHP_SUBST(CPP)
103 PHP_SUBST(CPPFLAGS)
104 PHP_SUBST(CXX)
e891278 Add missing subst
foobar authored
105 PHP_SUBST(CXXFLAGS)
5989ae5 Fix building external extensions.
Sascha Schumann authored
106 PHP_SUBST(EXTENSION_DIR)
ee5fd96 - Made it possible to do "make test" for phpized extensions
foobar authored
107 PHP_SUBST(PHP_EXECUTABLE)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
108 PHP_SUBST(EXTRA_LDFLAGS)
109 PHP_SUBST(EXTRA_LIBS)
110 PHP_SUBST(INCLUDES)
111 PHP_SUBST(LFLAGS)
4a0291d - Make it possible to build ext/openssl as shared extension
foobar authored
112 PHP_SUBST(LDFLAGS)
5989ae5 Fix building external extensions.
Sascha Schumann authored
113 PHP_SUBST(SHARED_LIBTOOL)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
114 PHP_SUBST(LIBTOOL)
115 PHP_SUBST(SHELL)
7243d31 MFH: - Fixed header installing under phpize builds
foobar authored
116 PHP_SUBST(INSTALL_HEADERS)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
117
9d9d39a Please welcome the new build system.
Sascha Schumann authored
118 PHP_GEN_BUILD_DIRS
119 PHP_GEN_GLOBAL_MAKEFILE
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
120
6262539 - Added PHP_INSTALL_HEADERS() macro
foobar authored
121 test -d modules || $php_shtool mkdir modules
cae3b7d Pear Changes:
Sascha Schumann authored
122 touch .deps
5989ae5 Fix building external extensions.
Sascha Schumann authored
123
7a75900 HEADS UP: renamed config header file in "phpize"d extensions to
Stig Bakken authored
124 AC_CONFIG_HEADER(config.h)
f2f8d38 Integration of -ng changes. Changes:
Sascha Schumann authored
125
126 AC_OUTPUT()
Something went wrong with that request. Please try again.