191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
AC_MSG_RESULT(not found.)
GTK4="false"
AC_MSG_CHECKING(if GTK3 and supporting GtkSourceView4 and Webkit4 libraries are installed)
GTK3=`pkg-config --silence-errors --libs gtk+-3.0`
SRC3=`pkg-config --silence-errors --libs gtksourceview-4`
WEB3=`pkg-config --silence-errors --libs webkit2gtk-4.0`
if test -z "$GTK3" -o -z "$SRC3" -o -z "$WEB3"; then
AC_MSG_RESULT(found.)
GTK3="false"
AC_MSG_CHECKING(if GTK2 and supporting GtkSourceView3 and Webkit2 libraries are installed)
GTK2=`pkg-config --silence-errors --libs gtk+-2.0`
SRC2=`pkg-config --silence-errors --libs gtksourceview-2.0`
WEB2=`pkg-config --silence-errors --libs webkit2gtk-3.0`
if test -z "$GTK2" -o -z "$SRC2" -o -z "$WEB2"; then
AC_MSG_RESULT(not found.)
GTK2="false"
USEGTK="false"
else
AC_MSG_RESULT(found.)
AC_SEARCH_LIBS(gtk_init, [gtk-x11-2.0], [GTK2="true" USEGTK="true"], [GTK2="false" USEGTK="false"], [])
if test "$GTK2" = true; then
AC_SEARCH_LIBS(gtk_source_view_new, [gtksourceview-2.0], [GTK2="true" USEGTK="true"], [GTK2="false" USEGTK="false"], [])
if test "$GTK2" = true; then
AC_SEARCH_LIBS(webkit_web_view_new, [webkit2gtk-3.0], [GTK2="true" USEGTK="true"], [GTK2="false" USEGTK="false"], [])
fi
fi
fi
else
AC_MSG_RESULT(found.)
AC_SEARCH_LIBS(gtk_init, [gtk-3], [GTK3="true" USEGTK="true"], [GTK3="false" USEGTK="false"], [])
if test "$GTK3" = true; then
|
|
|
|
|
|
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
AC_MSG_RESULT(not found.)
GTK4="false"
AC_MSG_CHECKING(if GTK3 and supporting GtkSourceView4 and Webkit4 libraries are installed)
GTK3=`pkg-config --silence-errors --libs gtk+-3.0`
SRC3=`pkg-config --silence-errors --libs gtksourceview-4`
WEB3=`pkg-config --silence-errors --libs webkit2gtk-4.0`
if test -z "$GTK3" -o -z "$SRC3" -o -z "$WEB3"; then
AC_MSG_RESULT(not found.)
GTK3="false"
AC_MSG_CHECKING(if GTK2 and supporting GtkSourceView3 and Webkit2 libraries are installed)
GTK2=`pkg-config --silence-errors --libs gtk+-2.0`
SRC2=`pkg-config --silence-errors --libs gtksourceview-2.0`
WEB2=`pkg-config --silence-errors --libs webkitgtk-1.0`
if test -z "$GTK2" -o -z "$SRC2"; then
AC_MSG_RESULT(not found.)
GTK2="false"
USEGTK="false"
else
AC_MSG_RESULT(found.)
AC_SEARCH_LIBS(gtk_init, [gtk-x11-2.0], [GTK2="true" USEGTK="true"], [GTK2="false" USEGTK="false"], [])
if test "$GTK2" = true; then
AC_SEARCH_LIBS(gtk_source_view_new, [gtksourceview-2.0], [GTK2="true" USEGTK="true"], [GTK2="false" USEGTK="false"], [])
if test "$GTK2" = true; then
AC_SEARCH_LIBS(webkit_web_view_new, [webkitgtk-1.0], [GTK2="true" USEGTK="true"], [GTK2="false" USEGTK="false"], [])
fi
fi
fi
else
AC_MSG_RESULT(found.)
AC_SEARCH_LIBS(gtk_init, [gtk-3], [GTK3="true" USEGTK="true"], [GTK3="false" USEGTK="false"], [])
if test "$GTK3" = true; then
|