dnl check for the obstack header file
-AC_FUNC_OBSTACK
+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
-if test "$ac_cv_func_obstack" != "yes"; then
+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("no obstack support")
+ AC_MSG_ERROR("obstack.h not found")
fi
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 -I/usr/public2/java/jdk1.3.1-sun/include/ -I/usr/public2/java/jdk1.3.1-sun/include/linux/ to CPPFLAGS))
+ 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