]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
FreeBSD library naming fix
[wxWidgets.git] / configure.in
index 36a527a432765c2434d31c9db455906db9845445..83014388dc69c245fdc286af481ba396ffb644d8 100644 (file)
@@ -1525,7 +1525,13 @@ dnl        )
 dnl    )
 
     TOOLKIT_INCLUDE="$GTK_CFLAGS"
-    GUI_TK_LIBRARY="$GTK_LIBS -lgthread"
+dnl On FreeBSD, the libs are called gtk12 etc, so we must append gthread12
+    echo $GTK_LIBS | fgrep -q "glib12"
+    if test $? = 0  ; then
+       GUI_TK_LIBRARY="$GTK_LIBS -gthread12"
+    else
+       GUI_TK_LIBRARY="$GTK_LIBS -lgthread"
+    fi
     TOOLKIT=GTK
 
     AFMINSTALL=afminstall