]> granicus.if.org Git - php/commitdiff
make simplexml headers available to the outta world
authorAnatol Belski <ab@php.net>
Mon, 29 Jul 2013 20:18:55 +0000 (22:18 +0200)
committerAnatol Belski <ab@php.net>
Mon, 29 Jul 2013 20:18:55 +0000 (22:18 +0200)
ext/simplexml/config.m4
ext/simplexml/config.w32

index 2145e23d887534ccf73c25e644db303e5a97a51b..5b8c11d59ff55bd5fc0de60e85bdcfa090a8a4bc 100644 (file)
@@ -18,6 +18,7 @@ if test "$PHP_SIMPLEXML" != "no"; then
   PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [
     AC_DEFINE(HAVE_SIMPLEXML,1,[ ])
     PHP_NEW_EXTENSION(simplexml, simplexml.c sxe.c, $ext_shared)
+    PHP_INSTALL_HEADERS([ext/simplexml/php_simplexml.h ext/simplexml/php_simplexml_exports.h])
     PHP_SUBST(SIMPLEXML_SHARED_LIBADD)
   ], [
     AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
index 2d2ed285ebdac17ab5888397aad954660f9b7508..a02f3dded3a189bce8777e76e9923673c1cb68c6 100644 (file)
@@ -16,6 +16,7 @@ if (PHP_SIMPLEXML == "yes") {
                        MESSAGE("\tSPL support in simplexml disabled");
                }
                ADD_FLAG("CFLAGS_SIMPLEXML", "/D PHP_SIMPLEXML_EXPORTS ");
+               PHP_INSTALL_HEADERS("ext/simplexml/", "php_simplexml.h php_simplexml_exports.h");
        } else {
                PHP_SIMPLEXML = "no";
                WARNING("simplexml not enabled; libraries and headers not found");