[Glade-users] linking to libxml?
- From: damon helixcode com (Damon Chaplin)
- Subject: [Glade-users] linking to libxml?
- Date: Mon, 27 Nov 2000 20:14:25 +0000
"Ian Eure
hi. i'm pretty new to c programming in general, and i'm having
difficulties making my glade-generated code link with libxml.
i edited configure.in and added "GNOME_XML_CHECK", which adds
"GNOME_XML_LIB = -L/usr/lib -lxml -lz" to the Makefile, but it isn't
getting sent as an arg to the compiler.
it would also be nice if GNOME_XML_CHECK would add the output of
"xml-config --cflags" to the INCLUDES var in src/Makefile
You could try this in your configure.in. It calls xml-config directly
rather than using the GNOME_XML_CHECK macro.
dnl Get libxml flags & libs
AC_PATH_PROG(xml_config, xml-config)
if test "x$xml_config" = "x"; then
AC_MSG_ERROR([*** xml-config not found.])
fi
XML_CFLAGS=`$xml_config --cflags 2>/dev/null`
XML_LIBS=`$xml_config --libs 2>/dev/null`
CPPFLAGS="$CPPFLAGS $XML_CFLAGS"
LIBS="$LIBS $XML_LIBS"
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]