Sanity check when configuring for mingw32: make sure that $CC is a
mingw gcc before proceeding.
AC_SUBST([GccVersion], [`gcc --version | grep mingw | cut -f 3 -d ' '`])
])# FP_HAVE_GCC
AC_SUBST([GccVersion], [`gcc --version | grep mingw | cut -f 3 -d ' '`])
])# FP_HAVE_GCC
+AC_DEFUN([FP_MINGW_GCC],
+[
+ case $HostOS_CPP in
+ mingw*) AC_MSG_CHECKING([whether $CC is a mingw gcc])
+ if $CC -v 2>&1 | grep mingw >/dev/null; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Please use --with-gcc to specify a mingw gcc])
+ fi;;
+ *) ;;
+ esac
+])
dnl Small feature test for perl version. Assumes PerlCmd
dnl contains path to perl binary
dnl Small feature test for perl version. Assumes PerlCmd
dnl contains path to perl binary
dnl If gcc, make sure it's at least 2.1
dnl
FP_HAVE_GCC
dnl If gcc, make sure it's at least 2.1
dnl
FP_HAVE_GCC
dnl ** figure out how to invoke cpp directly (gcc -E is no good)
AC_PROG_CPP
dnl ** figure out how to invoke cpp directly (gcc -E is no good)
AC_PROG_CPP