[PHP-DEV] Extension help From: Jan Borsodi (jb <email protected>)
Date: 11/15/00

Hi,

I'm currently developing a PHP extension using the XML DOM parser in
the Qt library (http://www.trolltech.com), I've got it up and working
but got some problems with automake/configure which I have to do
manually. (It is not in CVS yet)

The first problem is that the CXX variable in the config_vars.mk file
in the root is not set, since the extensions uses the C++ compiler
this needs to be set, how do I/configure do that?

Second the libs.mk file(which is auto generated) needs a little change
it currently looks like:
include $(top_builddir)/config_vars.mk
LTLIBRARY_OBJECTS = $(LTLIBRARY_SOURCES:.c=.lo) $(LTLIBRARY_OBJECTS_X)
LTLIBRARY_SHARED_OBJECTS = $(LTLIBRARY_OBJECTS:.lo=.slo)
$(LTLIBRARY_NAME): $(LTLIBRARY_OBJECTS) $(LTLIBRARY_DEPENDENCIES)
        $(LINK) $(LTLIBRARY_LDFLAGS) $(LTLIBRARY_OBJECTS) $(LTLIBRARY_LIBADD)

targets = $(LTLIBRARY_NAME)

but needs to look like:
include $(top_builddir)/config_vars.mk
LTLIBRARY_OBJECTS = $(LTLIBRARY_SOURCES:.c=.lo) $(LTLIBRARY_SOURCES_CPP:.cpp=.lo) $(LTLIBRARY_OBJECTS_X)
LTLIBRARY_SHARED_OBJECTS = $(LTLIBRARY_OBJECTS:.lo=.slo)
$(LTLIBRARY_NAME): $(LTLIBRARY_OBJECTS) $(LTLIBRARY_DEPENDENCIES)
        $(LINK) $(LTLIBRARY_LDFLAGS) $(LTLIBRARY_OBJECTS) $(LTLIBRARY_LIBADD)

targets = $(LTLIBRARY_NAME)

or is it possible to do two conversion on a variable? Something like:
LTLIBRARY_OBJECTS = $(LTLIBRARY_SOURCES:.c|.cpp=.lo)$(LTLIBRARY_OBJECTS_X)

The last thing is that I need to do some checking for the Qt library,
specifically I have to check for the existence of XML in the library.
I know a lot of KDE programs has a working autoconf checker for
this, how do I include this in the extension?

any clues?

-- 
- Jan Borsodi <jb <email protected>> - Software Developer/Designer @ eZ Systems
  Web: http://www.ez.no
  QtVu developer: http://www.qtvu.org
  RegExplorer developer: http://regexplorer.sourceforge.net

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>