testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
libfirm.doxygen"
-dnl where is the configure file
-CONF_DIR_NAME=`dirname $0`
-
dnl generate the config header file
AC_CONFIG_HEADER(config.h)
libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}"
AC_SUBST(libfirm_conf_env)
+dnl where is the configure file
+CONF_DIR_NAME=`dirname $0`
+
dnl check for additional include dirs
AC_ARG_WITH(includedir, [ --with-includedir=add colon seperated list of directories to include search path],
CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`, T_FLAG="")
fi])
AC_SUBST(enable_statistics)
+dnl disable external effects in XML
+dnl -------------------------------
+AC_MSG_CHECKING([for using external effects in xml2])
+AC_ARG_ENABLE(external-effects,
+[ --disable-external-effects disable descriptions of external effects in XML],
+[if test "$enableval"="no"; then
+ enable_external_effects=no
+fi],
+[enable_external_effects=yes])
+AC_SUBST(enable_external_effects)
+if test "$enable_external_effects" == no; then
+ AC_MSG_RESULT([disabled])
+else
+ AC_MSG_RESULT([enabled])
+fi
+dnl check for header and library below
+
dnl Checks for programs.
dnl ====================
fi
+if test "$enable_external_effects" == "yes"; then
+ AC_CHECK_HEADERS(libxml/parser.h, ac_xml_headers="yes", ac_xml_headers="no")
+ if test "$ac_xml_headers" != yes; then
+ AC_MSG_ERROR(xml header files not found. (IPD: add --with-includedir=/usr/public/libxml2/include/libxml2/ to configure flags))
+ fi
+fi
+
dnl Checks for libraries.
dnl =====================
fi
+if test "$enable_external_effects" == "yes"; then
+ AC_CHECK_LIB(xml2, xmlParseFile, ac_xml_library="yes", ac_xml_library="no")
+ if test "$ac_m_library" != yes; then
+ AC_MSG_ERROR("xml2 library not found (IPD: add --with-libdir=/usr/public/libxml2/lib/ to configure flags)")
+ else
+ LIBS=$LIBS" -lxml2"
+ fi
+fi
+
dnl Checks for typedefs, structures, and compiler characteristics.
dnl ==============================================================
AC_C_CONST