From d84cedb39ef03041e0e4bbf5600ae6f2616268da Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Apr 2006 21:03:57 +0000 Subject: [PATCH] compile GTK+ test program using C compiler, not C++ one, otherwise it always fails as it uses undeclared functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.in b/configure.in index 00ae05edae..31adabaa10 100644 --- a/configure.in +++ b/configure.in @@ -2820,6 +2820,9 @@ if test "$wxUSE_GUI" = "yes"; then fi if test "$wxUSE_GTK" = 1; then + dnl GTK+ test program must be compiled with C compiler + AC_LANG_PUSH(C) + AC_MSG_CHECKING([for GTK+ version]) gtk_version_cached=1 @@ -2916,6 +2919,8 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config ;; esac + AC_LANG_POP + if test "$WXGTK20" = 1; then save_CFLAGS="$CFLAGS" save_LIBS="$LIBS"