Skip to content

HTTPS clone URL

Subversion checkout URL

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