+if test "x${ac_cv_header_version_h}" '=' "xyes";then
+ HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
+fi
+if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
+ HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
+fi
+
+cat > conftest.cpp << EOF
+
+// hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
+// so we have to introduce them this way
+$HAVE_VERSION_H_DEFINE
+$HAVE_AVIFILE_VERSION_H_DEFINE
+
+#ifdef HAVE_VERSION_H
+ #include <version.h>
+#endif
+#ifdef HAVE_AVIFILE_VERSION_H
+ #include <avifile/version.h>
+#endif
+