diff --git a/configure.ac b/configure.ac index d165231d7..8d884a193 100644 --- a/configure.ac +++ b/configure.ac @@ -806,6 +806,14 @@ AC_SUBST([MS2_VERSION]) AC_SUBST([MS2_DIR]) +case $target in + *mingw*) + dnl Workaround for mingw, whose compiler does not check in /usr/include ... + CPPFLAGS="$CPPFLAGS -I/usr/include" + LDFLAGS="$LDFLAGS -L/usr/lib" + ;; +esac + AC_ARG_ENABLE(tunnel, [AS_HELP_STRING([--enable-tunnel=[yes/no]], [Turn on compilation of tunnel support (default=no)])], @@ -943,14 +951,6 @@ case "$target_os" in ;; esac -case $target in - *mingw*) - dnl Workaround for mingw, whose compiler does not check in /usr/include ... - CPPFLAGS="$CPPFLAGS -I/usr/include" - LDFLAGS="$LDFLAGS -L/usr/lib" - ;; -esac - dnl ################################################## dnl # Check for doxygen