From a36c94f18dbefe9f9e30daf1eac27c41cc7c9c28 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 29 Jan 2015 11:12:55 +0100 Subject: [PATCH] Move the inclusion of /usr/include for MinGW one more time. --- configure.ac | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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