]> git.saurik.com Git - wxWidgets.git/blobdiff - acinclude.m4
Implement transformation between the wxDisplay coordinate system and the Cocoa screen...
[wxWidgets.git] / acinclude.m4
index 347b68a40830c403f040549c459d76dbab10910b..033014481dfec99a938e83d619dbaabfb60e81da 100644 (file)
@@ -382,7 +382,10 @@ AC_DEFUN([WX_ARG_SYS_WITH],
                       [
                         LINE=`grep "^$3=" ${wx_arg_cache_file}`
                         if test "x$LINE" != x ; then
-                          eval "DEFAULT_$LINE"
+                            eval "DEFAULT_$LINE"
+                            cache=yes
+                        else
+                            cache=no
                         fi
 
                         AS_TR_SH(wx_cv_use_$1)='$3=${'DEFAULT_$3":-$wxUSE_ALL_FEATURES}"
@@ -432,14 +435,17 @@ AC_DEFUN([WX_ARG_WITH],
                       [
                         LINE=`grep "^$3=" ${wx_arg_cache_file}`
                         if test "x$LINE" != x ; then
-                          eval "DEFAULT_$LINE"
+                            eval "DEFAULT_$LINE"
+                            cache=yes
+                        else
+                            cache=no
                         fi
 
                         AS_TR_SH(wx_cv_use_$1)='$3=${'DEFAULT_$3":-$defaultval}"
                       ])
 
           eval "$AS_TR_SH(wx_cv_use_$1)"
-          if test "x$cache" != xyes; then
+          if test "x$cache" = xyes; then
             echo "$3=$$3" >> ${wx_arg_cache_file}.tmp
           fi
 
@@ -494,7 +500,10 @@ AC_DEFUN([WX_ARG_ENABLE],
                         [
                           LINE=`grep "^$3=" ${wx_arg_cache_file}`
                           if test "x$LINE" != x ; then
-                            eval "DEFAULT_$LINE"
+                              eval "DEFAULT_$LINE"
+                              cache=yes
+                          else
+                              cache=no
                           fi
 
                           AS_TR_SH(wx_cv_use_$1)='$3=${'DEFAULT_$3":-$defaultval}"
@@ -552,6 +561,9 @@ AC_DEFUN([WX_ARG_ENABLE_PARAM],
                           LINE=`grep "^$3=" ${wx_arg_cache_file}`
                           if test "x$LINE" != x ; then
                             eval "DEFAULT_$LINE"
+                            cache=yes
+                          else
+                            cache=no
                           fi
 
                           wx_cv_use_$1='$3='$DEFAULT_$3