]> git.lyx.org Git - lyx.git/blobdiff - config/qt.m4
Small fixes for STLPort compliance
[lyx.git] / config / qt.m4
index 459560d9fc796c75858e5f9abd47538741cecf9c..6e220787364aa2f6f39847c5eb6c11083c3f8844 100644 (file)
@@ -96,7 +96,7 @@ AC_DEFUN([QT_TRY_LINK],
                ],
        [
        QString s("mangle_failure");
-       #if (QT_VERSION < 221)
+       #if (QT_VERSION < 0x030000)
        break_me_(\\\);
        #endif
        ],
@@ -244,10 +244,18 @@ AC_DEFUN([QT_DO_IT_ALL],
        AC_SUBST(QT_LDFLAGS)
 
        dnl Preprocessor flags
-       QT_CPPFLAGS="-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL"
+       QT_CPPFLAGS="-DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_EMIT"
        case ${host} in
        *mingw*) QT_CPPFLAGS="-DQT_DLL $QT_CPPFLAGS";;
        esac
+
+       case ${host_os} in
+       cygwin* ) 
+               if test "x$with_x" = xno ; then 
+                       QT_CPPFLAGS="$QT_CPPFLAGS -DQ_CYGWIN_WIN"
+               fi;;
+       esac
+
        AC_SUBST(QT_CPPFLAGS)
 
        if test -z "$MOC"; then