https://github.com/cran/XML
Raw File
Tip revision: bfb895672dd542b18b830824c041464fabf9c78e authored by Duncan Temple Lang on 05 October 2010, 00:00:00 UTC
version 3.2-0
Tip revision: bfb8956
configure.win
#!/bin/sh



if test -z "$LIB_XML" ; then
  echo "Please define LIB_XML (and LIB_ZLIB, LIB_ICONV)"
  exit 1
fi

if test -z "$LIB_ZLIB" ; then
  echo "Please define LIB_ZLIB (and LIB_ICONV)"
  exit 1
fi

if test -z "$LIB_ICONV" ; then  
  echo "Please define LIB_ICONV"
  exit 1
fi

if test -z "${R_PACKAGE_DIR}"; then
   R_PACKAGE_DIR=${DPKG}
fi

mkdir $R_PACKAGE_DIR/libs
# These were in $LIB_ZLIB/lib/ and $LIB_XML/lib
cp $LIB_ZLIB/bin/zlib1.dll $R_PACKAGE_DIR/libs
cp $LIB_XML/bin/libxml2.dll $R_PACKAGE_DIR/libs
cp $LIB_ICONV/bin/iconv.dll $R_PACKAGE_DIR/libs

echo "supportsExpat <- function() FALSE" > R/supports.R
echo "supportsLibxml <- function() TRUE" >> R/supports.R

back to top