X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=configure.ad;h=1fe945ea7c33a5d22345b3cf764deeb0a6eced70;hb=0591a422cd4b71e5af6581bcd3d00d184d84a017;hp=cf3373582f0a6df19d83bc82ae671c7bbfb5817c;hpb=6e8488ced827350e5c0e95f7a9feffdd80281eae;p=runtime.git diff --git a/configure.ad b/configure.ad index cf337358..1fe945ea 100644 --- a/configure.ad +++ b/configure.ad @@ -1193,6 +1193,30 @@ if test x$has_threads = xtrue; then fi +# Check for Expat +AC_ARG_WITH(expat, + [[ --with-expat[=DIR] use Expat XML [search in DIR/include and DIR/lib]]], + [ + case "${withval}" in + no) + ;; + *) + if test -d $withval/include; then + CPPFLAGS="$CPPFLAGS -I$withval/include" + CFLAGS="$CFLAGS -I$withval/include" + fi + if test -d $withval/lib; then + LDFLAGS="$LDFLAGS -L$withval/lib" + fi + ;; + esac + ]) + +AC_CHECK_HEADERS(expat.h, + [ LIBS="$LIBS -lexpat" ], + [ AC_MSG_ERROR(Expat XML Library is required to compile SRT) ]) + + ## ## Native WIN32 compilation under cygwin ##