]> git.saurik.com Git - wxWidgets.git/commitdiff
Make sure -DNO_GCC_PRAGMA is in wx-config output regardless of the reason.
authorDavid Elliott <dfe@tgwbd.org>
Thu, 20 Jan 2005 16:10:17 +0000 (16:10 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Thu, 20 Jan 2005 16:10:17 +0000 (16:10 +0000)
Mostly reverts configure.in,1.916,1.917 and uses a simpler method.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index 220f375f720d5e19166c17cb6e5f530e4f9f51cc..2288d3eab5515827afca06ab487c0b115d2fe507 100755 (executable)
--- a/configure
+++ b/configure
@@ -41211,6 +41211,11 @@ else
 fi
 
 GCC_PRAGMA_FLAGS=""
+PCH_FLAGS=""
+if test $GCC_PCH = 1 ; then
+    GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
+    PCH_FLAGS="-DWX_PRECOMP"
+else
     case "${host}" in
         powerpc-*-darwin* )
                                     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
@@ -41330,16 +41335,7 @@ rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
             fi
             ;;
     esac
-
-PCH_FLAGS=""
-if test $GCC_PCH = 1 ; then
-    if test "x$GCC_PRAGMA_FLAGS" = "x"; then
-        PCH_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
-    else
-        PCH_FLAGS="-DWX_PRECOMP"
-    fi
 fi
-
 CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
 
 
index da02b737cff9f3ccfe9342f425d3f4c243d49755..fc4a6193a7620868e7ee54b7c4de28fb69722f2e 100644 (file)
@@ -6286,8 +6286,15 @@ else
 
 fi
 
-dnl Check to see if the platform always requires NO_GCC_PRAGMA
+dnl According to Vaclav, if NO_GCC_PRAGMA is used for any reason it needs to
+dnl be in wx-config output.  Not doing so could result in link problems.
 GCC_PRAGMA_FLAGS=""
+PCH_FLAGS=""
+dnl Find out if we have to define NO_GCC_PRAGMA and WX_PRECOMP:
+if test $GCC_PCH = 1 ; then
+    GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
+    PCH_FLAGS="-DWX_PRECOMP"
+else
     case "${host}" in
         powerpc-*-darwin* )
             dnl Some Apple's GCC version are broken and can't handle the
@@ -6332,17 +6339,7 @@ GCC_PRAGMA_FLAGS=""
             fi
             ;;
     esac
-
-dnl Find out if we have to define NO_GCC_PRAGMA and WX_PRECOMP:
-PCH_FLAGS=""
-if test $GCC_PCH = 1 ; then
-    if test "x$GCC_PRAGMA_FLAGS" = "x"; then
-        PCH_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
-    else
-        PCH_FLAGS="-DWX_PRECOMP"
-    fi
 fi
-
 CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"