OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael van Elst
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 03-Jul-2003 17:53:18
Branch: HEAD Handle: 2003070316531700
Modified files:
openpkg-src/xerces-c xerces-c.patch
Log:
add netaccessor libs to build of tests/
Summary:
Revision Changes Path
1.8 +84 -0 openpkg-src/xerces-c/xerces-c.patch
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/xerces-c/xerces-c.patch
============================================================================
$ cvs diff -u -r1.7 -r1.8 xerces-c.patch
--- openpkg-src/xerces-c/xerces-c.patch 3 Jul 2003 15:33:35 -0000 1.7
+++ openpkg-src/xerces-c/xerces-c.patch 3 Jul 2003 15:53:17 -0000 1.8
@@ -353,3 +353,87 @@
export EXTRA_LIBS
echo
+--- tests/runConfigure.dist 2003-07-03 17:47:41.000000000 +0200
++++ tests/runConfigure 2003-07-03 17:48:03.000000000 +0200
+@@ -415,6 +415,72 @@
+ fi
+
+ #
++# Check for the type of net accessor
++#
++
++NETACCESSOR=Socket # By default use socket (does HTTP URL's)
++if test $netaccessor ; then
++case $netaccessor in
++ fileonly)
++ NETACCESSOR=FileOnly
++ netaccessorDefines="" ;;
++
++ socket)
++ NETACCESSOR=Socket
++ netaccessorDefines="-DXML_USE_NETACCESSOR_SOCKET"
++ case $platform in
++ unixware|openserver)
++ netaccessorLibs="-lnsl -lsocket";;
++ hp-11)
++ netaccessorLibs="-lnsl";;
++ aix)
++ #netaccessorLibs="-lbsd";;
++ netaccessorLibs="";;
++ beos)
++ netaccessorLibs="-lnet";;
++ qnx)
++ netaccessorLibs="-lsocket";;
++ solaris)
++ netaccessorLibs="-lnsl -lsocket"
++ if test $thread = "dce"; then
++ netaccessorLibs=""
++ fi
++ ;;
++ *)
++ ;;
++ esac;;
++
++ libwww)
++ NETACCESSOR=LibWWW
++ if test -z "`libwww-config --libs 2>/dev/null`" ; then
++ echo "Netaccessor is libwww, but libwww-config is not found. Cannot
proceed further."
++ exit ${ERROR_EXIT_CODE};
++ fi
++ netaccessorDefines="-DXML_USE_NETACCESSOR_LIBWWW `libwww-config --cflags`"
++ netaccessorLibs="`libwww-config --libs`"
++ USELIBWWW=1;;
++
++ native)
++ if test $platform = "macosx"; then
++ NETACCESSOR=NATIVE
++ netaccessorDefines="-DXML_USE_NETACCESSOR_NATIVE"
++ netaccessorLibs=""
++ else
++ echo "netaccessor option '$netaccessor' is supported on 'macosx' only."
++ exit ${ERROR_EXIT_CODE}
++ fi
++
++ ;;
++
++ *)
++ echo "I do not recognize the netaccessor option '$netaccessor'. Please type
'${0} -h' for help."
++ exit ${ERROR_EXIT_CODE};;
++esac
++fi
++
++export NETACCESSOR
++
++#
+ # Set the C compiler and C++ compiler environment variables
+ #
+ case $cppcompiler in
+@@ -458,7 +524,7 @@
+ LDFLAGS="$LDFLAGS $linkeroptions $bitstobuildLink"
+ export LDFLAGS
+
+-EXTRA_LIBS="$transcodingLibs $threadingLibs"
++EXTRA_LIBS="$transcodingLibs $threadingLibs $netaccessorLibs"
+ export EXTRA_LIBS
+
+ echo
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]