2009-08-10 Kristian Rietveld <kris@lanedo.com>
[hildon:gtk.git] / configure.in
1 # Process this file with autoconf to produce a configure script.
2 # require autoconf 2.54
3 AC_PREREQ(2.54)
4
5 # Making releases:
6 #   GTK_MICRO_VERSION += 1;
7 #   GTK_INTERFACE_AGE += 1;
8 #   GTK_BINARY_AGE += 1;
9 # if any functions have been added, set GTK_INTERFACE_AGE to 0.
10 # if backwards compatibility has been broken,
11 # set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
12
13 m4_define([gtk_major_version], [2])
14 m4_define([gtk_minor_version], [14])
15 m4_define([gtk_micro_version], [7])
16 m4_define([gtk_interface_age], [7])
17 m4_define([gtk_binary_age],
18           [m4_eval(100 * gtk_minor_version + gtk_micro_version)])
19 m4_define([gtk_version],
20           [gtk_major_version.gtk_minor_version.gtk_micro_version])
21 # This is the X.Y used in -lgtk-FOO-X.Y
22 m4_define([gtk_api_version], [2.0])
23
24 # Define a string for the earliest version that this release has
25 # backwards binary compatibility with for all interfaces a module
26 # might. Unless we add module-only API with lower stability
27 # guarantees, this should be unchanged until we break binary compat
28 # for GTK+.
29 #
30 #GTK_BINARY_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$LT_CURRENT
31 m4_define([gtk_binary_version], [2.10.0])
32
33 # required versions of other packages
34 m4_define([glib_required_version], [2.17.6])
35 m4_define([pango_required_version], [1.20])
36 m4_define([atk_required_version], [1.13.0])
37 m4_define([cairo_required_version], [1.6])
38
39
40 AC_INIT([gtk+], [gtk_version],
41         [http://bugzilla.gnome.org/enter_bug.cgi?product=gtk%2B],
42         [gtk+])
43
44 AC_CONFIG_SRCDIR([gdk/gdktypes.h])
45
46 # Save this value here, since automake will set cflags later
47 cflags_set=${CFLAGS+set}
48
49 AM_INIT_AUTOMAKE(no-define)
50 AM_CONFIG_HEADER(config.h)
51
52 #
53 # For each of the libraries we build, we define the following
54  
55 # substituted variables:
56 #
57 # foo_PACKAGES:     pkg-config packages this library requires
58 # foo_EXTRA_LIBS:   Libraries this module requires not pulled in by pkg-config
59 # foo_EXTRA_CFLAGS: cflags this module requires not pulled in by pkg-config
60 # foo_DEP_LIBS:     All libraries this module requires
61 # foo_DEP_CFLAGS:   All cflags this module requires
62
63
64 GTK_MAJOR_VERSION=gtk_major_version
65 GTK_MINOR_VERSION=gtk_minor_version
66 GTK_MICRO_VERSION=gtk_micro_version
67 GTK_INTERFACE_AGE=gtk_interface_age
68 GTK_BINARY_AGE=gtk_binary_age
69 GTK_VERSION=gtk_version
70 GTK_API_VERSION=gtk_api_version
71 GTK_BINARY_VERSION=gtk_binary_version
72 AC_SUBST(GTK_MAJOR_VERSION)
73 AC_SUBST(GTK_MINOR_VERSION)
74 AC_SUBST(GTK_MICRO_VERSION)
75 AC_SUBST(GTK_INTERFACE_AGE)
76 AC_SUBST(GTK_BINARY_AGE)
77 AC_SUBST(GTK_API_VERSION)
78 AC_SUBST(GTK_VERSION)
79 AC_SUBST(GTK_BINARY_VERSION)
80
81 # libtool versioning
82 #LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
83 #LT_CURRENT=`expr $GTK_MICRO_VERSION - $GTK_INTERFACE_AGE`
84 #LT_REVISION=$GTK_INTERFACE_AGE
85 #LT_AGE=`expr $GTK_BINARY_AGE - $GTK_INTERFACE_AGE`
86 #LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
87
88 m4_define([lt_current], [m4_eval(100 * gtk_minor_version + gtk_micro_version - gtk_interface_age)])
89 m4_define([lt_revision], [gtk_interface_age])
90 m4_define([lt_age], [m4_eval(gtk_binary_age - gtk_interface_age)])
91 LT_VERSION_INFO="lt_current:lt_revision:lt_age"
92 LT_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age)
93 AC_SUBST(LT_VERSION_INFO)
94 AC_SUBST(LT_CURRENT_MINUS_AGE)
95
96 m4_define([gail_lt_current],[18])
97 m4_define([gail_lt_revision],[1])
98 m4_define([gail_lt_age],[0])
99 m4_define([gail_lt_version_info],[gail_lt_current:gail_lt_revision:gail_lt_age])
100 m4_define([gail_lt_current_minus_age],[m4_eval(gail_lt_current - gail_lt_age)])
101 AC_SUBST([GAIL_LT_VERSION_INFO],[gail_lt_version_info])
102 AC_SUBST([GAIL_LT_CURRENT_MINUS_AGE],[gail_lt_current_minus_age])
103
104 #
105 # gdk-pixbuf gets versioned separately, and for now, using standard
106 # libtool versioning, not GTK+-style versioning
107 #
108 GDK_PIXBUF_MAJOR=gtk_major_version
109 GDK_PIXBUF_MINOR=gtk_minor_version
110 GDK_PIXBUF_MICRO=gtk_micro_version
111 GDK_PIXBUF_VERSION="${GDK_PIXBUF_MAJOR}.${GDK_PIXBUF_MINOR}.${GDK_PIXBUF_MICRO}"
112 AC_SUBST(GDK_PIXBUF_MAJOR)
113 AC_SUBST(GDK_PIXBUF_MINOR)
114 AC_SUBST(GDK_PIXBUF_MICRO)
115 AC_SUBST(GDK_PIXBUF_VERSION)
116
117 GETTEXT_PACKAGE=gtk20
118 AC_SUBST(GETTEXT_PACKAGE)
119 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
120                    [The prefix for our gettext translation domains.])
121
122 AC_CANONICAL_HOST
123
124 MATH_LIB=-lm
125 AC_MSG_CHECKING([for native Win32])
126 LIB_EXE_MACHINE_FLAG=X86
127 case "$host" in
128   *-*-mingw*)
129     os_win32=yes
130     gio_can_sniff=no
131     MATH_LIB=
132     case "$host" in
133     x86_64-*-*)
134       LIB_EXE_MACHINE_FLAG=X64
135       ;;
136     esac
137     ;;
138   *)
139     os_win32=no
140     ;;
141 esac
142 AC_MSG_RESULT([$os_win32])
143
144 AC_SUBST(LIB_EXE_MACHINE_FLAG)
145
146 case $host in
147   *-*-linux*)
148     os_linux=yes
149     ;;
150 esac
151
152 dnl Initialize libtool
153 AC_PROG_CC
154 AM_DISABLE_STATIC
155
156 dnl 
157 dnl Check for a working C++ compiler, but do not bail out, if none is found.
158 dnl We use this for an automated test for C++ header correctness.
159 dnl 
160 AC_CHECK_TOOLS(CXX, [$CCC c++ g++ gcc CC cxx cc++ cl], gcc)
161 AC_LANG_SAVE
162 AC_LANG_CPLUSPLUS
163
164 AC_TRY_COMPILE(,[class a { int b; } c;], ,CXX=)
165 AM_CONDITIONAL(HAVE_CXX, test "$CXX" != "")
166
167 gtk_save_cxxflags="$CXXFLAGS"
168 CXXFLAGS="$CXXFLAGS -x objective-c++"
169 AC_TRY_COMPILE([@interface Foo @end],,OBJC=yes,OBJC=no)
170 AM_CONDITIONAL(HAVE_OBJC, test "$OBJC" = "yes")
171 CXXFLAGS="$gtk_save_cxxflags"
172 AC_LANG_RESTORE
173
174 if test "$os_win32" = "yes"; then
175   if test x$enable_static = xyes -o x$enable_static = x; then
176     AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
177     enable_static=no
178   fi
179   if test x$enable_shared = xno; then
180     AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
181   fi
182   enable_shared=yes
183 fi
184
185 AC_LIBTOOL_WIN32_DLL
186 AM_PROG_LIBTOOL
187 dnl when using libtool 2.x create libtool early, because it's used in configure
188 m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
189
190
191 # Make sure we use 64-bit versions of various file stuff.
192 AC_SYS_LARGEFILE
193
194 AM_PROG_AS
195 AC_PATH_PROG(NM, nm, nm)
196
197 dnl Initialize maintainer mode
198 AM_MAINTAINER_MODE
199
200 AC_MSG_CHECKING([for some Win32 platform])
201 case "$host" in
202   *-*-mingw*|*-*-cygwin*)
203     platform_win32=yes
204     ;;
205   *)
206     platform_win32=no
207     ;;
208 esac
209 AC_MSG_RESULT([$platform_win32])
210 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
211
212 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
213 AM_CONDITIONAL(OS_UNIX, test "$os_win32" != "yes")
214 AM_CONDITIONAL(OS_LINUX, test "$os_linux" = "yes")
215
216 if test "$os_win32" = "yes"; then
217   AC_CHECK_TOOL(WINDRES, windres, no)
218   if test "$WINDRES" = no; then
219     AC_MSG_ERROR([*** Could not find an implementation of windres in your PATH.])
220   fi
221   AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
222 fi
223 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
224
225 m4_define([debug_default],
226           m4_if(m4_eval(gtk_minor_version % 2), [1], [yes], [minimum]))
227
228 dnl declare --enable-* args and collect ac_help strings
229 AC_ARG_ENABLE(debug,
230               AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],
231                              [turn on debugging @<:@default=debug_default@:>@]),,
232               enable_debug=debug_default)
233 AC_ARG_ENABLE(shm,
234               [AC_HELP_STRING([--enable-shm],
235                               [support shared memory if available [default=yes]])],,
236               [enable_shm="yes"])
237 AC_ARG_ENABLE(xkb,
238               [AC_HELP_STRING([--enable-xkb],
239                               [support XKB [default=maybe]])],,
240               [enable_xkb="maybe"])
241 AC_ARG_ENABLE(xinerama,
242               [AC_HELP_STRING([--enable-xinerama],
243                               [support xinerama extension if available [default=yes]])],,
244               [enable_xinerama="yes"])
245 AC_ARG_ENABLE(rebuilds,
246               [AC_HELP_STRING([--disable-rebuilds],
247                               [disable all source autogeneration rules])],,
248               [enable_rebuilds=yes])
249 AC_ARG_ENABLE(visibility,
250               [AC_HELP_STRING([--disable-visibility],
251                               [don't use ELF visibility attributes])],,
252               [enable_visibility=yes])
253
254 AC_ARG_WITH(xinput,
255             [AC_HELP_STRING([--with-xinput=@<:@no/yes@:>@], [support XInput])])
256
257 dnl arg to turn on maemo specific features
258 AC_ARG_WITH(maemo,
259             [AC_HELP_STRING([--with-maemo=@<:@no/yes@:>@], [enable Maemo specific features])])
260
261 if test "$platform_win32" = yes; then
262   gdktarget=win32
263 else
264   gdktarget=x11
265 fi
266
267 AC_ARG_WITH(gdktarget, [  --with-gdktarget=[[x11/win32/quartz/directfb]] select non-default GDK target],
268         gdktarget=$with_gdktarget)
269
270 AC_SUBST(gdktarget)
271 case $gdktarget in
272   x11|win32|quartz|directfb) ;;
273   *) AC_MSG_ERROR([Invalid target for GDK: use x11, quartz, directfb or win32.]);;
274 esac
275
276 gdktargetlib=libgdk-$gdktarget-$GTK_API_VERSION.la
277 gtktargetlib=libgtk-$gdktarget-$GTK_API_VERSION.la
278
279 AC_SUBST(gdktargetlib)
280 AC_SUBST(gtktargetlib)
281
282 if test "x$enable_debug" = "xyes"; then
283   test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
284   GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG -DG_ERRORCHECK_MUTEXES" 
285 else
286   if test "x$enable_debug" = "xno"; then
287     GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
288   else
289     GTK_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
290   fi
291 fi
292
293
294 if test "x$enable_visibility" = "xno"; then
295   GTK_DEBUG_FLAGS="$GTK_DEBUG_FLAGS -DDISABLE_VISIBILITY"
296 fi
297
298
299 AC_DEFINE_UNQUOTED(GTK_COMPILED_WITH_DEBUGGING, "${enable_debug}",
300                    [Define if debugging is enabled])
301
302                         
303 # Build time sanity check...
304 AM_SANITY_CHECK
305
306 # Checks for programs.
307 AC_ISC_POSIX
308 AM_PROG_CC_STDC
309 AC_PROG_INSTALL
310 AC_PROG_MAKE_SET
311
312 changequote(,)dnl
313 if test "x$GCC" = "xyes"; then
314   case " $CFLAGS " in
315   *[\ \ ]-Wall[\ \      ]*) ;;
316   *) CFLAGS="$CFLAGS -Wall" ;;
317   esac
318
319   if test "x$enable_ansi" = "xyes"; then
320     case " $CFLAGS " in
321     *[\ \       ]-ansi[\ \      ]*) ;;
322     *) CFLAGS="$CFLAGS -ansi" ;;
323     esac
324
325     case " $CFLAGS " in
326     *[\ \       ]-pedantic[\ \  ]*) ;;
327     *) CFLAGS="$CFLAGS -pedantic" ;;
328     esac
329   fi
330 fi
331 changequote([,])dnl
332
333 CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
334
335 # Ensure MSVC-compatible struct packing convention is used when
336 # compiling for Win32 with gcc.
337 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
338 # gcc2 uses "-fnative-struct".
339 if test x"$os_win32" = xyes; then
340   if test x"$GCC" = xyes; then
341     msnative_struct=''
342     AC_MSG_CHECKING([how to get MSVC-compatible struct packing])
343     if test -z "$ac_cv_prog_CC"; then
344       our_gcc="$CC"
345     else
346       our_gcc="$ac_cv_prog_CC"
347     fi
348     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
349       2.)
350         if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
351           msnative_struct='-fnative-struct'
352         fi
353         ;;
354       *)
355         if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
356           msnative_struct='-mms-bitfields'
357         fi
358         ;;
359     esac
360     if test x"$msnative_struct" = x ; then
361       AC_MSG_RESULT([no way])
362       AC_MSG_WARN([produced libraries might be incompatible with MSVC-compiled code])
363     else
364       CFLAGS="$CFLAGS $msnative_struct"
365       AC_MSG_RESULT([${msnative_struct}])
366     fi
367   fi
368 fi
369
370 # Honor aclocal flags
371 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
372
373 ## Initial sanity check, done here so that users get told they 
374 ## have the wrong dependencies as early in the process as possible.
375 ## Later on we actually use the cflags/libs from separate pkg-config
376 ## calls. Oh, also the later pkg-config calls don't include 
377 ## the version requirements since those make the module lists 
378 ## annoying to construct
379 PKG_CHECK_MODULES(BASE_DEPENDENCIES,
380   [glib-2.0 >= glib_required_version dnl
381    atk >= atk_required_version dnl
382    pango >= pango_required_version dnl
383    cairo >= cairo_required_version])
384
385 if test "$os_win32" != yes; then
386     # libtool option to control which symbols are exported
387     # right now, symbols starting with _ are not exported
388     LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
389 else
390     # We currently use .def files on Windows (for gdk-pixbuf, gdk and gtk)
391     LIBTOOL_EXPORT_OPTIONS=
392 fi
393 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
394
395 dnl ******************************************************
396 dnl * See whether to include shared library dependencies *
397 dnl ******************************************************
398
399 AC_ARG_ENABLE(explicit-deps, 
400               [AC_HELP_STRING([--enable-explicit-deps=@<:@yes/no/auto@:>@],
401                               [use explicit dependencies in .pc files [default=auto]])],,
402               [enable_explicit_deps=auto])
403
404 AC_MSG_CHECKING([Whether to write dependencies into .pc files])
405 case $enable_explicit_deps in
406   auto)
407     export SED
408     deplibs_check_method=`(./libtool --config; echo 'eval echo \"$deplibs_check_method\"') | sh`
409     if test "x$deplibs_check_method" '!=' xpass_all || test "x$enable_static" = xyes ; then
410       enable_explicit_deps=yes  
411     else
412       enable_explicit_deps=no  
413     fi
414   ;;
415   yes|no) 
416   ;;
417   *) AC_MSG_ERROR([Value given to --enable-explicit-deps must be one of yes, no or auto])
418   ;;
419 esac
420 AC_MSG_RESULT($enable_explicit_deps)
421
422 AM_CONDITIONAL(DISABLE_EXPLICIT_DEPS, test $enable_explicit_deps = no)
423
424 # define a MAINT-like variable REBUILD which is set if Perl
425 # and awk are found, so autogenerated sources can be rebuilt
426
427 AC_PATH_PROGS(PERL, perl5 perl)
428
429 # We would like indent, but don't require it.
430 AC_CHECK_PROG(INDENT, indent, indent)
431
432 REBUILD=\#
433 if test "x$enable_rebuilds" = "xyes" && \
434      test -n "$PERL" && \
435      $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
436   REBUILD=
437 fi
438 AC_SUBST(REBUILD)
439
440 AC_CHECK_FUNCS(lstat mkstemp flockfile getc_unlocked)
441 AC_CHECK_FUNCS(localtime_r)
442
443 # _NL_TIME_FIRST_WEEKDAY is an enum and not a define
444 AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
445 AC_TRY_LINK([#include <langinfo.h>], [
446 char c;
447 c = *((unsigned char *)  nl_langinfo(_NL_TIME_FIRST_WEEKDAY));
448 ], gtk_ok=yes, gtk_ok=no)
449 AC_MSG_RESULT($gtk_ok)
450 if test "$gtk_ok" = "yes"; then
451   AC_DEFINE([HAVE__NL_TIME_FIRST_WEEKDAY], [1],
452             [Define if _NL_TIME_FIRST_WEEKDAY is available])
453 fi
454
455 # _NL_MEASUREMENT_MEASUREMENT is an enum and not a define
456 AC_MSG_CHECKING([for _NL_MEASUREMENT_MEASUREMENT])
457 AC_TRY_LINK([#include <langinfo.h>], [
458 char c;
459 c = *((unsigned char *)  nl_langinfo(_NL_MEASUREMENT_MEASUREMENT));
460 ], gtk_ok=yes, gtk_ok=no)
461 AC_MSG_RESULT($gtk_ok)
462 if test "$gtk_ok" = "yes"; then
463   AC_DEFINE([HAVE__NL_MEASUREMENT_MEASUREMENT], [1],
464             [Define if _NL_MEASUREMENT_MEASUREMENT is available])
465 fi
466
467 # _NL_PAPER_HEIGHT is an enum and not a define
468 AC_MSG_CHECKING([for _NL_PAPER_HEIGHT])
469 AC_TRY_LINK([#include <langinfo.h>], [
470 char c;
471 c = *((unsigned char *)  nl_langinfo(_NL_PAPER_HEIGHT));
472 ], gtk_ok=yes, gtk_ok=no)
473 AC_MSG_RESULT($gtk_ok)
474 if test "$gtk_ok" = "yes"; then
475   AC_DEFINE([HAVE__NL_PAPER_HEIGHT], [1],
476             [Define if _NL_PAPER_HEIGHT is available])
477 fi
478
479 # _NL_PAPER_WIDTH is an enum and not a define
480 AC_MSG_CHECKING([for _NL_PAPER_WIDTH])
481 AC_TRY_LINK([#include <langinfo.h>], [
482 char c;
483 c = *((unsigned char *)  nl_langinfo(_NL_PAPER_WIDTH));
484 ], gtk_ok=yes, gtk_ok=no)
485 AC_MSG_RESULT($gtk_ok)
486 if test "$gtk_ok" = "yes"; then
487   AC_DEFINE([HAVE__NL_PAPER_WIDTH], [1],
488             [Define if _NL_PAPER_WIDTH is available])
489 fi
490         
491 # sigsetjmp is a macro on some platforms, so AC_CHECK_FUNCS is not reliable
492 AC_MSG_CHECKING(for sigsetjmp)
493 AC_TRY_LINK([#include <setjmp.h>], [
494 sigjmp_buf env;
495 sigsetjmp(env, 0);
496 ], gtk_ok=yes, gtk_ok=no)
497 AC_MSG_RESULT($gtk_ok)
498 if test "$gtk_ok" = "yes"; then
499   AC_DEFINE(HAVE_SIGSETJMP, 1,
500             [Define to 1 if sigsetjmp is available])
501 fi
502
503 # i18n stuff
504 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
505 AM_GLIB_GNU_GETTEXT
506 LIBS="$LIBS $INTLLIBS"
507 AC_OUTPUT_COMMANDS([case "$CONFIG_FILES" in *po-properties/Makefile.in*)
508         sed -e "/POTFILES =/r po-properties/POTFILES" po-properties/Makefile.in > po-properties/Makefile
509       esac])
510
511 AM_GLIB_DEFINE_LOCALEDIR(GTK_LOCALEDIR)
512
513 dnl The DU4 header files don't provide library prototypes unless 
514 dnl -std1 is given to the native cc.
515 AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
516
517 gtk_save_LIBS=$LIBS
518 LIBS="$LIBS -lm"
519 AC_TRY_RUN([#include <math.h>
520              int main (void) { return (log(1) != log(1.)); }],
521      AC_MSG_RESULT(none needed),
522      gtk_save_CFLAGS="$CFLAGS"
523      CFLAGS="$CFLAGS -std1"
524      AC_TRY_RUN([#include <math.h>
525                  int main (void) { return (log(1) != log(1.)); }],
526          AC_MSG_RESULT(-std1),
527          AC_MSG_RESULT()
528          CFLAGS="$gtk_save_CFLAGS"
529          AC_MSG_WARN(
530                 [No ANSI prototypes found in library. (-std1 didn't work.)]),
531          true
532      ),
533      AC_MSG_RESULT(none needed)
534 )
535 LIBS=$gtk_save_LIBS
536
537 AC_MSG_CHECKING(for the BeOS)
538 case $host in
539   *-*-beos*)
540     AC_MSG_RESULT(yes)
541     MATH_LIB=
542   ;;
543   *)
544     AC_MSG_RESULT(no)
545   ;;
546 esac
547
548 #
549 # see bug 162979
550 #
551 AC_MSG_CHECKING(for HP-UX)
552 case $host_os in
553   hpux9* | hpux10* | hpux11*)
554     AC_MSG_RESULT(yes)
555     CFLAGS="$CFLAGS -DHPPEX -DSHMLINK"
556   ;;
557   *)
558     AC_MSG_RESULT(no)
559   ;;
560 esac
561
562 dnl NeXTStep cc seems to need this
563 AC_MSG_CHECKING([for extra flags for POSIX compliance])
564 AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
565   AC_MSG_RESULT(none needed),
566   gtk_save_CFLAGS="$CFLAGS"
567   CFLAGS="$CFLAGS -posix"
568   AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
569     AC_MSG_RESULT(-posix),
570     AC_MSG_RESULT()
571     CFLAGS="$gtk_save_CFLAGS"
572     AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
573
574 #
575 # Run AM_PATH_GLIB_2_0 to make sure that GLib is installed and working
576
577
578 GLIB_PACKAGES="gobject-2.0 gmodule-no-export-2.0"
579
580 AM_PATH_GLIB_2_0(glib_required_version, :,
581   AC_MSG_ERROR([
582 *** GLIB glib_required_version or better is required. The latest version of 
583 *** GLIB is always available from ftp://ftp.gtk.org/pub/gtk/.]),
584   gobject gmodule-no-export gthread)
585
586 # See if it's safe to turn G_DISABLE_DEPRECATED on.
587 GLIB_VERSION_MAJOR_MINOR=`$PKG_CONFIG --modversion glib-2.0 | sed "s/\.@<:@^.@:>@*\$//"`
588 GLIB_REQUIRED_VERSION_MAJOR_MINOR=`echo glib_required_version | sed "s/\.@<:@^.@:>@*\$//"`
589 if test "x$GLIB_VERSION_MAJOR_MINOR" = "x$GLIB_REQUIRED_VERSION_MAJOR_MINOR"; then
590   CFLAGS="-DG_DISABLE_DEPRECATED $CFLAGS"
591 fi
592
593 CFLAGS="-DGDK_PIXBUF_DISABLE_DEPRECATED $CFLAGS"
594
595
596 dnl
597 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
598 dnl
599 gtk_save_LIBS=$LIBS
600 LIBS="$LIBS $GLIB_LIBS"
601 AC_CHECK_FUNCS(bind_textdomain_codeset)
602 LIBS=$gtk_save_LIBS
603
604 AC_CHECK_HEADERS(pwd.h,
605                  AC_DEFINE(HAVE_PWD_H, 1,
606                            [Define to 1 if pwd.h is available]))
607 AC_CHECK_HEADERS(sys/time.h,
608                  AC_DEFINE(HAVE_SYS_TIME_H, 1,
609                            [Define to 1 if time.h is available]))
610 AC_CHECK_HEADERS(unistd.h,
611                  AC_DEFINE(HAVE_UNISTD_H, 1,
612                            [Define to 1 if unistd.h is available]))
613 AC_CHECK_HEADERS(ftw.h,
614                  AC_DEFINE(HAVE_FTW_H, 1,
615                            [Define to 1 if ftw.h is available]))
616
617 AC_MSG_CHECKING([for GNU ftw extensions])
618 AC_TRY_COMPILE([#define _XOPEN_SOURCE 500
619 #define _GNU_SOURCE
620 #include <ftw.h>], [int flags = FTW_ACTIONRETVAL;], gtk_ok=yes, gtk_ok=no)
621 if test $gtk_ok = yes; then
622     AC_MSG_RESULT([yes])
623     AC_DEFINE(HAVE_GNU_FTW, 1, [Have GNU ftw])
624 else
625     AC_MSG_RESULT([no])
626 fi
627
628 saved_cflags="$CFLAGS"
629 saved_ldflags="$LDFLAGS"
630
631
632 # Checks for header files.
633 AC_HEADER_STDC
634
635 # Checks for typedefs, structures, and compiler characteristics.
636 AC_C_CONST
637
638 # Checks for library functions.
639 AC_TYPE_SIGNAL
640 AC_FUNC_MMAP
641
642 AC_CHECK_FUNCS(mallinfo)
643 AC_CHECK_FUNCS(getresuid)
644 AC_TYPE_UID_T
645
646 # Check if <sys/select.h> needs to be included for fd_set
647 AC_MSG_CHECKING([for fd_set])
648 AC_TRY_COMPILE([#include <sys/types.h>],
649         [fd_set readMask, writeMask;], gtk_ok=yes, gtk_ok=no)
650 if test $gtk_ok = yes; then
651     AC_MSG_RESULT([yes, found in sys/types.h])
652 else
653     AC_HEADER_EGREP(fd_mask, sys/select.h, gtk_ok=yes)
654     if test $gtk_ok = yes; then
655         AC_DEFINE(HAVE_SYS_SELECT_H, 1,
656                   [Define to 1 if sys/select.h is available])
657         AC_MSG_RESULT([yes, found in sys/select.h])
658     else
659         AC_DEFINE(NO_FD_SET, 1,
660                   [Define to 1 if fd_set is not available])
661         AC_MSG_RESULT(no)
662     fi
663 fi
664
665 # `widechar' tests for gdki18n.h
666 AC_MSG_CHECKING(for wchar.h)
667 AC_TRY_CPP([#include <wchar.h>], gdk_wchar_h=yes, gdk_wchar_h=no)
668 if test $gdk_wchar_h = yes; then
669    AC_DEFINE(HAVE_WCHAR_H, 1, [Have wchar.h include file])
670 fi
671 AC_MSG_RESULT($gdk_wchar_h)
672
673 # Check for wctype.h (for iswalnum)
674 AC_MSG_CHECKING(for wctype.h)
675 AC_TRY_CPP([#include <wctype.h>], gdk_wctype_h=yes, gdk_wctype_h=no)
676 if test $gdk_wctype_h = yes; then
677    AC_DEFINE(HAVE_WCTYPE_H, 1, [Have wctype.h include file])
678 fi
679 AC_MSG_RESULT($gdk_wctype_h)
680
681 # in Solaris 2.5, `iswalnum' is in -lw
682 GDK_WLIBS=
683 AC_CHECK_FUNC(iswalnum,,[AC_CHECK_LIB(w,iswalnum,GDK_WLIBS=-lw)])
684
685 oLIBS="$LIBS"
686 LIBS="$LIBS $GDK_WLIBS"
687 # The following is necessary for Linux libc-5.4.38
688 AC_MSG_CHECKING(if iswalnum() and friends are properly defined)
689 AC_TRY_LINK([#include <stdlib.h>],[
690 #if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
691 #  ifdef HAVE_WCTYPE_H
692 #    include <wctype.h>
693 #  else
694 #    ifdef HAVE_WCHAR_H
695 #      include <wchar.h>
696 #    endif
697 #  endif
698 #else
699 #  define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
700 #endif
701 iswalnum((wchar_t) 0);
702 ], gdk_working_wctype=yes, gdk_working_wctype=no)
703 LIBS="$oLIBS"
704
705 if test $gdk_working_wctype = no; then
706    AC_DEFINE(HAVE_BROKEN_WCTYPE, 1, [Is the wctype implementation broken])
707    GDK_WLIBS=
708 fi
709 AC_MSG_RESULT($gdk_working_wctype)
710 AC_SUBST(GDK_WLIBS)
711
712 # Check for uxtheme.h (for MS-Windows Engine)
713 AC_MSG_CHECKING(for uxtheme.h)
714 AC_TRY_CPP([#include <uxtheme.h>], gtk_uxtheme_h=yes, gtk_uxtheme_h=no)
715 if test $gtk_uxtheme_h = yes; then
716    AC_DEFINE(HAVE_UXTHEME_H, 1, [Have uxtheme.h include file])
717 fi
718 AC_MSG_RESULT($gtk_uxtheme_h)
719
720 # Checks for gdkspawn
721 AC_CHECK_HEADERS(crt_externs.h)
722 AC_CHECK_FUNCS(_NSGetEnviron)
723
724
725 ##################################################
726 # Checks for gdk-pixbuf
727 ##################################################
728
729 dnl ********************************************************
730 dnl * See whether we need to load our modules as .la files *
731 dnl ********************************************************
732
733 use_la_modules=false
734 case $host in
735   *-aix*) use_la_modules=true
736 esac
737
738 if $use_la_modules ; then
739    AC_DEFINE(USE_LA_MODULES, 1,
740              [Whether to load modules via .la files rather than directly])
741 fi
742
743
744 AC_MSG_CHECKING(whether to build gmodulized gdk-pixbuf)
745
746 AC_ARG_ENABLE(modules,
747               [AC_HELP_STRING([--disable-modules],
748                               [disable dynamic module loading])])
749
750 dynworks=false
751 deps=
752 if test x$enable_modules = xno; then
753     AC_MSG_RESULT(no)
754 else
755     AC_MSG_RESULT(yes)
756     AC_MSG_CHECKING(whether dynamic modules work)
757     ## for loop is to strip newline 
758     tmp=`$PKG_CONFIG --variable=gmodule_supported gmodule-no-export-2.0`
759     for I in $tmp; do
760         dynworks=$I
761     done
762
763     dnl Now we check to see if our libtool supports shared lib deps
764     dnl (in a rather ugly way even)
765     if $dynworks; then
766         pixbuf_libtool_config="${CONFIG_SHELL-/bin/sh} ./libtool --config"
767         pixbuf_deplibs_check=`$pixbuf_libtool_config | \
768             grep '^[[a-z_]]*check[[a-z_]]*_method=[['\''"]]' | \
769             sed 's/.*[['\''"]]\(.*\)[['\''"]]$/\1/'`
770         if test "x$pixbuf_deplibs_check" = "xnone" || \
771            test "x$pixbuf_deplibs_check" = "xunknown" || \
772            test "x$pixbuf_deplibs_check" = "x"; then
773             dynworks=false
774         fi
775     fi
776
777     if $dynworks; then
778         AC_DEFINE(USE_GMODULE, 1,
779                   [Define to 1 if gmodule works and should be used])
780         AC_MSG_RESULT(yes)
781     else
782         AC_MSG_RESULT(no)
783     fi
784 fi
785
786 dnl We allow people to disable image loaders explicitely, but if they don't we error
787 dnl out so that people don't accidentally build without them.
788
789 AC_ARG_WITH(libpng,
790             [AC_HELP_STRING([--without-libpng],
791                             [disable PNG loader for gdk-pixbuf])])
792 AC_ARG_WITH(libjpeg,
793             [AC_HELP_STRING([--without-libjpeg],
794                             [disable JPEG loader for gdk-pixbuf])])
795 AC_ARG_WITH(libtiff,
796             [AC_HELP_STRING([--without-libtiff],
797                             [disable TIFF loader for gdk-pixbuf])])
798 AC_ARG_WITH(libjasper,
799             [AC_HELP_STRING([--without-libjasper],
800                             [disable JPEG2000 loader for gdk-pixbuf])])
801
802 AC_ARG_ENABLE(gdiplus,
803             [AC_HELP_STRING([--disable-gdiplus],
804                             [disable GDI+ loaders for gdk-pixbuf])])
805
806 AM_CONDITIONAL(BUILD_GDIPLUS_LOADERS, [ test x$os_win32 = xyes && test x$enable_gdiplus != xno ])
807
808 dnl Test for libtiff
809 if test x$os_win32 = xno || test x$enable_gdiplus = xno; then
810   if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
811     AC_CHECK_LIB(tiff, TIFFReadRGBAImageOriented,
812       [AC_CHECK_HEADER(tiffio.h,
813         TIFF='tiff'; LIBTIFF='-ltiff',
814         AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
815       [AC_CHECK_LIB(tiff, TIFFWriteScanline,
816         [AC_CHECK_HEADER(tiffio.h,
817           TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz',
818           AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
819         [AC_CHECK_LIB(tiff34, TIFFFlushData,
820           [AC_CHECK_HEADER(tiffio.h,
821             TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz',
822             AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
823         AC_MSG_WARN(*** TIFF loader will not be built (TIFF library not found) ***), -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
824   fi
825
826   if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
827      AC_MSG_ERROR([
828 *** Checks for TIFF loader failed. You can build without it by passing 
829 *** --without-libtiff to configure but some programs using GTK+ may
830 *** not work properly])
831   fi
832 fi
833
834 dnl Test for libjpeg
835 if test x$os_win32 = xno || test x$enable_gdiplus = xno; then
836   if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
837     AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
838       jpeg_ok=yes,
839       jpeg_ok=no
840       AC_MSG_WARN(*** JPEG loader will not be built (JPEG library not found) ***))
841     if test "$jpeg_ok" = yes; then
842       AC_MSG_CHECKING([for jpeglib.h])
843       AC_TRY_CPP(
844 [#include <stdio.h>
845 #undef PACKAGE
846 #undef VERSION
847 #undef HAVE_STDLIB_H
848 #include <jpeglib.h>],
849         jpeg_ok=yes,
850         jpeg_ok=no)
851       AC_MSG_RESULT($jpeg_ok)
852       if test "$jpeg_ok" = yes; then
853         LIBJPEG='-ljpeg'
854         AC_CHECK_LIB(jpeg, jpeg_simple_progression,     
855           AC_DEFINE(HAVE_PROGRESSIVE_JPEG, 1,
856                     [Define to 1 is libjpeg supports progressive JPEG]),
857           AC_MSG_WARN(JPEG library does not support progressive saving.))
858       else
859           AC_MSG_WARN(*** JPEG loader will not be built (JPEG header file not found) ***)
860       fi
861     fi
862   fi
863
864   if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
865      AC_MSG_ERROR([
866 *** Checks for JPEG loader failed. You can build without it by passing 
867 *** --without-libjpeg to configure but some programs using GTK+ may
868 *** not work properly])
869   fi
870 fi
871
872 dnl Test for libpng
873   if test x$with_libpng != xno && test -z "$LIBPNG"; then
874     AC_MSG_CHECKING(for libpng12)
875     if $PKG_CONFIG --exists libpng12 ; then
876         AC_MSG_RESULT(yes)
877         PNG='png'
878         PNG_DEP_CFLAGS_PACKAGES=libpng12
879         LIBPNG=`$PKG_CONFIG --libs libpng12`
880     else
881       AC_MSG_RESULT(no)
882       AC_CHECK_LIB(png, png_read_info,
883         [AC_CHECK_HEADER(png.h,
884           png_ok=yes,
885           png_ok=no)],
886         AC_MSG_WARN(*** PNG loader will not be built (PNG library not found) ***), -lz -lm)
887       if test "$png_ok" = yes; then
888         AC_MSG_CHECKING([for png_structp in png.h])
889         AC_TRY_COMPILE([#include <png.h>],
890           [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
891           png_ok=yes,
892           png_ok=no)
893         AC_MSG_RESULT($png_ok)
894         if test "$png_ok" = yes; then
895           PNG='png'; LIBPNG='-lpng -lz'
896         else
897           AC_MSG_WARN(*** PNG loader will not be built (PNG library is too old) ***)
898         fi
899       else
900        AC_MSG_WARN(*** PNG loader will not be built (PNG header file not found) ***)
901       fi
902     fi
903   fi
904
905   if test x$with_libpng != xno && test -z "$LIBPNG"; then
906      AC_MSG_ERROR([
907 *** Checks for PNG loader failed. You can build without it by passing 
908 *** --without-libpng to configure but many programs using GTK+ will
909 *** not work properly. The PNG loader is also needed if you are compiling
910 *** from CVS.])
911   fi
912
913 dnl Test for libjasper
914   if test x$with_libjasper != xno && test -z "$LIBJASPER"; then
915     AC_CHECK_LIB(jasper, jas_init, LIBJASPER=-ljasper, [], -ljpeg)
916   fi
917
918   if test x$with_libjasper != xno && test -z "$LIBJASPER"; then
919      AC_MSG_ERROR([
920 *** Checks for JPEG2000 loader failed. You can build without it by passing 
921 *** --without-libjasper to configure])
922   fi
923
924 AC_SUBST(LIBTIFF)
925 AC_SUBST(LIBJPEG)
926 AC_SUBST(LIBPNG)
927 AC_SUBST(LIBJASPER)
928
929 AM_CONDITIONAL(BUILD_DYNAMIC_MODULES, $dynworks)
930
931 #
932 # Allow building some or all gdk-pixbuf loaders included
933 #
934 AC_MSG_CHECKING(pixbuf loaders to build)
935
936 dnl due to an autoconf bug, commas in the first arg to
937 dnl AC_HELP_STRING cause problems.
938 dnl AC_HELP_STRING([--with-included-loaders=LOADER1 LOADER2 ...],
939 dnl                [build the specified loaders into gdk-pixbuf])
940 AC_ARG_WITH(included_loaders,
941 [  --with-included-loaders=LOADER1,LOADER2,...
942                           build the specified loaders into gdk-pixbuf])
943
944 if $dynworks; then 
945    :
946 else
947    ## if the option was specified, leave it; otherwise disable included loaders
948    if test x$with_included_loaders = xno; then
949            with_included_loaders=yes
950    fi
951 fi
952
953 # Use the traditional png loader instead of the GDI+ one on Windows,
954 # because some important apps like GIMP need to read and write
955 # arbitrary tEXt chunks which doesn't seem to be possible through GDI+
956
957 all_loaders="ani,icns,pcx,ras,tga,png,pnm,wbmp,xbm,xpm"
958 if test x$with_libjasper != xno; then
959   all_loaders="$all_loaders,jasper"
960 fi
961 if test x$os_win32 = xyes && test x$enable_gdiplus != xno; then
962   # Skip PNG, see comment above
963   gdip_formats="bmp emf gif ico jpeg tiff wmf"
964   for f in $gdip_formats; do
965     all_loaders="$all_loaders,gdip-$f"
966   done
967 else
968   all_loaders="$all_loaders,bmp,gif,ico,jpeg,tiff"
969 fi
970 included_loaders=""
971 # If no loaders specified, include all
972 if test "x$with_included_loaders" = xyes ; then
973   included_loaders="$all_loaders"
974 else
975   included_loaders="$with_included_loaders"
976 fi
977
978 AC_MSG_RESULT($included_loaders)
979
980 INCLUDED_LOADER_OBJ=
981 INCLUDED_LOADER_DEFINE=
982
983 IFS="${IFS=     }"; gtk_save_ifs="$IFS"; IFS=","
984 for loader in $included_loaders; do
985  if echo "$all_loaders" | egrep "(^|,)$loader(\$|,)" > /dev/null; then
986    :
987  else
988    AC_MSG_ERROR([the specified loader $loader does not exist])
989  fi
990
991  loader_underscores=`echo $loader | sed -e 's/-/_/g'`
992  INCLUDED_LOADER_OBJ="$INCLUDED_LOADER_OBJ libstatic-pixbufloader-$loader.la"
993
994  # Don't bother defining separate -DINCLUDE_gdip_foo for each gdip-foo loader
995  case $loader in
996    gdip-*) ;;
997    *) INCLUDED_LOADER_DEFINE="$INCLUDED_LOADER_DEFINE -DINCLUDE_$loader_underscores";;
998  esac
999  eval INCLUDE_$loader_underscores=yes
1000 done
1001
1002 # Just define one -DINCLUDE_gdiplus for all the gdip-foo loaders
1003 # (except gdip-png, which isn't built at all)
1004 if test x"$INCLUDE_gdip_ico" = xyes; then
1005   INCLUDED_LOADER_DEFINE="$INCLUDED_LOADER_DEFINE -DINCLUDE_gdiplus"
1006 fi
1007
1008 IFS="$gtk_save_ifs"
1009 AC_SUBST(INCLUDED_LOADER_OBJ)
1010 AC_SUBST(INCLUDED_LOADER_DEFINE)
1011
1012 AM_CONDITIONAL(INCLUDE_PNG, [test x"$INCLUDE_png" = xyes])
1013 AM_CONDITIONAL(INCLUDE_BMP, [test x"$INCLUDE_bmp" = xyes])
1014 AM_CONDITIONAL(INCLUDE_WBMP, [test x"$INCLUDE_wbmp" = xyes])
1015 AM_CONDITIONAL(INCLUDE_GIF, [test x"$INCLUDE_gif" = xyes])
1016 AM_CONDITIONAL(INCLUDE_ICO, [test x"$INCLUDE_ico" = xyes])
1017 AM_CONDITIONAL(INCLUDE_ANI, [test x"$INCLUDE_ani" = xyes])
1018 AM_CONDITIONAL(INCLUDE_JPEG, [test x"$INCLUDE_jpeg" = xyes])
1019 AM_CONDITIONAL(INCLUDE_PNM, [test x"$INCLUDE_pnm" = xyes])
1020 AM_CONDITIONAL(INCLUDE_RAS, [test x"$INCLUDE_ras" = xyes])
1021 AM_CONDITIONAL(INCLUDE_TIFF, [test x"$INCLUDE_tiff" = xyes])
1022 AM_CONDITIONAL(INCLUDE_XPM, [test x"$INCLUDE_xpm" = xyes])
1023 AM_CONDITIONAL(INCLUDE_XBM, [test x"$INCLUDE_xbm" = xyes])
1024 AM_CONDITIONAL(INCLUDE_TGA, [test x"$INCLUDE_tga" = xyes])
1025 AM_CONDITIONAL(INCLUDE_PCX, [test x"$INCLUDE_pcx" = xyes])
1026 AM_CONDITIONAL(INCLUDE_ICNS, [test x"$INCLUDE_icns" = xyes])
1027 AM_CONDITIONAL(INCLUDE_JASPER, [test x"$INCLUDE_jasper" = xyes])
1028 # As all GDI+ loaders are either built-in or not, arbitrarily just
1029 # check one of the variables here
1030 AM_CONDITIONAL(INCLUDE_GDIPLUS, [test x"$INCLUDE_gdip_ico" = xyes])
1031
1032 if test x$gio_can_sniff = x; then
1033   AC_MSG_CHECKING([if gio can sniff png])
1034   gtk_save_LIBS="$LIBS"
1035   gtk_save_CFLAGS="$CFLAGS"
1036   LIBS="`$PKG_CONFIG --libs gio-2.0`"
1037   CFLAGS="`$PKG_CONFIG --cflags gio-2.0`"
1038   AC_RUN_IFELSE([AC_LANG_SOURCE([[
1039   #include <gio/gio.h>
1040   static const gsize data_size = 159;
1041   static const guint8 data[] = 
1042   {
1043     0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 
1044     0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 
1045     0x08, 0x02, 0x00, 0x00, 0x00, 0x90, 0x77, 0x53, 0xde, 0x00, 0x00, 0x00, 
1046     0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00, 
1047     0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00, 
1048     0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 
1049     0x49, 0x4d, 0x45, 0x07, 0xd8, 0x07, 0x0f, 0x10, 0x08, 0x15, 0x61, 0xd8, 
1050     0x35, 0x37, 0x00, 0x00, 0x00, 0x19, 0x74, 0x45, 0x58, 0x74, 0x43, 0x6f, 
1051     0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 
1052     0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x47, 0x49, 0x4d, 0x50, 0x57, 
1053     0x81, 0x0e, 0x17, 0x00, 0x00, 0x00, 0x0c, 0x49, 0x44, 0x41, 0x54, 0x08, 
1054     0xd7, 0x63, 0xf8, 0xff, 0xff, 0x3f, 0x00, 0x05, 0xfe, 0x02, 0xfe, 0xdc, 
1055     0xcc, 0x59, 0xe7, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 
1056     0x42, 0x60, 0x82
1057   };
1058   int
1059   main (int argc, char **argv)
1060   {
1061     char *content_type;
1062     char *image_png;
1063     content_type = g_content_type_guess (NULL, data, data_size, NULL);  
1064     image_png = g_content_type_from_mime_type ("image/png");
1065     return !!strcmp (content_type, image_png);
1066   }]])],
1067     [gio_can_sniff=yes
1068      AC_DEFINE(GDK_PIXBUF_USE_GIO_MIME, 1, [Define if gio can sniff image data])],
1069     [gio_can_sniff=no])
1070   AC_MSG_RESULT($gio_can_sniff)
1071   LIBS="$gtk_save_LIBS"
1072   CFLAGS="$gtk_save_CFLAGS"
1073 fi
1074
1075 #
1076 # Allow building some or all immodules included
1077 #
1078 AC_MSG_CHECKING(immodules to build)
1079
1080 dnl due to an autoconf bug, commas in the first arg to
1081 dnl AC_HELP_STRING cause problems.
1082 dnl AC_HELP_STRING([--with-included-immodules=MODULE1 MODULE2 ...],
1083 dnl                [build the specified input method modules into gtk])
1084 AC_ARG_WITH(included_immodules,
1085 [  --with-included-immodules=MODULE1,MODULE2,...
1086                           build the specified input methods into gtk])
1087
1088 if $dynworks; then 
1089    :
1090 else
1091    ## if the option was specified, leave it; otherwise disable included immodules
1092    if test x$with_included_immodules = xno; then
1093            with_included_immodules=yes
1094    fi
1095 fi
1096
1097 all_immodules="am-et,cedilla,cyrillic-translit"
1098 if test "$gdktarget" = "win32"; then
1099    all_immodules="${all_immodules},ime"
1100 fi
1101 all_immodules="${all_immodules},inuktitut,ipa,multipress,thai,ti-er,ti-et,viqr"
1102 if test "$gdktarget" = "x11"; then
1103    all_immodules="${all_immodules},xim"
1104 fi
1105
1106 included_immodules=""
1107 # If the switch specified without listing any specific ones, include all
1108 if test "x$with_included_immodules" = xyes ; then
1109   included_immodules="$all_immodules"
1110 else
1111   included_immodules="$with_included_immodules"
1112 fi
1113
1114 AC_MSG_RESULT($included_immodules)
1115 AM_CONDITIONAL(HAVE_INCLUDED_IMMMODULES, test "x$included_immodules" != x)
1116
1117 INCLUDED_IMMODULE_OBJ=
1118 INCLUDED_IMMODULE_DEFINE=
1119
1120 IFS="${IFS=     }"; gtk_save_ifs="$IFS"; IFS=","
1121 for immodule in $included_immodules; do
1122  immodule_underscores=`echo $immodule | sed -e 's/-/_/g'`
1123  if echo "$all_immodules" | egrep "(^|,)$immodule(\$|,)" > /dev/null; then
1124    :
1125  else
1126    AC_MSG_ERROR([the specified input method $immodule does not exist])
1127  fi
1128
1129  INCLUDED_IMMODULE_OBJ="$INCLUDED_IMMODULE_OBJ ../modules/input/libstatic-im-$immodule.la"
1130  INCLUDED_IMMODULE_DEFINE="$INCLUDED_IMMODULE_DEFINE -DINCLUDE_IM_$immodule_underscores"
1131  eval INCLUDE_$immodule_underscores=yes
1132 done
1133 IFS="$gtk_save_ifs"
1134 AC_SUBST(INCLUDED_IMMODULE_OBJ)
1135 AC_SUBST(INCLUDED_IMMODULE_DEFINE)
1136
1137 AM_CONDITIONAL(INCLUDE_IM_AM_ET, [test x"$INCLUDE_am_et" = xyes])
1138 AM_CONDITIONAL(INCLUDE_IM_CEDILLA, [test x"$INCLUDE_cedilla" = xyes])
1139 AM_CONDITIONAL(INCLUDE_IM_CYRILLIC_TRANSLIT, [test x"$INCLUDE_cyrillic_translit" = xyes])
1140 AM_CONDITIONAL(INCLUDE_IM_IME, [test x"$INCLUDE_ime" = xyes])
1141 AM_CONDITIONAL(INCLUDE_IM_INUKTITUT, [test x"$INCLUDE_inuktitut" = xyes])
1142 AM_CONDITIONAL(INCLUDE_IM_IPA, [test x"$INCLUDE_ipa" = xyes])
1143 AM_CONDITIONAL(INCLUDE_IM_MULTIPRESS, [test x"$INCLUDE_multipress" = xyes])
1144 AM_CONDITIONAL(INCLUDE_IM_THAI, [test x"$INCLUDE_thai" = xyes])
1145 AM_CONDITIONAL(INCLUDE_IM_TI_ER, [test x"$INCLUDE_ti_er" = xyes])
1146 AM_CONDITIONAL(INCLUDE_IM_TI_ET, [test x"$INCLUDE_ti_et" = xyes])
1147 AM_CONDITIONAL(INCLUDE_IM_VIQR, [test x"$INCLUDE_viqr" = xyes])
1148 AM_CONDITIONAL(INCLUDE_IM_XIM, [test x"$INCLUDE_xim" = xyes])
1149
1150 AC_HEADER_SYS_WAIT
1151
1152 AC_TYPE_SIGNAL
1153
1154 AM_CONDITIONAL(HAVE_TIFF, test "x$LIBTIFF" != x)
1155 AM_CONDITIONAL(HAVE_PNG, test "x$LIBPNG" != x)
1156 AM_CONDITIONAL(HAVE_JPEG, test "x$LIBJPEG" != x)
1157 AM_CONDITIONAL(HAVE_JASPER, test "x$LIBJASPER" != x)
1158
1159 if $dynworks ; then
1160   STATIC_LIB_DEPS=
1161   if echo "$included_loaders" | egrep '(^|,)tiff($|,)' > /dev/null; then
1162     STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBTIFF"
1163   fi
1164   if echo "$included_loaders" | egrep '(^|,)jpeg($|,)' > /dev/null; then
1165     STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBJPEG"
1166   fi
1167   if echo "$included_loaders" | egrep '(^|,)png($|,)' > /dev/null; then
1168     STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBPNG"
1169   fi
1170 else
1171   STATIC_LIB_DEPS="$LIBTIFF $LIBJPEG $LIBPNG"
1172 fi
1173
1174 # Checks to see whether we should include mediaLib
1175 # support.
1176 #
1177 AC_CHECK_HEADER(sys/systeminfo.h,
1178                 AC_DEFINE(HAVE_SYS_SYSTEMINFO_H, 1, 
1179                           [Define to 1 if sys/systeminfo.h is available]))
1180 AC_CHECK_HEADER(sys/sysinfo.h,
1181                 AC_DEFINE(HAVE_SYS_SYSINFO_H, 1,
1182                           [Define to 1 if sys/sysinfo.h is available]))
1183
1184 AC_MSG_CHECKING(for mediaLib 2.3)
1185 use_mlib25=no
1186 # Check for a mediaLib 2.3 function since that is what the GTK+ mediaLib
1187 # patch requires.
1188 AC_CHECK_LIB(mlib, mlib_ImageSetStruct, use_mlib=yes, use_mlib=no)
1189 if test $use_mlib = yes; then
1190     AC_DEFINE(USE_MEDIALIB, 1,
1191               [Define to 1 if medialib is available and should be used])
1192     MEDIA_LIB=-lmlib
1193
1194     AC_MSG_CHECKING(for mediaLib 2.5)
1195     # Check for a mediaLib 2.5 function since that is what is needed for
1196     # gdk_rgb_convert integration.
1197     AC_CHECK_LIB(mlib, mlib_VideoColorRGBint_to_BGRAint, use_mlib25=yes, use_mlib25=no)
1198     if test $use_mlib25 = yes; then
1199         AC_DEFINE(USE_MEDIALIB25, 1,
1200                   [Define to 1 if medialib 2.5 is available])
1201     fi
1202 fi
1203 AM_CONDITIONAL(USE_MEDIALIB, test $use_mlib = yes)
1204 AM_CONDITIONAL(USE_MEDIALIB25, test $use_mlib25 = yes)
1205
1206 # Checks to see if we should compile in MMX support (there will be
1207 # a runtime test when the code is actually run to see if it should
1208 # be used - this just checks if we can compile it.)
1209 #
1210 # This code is partially taken from Mesa
1211 #
1212 AC_MSG_CHECKING(for x86 platform)
1213 case $host_cpu in
1214   i386|i486|i586|i686|i786|k6|k7)
1215         use_x86_asm=yes
1216         ;;
1217    *)
1218         use_x86_asm=no
1219 esac
1220 AC_MSG_RESULT($use_x86_asm)
1221
1222 use_mmx_asm=no
1223 if test $use_x86_asm = yes; then
1224     save_ac_ext=$ac_ext
1225     ac_ext=S
1226     
1227     AC_MSG_CHECKING(compiler support for MMX)
1228     cp $srcdir/gdk-pixbuf/pixops/scale_line_22_33_mmx.S conftest.S
1229     if AC_TRY_EVAL(ac_compile); then
1230         use_mmx_asm=yes
1231     fi
1232
1233     rm -rf conftest*
1234
1235     ac_ext=$save_ac_ext
1236     if test $use_mmx_asm = yes; then
1237       AC_DEFINE(USE_MMX, 1,
1238                 [Define to 1 if XXM is available and should be used])
1239       AC_MSG_RESULT(yes)
1240     else
1241       AC_MSG_RESULT(no)
1242     fi
1243 fi
1244
1245 AM_CONDITIONAL(USE_MMX, test x$use_mmx_asm = xyes)
1246
1247 REBUILD_PNGS=
1248 if test -z "$LIBPNG" && test x"$os_win32" = xno -o x$enable_gdiplus = xno; then
1249   REBUILD_PNGS=#
1250 fi
1251
1252 dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling
1253
1254 AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
1255
1256 if test $cross_compiling = yes; then
1257   AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
1258   AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no)
1259   if test x$GTK_UPDATE_ICON_CACHE = xno; then
1260     REBUILD_PNGS=#
1261   fi
1262 fi
1263
1264 if test ! -f $srcdir/gtk/gtkbuiltincache.h && 
1265    test "x$REBUILD_PNGS" = "x#" ; then
1266      AC_MSG_ERROR([
1267 *** gtkbuiltincache.h is not in the tree, and cannot be built
1268 *** because you don't have libpng, or (when cross-compiling) you 
1269 *** don't have a prebuilt gtk-update-icon-cache on the build system.])
1270 fi
1271
1272 AC_SUBST(REBUILD_PNGS)
1273
1274 GDK_PIXBUF_PACKAGES="gmodule-no-export-2.0 gobject-2.0 gio-2.0"
1275 GDK_PIXBUF_EXTRA_LIBS="$STATIC_LIB_DEPS $MATH_LIB $MEDIA_LIB"
1276 GDK_PIXBUF_EXTRA_CFLAGS= 
1277 GDK_PIXBUF_DEP_LIBS="`$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS"
1278 GDK_PIXBUF_DEP_CFLAGS="`$PKG_CONFIG --cflags  gthread-2.0 $GDK_PIXBUF_PACKAGES $PNG_DEP_CFLAGS_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS"
1279
1280 ########################################
1281 # Windowing system checks
1282 ########################################
1283
1284 GDK_PIXBUF_XLIB_PACKAGES=
1285 GDK_PIXBUF_XLIB_EXTRA_CFLAGS=
1286 GDK_PIXBUF_XLIB_EXTRA_LIBS=
1287         
1288 X_PACKAGES=fontconfig
1289 GDK_EXTRA_LIBS="$GDK_WLIBS"
1290 GDK_EXTRA_CFLAGS=
1291         
1292 # GTK+ uses some X calls, so needs to link against X directly
1293 GTK_DEP_PACKAGES_FOR_X=
1294 GTK_DEP_LIBS_FOR_X=
1295
1296 if test "x$gdktarget" = "xx11"; then
1297   #
1298   # We use fontconfig very peripherally when decoding the default
1299   # settings.
1300   #
1301   if $PKG_CONFIG --exists fontconfig; then : ; else
1302     AC_MSG_ERROR([
1303 *** fontconfig (http://www.fontconfig.org) is required by the X11 backend.])
1304   fi
1305
1306   #
1307   # Check for basic X packages; we use pkg-config if available
1308   #
1309   if $PKG_CONFIG --exists x11 xext xrender; then
1310     have_base_x_pc=true
1311     X_PACKAGES="$X_PACKAGES x11 xext xrender"
1312     x_libs="`$PKG_CONFIG --libs x11 xext xrender`"
1313     X_CFLAGS="`$PKG_CONFIG --cflags x11 xext xrender`"
1314     
1315     # Strip out any .la files that pkg-config might give us (this happens
1316     # with -uninstalled.pc files)
1317     x_libs_for_checks=
1318     for I in $x_libs ; do
1319       case $I in 
1320         *.la) ;;
1321         *) x_libs_for_checks="$x_libs_for_checks $I" ;;
1322       esac
1323     done
1324     
1325     GDK_PIXBUF_XLIB_PACKAGES="x11"
1326     GTK_PACKAGES_FOR_X="x11"
1327   else
1328     have_base_x_pc=false
1329     AC_PATH_XTRA
1330     if test x$no_x = xyes ; then
1331       AC_MSG_ERROR([X development libraries not found])
1332     fi
1333     
1334     x_cflags="$X_CFLAGS"
1335     x_libs_for_checks="$X_LIBS -lXext -lXrender -lX11 $X_EXTRA_LIBS"
1336
1337     GDK_PIXBUF_XLIB_EXTRA_CFLAGS="$x_cflags"
1338     GDK_PIXBUF_XLIB_EXTRA_LIBS="$X_LIBS -lX11 $X_EXTRA_LIBS"
1339     GTK_DEP_LIBS_FOR_X="$X_LIBS -lXrender -lX11 $X_EXTRA_LIBS"
1340   fi
1341
1342   # Extra libraries found during checks (-lXinerama, etc), not from pkg-config.
1343   x_extra_libs=
1344
1345   gtk_save_cppflags="$CPPFLAGS"
1346   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1347
1348   gtk_save_LIBS=$LIBS
1349   LIBS="$x_libs_for_checks $LIBS"
1350   
1351   # Sanity check for the X11 and Xext libraries. While everything we need from
1352   # Xext is optional, the chances a system has *none* of these things is so
1353   # small that we just unconditionally require it.
1354   AC_CHECK_FUNC(XOpenDisplay, :,
1355                 AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]))
1356   AC_CHECK_FUNC(XextFindDisplay, :,
1357                 AC_MSG_ERROR([*** libXext not found. Check 'config.log' for more details.]))
1358   AC_CHECK_FUNC(XRenderQueryExtension, :,
1359                 AC_MSG_ERROR([*** libXrender not found. Check 'config.log' for more details.]))
1360
1361   # Check for xReply
1362
1363   AC_MSG_CHECKING([if <X11/extensions/XIproto.h> is needed for xReply])
1364   AC_TRY_COMPILE([#include <X11/Xlibint.h>],
1365       [xReply *rep;],
1366       [AC_MSG_RESULT([no])],
1367       [AC_TRY_COMPILE([#include <X11/extensions/XIproto.h>
1368 #include <X11/Xlibint.h>],
1369            [xReply *rep;],
1370            [AC_MSG_RESULT([yes])
1371             AC_DEFINE([NEED_XIPROTO_H_FOR_XREPLY], 1,
1372                       [Define if <X11/extensions/XIproto.h> needed for xReply])],
1373            [AC_MSG_RESULT([unknown])
1374             AC_MSG_ERROR([xReply type unavailable. X11 is too old])])])
1375
1376   # Check for XConvertCase, XInternAtoms (X11R6 specific)
1377
1378   AC_CHECK_FUNCS(XConvertCase XInternAtoms)
1379
1380   # Generic X11R6 check needed for XIM support; we could
1381   # probably use this to replace the above, but we'll
1382   # leave the separate checks for XConvertCase and XInternAtoms 
1383   # for clarity
1384   
1385   have_x11r6=false
1386   AC_CHECK_FUNC(XAddConnectionWatch,
1387       have_x11r6=true)
1388
1389   if $have_x11r6; then
1390     AC_DEFINE(HAVE_X11R6, 1, [Define if we have X11R6])
1391   fi
1392   AM_CONDITIONAL(HAVE_X11R6, $have_x11r6)
1393
1394   # Check for XKB support.
1395
1396   if test "x$enable_xkb" = "xyes"; then
1397         AC_MSG_WARN(XKB support explicitly enabled)
1398         AC_DEFINE(HAVE_XKB, 1, [Define to use XKB extension])
1399   elif test "x$enable_xkb" = "xmaybe"; then
1400         AC_CHECK_FUNC(XkbQueryExtension,
1401                       AC_DEFINE(HAVE_XKB, 1, [Define to use XKB extension]))
1402   else
1403         AC_MSG_WARN(XKB support explicitly disabled)
1404   fi
1405
1406   # Check for shaped window extension
1407
1408   AC_CHECK_FUNC(XShapeCombineMask,
1409       AC_DEFINE(HAVE_SHAPE_EXT, 1,
1410                 [Define to 1 if the XShape extension is available]))
1411
1412   # X SYNC check
1413   gtk_save_CFLAGS="$CFLAGS"
1414   CFLAGS="$CFLAGS $x_cflags"
1415   
1416   AC_CHECK_FUNC(XSyncQueryExtension,
1417       [AC_CHECK_HEADER(X11/extensions/sync.h,
1418           AC_DEFINE(HAVE_XSYNC, 1, [Have the SYNC extension library]),
1419           :, [#include <X11/Xlib.h>])])
1420
1421   CFLAGS="$gtk_save_CFLAGS"
1422
1423   # Xshm checks
1424
1425   if test "x$enable_shm" = "xyes"; then
1426      # Check for the XShm extension, normally in Xext
1427      AC_CHECK_FUNC(XShmAttach,
1428         :,
1429         # On AIX, it is in XextSam instead
1430         [AC_CHECK_LIB(XextSam, XShmAttach, 
1431             [GTK_ADD_LIB(x_extra_libs,XextSam)])])
1432   fi    
1433
1434   if test "x$enable_shm" = "xyes"; then
1435     # Check for shared memory
1436     AC_CHECK_HEADER(sys/ipc.h,
1437                     AC_DEFINE(HAVE_IPC_H, 1,
1438                               [Define to 1 if ipc.h is available]),
1439                     no_sys_ipc=yes)
1440     AC_CHECK_HEADER(sys/shm.h,
1441                     AC_DEFINE(HAVE_SHM_H, 1,
1442                               [Define to 1 if shm.h is available]),
1443                     no_sys_shm=yes)
1444
1445     # Check for the X shared memory extension header file
1446     have_xshm=no 
1447     AC_MSG_CHECKING(X11/extensions/XShm.h)
1448     if test "x$no_xext_lib" = "xyes"; then
1449       :
1450     else
1451       gtk_save_CFLAGS="$CFLAGS"
1452       CFLAGS="$CFLAGS $x_cflags"
1453       AC_TRY_COMPILE([
1454 #include <stdlib.h>
1455 #include <sys/types.h>
1456 #include <sys/ipc.h>
1457 #include <sys/shm.h>
1458 #include <X11/Xlib.h>
1459 #include <X11/Xutil.h>
1460 #include <X11/extensions/XShm.h>
1461 ], [XShmSegmentInfo *x_shm_info;], have_xshm=yes)
1462       CFLAGS="$gtk_save_CFLAGS"
1463     fi
1464     AC_MSG_RESULT($have_xshm)
1465     if test $have_xshm = yes ; then
1466       AC_DEFINE(HAVE_XSHM_H, 1,
1467                 [Define to 1 if xshm.h is available])
1468     fi
1469   fi
1470
1471   if test "x$enable_xinerama" = "xyes"; then
1472     # Check for Xinerama extension (Solaris impl or Xfree impl)
1473     gtk_save_cppflags="$CPPFLAGS"
1474     CPPFLAGS="$CPPFLAGS $x_cflags"
1475   
1476     case "$host" in
1477       *-*-solaris*)
1478           # Check for solaris
1479           AC_MSG_CHECKING(for Xinerama support on Solaris)
1480           
1481           have_solaris_xinerama=false
1482           AC_CHECK_FUNC(XineramaGetInfo,
1483               [AC_CHECK_HEADER(X11/extensions/xinerama.h,
1484                   [have_solaris_xinerama=true], :,
1485                   [#include <X11/Xlib.h>])])
1486                 
1487           if $have_solaris_xinerama ; then
1488             AC_DEFINE(HAVE_SOLARIS_XINERAMA, 1,
1489                       [Define to 1 if solaris xinerama is available])
1490             AC_DEFINE(HAVE_XINERAMA, 1,
1491                       [Define to 1 if xinerama is available])
1492             AC_MSG_RESULT(yes)
1493           else
1494             AC_MSG_RESULT(no)
1495           fi
1496           ;;
1497       *)
1498           # Check for XFree
1499           AC_MSG_CHECKING(for Xinerama support on XFree86)
1500           
1501           have_xfree_xinerama=false
1502           if $PKG_CONFIG --exists xinerama ; then
1503              have_xfree_xinerama=true
1504              X_PACKAGES="$X_PACKAGES xinerama"
1505           else    
1506               AC_CHECK_LIB(Xinerama, XineramaQueryExtension,
1507                   [AC_CHECK_HEADER(X11/extensions/Xinerama.h, 
1508                       [GTK_ADD_LIB(x_extra_libs,Xinerama)
1509                       have_xfree_xinerama=true], :,
1510                       [#include <X11/Xlib.h>])])
1511           fi
1512
1513           if $have_xfree_xinerama ; then
1514             AC_DEFINE(HAVE_XFREE_XINERAMA, 1,
1515                       [Define to 1 if XFree Xinerama is available])
1516             AC_DEFINE(HAVE_XINERAMA, 1,
1517                       [Define to 1 is Xinerama is available])
1518             AC_MSG_RESULT(yes)
1519          else
1520             AC_MSG_RESULT(no)
1521          fi
1522          ;;
1523     esac
1524   fi
1525   
1526   # set up things for XInput
1527
1528   if test "x$with_xinput" = "xxfree" || test "x$with_xinput" = "xyes"; then
1529     AC_DEFINE(XINPUT_XFREE, 1,
1530               [Define to 1 if XFree XInput should be used])
1531     
1532     if $PKG_CONFIG --exists xi ; then
1533       X_PACKAGES="$X_PACKAGES xi"
1534     else
1535       GTK_ADD_LIB(x_extra_libs, Xi)
1536     fi
1537   else
1538     AC_DEFINE(XINPUT_NONE, 1,
1539               [Define to 1 if no XInput should be used])
1540   fi
1541
1542   AM_CONDITIONAL(XINPUT_XFREE, test x$with_xinput = xxfree || test x$with_xinput = xyes)
1543
1544   # Check for the RANDR extension
1545   if $PKG_CONFIG --exists "xrandr >= 1.2" ; then
1546      AC_DEFINE(HAVE_RANDR, 1, [Have the Xrandr extension library])
1547
1548      X_PACKAGES="$X_PACKAGES xrandr"
1549   fi
1550        
1551   # Checks for Xcursor library
1552   
1553   if $PKG_CONFIG --exists xcursor ; then
1554     AC_DEFINE(HAVE_XCURSOR, 1, [Have the Xcursor library])
1555     
1556     X_PACKAGES="$X_PACKAGES xcursor"
1557   fi
1558
1559   # Checks for XFixes extension
1560   
1561   if $PKG_CONFIG --exists xfixes ; then
1562     AC_DEFINE(HAVE_XFIXES, 1, [Have the XFIXES X extension])
1563     
1564     X_PACKAGES="$X_PACKAGES xfixes"
1565     GTK_PACKAGES_FOR_X="$GTK_PACKAGES_FOR_X xfixes"
1566   fi
1567   
1568   if $PKG_CONFIG --exists xtst ; then
1569     AC_DEFINE(HAVE_XTST, 1, [Have the XTST X extension])
1570     
1571     X_PACKAGES="$X_PACKAGES xtst"
1572     GTK_PACKAGES_FOR_X="$GTK_PACKAGES_FOR_X xtst"
1573   fi
1574
1575
1576   # Checks for Xcomposite extension
1577
1578   if $PKG_CONFIG --exists xcomposite ; then
1579     AC_DEFINE(HAVE_XCOMPOSITE, 1, [Have the XCOMPOSITE X extension])
1580
1581     X_PACKAGES="$X_PACKAGES xcomposite"
1582     GTK_PACKAGES_FOR_X="$GTK_PACKAGES_FOR_X xcomposite"
1583   fi
1584
1585   # Checks for Xdamage extension
1586
1587   if $PKG_CONFIG --exists xdamage ; then
1588     AC_DEFINE(HAVE_XDAMAGE, 1, [Have the XDAMAGE X extension])
1589
1590     X_PACKAGES="$X_PACKAGES xdamage"
1591     GTK_PACKAGES_FOR_X="$GTK_PACKAGES_FOR_X xdamage"
1592   fi
1593
1594   if $have_base_x_pc ; then
1595     GDK_EXTRA_LIBS="$x_extra_libs"
1596   else
1597     GDK_EXTRA_LIBS="$X_LIBS $x_extra_libs -lXext -lX11 $GDK_EXTRA_LIBS"
1598   fi
1599
1600   CPPFLAGS="$gtk_save_cppflags"
1601   LIBS="$gtk_save_libs"
1602
1603   AM_CONDITIONAL(USE_X11, true)
1604 else
1605   AM_CONDITIONAL(XINPUT_XFREE, false)
1606   AM_CONDITIONAL(USE_X11, false)
1607   AM_CONDITIONAL(HAVE_X11R6, false)
1608 fi
1609
1610 if test "x$gdktarget" = "xwin32"; then
1611   GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid"
1612   AM_CONDITIONAL(USE_WIN32, true)
1613 else
1614   AM_CONDITIONAL(USE_WIN32, false)
1615 fi
1616
1617 if test "x$gdktarget" = "xquartz"; then
1618   GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -framework Cocoa"
1619   AM_CONDITIONAL(USE_QUARTZ, true)
1620 else
1621   AM_CONDITIONAL(USE_QUARTZ, false)
1622 fi
1623
1624 GDK_PIXBUF_XLIB_DEP_LIBS="`$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_XLIB_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
1625 GDK_PIXBUF_XLIB_DEP_CFLAGS="`$PKG_CONFIG --cflags  gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_PIXBUF_XLIB_EXTRA_CFLAGS"
1626
1627 AC_SUBST(GDK_PIXBUF_XLIB_PACKAGES)
1628 AC_SUBST(GDK_PIXBUF_XLIB_EXTRA_LIBS)
1629 AC_SUBST(GDK_PIXBUF_XLIB_EXTRA_CFLAGS)
1630 AC_SUBST(GDK_PIXBUF_XLIB_DEP_LIBS)
1631 AC_SUBST(GDK_PIXBUF_XLIB_DEP_CFLAGS)
1632
1633 if test "x$gdktarget" = "xdirectfb"; then
1634   DIRECTFB_REQUIRED_VERSION=0.9.24
1635   AC_MSG_CHECKING(for DirectFB)
1636
1637   if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb && $PKG_CONFIG --exists cairo-directfb ; then
1638       AC_MSG_RESULT(found)
1639       GDK_EXTRA_CFLAGS="`$PKG_CONFIG --cflags cairo-directfb` $GDK_EXTRA_CFLAGS"
1640       GDK_EXTRA_LIBS="`$PKG_CONFIG --libs cairo-directfb` $GDK_EXTRA_LIBS"
1641   else
1642       AC_MSG_ERROR([
1643 *** DirectFB $DIRECTFB_REQUIRED_VERSION or newer and the cairo backend 
1644 *** are required. The latest version of DirectFB is always available 
1645 *** from http://www.directfb.org/.
1646   ])
1647   fi
1648
1649   AM_CONDITIONAL(USE_DIRECTFB, true)
1650 else
1651   AM_CONDITIONAL(USE_DIRECTFB, false)
1652 fi
1653
1654
1655 # Check for Pango flags
1656
1657 if test "x$gdktarget" = "xwin32"; then
1658         PANGO_PACKAGES="pangowin32 pangocairo"
1659 else
1660         PANGO_PACKAGES="pango pangocairo"
1661 fi
1662
1663 AC_MSG_CHECKING(Pango flags)
1664 if $PKG_CONFIG --exists $PANGO_PACKAGES ; then
1665         PANGO_CFLAGS=`$PKG_CONFIG --cflags $PANGO_PACKAGES`
1666         PANGO_LIBS=`$PKG_CONFIG --libs $PANGO_PACKAGES`
1667
1668         AC_MSG_RESULT($PANGO_CFLAGS $PANGO_LIBS)
1669 else
1670         AC_MSG_ERROR([
1671 *** Pango not found. Pango built with Cairo support is required
1672 *** to build GTK+. See http://www.pango.org for Pango information.
1673 ])
1674 fi
1675
1676 CFLAGS="$CFLAGS $PANGO_CFLAGS"
1677
1678 if $PKG_CONFIG --uninstalled $PANGO_PACKAGES; then
1679         :
1680 else
1681         gtk_save_LIBS="$LIBS"
1682         LIBS="$PANGO_LIBS $LIBS"
1683         AC_TRY_LINK_FUNC(pango_context_new, :, AC_MSG_ERROR([
1684 *** Can't link to Pango. Pango is required to build
1685 *** GTK+. For more information see http://www.pango.org]))
1686         LIBS="$gtk_save_LIBS"
1687 fi
1688
1689 CFLAGS="$saved_cflags"
1690 LDFLAGS="$saved_ldflags"
1691
1692 GDK_PACKAGES="$PANGO_PACKAGES gio-2.0"
1693 if test "x$gdktarget" = "xx11"; then
1694   GDK_PACKAGES="$GDK_PACKAGES $X_PACKAGES"
1695 fi
1696 GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS"
1697 GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags  gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS"
1698
1699 #
1700 # If we aren't writing explicit dependencies, then don't put the extra libraries we need
1701 # into the pkg-config files
1702 #
1703 if test $enable_explicit_deps != yes ; then
1704   GDK_PACKAGES="$PANGO_PACKAGES"
1705   GDK_EXTRA_LIBS=
1706 fi
1707
1708 AC_SUBST(GDK_PACKAGES)
1709 AC_SUBST(GDK_EXTRA_LIBS)
1710 AC_SUBST(GDK_EXTRA_CFLAGS)
1711 AC_SUBST(GDK_DEP_LIBS)
1712 AC_SUBST(GDK_DEP_CFLAGS)
1713
1714
1715 ########################################
1716 # Check for Accessibility Toolkit flags
1717 ########################################
1718
1719 ATK_PACKAGES=atk
1720 AC_MSG_CHECKING(ATK flags)
1721 if $PKG_CONFIG --exists $ATK_PACKAGES ; then
1722         ATK_CFLAGS=`$PKG_CONFIG --cflags $ATK_PACKAGES`
1723         ATK_LIBS=`$PKG_CONFIG --libs $ATK_PACKAGES`
1724
1725         AC_MSG_RESULT($ATK_CFLAGS $ATK_LIBS)
1726 else
1727         AC_MSG_ERROR([
1728 *** Accessibility Toolkit not found. Accessibility Toolkit is required
1729 *** to build GTK+.
1730 ])
1731 fi
1732
1733 if $PKG_CONFIG --uninstalled $ATK_PACKAGES; then
1734         :
1735 else
1736         gtk_save_LIBS="$LIBS"
1737         LIBS="$ATK_LIBS $LIBS"
1738         AC_TRY_LINK_FUNC(atk_object_get_type, : , AC_MSG_ERROR([
1739                 *** Cannot link to Accessibility Toolkit. Accessibility Toolkit is required
1740                 *** to build GTK+]))
1741         LIBS="$gtk_save_LIBS"
1742 fi
1743
1744 GTK_PACKAGES="atk cairo gio-2.0"
1745 if test "x$gdktarget" = "xx11"; then
1746   GTK_PACKAGES="$GTK_PACKAGES pangoft2"
1747 fi
1748 GTK_EXTRA_LIBS=
1749 GTK_EXTRA_CFLAGS= 
1750 GTK_DEP_LIBS="$GDK_EXTRA_LIBS $GTK_DEP_LIBS_FOR_X `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $PANGO_PACKAGES $GTK_PACKAGES_FOR_X $GTK_PACKAGES` $GTK_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
1751 GTK_DEP_CFLAGS="`$PKG_CONFIG --cflags  gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS $GTK_EXTRA_CFLAGS"
1752
1753 if test x"$os_win32" = xyes; then
1754   GTK_EXTRA_CFLAGS="$msnative_struct"
1755 fi
1756
1757 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
1758 ATK_PREFIX="`$PKG_CONFIG --variable=prefix atk`"
1759 PANGO_PREFIX="`$PKG_CONFIG --variable=prefix pango`"
1760 CAIRO_PREFIX="`pkg-config --variable=prefix cairo`"
1761
1762 if test $enable_explicit_deps != yes ; then
1763   GDK_PIXBUF_EXTRA_LIBS=
1764 fi
1765
1766 dnl Handle --with-maemo option
1767 if test "x$with_maemo" = "xyes"; then
1768   AC_DEFINE(MAEMO_CHANGES)
1769
1770   CFLAGS="$CFLAGS -DMAEMO_CHANGES"
1771   GTK_EXTRA_CFLAGS="$GTK_EXTRA_CFLAGS -DMAEMO_CHANGES"
1772 fi
1773
1774 AM_CONDITIONAL(MAEMO_CHANGES, test x$with_maemo = xyes)
1775
1776
1777 AC_SUBST(GDK_PIXBUF_PACKAGES)
1778 AC_SUBST(GDK_PIXBUF_EXTRA_LIBS)
1779 AC_SUBST(GDK_PIXBUF_EXTRA_CFLAGS)
1780 AC_SUBST(GDK_PIXBUF_DEP_LIBS)
1781 AC_SUBST(GDK_PIXBUF_DEP_CFLAGS)
1782
1783 AC_SUBST(GTK_PACKAGES)
1784 AC_SUBST(GTK_EXTRA_LIBS)
1785 AC_SUBST(GTK_EXTRA_CFLAGS)
1786 AC_SUBST(GTK_DEP_LIBS)
1787 AC_SUBST(GTK_DEP_CFLAGS)
1788
1789 AC_SUBST(GLIB_PREFIX)
1790 AC_SUBST(ATK_PREFIX)
1791 AC_SUBST(PANGO_PREFIX)
1792 AC_SUBST(CAIRO_PREFIX)
1793
1794 AC_SUBST(GTK_DEBUG_FLAGS)
1795 AC_SUBST(GTK_XIM_FLAGS)
1796
1797 ########################
1798 # Checks needed for gail
1799 ########################
1800
1801 old_LIBS="$LIBS"
1802 dnl Checks for inet libraries:
1803 AC_SEARCH_LIBS(gethostent, nsl)
1804 AC_SEARCH_LIBS(setsockopt, socket)
1805 AC_SEARCH_LIBS(connect, inet)
1806
1807 dnl check for the sockaddr_un.sun_len member
1808 AC_CHECK_MEMBER([struct sockaddr_un.sun_len],
1809                 [struct_sockaddr_un_sun_len=true],
1810                 [struct_sockaddr_un_suin_len=false],
1811                 [#include <sys/types.h>
1812                  #include <sys/un.h>]
1813                 )
1814 case $struct_sockaddr_un_sun_len in 
1815         true)
1816                 AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_UN_SUN_LEN, 1,
1817                                    [Have the sockaddr_un.sun_len member])
1818                 ;;
1819         *)
1820                 ;;
1821 esac
1822
1823 GAIL_INET_LIBS="$LIBS"
1824 AC_SUBST([GAIL_INET_LIBS])
1825
1826 LIBS="$old_LIBS"
1827
1828 ################################################################
1829 # Printing system checks
1830 ################################################################
1831
1832 AC_ARG_ENABLE(cups,
1833               [AC_HELP_STRING([--disable-cups]
1834                               [disable cups print backend])],,
1835               [enable_cups=auto])
1836
1837 if test "x$enable_cups" = "xauto"
1838 then
1839   AC_PATH_PROG(CUPS_CONFIG, cups-config, no)
1840   if test "x$CUPS_CONFIG" != "xno"; then
1841     CUPS_CFLAGS=`$CUPS_CONFIG --cflags | sed 's/-O[0-9]*//' | sed 's/-m[^\t]*//g'`
1842     CUPS_LIBS=`$CUPS_CONFIG --libs`
1843
1844     CUPS_API_VERSION=`$CUPS_CONFIG --api-version`
1845     CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | awk -F. '{print $1}'`
1846     CUPS_API_MINOR=`echo $ECHO_N $CUPS_API_VERSION | awk -F. '{print $2}'`
1847
1848     if test $CUPS_API_MAJOR -gt 1 -o \
1849             $CUPS_API_MAJOR -eq 1 -a $CUPS_API_MINOR -ge 2; then
1850       AC_DEFINE(HAVE_CUPS_API_1_2, 1, 
1851                 [Define to 1 if CUPS 1.2 API is available])
1852     fi
1853
1854     AC_SUBST(CUPS_API_MAJOR)
1855     AC_SUBST(CUPS_API_MINOR)
1856     AC_SUBST(CUPS_CFLAGS)
1857     AC_SUBST(CUPS_LIBS)
1858
1859     AC_CHECK_HEADER(cups/cups.h,,AC_MSG_ERROR([[*** Sorry, cups-config present but cups/cups.h missing.]]))
1860   fi
1861   AM_CONDITIONAL(HAVE_CUPS, test "x$CUPS_CONFIG" != "xno")
1862
1863   gtk_save_cflags="$CFLAGS"
1864   CFLAGS="$CUPS_CFLAGS"
1865   AC_TRY_COMPILE([#include <cups/http.h>],
1866                  [http_t http; char *s = http.authstring;],
1867                  [AC_DEFINE(HAVE_HTTP_AUTHSTRING, [],
1868                             [Define if cups http_t authstring field is accessible])],)
1869   CFLAGS="$gtk_save_cflags"
1870
1871   AC_SUBST(HAVE_HTTP_AUTHSTRING)
1872
1873   gtk_save_libs="$LIBS"
1874   LIBS="$CUPS_LIBS"
1875   AC_CHECK_FUNCS(httpGetAuthString)
1876   LIBS="$gtk_save_libs"
1877
1878 else
1879   AM_CONDITIONAL(HAVE_CUPS, false)
1880 fi
1881
1882 gtk_save_cppflags="$CPPFLAGS"
1883 CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS"
1884                           
1885 AC_CHECK_HEADER(cairo-pdf.h,,AC_MSG_ERROR([
1886 *** Can't find cairo-pdf.h. You must build Cairo with the pdf
1887 *** backend enabled.]))
1888
1889 if test "$os_win32" != "yes"; then
1890   AC_CHECK_HEADER(cairo-ps.h,,AC_MSG_ERROR([
1891 *** Can't find cairo-ps.h. You must build Cairo with the 
1892 *** postscript backend enabled.]))
1893 fi   
1894
1895 CPPFLAGS="$gtk_save_cppflags"
1896      
1897                                 
1898 AC_ARG_ENABLE(test-print-backend,
1899               [AC_HELP_STRING([--enable-test-print-backend],
1900                               [build test print backend])],,
1901               [enable_test_print_backend=no])
1902 AM_CONDITIONAL(TEST_PRINT_BACKEND, test "x$enable_test_print_backend" != "xno")
1903
1904
1905 ################################################################
1906 # Strip -export-dynamic from the link lines of various libraries
1907 ################################################################
1908
1909 #
1910 # pkg-config --libs gmodule includes the "export_dynamic" flag,
1911 #  but this flag is only meaningful for executables. For libraries
1912 #  the effect is undefined; what it causes on Linux is that the
1913 #  export list from -export-symbols-regex is ignored and everything
1914 #  is exported
1915 #
1916 # We are using gmodule-no-export now, but I'm leaving the stripping
1917 # code in place for now, since pango and atk still require gmodule.
1918 export SED
1919 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
1920 if test -n "$export_dynamic"; then
1921   GDK_PIXBUF_DEP_LIBS=`echo $GDK_PIXBUF_DEP_LIBS | sed -e "s/$export_dynamic//"`
1922   GDK_PIXBUF_XLIB_DEP_LIBS=`echo $GDK_PIXBUF_XLIB_DEP_LIBS | sed -e "s/$export_dynamic//"`
1923   GDK_DEP_LIBS=`echo $GDK_DEP_LIBS | sed -e "s/$export_dynamic//"`
1924   GTK_DEP_LIBS=`echo $GTK_DEP_LIBS | sed -e "s/$export_dynamic//"`
1925 fi
1926
1927
1928 ##################################################
1929 # Checks for gtk-doc and docbook-tools
1930 ##################################################
1931
1932 GTK_DOC_CHECK([1.8])
1933
1934 AC_CHECK_PROG(DB2HTML, db2html, true, false)
1935 AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
1936
1937 AC_ARG_ENABLE(man,
1938               [AC_HELP_STRING([--enable-man],
1939                               [regenerate man pages from Docbook [default=no]])],enable_man=yes,
1940               enable_man=no)
1941
1942 if test "${enable_man}" != no; then
1943   dnl
1944   dnl Check for xsltproc
1945   dnl
1946   AC_PATH_PROG([XSLTPROC], [xsltproc])
1947   if test -z "$XSLTPROC"; then
1948     enable_man=no
1949   fi
1950
1951   dnl check for DocBook DTD and stylesheets in the local catalog.
1952   JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
1953      [DocBook XML DTD V4.1.2],,enable_man=no)
1954   JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
1955      [DocBook XSL Stylesheets],,enable_man=no)
1956 fi
1957
1958 AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
1959
1960
1961 ##################################################
1962 # Output commands
1963 ##################################################
1964
1965 AC_CONFIG_COMMANDS([gdk/gdkconfig.h], [
1966         outfile=gdkconfig.h-tmp
1967         cat > $outfile <<\_______EOF
1968 /* gdkconfig.h
1969  *
1970  * This is a generated file.  Please modify `configure.in'
1971  */
1972
1973 #ifndef GDKCONFIG_H
1974 #define GDKCONFIG_H
1975
1976 #ifdef __cplusplus
1977 extern "C" {
1978 #endif /* __cplusplus */
1979
1980 #ifndef GSEAL
1981 /* introduce GSEAL() here for all of Gdk and Gtk+ without the need to modify GLib */
1982 #  ifdef GSEAL_ENABLE
1983 #    define GSEAL(ident)      _g_sealed__ ## ident
1984 #  else
1985 #    define GSEAL(ident)      ident
1986 #  endif
1987 #endif /* !GSEAL */
1988
1989 _______EOF
1990
1991         cat >>$outfile <<_______EOF
1992 $gdk_windowing
1993 $gdk_wc
1994 _______EOF
1995
1996         cat >>$outfile <<_______EOF
1997
1998 #ifdef __cplusplus
1999 }
2000 #endif /* __cplusplus */
2001
2002 #endif /* GDKCONFIG_H */
2003 _______EOF
2004
2005
2006         if cmp -s $outfile gdk/gdkconfig.h; then
2007           AC_MSG_NOTICE([gdk/gdkconfig.h is unchanged])
2008           rm -f $outfile
2009         else
2010           mv $outfile gdk/gdkconfig.h
2011         fi
2012 ],[
2013 if test "x$gdktarget" = "xx11" ; then
2014   gdk_windowing='
2015 #define GDK_WINDOWING_X11'
2016 elif test "x$gdktarget" = "xwin32" ; then
2017   gdk_windowing='
2018 #define GDK_NATIVE_WINDOW_POINTER
2019
2020 #define GDK_WINDOWING_WIN32'
2021 elif test "x$gdktarget" = "xquartz" ; then
2022   gdk_windowing='
2023 #define GDK_WINDOWING_QUARTZ'
2024 elif test "x$gdktarget" = "xdirectfb" ; then
2025   gdk_windowing='
2026 #define GDK_WINDOWING_DIRECTFB'
2027 fi
2028
2029 if test x$gdk_wchar_h = xyes; then
2030   gdk_wc='
2031 #define GDK_HAVE_WCHAR_H 1'
2032 fi
2033 if test x$gdk_wctype_h = xyes; then
2034   gdk_wc="\$gdk_wc
2035 #define GDK_HAVE_WCTYPE_H 1"
2036 fi
2037 if test x$gdk_working_wctype = xno; then
2038   gdk_wc="\$gdk_wc
2039 #define GDK_HAVE_BROKEN_WCTYPE 1"
2040 fi
2041
2042
2043 ])
2044
2045 AC_CONFIG_FILES([
2046 config.h.win32
2047 gtk-zip.sh
2048 Makefile
2049 gdk-pixbuf-2.0.pc
2050 gdk-2.0.pc
2051 gtk+-2.0.pc
2052 gtk+-unix-print-2.0.pc
2053 gail.pc
2054 gdk-pixbuf-2.0-uninstalled.pc
2055 gdk-2.0-uninstalled.pc
2056 gtk+-2.0-uninstalled.pc
2057 gail-uninstalled.pc
2058 m4macros/Makefile
2059 po/Makefile.in
2060 po-properties/Makefile.in
2061 demos/Makefile
2062 demos/gtk-demo/Makefile
2063 demos/gtk-demo/geninclude.pl
2064 tests/Makefile
2065 docs/Makefile
2066 docs/reference/Makefile
2067 docs/reference/gdk-pixbuf/Makefile
2068 docs/reference/gdk-pixbuf/version.xml
2069 docs/reference/gdk/Makefile
2070 docs/reference/gdk/version.xml
2071 docs/reference/gtk/Makefile
2072 docs/reference/gtk/version.xml
2073 docs/reference/libgail-util/Makefile
2074 docs/faq/Makefile
2075 docs/tools/Makefile
2076 docs/tutorial/Makefile
2077 gdk-pixbuf/Makefile
2078 gdk-pixbuf/gdk_pixbuf.rc
2079 gdk-pixbuf/gdk-pixbuf-features.h
2080 gdk-pixbuf/pixops/Makefile
2081 gdk/Makefile
2082 gdk/x11/Makefile
2083 gdk/win32/Makefile
2084 gdk/win32/rc/Makefile
2085 gdk/win32/rc/gdk.rc
2086 gdk/quartz/Makefile
2087 gdk/directfb/Makefile
2088 gdk/tests/Makefile
2089 gtk/Makefile
2090 gtk/makefile.msc
2091 gtk/gtkversion.h
2092 gtk/gtk-win32.rc
2093 gtk/theme-bits/Makefile
2094 gtk/tests/Makefile
2095 modules/Makefile
2096 modules/other/Makefile
2097 modules/other/gail/Makefile
2098 modules/other/gail/libgail-util/Makefile
2099 modules/other/gail/tests/Makefile
2100 modules/engines/Makefile
2101 modules/engines/pixbuf/Makefile
2102 modules/engines/ms-windows/Makefile
2103 modules/engines/ms-windows/Theme/Makefile
2104 modules/engines/ms-windows/Theme/gtk-2.0/Makefile
2105 modules/input/Makefile
2106 modules/printbackends/Makefile
2107 modules/printbackends/cups/Makefile
2108 modules/printbackends/lpr/Makefile
2109 modules/printbackends/file/Makefile
2110 modules/printbackends/test/Makefile
2111 perf/Makefile
2112 contrib/Makefile
2113 contrib/gdk-pixbuf-xlib/Makefile
2114 contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc
2115 ])
2116
2117 AC_OUTPUT
2118
2119 echo "configuration:
2120         target: $gdktarget"