foobar
11bcc2207e
MFB. (I must have been sleep-walking..)
2002-03-26 00:14:02 +00:00
Sascha Schumann
e4a5210bbf
A cli-specific extension should be named once only, not twice.
...
Noticed by: Derick
2002-03-22 10:22:02 +00:00
foobar
d533371760
- Fixed bug #16165 again. We check libc for iconv functions only if
...
no path is given for --with-iconv.
# I hope this is the last time.
2002-03-21 20:22:05 +00:00
foobar
9a5b42cb78
- Should work better now..
2002-03-20 18:16:51 +00:00
Sascha Schumann
350de12bc2
Expand the variables in PHP_EXPAND_BUILD_VARS.
...
Make HAVE_ICONV/HAVE_LIBICONV available through the more
fine-grained approach using a single include file per
directive. This will significantly reduce the price of
full dependencies for developers, because basically each
file today includes php.h which includes php_config.h.
If PHP_ATOM_INC is defined, these include files can be used.
For all PHP_DEFINEs, empty files are created upon configure start.
2002-03-20 13:24:59 +00:00
Sascha Schumann
1962e1e620
Avoid duplicate tests and make third parameter truly optional.
2002-03-20 12:08:30 +00:00
Sascha Schumann
71a361d5ea
Fix and tweak iconv macro
2002-03-20 11:59:48 +00:00
Sascha Schumann
d9f36aed9f
Don't quote too much. Now autoconf-2.13 is happy again.
2002-03-20 11:49:36 +00:00
Sascha Schumann
5005415595
Remove autoconf-2.5x specific m4_default macro.
...
It is pointless here, because we don't need any "void" statement.
There already is a statement and all it will do in the worst case
is generate an empty line
2002-03-20 11:41:06 +00:00
Jon Parise
bb82bf2e2b
This completely fixes the iconv library detection under FreeBSD (the
...
previous fix was incomplete). We also set HAVE_ICONV and HAVE_LIBICONV
based on the library that was detected.
2002-03-20 07:36:56 +00:00
foobar
4a0291d238
- Make it possible to build ext/openssl as shared extension
2002-03-20 02:07:11 +00:00
foobar
a62b31f6b7
- Fix the iconv detection when the functions are prefixed with lib.
...
(e.g. in freebsd)
2002-03-19 22:40:18 +00:00
foobar
19e82a49f9
- Made one test/setup macro for iconv and fixed it to check
...
for libc first.
2002-03-17 21:09:21 +00:00
Sascha Schumann
795c206389
> might not sufficiently update a timestamp.
...
echo > should be good enough and should be implemented by the shell.
2002-03-13 16:59:49 +00:00
Sascha Schumann
f02d3f4518
Some simplifications in PHP_ADD_SOURCES*
2002-03-13 12:48:05 +00:00
Sascha Schumann
2ea99fe17a
a bit of refactoring and making always_shared a nop in every day life
2002-03-13 12:30:49 +00:00
Sascha Schumann
e10ca10084
Provide context-specific functions which yield the directories
...
of extensions (PHP 4 configure vs. self-contained module)
2002-03-13 09:20:49 +00:00
Sascha Schumann
99e854f60d
Fix typo
2002-03-07 18:16:57 +00:00
Sascha Schumann
9d9d39a0de
Please welcome the new build system.
...
If you encounter any problems, please make sure to email sas@php.net
directly.
An introduction can be found on
http://schumann.cx/buildv5.txt
2002-03-07 14:20:02 +00:00
Sean Bright
444d3a6150
Fix for bug #15605
...
# If someone more familiar with the build system sees a problem with this
# feel free to revert it. It simply escapes #'s that are put into
# config_vars.mk
2002-02-21 02:12:37 +00:00
Edin Kadribasic
13ca332184
Enable extensions to specify that they are not supposed to be
...
built with the CLI SAPI. This is done by passing "nocli" as the
3rd parameter to PHP_EXTENSION macro.
2002-01-30 23:46:44 +00:00
Marko Karppinen
fc3a59c85f
Enable developers to use PHP_ARG_ENABLE and PHP_ARG_WITH silently
...
to maintain legacy configure options without clutter in the
configure help and checking output.
# Hopefully this encourages module writers to finally adopt
# standard naming conventions for their configure options!
2002-01-27 03:37:02 +00:00
Marko Karppinen
cd9b5d01e3
Added a case for Darwin / Mac OS X to PHP_SHLIB_SUFFIX_NAME
2002-01-24 14:41:14 +00:00
Sascha Schumann
c0b8ac1142
Don't build CLI, if an extension requests that.
...
In this case, the ircg extension refers to thttpd-specific symbols
which causes the build of the cli sapi module to fail.
2002-01-24 12:55:08 +00:00
Hartmut Holzgraefe
44b5298506
removed check macros no longer needed due to CLI work
...
(plus reverting last commit, was in wrong dir :( )
2002-01-21 16:49:31 +00:00
Hartmut Holzgraefe
a79e857ccd
removed check macros no longer needed due to CLI work
2002-01-21 16:39:17 +00:00
Edin Kadribasic
f5790b0a7c
Modified the build system to make certain extensions (pcntl, ncurses,
...
pcntl) only with cgi/cli sapi's. This was done by adding 3rd optional
parameter to PHP_EXTENSION macro which should be set to "cli" if
the extension only makes sense for that class of api's.
2002-01-20 02:30:18 +00:00
Edin Kadribasic
2af5118d35
Fixed build in the directory other than $top_srcdir.
2002-01-13 23:51:56 +00:00
Edin Kadribasic
db8647203c
Modified the build system to always build CLI SAPI.
2002-01-12 14:51:54 +00:00
foobar
fa41fe8646
Reverted Hartmut's patch as it caused more trouble than it solved.
...
# Broke my build totally. The 'correct' fix is to make the checks better
# everywhere. ie. to check for existance of the library/symbol in some lib.
2002-01-09 03:40:51 +00:00
Hartmut Holzgraefe
48cba31e58
two new check functions for use in config.m4 file
2002-01-04 12:26:27 +00:00
Hartmut Holzgraefe
d63edeba21
make configure more robust if extensions add libraries without
...
checking for their existance first
old behaviour was to fail on the next library check with misleading
messages, now configure will work but make will fail with a
'lib not found' message
2002-01-03 20:30:07 +00:00
Alex Waugh
dc7f04163a
Give defaults for pread and pwrite checks when cross compiling
2001-12-30 15:39:01 +00:00
foobar
8a8741a1fe
This makes the configure --help output more readable.
2001-12-01 00:59:43 +00:00
foobar
acb7d69ff7
Always quote the messages.
2001-09-06 20:55:24 +00:00
foobar
032b263129
Fixes commit / link problems with certain compilers.
...
# Please use PHP_CHECK_LIBRARY() always instead of AC_CHECK_LIB
# if you need to pass extra libs/libpaths to the test.
2001-09-05 13:18:09 +00:00
Sascha Schumann
9350a23b8f
Move PHP_SUBSTs to configure.in.
2001-08-21 11:03:45 +00:00
Sascha Schumann
8ab1c2aa44
nuke some apparently harmful spaces
2001-08-21 11:02:42 +00:00
foobar
2bd567d513
Fixed bug: #12563 (and possibly other similar one's too..)
2001-08-06 10:11:03 +00:00
foobar
f9e375f493
Changed the PHP_ADD_LIBRARY_DEFER() to work when building
...
standalone extensions. Also improved the checks for SSL and Kerberos in
IMAP extension configure.
2001-08-03 05:17:18 +00:00
Sascha Schumann
e843e8c5f0
Move PHP_TARGET_RDYNAMIC check to global acinclude.m4 and use it
...
in thttpd's config.m4.
2001-06-15 12:53:20 +00:00
Andi Gutmans
1c0471feee
- Fix grammar
2001-06-11 04:15:58 +00:00
Sascha Schumann
9a7c1f2ad6
Add some backwards-compatible macros to accomodate the renaming of
...
AC_ADD_* macros.
2001-06-10 13:51:18 +00:00
foobar
3a1b61c07d
Fix bug: #9009 .
2001-06-01 06:26:22 +00:00
Sascha Schumann
e2eaf6342e
Add support for systems where p{read|write} take a off64_t without
...
being properly prototyped.
2001-05-20 23:39:09 +00:00
Sascha Schumann
7e5b4db323
Fix irix-time_r test
2001-05-20 21:55:57 +00:00
Sascha Schumann
7b88c7b378
remove fi
2001-05-20 21:50:54 +00:00
Sascha Schumann
ff5a9de31d
Support for IRIX-style asctime_r/ctime_r.
2001-05-20 21:29:55 +00:00
Sascha Schumann
7dfce52fdc
Catch 'mkdir -p' brokeness on IRIX
2001-05-20 21:07:23 +00:00
Sascha Schumann
6be7eb9059
Store some build-specific environment variables in config.nice.
2001-05-19 20:21:58 +00:00
Sascha Schumann
afdaee9e47
Nuke more quotes
2001-05-12 11:09:05 +00:00
Sascha Schumann
9982ff568a
Nuke some unneccessary quotes
2001-05-12 10:33:52 +00:00
Sascha Schumann
b1393e1880
Document overwriting behaviour of PHP_ARG_WITH/ENABLE with regard
...
to ext_shared.
2001-05-09 18:12:12 +00:00
Sascha Schumann
8f3ebfe4a9
Remove -L/usr/lib/? from PHP_LDFLAGS.
2001-05-09 13:57:56 +00:00
foobar
8a26918ed1
Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
...
# Heads up people! I tested this before committing but you never know..
2001-03-27 20:35:04 +00:00
Sascha Schumann
0656a47f3e
Instead of assuming that sendmail lives in /usr/lib, if we don't find it,
...
we also check /usr/lib now.
PR: #9362
2001-02-21 07:39:13 +00:00
Stig Venaas
59fa3f3d04
Made OpenSSL extension work with 0.9.5 and changed version check to 0.9.5
2001-01-07 11:36:15 +00:00
foobar
cc51599f4a
Added better checking for OpenSSL's libraries. Now configure stops
...
if the libs aren't found.
# bug report #8365
2001-01-03 18:12:06 +00:00
Stig Venaas
348f6c609c
I think the order is wrong, switched order of ssl and crypto libs
2001-01-02 22:40:03 +00:00
Sascha Schumann
7f96af83b2
Stop automatically passing vars to AC_SUBST through PHP_SUBST.
...
There are some variables which are needed for Makefiles and files
created by AC_OUTPUT; we use PHP_SUBST_OLD for those now.
genif.sh was moved to an appropiate place.
2000-12-20 17:21:37 +00:00
Sascha Schumann
80e1124c21
New m4 macros should go into acinclude.m4.
2000-12-14 17:29:38 +00:00
Sascha Schumann
3f38d892c0
Workaround for these two symptoms:
...
Some sed tools don't match strings which are not terminated with LF.
Some shells still support the ^ as a synonym for the pipe character.
Submitted by: Stanislav Malyshev
2000-12-03 10:58:18 +00:00
Hartmut Holzgraefe
f5bf3c10fd
make HAVE_FOPENCOOKIE available for other extensions besides zlib
2000-11-21 08:38:20 +00:00
Stanislav Malyshev
1884518cf4
Revert the patch - people don't like it
2000-11-02 18:24:43 +00:00
Stanislav Malyshev
d949733c70
Fix issue with Sun CC not detecting readdir_r
...
# This was once fixed in the code, but not in the configure
2000-11-02 16:50:40 +00:00
Andi Gutmans
b74d02dbe4
- Fix from Sascha. It fixes errorneous inclusion of bz2
2000-10-28 10:48:32 +00:00
foobar
83b3818e67
Fix the fix as Sascha suggested.
2000-10-15 00:58:29 +00:00
foobar
5db1090dff
Fix to #7162 .
2000-10-14 22:13:18 +00:00
Sascha Schumann
e07e515a1b
Ignore trailing slashes
2000-10-12 23:17:21 +00:00
Sascha Schumann
23a96536fa
Fix the readdir_r POSIX check
2000-10-11 14:35:45 +00:00
Sascha Schumann
a2f126c351
Build compat bridge for makes which support only the BSD .include command.
...
This is only required for BSD/OS, because BSDI did not merge in changes
from 4.4BSD Lite 1.
2000-09-26 11:19:38 +00:00
Sascha Schumann
d9b4f90969
Revert controversial patch
2000-09-21 23:18:25 +00:00
foobar
83987c17ac
This fix prevents adding an empty -l to LIBS
2000-09-19 23:52:24 +00:00
Sascha Schumann
2e0ae6d25f
Solaris-readdir_r-wants-large-buffer fix
...
Libc5-readdir_r workaround
2000-09-11 15:25:06 +00:00
Sascha Schumann
2c42094494
Clean up the mess WRT rebuilding a limited set of files.
...
Earlier changes were based upon a wrong assumption (that CONFIG_FILES
could be relied upon).
2000-07-26 14:53:54 +00:00
Stig Bakken
abe372481d
forgot to commit this one last night
2000-07-25 10:57:57 +00:00
Sascha Schumann
4f71062551
Lift the add-once limit for libraries, because there are valid reasons
...
against it. When dealing with static libraries, the link order is
important and it might be necessary to add a library multiple times to
satisfy mutual symbol requirements.
2000-07-10 10:26:13 +00:00
Sascha Schumann
e51571595c
Add support for building C++ sources.
...
In your extension's config.m4, you need to use the m4 macro
PHP_REQUIRE_CXX
This shall be called only, if your extension is enabled.
C++ source files shall not be put into the LTLIBRARY_SOURCES macro.
Instead, the filename of the object shall be put into
LTLIBRARY_OBJECTS_X. I.e. if your extension foo consists of foo.cxx, use
LTLIBRARY_OBJECTS_X = foo.lo
2000-07-09 20:39:18 +00:00
Andrei Zmievski
eb6f625d83
Wrong number of commas.
2000-06-17 16:13:11 +00:00
Sascha Schumann
d3d350e7ce
Suppress AC_ADD_LIBRARY(x) where x is matched by /^(c|c_r|pthread*)$/
2000-06-17 10:53:08 +00:00
Sascha Schumann
9a63d8af7f
Add PHP_EVAL_LIBLINE and PHP_EVAL_INCLINE
2000-06-17 10:50:42 +00:00
Sascha Schumann
b8063c342c
Separate creating config_vars.mk and generating Makefiles.
...
This change enables you to regenerate Makefiles by running config.status.
2000-06-11 10:38:37 +00:00
Sascha Schumann
e49ad341bd
Wipe out acconfig.h.in and rewrite some checks to use PHP_ARG_ENABLE.
2000-06-08 06:14:58 +00:00
Sascha Schumann
01ecd47a05
Fix test for php_always_shared
2000-06-07 19:13:28 +00:00
Sascha Schumann
1e56dd781a
Make use of already existing macro PHP_PROG_SENDMAIL
2000-05-31 20:44:04 +00:00
Sascha Schumann
7bb2af41e3
Use sed instead of tr. The tr regexp syntax does not seem to be portable
...
enough to make wide use of it. This should fix problems on Solaris 8
and possibly on older SysV-derivatives.
2000-05-31 20:30:16 +00:00
Sascha Schumann
2bd6846adc
Solve conflict with mysql's readdir_r check. Both defined HAVE_READDIR_R,
...
but with different values.
2000-05-27 19:30:36 +00:00
Sascha Schumann
25df65b0b8
Support old-style readdir_r()
2000-05-24 11:06:57 +00:00
Sascha Schumann
f1eefa64ec
A couple of cleanups and shared-libadd additions
2000-05-23 23:13:13 +00:00
Sascha Schumann
417f74451f
Cosmetic changes
2000-05-23 15:43:29 +00:00
Sascha Schumann
2aaa538aef
Use reentrant version of readdir. If the target platform does not support
...
the POSIX-like readdir_r, we fall back to readdir. In ZTS mode, this will
cause php_readdir_r calls to be serialized.
2000-05-23 15:13:16 +00:00
Sascha Schumann
f04936f8a1
Make the shared library suffix dynamic. Improve workaround for libtool's
...
inflexibility WRT -avoid-version to support various numbers of .0
2000-05-18 11:35:17 +00:00
Sascha Schumann
db3d16dca1
Add debug.log facility. If there are any obscure bugs in our build system,
...
this will give us enough information to find and fix it.
2000-05-17 19:08:44 +00:00
Sascha Schumann
c2279a0217
s/normal/SUSV2/
2000-05-16 23:24:39 +00:00
Thies C. Arntzen
62d5504706
AC_ADD_LIBRARY_WITH_PATH now always prepends new libraries.
2000-05-08 08:55:45 +00:00
Thies C. Arntzen
3ee9304cd9
support empty libpath in AC_ADD_LIBRARY_WITH_PATH
...
make sure the link-order for shared and static builds are the same
2000-05-08 08:27:48 +00:00
Sascha Schumann
b345acb577
Never tell link editor to libc. Some systems use thread-safe
...
replacements for libc in Pthreads mode.
2000-05-07 05:32:54 +00:00
Sascha Schumann
dc91d47014
Remove trailing slash(es) from pathnames
2000-05-04 16:08:10 +00:00
Sascha Schumann
d0f3764ee2
Change reentrancy API to always use the php prefix.
...
Check for the declaration of reentrant functions, so that we can use
them in non-ZTS mode on all platforms.
2000-05-04 10:38:17 +00:00
Sascha Schumann
b6e4841ec7
Determine first whether we will use ZTS mode or not.
...
This is important, because the system checks will yield different
results depending on whether POSIX threads are enabled or not.
We also use PTHREADS_CFLAGS only in ZTS mode now. Using these flags
in non-ZTS mode causes complete build failures on some platforms
(i.e. FreeBSD 2.2.x). This will cause harmless warnings on some
platforms (i.e. Solaris 2).
2000-05-04 09:42:27 +00:00