Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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