# php 4.3 build system changes

- Thread: https://externals.io/message/6322
- Original archive: https://news-web.php.net/php.internals/6322
- Started by Sam Liddicott on 2003-12-09T22:59:28+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6322 — Sam Liddicott — 2003-12-09T22:59:28+00:00

URL: https://externals.io/message/6322#6322

I'm updating swig (www.swig.org) to honour the new php build system, namely
lack of makefile.in etc.

I can't get a config.m4 though that will build a .so, only build a .a or .la

Here is a sample config.m4 swig will generate in the next release:

PHP_ARG_ENABLE(example, [whether to enable example support],
[  --enable-example             Enable example support])

if test "no" != "$PHP_EXAMPLE" ; then

  PHP_SUBST(EXAMPLE_SHARED_LIBADD)

  AC_DEFINE(HAVE_EXAMPLE, 1, [Define to 1 if you have the example library.])
dnl  AC_DEFINE_UNQUOTED(PHP_EXAMPLE_DIR, ["$EXAMPLE_DIR"], [ ])
dnl  PHP_EXTENSION(example, [$ext_shared])
  PHP_NEW_EXTENSION([example],[example_wrap.c example.c ],[$ext_shared])
  PHP_ADD_MAKEFILE_FRAGMENT
fi

(the makefile fragment adds .SUFFIX support for .cxx and a testmodule:
target which loads the module into php to see if it will)

I've compared my config.m4 to php's ext/bz2 and find no significant
difference, but if I:
phpize
./configure
make

to the bz2 module I find it also only makes .la and .a

So what am I doing wrong?

Sam
