]> git.lyx.org Git - features.git/commitdiff
add -D_CYGWIN_WIN whenever cygwin without x is selected.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 15 Apr 2006 16:19:15 +0000 (16:19 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 15 Apr 2006 16:19:15 +0000 (16:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13686 a592a061-630c-0410-9148-cb99ea01b6c8

config/cygwin.m4

index 26aed831ed058ac5436f9b705882bc1e8e5da878..4b59b9e1c06d21e40943562f07b02e857f0984d4 100644 (file)
@@ -4,11 +4,22 @@
 AC_DEFUN([CHECK_WITH_CYGWIN],
 [
   case $host_os in
-  cygwin* | mingw* | pw32* )
-    # TODO 1: pass -DQ_CYGWIN_WIN" *when* the option
-    # --without-x is passed to configure *and* platform is cygwin
-    # TODO 2: see how to pass -mno-cygwin when building native
-    # mingw within cygwin
+  cygwin* )
+    for frontend in $FRONTENDS ; do
+      case "$frontend" in
+      qt* )
+       if test "$lyx_use_packaging" = posix; then
+         AC_MSG_CHECKING([window system for Qt])
+         if test "x$with_x" = xno; then
+           CPPFLAGS="${CPPFLAGS} -DQ_CYGWIN_WIN"
+           AC_MSG_RESULT([Windows])
+         else
+           AC_MSG_RESULT([X11])
+         fi
+       fi
+        ;;
+      esac
+    done
     ;;
   esac
 ])