]> git.saurik.com Git - wxWidgets.git/blobdiff - configure
Fixups for solaris; remove '-mt' from pkg-config output and add '-lX11' for a static...
[wxWidgets.git] / configure
index 4bbb1e9b931926578494e0cd8a339cb97fd3d40a..73c7a089b920c64f69ef83f3e2740cf249bf09e1 100755 (executable)
--- a/configure
+++ b/configure
@@ -25037,7 +25037,15 @@ echo "${ECHO_T}" >&6
                 fi
 
                                 wx_cv_lib_gtk=
-                if test "x$wxGTK_VERSION" != "x1"; then
+                if test "x$wxGTK_VERSION" != "x1"
+                then
+                                                                                case "${host}" in
+                        *-*-solaris2* )
+                            if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
+                               enable_gtktest=no
+                            fi
+                    esac
+
                     # Check whether --enable-gtktest or --disable-gtktest was given.
 if test "${enable_gtktest+set}" = set; then
   enableval="$enable_gtktest"
@@ -25340,6 +25348,17 @@ rm -f conftest.err conftest.$ac_objext \
 
   rm -f conf.gtktest
 
+
+                                        case "${host}" in
+                        *-*-solaris2* )
+                            if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
+                                GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
+                                GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
+                            fi
+                                                        if test "$wxUSE_SHARED" != "yes"; then
+                                GTK_LIBS="$GTK_LIBS -lX11"
+                            fi
+                    esac
                 fi
 
                                 if test -z "$wx_cv_lib_gtk"; then