-
-dnl check for the math header file
-
-AC_CHECK_HEADERS(math.h, ac_math_headers="yes", ac_math_headers="no")
-if test "$ac_math_headers" != yes; then
- dnl math header not found.
- AC_MSG_ERROR("math header file not found")
-fi
-
-
-dnl check for the obstack header file
-dnl does not work with:
-dnl - cygwin
-dnl - MacOSX
-#AC_FUNC_OBSTACK
-
-AC_CHECK_HEADERS(obstack.h, ac_obstack_headers="yes", ac_obstack_headers="no")
-if test "$ac_obstack_headers" != yes; then
- dnl obstack header not found.
- AC_MSG_ERROR("obstack.h not found")
-fi
-
-
-AC_CHECK_HEADERS(alloca.h, ac_alloca_headers="yes", ac_alloca_headers="no")
-if test "$ac_alloca_headers" = "yes"; then
- AC_DEFINE(HAVE_ALLOCA_H)
-else
- if test "$ac_cv_header_stdc" = "no"; then
- AC_MSG_ERROR("alloca.h and stdlib.h not found")
- fi
-fi
-
-
-dnl check for jni header files
-
-if test "$enable_firm_jni" = yes; then
- AC_CHECK_HEADERS(jni.h, ac_jni_headers="yes", ac_jni_headers="no")
- if test "$ac_jni_headers" != yes; then
- AC_MSG_ERROR(jni header file not found. (IPD: add --with-includedir=/usr/public2/java/jdk1.3.1-sun/include/:/usr/public2/java/jdk1.3.1-sun/include/linux/ to configure flags))
- fi
-fi
-
-
-if test "$enable_external_effects" == "yes"; then
- dnl check for libxml2 library installation dir
- AC_CHECK_PROG(XML2CONFIG, xml2-config, "xml2-config", "echo")
- if test "$XML2CONFIG" != "xml2-config"; then
- AC_MSG_ERROR(xml2-config for detecting libxml2 not found)
- fi
- AC_SUBST(XML2CONFIG)
- LDFLAGS=$LDFLAGS" -L/usr/lib `$XML2CONFIG --libs`";
- CPPFLAGS=$CPPFLAGS" `$XML2CONFIG --cflags`";
-
- 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