# specifying prefix for libxml2

- Thread: https://externals.io/message/3028
- Original archive: https://news-web.php.net/php.internals/3028
- Started by Adam Dickmeiss on 2003-06-30T10:29:34+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

---

## #3028 — Adam Dickmeiss — 2003-06-30T10:29:34+00:00

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

As of latest PHP cvs and PHP 5.0.0beta1 one has to specify both
  --with-libxml-dir=/myprefix --with-simplexml=/myprefix
to enable libxml in user defined prefix. It would be nice
if --with-libxml-dir would suffice.

The problem can be solved by moving 

PHP_ARG_WITH(libxml-dir, libxml install dir,
[  --with-libxml-dir=DIR     XML: libxml install prefix], no, no)
from ext/xml/config.m4 to ext/simplexml/config.m4
and removal of the line:
  PHP_LIBXML_DIR=$PHP_SIMPLEXML
in ext/simplexml/config.m4. From the simplexml config help it seems it
wasn't meant for directory specifcaion either.

--with-libxml-dir could be moved to acinclude.m4 as well. It
is a "global" thing tied to the m4 macro PHP_SETUP_LIBXML.

-- Adam
 
Adam Dickmeiss  mailto:adam@indexdata.dk  http://www.indexdata.dk
Index Data      T: +45 33410100           Mob.: 212 212 66
