~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
AC_PREREQ(2.54)
4
4
 
5
 
# Making releases:
 
5
# Making releases on the stable branch:
6
6
#   GIMP_MICRO_VERSION += 1;
7
7
#   GIMP_INTERFACE_AGE += 1;
8
8
 
9
9
m4_define([gimp_major_version], [2])
10
 
m4_define([gimp_minor_version], [2])
11
 
m4_define([gimp_micro_version], [13])
 
10
m4_define([gimp_minor_version], [3])
 
11
m4_define([gimp_micro_version], [16])
12
12
m4_define([gimp_real_version],
13
13
          [gimp_major_version.gimp_minor_version.gimp_micro_version])
14
14
m4_define([gimp_version], [gimp_real_version])
15
 
m4_define([gimp_interface_age], [13])
 
15
m4_define([gimp_interface_age], [0])
16
16
m4_define([gimp_binary_age],
17
17
          [m4_eval(100 * gimp_minor_version + gimp_micro_version)])
18
18
 
24
24
 
25
25
# Versions used for apps, plugins, tools, pkg-config files, and data,
26
26
# as well as global and user prefs
27
 
m4_define([gimp_app_version], [2.2])
 
27
m4_define([gimp_app_version], [2.3])
28
28
m4_define([gimp_plugin_version], [2.0])
29
29
m4_define([gimp_tool_version], [2.0])
30
30
m4_define([gimp_pkgconfig_version], [2.0])
31
31
m4_define([gimp_data_version], [2.0])
32
32
m4_define([gimp_sysconf_version], [2.0])
33
 
m4_define([gimp_user_version], [2.2])
 
33
m4_define([gimp_user_version], [2.3])
34
34
 
35
35
m4_define([gimp_unstable],
36
36
          m4_if(m4_eval(gimp_minor_version % 2), [1], [yes], [no]))
37
37
m4_define([gimp_stable],
38
38
          m4_if(m4_eval(gimp_minor_version % 2), [0], [yes], [no]))
39
39
 
40
 
m4_define([gimp_full_name], [The GIMP])
 
40
m4_define([gimp_full_name], [GNU Image Manipulation Program])
41
41
 
42
42
# required versions of other packages
43
 
m4_define([glib_required_version], [2.4.5])
44
 
m4_define([gtk_required_version], [2.4.4])
 
43
m4_define([glib_required_version], [2.12.3])
 
44
m4_define([gtk_required_version], [2.10.6])
45
45
m4_define([gdk_pixbuf_required_version], [gtk_required_version])
46
 
m4_define([pangoft2_required_version], [1.4.0])
 
46
m4_define([pangoft2_required_version], [1.12.2])
47
47
m4_define([fontconfig_required_version], [2.2.0])
48
48
m4_define([gtkdoc_required_version], [1.0])
49
49
m4_define([gtkhtml2_required_version], [2.0.0])
50
 
m4_define([gimpprint_required_version], [4.2.0])
51
 
m4_define([gimpprint_suggested_version], [4.2.6])
52
 
m4_define([gimpprint_toonew_version], [4.3.0])
53
50
m4_define([alsa_required_version], [1.0.0])
54
 
m4_define([rsvg_required_version], [2.2.0])
 
51
m4_define([rsvg_required_version], [2.8.0])
55
52
m4_define([wmf_required_version], [0.2.8])
56
 
m4_define([pygtk_required_version], [1.99.15])
 
53
m4_define([pygtk_required_version], [2.10.4])
 
54
m4_define([poppler_required_version], [0.3.1])
 
55
m4_define([gnome_vfs_required_version], [2.10.0])
 
56
m4_define([gnomeui_required_version], [2.10.0])
 
57
m4_define([gnome_keyring_required_version], [0.4.5])
 
58
m4_define([libcurl_required_version], [7.15.1])
 
59
m4_define([dbus_glib_required_version], [0.70])
 
60
m4_define([libhal_required_version], [0.5.7])
 
61
 
57
62
 
58
63
AC_INIT([GIMP], [gimp_version],
59
64
        [http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP],
102
107
 
103
108
 
104
109
dnl The symbol GIMP_UNSTABLE is defined above for substitution in
105
 
dnl Makefiles and conditionally defined here as a preprocessor symbol.
 
110
dnl Makefiles and conditionally defined here as a preprocessor symbol
 
111
dnl and automake conditional.
106
112
if test "x$GIMP_UNSTABLE" = "xyes"; then
107
 
  AC_DEFINE(GIMP_UNSTABLE,1,
 
113
  AC_DEFINE(GIMP_UNSTABLE, 1,
108
114
            [Define to 1 if this is an unstable version of the GIMP])
109
115
fi
110
 
 
111
 
dnl Choose a desktop icon
112
 
if test "x$GIMP_UNSTABLE" = "xyes"; then
113
 
  GIMP_DESKTOP_ICON="wilber-devel-icon.png"
114
 
else
115
 
  GIMP_DESKTOP_ICON="wilber-icon.png"
116
 
fi
117
 
 
118
 
AC_SUBST(GIMP_DESKTOP_ICON)
 
116
AM_CONDITIONAL(GIMP_UNSTABLE, test "x$GIMP_UNSTABLE" = "xyes")
119
117
 
120
118
 
121
119
# libtool versioning
134
132
FONTCONFIG_REQUIRED_VERSION=fontconfig_required_version
135
133
GTKDOC_REQUIRED_VERSION=gtkdoc_required_version
136
134
GTKHTML2_REQUIRED_VERSION=gtkhtml2_required_version
137
 
GIMPPRINT_REQUIRED_VERSION=gimpprint_required_version
138
 
GIMPPRINT_TOONEW_VERSION=gimpprint_toonew_version
139
135
RSVG_REQUIRED_VERSION=rsvg_required_version
140
136
WMF_REQUIRED_VERSION=wmf_required_version
141
137
AC_SUBST(GLIB_REQUIRED_VERSION)
145
141
AC_SUBST(FONTCONFIG_REQUIRED_VERSION)
146
142
AC_SUBST(GTKDOC_REQUIRED_VERSION)
147
143
AC_SUBST(GTKHTML2_REQUIRED_VERSION)
148
 
AC_SUBST(GIMPPRINT_REQUIRED_VERSION)
149
 
AC_SUBST(GIMPPRINT_TOONEW_VERSION)
150
144
AC_SUBST(RSVG_REQUIRED_VERSION)
151
145
AC_SUBST(WMF_REQUIRED_VERSION)
152
146
 
167
161
dnl Initialize maintainer mode
168
162
AM_MAINTAINER_MODE
169
163
 
 
164
dnl Honor aclocal flags
 
165
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
 
166
 
170
167
 
171
168
###########################
172
169
# Check target architecture
191
188
    AC_DEFINE(ARCH_X86, 1, [Define to 1 if you are compiling for ix86.])
192
189
    AC_DEFINE(ARCH_X86_64, 1, [Define to 1 if you are compiling for amd64.])
193
190
    ;;
194
 
  ppc-*-linux* | powerpc-*)
195
 
    have_ppc=yes
196
 
    AC_DEFINE(ARCH_PPC, 1, [Define to 1 if you are compiling for PowerPC.])
 
191
  ppc-*-* | powerpc-*)
 
192
    have_ppc=yes
 
193
    AC_DEFINE(ARCH_PPC, 1, [Define to 1 if you are compiling for PowerPC.])
 
194
    ;;
 
195
  ppc64-*-* | powerpc64-*)
 
196
    have_ppc=yes
 
197
    AC_DEFINE(ARCH_PPC, 1, [Define to 1 if you are compiling for PowerPC.])
 
198
    AC_DEFINE(ARCH_PPC64, 1, [Define to 1 if you are compiling for PowerPC64.])
197
199
    ;;
198
200
  *)
199
201
    ;;
244
246
 
245
247
AC_SUBST(WINDRES)
246
248
 
 
249
 
247
250
###############
248
251
# Generic stuff
249
252
###############
310
313
fi
311
314
changequote([,])dnl
312
315
 
 
316
 
 
317
# If possible, warn if C99isms are used 
 
318
GIMP_DETECT_CFLAGS(extra_warnings, '-Wdeclaration-after-statement')
 
319
CFLAGS="$CFLAGS $extra_warnings"
 
320
 
 
321
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-prototypes')
 
322
CFLAGS="$CFLAGS $extra_warnings"
 
323
 
 
324
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-declarations')
 
325
CFLAGS="$CFLAGS $extra_warnings"
 
326
 
 
327
GIMP_DETECT_CFLAGS(extra_warnings, '-Winit-self')
 
328
CFLAGS="$CFLAGS $extra_warnings"
 
329
 
 
330
GIMP_DETECT_CFLAGS(extra_warnings, '-Wpointer-arith')
 
331
CFLAGS="$CFLAGS $extra_warnings"
 
332
 
 
333
 
313
334
# Ensure MSVC-compatible struct packing convention is used when
314
335
# compiling for Win32 with gcc.
315
336
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
345
366
  fi
346
367
fi
347
368
 
348
 
# Honor aclocal flags
349
 
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
350
 
 
351
369
 
352
370
AC_HEADER_DIRENT
353
371
AC_HEADER_STDC
365
383
dnl check some more funcs
366
384
AC_CHECK_FUNCS(difftime putenv mmap)
367
385
 
 
386
AM_BINRELOC
 
387
 
 
388
 
 
389
# _NL_MEASUREMENT_MEASUREMENT is an enum and not a define
 
390
AC_MSG_CHECKING([for _NL_MEASUREMENT_MEASUREMENT])
 
391
AC_TRY_LINK([#include <langinfo.h>], [
 
392
char c = *((unsigned char *)  nl_langinfo(_NL_MEASUREMENT_MEASUREMENT));
 
393
], nl_ok=yes, nl_ok=no)
 
394
AC_MSG_RESULT($nl_ok)
 
395
if test "$nl_ok" = "yes"; then
 
396
  AC_DEFINE(HAVE__NL_MEASUREMENT_MEASUREMENT, 1,
 
397
            [Define to 1 if _NL_MEASUREMENT_MEASUREMENT is available])
 
398
fi
 
399
 
368
400
 
369
401
######################
370
402
# Internationalisation
371
403
######################
372
404
 
373
 
dnl Note to translators: you MUST have .po files in all 4 directories: po,
374
 
dnl po-libgimp, po-plug-ins, and po-script-fu before adding you language
375
 
dnl code to ALL_LINGUAS
376
 
ALL_LINGUAS="bg ca cs da de el en_CA en_GB es eu fi fr ga gl he hu hr id it ja ko lt mk ms nb nl no pa pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi yi zh_CN zh_TW"
 
405
dnl Note to translators: you MUST have .po files in all 5 directories: po,
 
406
dnl po-libgimp, po-plug-ins, po-python and po-script-fu before adding your
 
407
dnl language code to ALL_LINGUAS.
 
408
ALL_LINGUAS="ar bg ca cs da de dz el en_CA en_GB eo es et eu fi fr ga gl gu he hu hr id it ja km ko lt mk ms nb ne nl pa pl pt pt_BR ro ru rw sk sr sr@Latn sv tr tt uk vi xh yi zh_CN zh_TW"
377
409
 
378
410
AC_PROG_INTLTOOL
379
411
AM_GLIB_GNU_GETTEXT
387
419
  AC_MSG_ERROR(Test for GLIB failed. See the file 'INSTALL' for help.),
388
420
  gobject)
389
421
 
390
 
PKG_CHECK_MODULES(GMODULE, gmodule-2.0 gobject-2.0)
391
 
AC_SUBST(GMODULE_CFLAGS)
392
 
AC_SUBST(GMODULE_LIBS)
 
422
PKG_CHECK_MODULES(GMODULE_NO_EXPORT, gmodule-no-export-2.0)
393
423
 
394
 
AC_MSG_CHECKING([if GLib is version 2.7.0 or newer])
395
 
if $PKG_CONFIG --atleast-version=2.7.0 glib-2.0; then
396
 
  have_glib_2_7=yes
 
424
AC_MSG_CHECKING([if GLib is version 2.13.0 or newer])
 
425
if $PKG_CONFIG --atleast-version=2.13.0 glib-2.0; then
 
426
  have_glib_2_13=yes
397
427
else
398
 
  have_glib_2_7=no
 
428
  have_glib_2_13=no
399
429
fi
400
 
AC_MSG_RESULT($have_glib_2_7)
 
430
AC_MSG_RESULT($have_glib_2_13)
401
431
 
402
432
dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
403
433
gimp_save_LIBS=$LIBS
404
434
LIBS="$LIBS $GLIB_LIBS"
405
 
AC_CHECK_FUNCS(bind_textdomain_codeset)
 
435
AC_CHECK_FUNCS(bind_textdomain_codeset,,
 
436
  AC_MSG_ERROR([
 
437
*** Check for bind_textdomain_codeset() failed!  This is required.
 
438
]))
406
439
LIBS=$gimp_save_LIBS
407
440
 
408
441
 
411
444
AM_PATH_GTK_2_0(gtk_required_version, :,
412
445
    AC_MSG_ERROR(Test for GTK+ failed. See the file 'INSTALL' for help.))
413
446
 
414
 
AC_MSG_CHECKING([if GTK+ is version 2.7.0 or newer])
415
 
if $PKG_CONFIG --atleast-version=2.7.0 gtk+-2.0; then
416
 
  have_gtk_2_7=yes
 
447
AC_MSG_CHECKING([if GTK+ is version 2.11.0 or newer])
 
448
if $PKG_CONFIG --atleast-version=2.11.0 gtk+-2.0; then
 
449
  have_gtk_2_11=yes
417
450
else
418
 
  have_gtk_2_7=no
 
451
  have_gtk_2_11=no
419
452
fi
420
 
AC_MSG_RESULT($have_gtk_2_7)
 
453
AC_MSG_RESULT($have_gtk_2_11)
421
454
 
422
455
PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= gdk_pixbuf_required_version)
423
 
AC_SUBST(GDK_PIXBUF_CFLAGS)
424
 
AC_SUBST(GDK_PIXBUF_LIBS)
425
456
 
426
457
AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
427
458
if test x$GDK_PIXBUF_CSOURCE = xno; then
429
460
fi
430
461
 
431
462
PKG_CHECK_MODULES(LIBART, libart-2.0)
432
 
AC_SUBST(LIBART_CFLAGS)
433
 
AC_SUBST(LIBART_LIBS)
434
463
 
435
464
PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= fontconfig_required_version)
436
465
 
438
467
  AC_MSG_ERROR([Test for PangoFT2 failed.
439
468
*** We require Pango with the optional support for FreeType2 compiled in.
440
469
*** See the file 'INSTALL' for more help.]))
441
 
AC_SUBST(PANGOFT2_CFLAGS)
442
 
AC_SUBST(PANGOFT2_LIBS)
443
470
 
444
 
AC_MSG_CHECKING([if Pango is version 1.9.0 or newer])
445
 
if $PKG_CONFIG --atleast-version=1.9.0 pango; then
446
 
  have_pango_1_9=yes
 
471
AC_MSG_CHECKING([if Pango is version 1.15.0 or newer])
 
472
if $PKG_CONFIG --atleast-version=1.15.0 pango; then
 
473
  have_pango_1_15=yes
447
474
else
448
 
  have_pango_1_9=no
 
475
  have_pango_1_15=no
449
476
fi
450
 
AC_MSG_RESULT($have_pango_1_9)
 
477
AC_MSG_RESULT($have_pango_1_15)
451
478
 
452
479
gimp_save_CFLAGS=$CFLAGS
453
480
CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
580
607
 
581
608
  mmx_save_CFLAGS="$CFLAGS"
582
609
  CFLAGS="$mmx_save_CFLAGS $MMX_EXTRA_CFLAGS"
583
 
 
 
610
  
584
611
  AC_COMPILE_IFELSE([asm ("movq 0, %mm0");],
585
612
 
586
613
    AC_DEFINE(USE_MMX, 1, [Define to 1 if MMX assembly is available.])
618
645
 
619
646
 
620
647
############################
621
 
# Check for Altivec assembly
 
648
# Check for AltiVec assembly
622
649
############################
623
650
 
624
651
AC_ARG_ENABLE(altivec,
625
 
  [  --enable-altivec        enable Altivec support (default=auto)],,
 
652
  [  --enable-altivec        enable AltiVec support (default=auto)],,
626
653
  enable_altivec=$have_ppc)
627
654
 
628
655
if test "x$enable_altivec" = xyes; then
629
656
 
630
 
  AC_MSG_CHECKING(whether we can compile Altivec code)
631
 
 
632
 
  AC_COMPILE_IFELSE([asm ("vand %v0, %v0, %v0");],
633
 
    AC_DEFINE(USE_ALTIVEC, 1, [Define to 1 if Altivec assembly is available.])
634
 
    AC_MSG_RESULT(yes)
635
 
  ,
636
 
    enable_altivec=no
 
657
  GIMP_DETECT_CFLAGS(altivec_flag, '-faltivec' '-maltivec -mabi=altivec')
 
658
 
 
659
  ALTIVEC_EXTRA_CFLAGS=
 
660
  case "$altivec_flag" in
 
661
    -maltivec*)
 
662
      altivec_save_CPPFLAGS="$CPPFLAGS"
 
663
      CPPFLAGS="$altivec_save_CPPFLAGS $altivec_flag"
 
664
      AC_CHECK_HEADERS(altivec.h, [ALTIVEC_EXTRA_CFLAGS="$altivec_flag"])
 
665
      CPPFLAGS="$altivec_save_CPPFLAGS"
 
666
      ;;
 
667
    *)
 
668
      ALTIVEC_EXTRA_CFLAGS="$altivec_flag"
 
669
      ;;
 
670
  esac
 
671
  AC_SUBST(ALTIVEC_EXTRA_CFLAGS)
 
672
 
 
673
  AC_MSG_CHECKING(whether we can compile AltiVec code)
 
674
 
 
675
  can_use_altivec=no
 
676
  if test -z "$ALTIVEC_EXTRA_CFLAGS"; then
637
677
    AC_MSG_RESULT(no)
638
 
    AC_MSG_WARN([The assembler does not support the Altivec command set.])
639
 
  )
640
 
 
 
678
    AC_MSG_WARN([The compiler does not support the AltiVec command set.])
 
679
  else
 
680
    case "$target_or_host" in
 
681
      *-*-darwin*)
 
682
        can_use_altivec=yes
 
683
        AC_DEFINE(HAVE_ALTIVEC_SYSCTL, 1,
 
684
         [Define to 1 if the altivec runtime test should use a sysctl.])
 
685
        ;;
 
686
      *)
 
687
        AC_COMPILE_IFELSE([asm ("vand %v0, %v0, %v0");],
 
688
          can_use_altivec=yes, can_use_altivec=no)
 
689
        ;;
 
690
    esac
 
691
    AC_MSG_RESULT($can_use_altivec)
 
692
 
 
693
    if test "x$can_use_altivec" = "xyes"; then
 
694
      AC_DEFINE(USE_ALTIVEC, 1, [Define to 1 if AltiVec support is available.])
 
695
    else
 
696
      enable_altivec=no
 
697
      AC_MSG_WARN([The assembler does not support the AltiVec command set.])
 
698
    fi
 
699
  fi
 
700
 
 
701
  enable_altivec="$can_use_altivec"
641
702
fi
642
703
 
643
704
 
646
707
###################################
647
708
 
648
709
dnl MacOS X has broken SysV shm
649
 
case "$host_os" in
650
 
  darwin* | rhapsody* | machten*)
 
710
case "$target_or_host" in
 
711
  *-*-darwin* | *-*-rhapsody* | *-*-machten*)
651
712
    shmdefault=posix
652
713
    ;;
653
714
  *)
820
881
# Threads and multi processor 
821
882
#############################
822
883
 
823
 
dnl AC_ARG_ENABLE(threads, [  --enable-threads    support POSIX threading (default=no)])
824
 
dnl if test "x$enable_threads" = "xyes"; then
825
 
dnl   AC_CHECK_LIB(pthread, pthread_attr_init, 
826
 
dnl     [AC_DEFINE(USE_PTHREADS)
827
 
dnl     GIMP_THREAD_LIBS="-lpthread"
828
 
dnl     GIMP_THREAD_FLAGS="-D_REENTRANT"],
829
 
dnl     # AIX has libpthreads, cause they're special. Special friends (TM)
830
 
dnl     AC_CHECK_LIB(pthreads, pthread_attr_init,
831
 
dnl       [AC_DEFINE(USE_PTHREADS)
832
 
dnl       GIMP_THREAD_LIBS="-lpthreads"
833
 
dnl       GIMP_THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
834
 
dnl fi
835
 
 
836
 
AC_SUBST(GIMP_THREAD_FLAGS)
837
 
AC_SUBST(GIMP_THREAD_LIBS)
838
 
 
839
 
 
840
 
AC_ARG_ENABLE(mp, [  --enable-mp             support multiple processors (default=no)])
841
 
if test "x$enable_mp" = "xyes"; then
842
 
  AC_CHECK_LIB(pthread, pthread_attr_init, 
 
884
AC_ARG_ENABLE(mp, [  --disable-mp            disable support for multiple processors])
 
885
if test "x$enable_mp" != "xno"; then
 
886
  PKG_CHECK_MODULES(GTHREAD, gthread-2.0,
843
887
    [AC_DEFINE(ENABLE_MP, 1,
844
 
               [Define to 1 to enable support for multiple processors.])
845
 
    GIMP_MP_LIBS="-lpthread"
846
 
    GIMP_MP_FLAGS="-D_REENTRANT"],
847
 
    # AIX has libpthreads, cause they're special. Special friends (TM)
848
 
    AC_CHECK_LIB(pthreads, pthread_attr_init,
849
 
      [AC_DEFINE(ENABLE_MP)
850
 
      GIMP_MP_LIBS="-lpthreads"
851
 
      GIMP_MP_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
 
888
               [Define to 1 to enable support for multiple processors.])]
 
889
  )
852
890
fi
853
891
 
854
 
AC_SUBST(GIMP_MP_FLAGS)
855
 
AC_SUBST(GIMP_MP_LIBS)
856
 
 
857
892
 
858
893
################################
859
894
# Some plug-ins are X11 specific
860
895
################################
861
896
 
 
897
GIMP_COMMAND='gimp-gimp_app_version'
 
898
 
862
899
dnl Check if building for GTK+-X11
863
900
gdk_target=`$PKG_CONFIG --variable=target gtk+-2.0`
864
901
if test "$gdk_target" = x11; then
865
 
    dnl Test for Xmu
866
 
    if test -z "$LIBXMU"; then
867
 
      gimp_save_CFLAGS="$CFLAGS"
868
 
      gimp_save_LDFLAGS="$LDFLAGS"
869
 
      CFLAGS="$CFLAGS $GTK_CFLAGS"
870
 
      LDFLAGS="$LDFLAGS $X_LIBS"
 
902
   dnl screenshot plug-in needs to link to X11 explicitely
 
903
   LIBSCREENSHOT="$X_LIBS -lX11"
 
904
 
 
905
   dnl doc-shooter is X11 specific
 
906
   DOC_SHOOTER=doc-shooter
 
907
 
 
908
   gimp_save_CFLAGS="$CFLAGS"
 
909
   gimp_save_LDFLAGS="$LDFLAGS"
 
910
   CFLAGS="$CFLAGS $GTK_CFLAGS"
 
911
   LDFLAGS="$LDFLAGS $X_LIBS"
 
912
 
 
913
   dnl Test for Xmu
 
914
   enable_gimp_remote=yes
 
915
   if test -z "$LIBXMU"; then
871
916
      AC_CHECK_LIB(Xmu, XmuClientWindow,
872
917
        [AC_CHECK_HEADERS(X11/Xmu/WinUtil.h,
873
918
          GIMP_REMOTE='gimp-remote-gimp_app_version$(EXEEXT)';
 
919
          GIMP_COMMAND='gimp-remote-gimp_app_version'
874
920
          have_libxmu=yes
875
921
          LIBXMU="$X_LIBS $X_PRE_LIBS -lX11 -lXmu -lXt",
876
 
          [AC_MSG_WARN(*** gimp-remote will not be built (XMU header file not found) ***)],[#include <gdk/gdkx.h>])],
877
 
        [AC_MSG_WARN(*** gimp-remote will not be built (XMU library not found) ***)], -lXt -lX11)
878
 
      CFLAGS="$gimp_save_CFLAGS"
879
 
      LDFLAGS="$gimp_save_LDFLAGS"
880
 
    fi
881
 
 
882
 
   dnl screenshot plug-in needs to link to X11 explicitely
883
 
   LIBSCREENSHOT="$X_LIBS -lX11"
 
922
          [enable_gimp_remote="no (XMU header file not found)"],[#include <gdk/gdkx.h>])],
 
923
        [enable_gimp_remote="no (XMU library not found)"], -lXt -lX11)
 
924
      LIBSCREENSHOT="$LIBXMU"
 
925
   fi
 
926
 
 
927
   dnl Check for shaped window extension
 
928
   AC_CHECK_LIB(Xext, XShapeGetRectangles,
 
929
     [AC_CHECK_HEADERS(X11/extensions/shape.h,
 
930
        LIBSCREENSHOT="$LIBSCREENSHOT -lXext",,[#include <gdk/gdkx.h>])],,
 
931
     -lX11 -lXext)
 
932
 
 
933
   CFLAGS="$gimp_save_CFLAGS"
 
934
   LDFLAGS="$gimp_save_LDFLAGS"
 
935
else
 
936
   enable_gimp_remote="no (building for $gdk_target)"
884
937
fi
885
938
 
886
939
AC_SUBST(LIBXMU)
887
940
AC_SUBST(LIBSCREENSHOT)
 
941
 
 
942
AC_SUBST(DOC_SHOOTER)
 
943
 
888
944
AC_SUBST(GIMP_REMOTE)
 
945
AC_SUBST(GIMP_COMMAND)
889
946
 
890
947
 
891
948
###################
892
949
# Check for libtiff
893
950
###################
894
951
 
 
952
have_libtiff=no
895
953
AC_ARG_WITH(libtiff,  [  --without-libtiff       build without TIFF support])
896
954
  if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
 
955
    have_libtiff=yes
897
956
    AC_CHECK_LIB(tiff, TIFFReadScanline,
898
957
      [AC_CHECK_HEADER(tiffio.h,
899
958
        TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff',
900
 
        [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)])],
 
959
        [have_libtiff="no (TIFF header files not found)"])],
901
960
      [AC_CHECK_LIB(tiff, TIFFWriteScanline,
902
961
        [AC_CHECK_HEADER(tiffio.h,
903
962
          TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff -ljpeg -lz',
904
 
          [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)])],
 
963
          [have_libtiff="no (TIFF header files not found)"])],
905
964
        [AC_CHECK_LIB(tiff34, TIFFFlushData,
906
965
          [AC_CHECK_HEADER(tiffio.h,
907
966
            TIFF='tiff$(EXEEXT)'; LIBTIFF='-ltiff34 -ljpeg -lz',
908
 
            [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)])],
909
 
        [AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not found) ***)], -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
 
967
            [have_libtiff="no (TIFF header files not found)"])],
 
968
        [have_libtiff="no (TIFF library not found)"], -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
910
969
  fi
911
970
 
912
971
  if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
927
986
  if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
928
987
    AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
929
988
      jpeg_ok=yes,
930
 
      [jpeg_ok=no
931
 
      AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG library not found) ***)
 
989
      [jpeg_ok="no (JPEG library not found)"
932
990
      AC_MSG_WARN(*** XJT plug-in will not be built (JPEG library not found) ***)])
933
991
    if test "$jpeg_ok" = yes; then
934
992
      AC_MSG_CHECKING([for jpeglib.h])
940
998
#undef VERSION
941
999
#include <jpeglib.h>],
942
1000
        jpeg_ok=yes,
943
 
        jpeg_ok=no)
 
1001
        jpeg_ok="no (Can't include jpeglib.h)")
944
1002
      AC_MSG_RESULT($jpeg_ok)
945
1003
      if test "$jpeg_ok" = yes; then
946
 
        JPEG='jpeg$(EXEEXT)'; LIBJPEG='-ljpeg'
947
 
        AC_CHECK_LIB(jpeg, jpeg_simple_progression,     
948
 
          AC_DEFINE(HAVE_PROGRESSIVE_JPEG, 1,
949
 
                    [Define to 1 if jpeglib supports progressive JPEG.]),
950
 
          AC_MSG_WARN(JPEG library does not support progressive saving.))
 
1004
        AC_CHECK_LIB(jpeg, jpeg_save_markers,
 
1005
        JPEG='jpeg$(EXEEXT)'; LIBJPEG='-ljpeg',
 
1006
        jpeg_ok="no (JPEG library is too old)")
951
1007
      else
952
 
        AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG header file not found) ***)
953
 
        AC_MSG_WARN(*** XJT plug-in will not be built (JPEG header file not found) ***)
 
1008
        jpeg_ok="no (JPEG header file not found)"
954
1009
      fi
955
1010
    fi
956
1011
  fi
967
1022
## xjt does build, but it is more confusing than useful on Win32,
968
1023
## as it wants to run tar, mv and bzip2, which seldom are available
969
1024
AM_CONDITIONAL(BUILD_XJT, test x$jpeg_ok = xyes && test x"$os_win32" = xno)
 
1025
if test x$jpeg_ok != xyes; then
 
1026
  have_xjt="no (no JPEG library)"
 
1027
elif test x"$os_win32" = xyes; then
 
1028
  have_xjt="no (not built on Windows)"
 
1029
else
 
1030
  have_xjt=yes
 
1031
fi
970
1032
 
971
1033
 
972
1034
################
973
1035
# Check for libz
974
1036
################
975
1037
 
 
1038
have_zlib=yes
976
1039
if test -z "$LIBZ"; then
977
1040
  AC_CHECK_LIB(z, gzsetparams,
978
1041
    [AC_CHECK_HEADER(zlib.h,
979
1042
      PSP='psp$(EXEEXT)'; LIBZ='-lz',
980
 
      [AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB header files not found) ***)])],
981
 
    [AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB library not found) ***)])
 
1043
      [have_zlib="no (ZLIB header files not found)"])],
 
1044
    [have_zlib="no (ZLIB library not found)"])
982
1045
fi
983
1046
 
984
1047
AC_SUBST(LIBZ)
989
1052
# Check for libpng
990
1053
##################
991
1054
 
 
1055
have_libpng=no
992
1056
AC_ARG_WITH(libpng,  [  --without-libpng        build without PNG support])
993
 
  if test x$with_libpng != xno && test -z "$LIBPNG" && test -n "$LIBZ"; then
994
 
    AC_CHECK_LIB(png, png_read_info,
995
 
      [AC_CHECK_HEADER(png.h,
996
 
        png_ok=yes,
997
 
        png_ok=no)],
998
 
      [AC_MSG_WARN(*** PNG plug-in will not be built (PNG library not found) ***)], -lz -lm)
999
 
    if test "$png_ok" = yes; then
1000
 
      AC_MSG_CHECKING([for png_structp in png.h])
1001
 
      AC_TRY_COMPILE([#include <png.h>],
1002
 
        [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
1003
 
        png_ok=yes,
1004
 
        png_ok=no)
1005
 
      AC_MSG_RESULT($png_ok)
1006
 
      if test "$png_ok" = yes; then
1007
 
        PNG='png$(EXEEXT)'; LIBPNG="-lpng $LIBZ"
1008
 
      else
1009
 
        AC_MSG_WARN(*** PNG plug-in will not be built (PNG library is too old) ***)
1010
 
      fi
1011
 
    else
1012
 
      AC_MSG_WARN(*** PNG plug-in will not be built (PNG header file not found) ***)
1013
 
    fi
1014
 
  fi
1015
 
 
1016
 
  if test x$with_libpng != xno && test -z "$LIBPNG"; then
 
1057
if test x$with_libpng != xno; then
 
1058
  have_libpng=yes
 
1059
  PKG_CHECK_MODULES(PNG, libpng,
 
1060
    PNG='png$(EXEEXT)'
 
1061
    LIBPNG="$PNG_LIBS",
 
1062
    [have_libpng="no (libpng not found)"
1017
1063
     AC_MSG_ERROR([
1018
 
*** Checks for PNG library failed. You can build without it by passing 
1019
 
*** --without-libpng to configure but you won't be able to use PNGs then.])
1020
 
  fi
 
1064
*** Checks for PNG library failed. You can build without it by passing
 
1065
*** --without-libpng to configure but you won't be able to use PNGs then.])])
 
1066
fi
1021
1067
 
1022
1068
AC_SUBST(PNG)
1023
1069
AC_SUBST(LIBPNG)
1024
1070
 
 
1071
AM_CONDITIONAL(HAVE_PNG, test x$have_libpng = xyes)
 
1072
 
1025
1073
 
1026
1074
##################
1027
1075
# Check for libmng
1028
1076
##################
1029
1077
 
 
1078
have_libmng=no
1030
1079
AC_ARG_WITH(libmng,  [  --without-libmng        build without MNG support])
 
1080
  have_libmng=yes
1031
1081
  if test x$with_libmng != xno && test -z "$LIBMNG" &&
1032
1082
     test -n "$LIBPNG" && test -n "$LIBJPEG" && test -n "$LIBZ"; then
1033
1083
    AC_CHECK_LIB(mng, mng_create,
1034
1084
      [AC_CHECK_HEADER(libmng.h, mng_ok=yes)],
1035
 
      [AC_MSG_WARN(*** MNG plug-in will not be built (MNG library not found) ***)], -lz -lm)
 
1085
      [have_libmng="no (MNG library not found)"], -lz -lm)
1036
1086
    if test "$mng_ok" = yes; then
1037
1087
      MNG='mng$(EXEEXT)'; LIBMNG="-lmng $LIBJPEG $LIBPNG"
1038
1088
    else
1039
 
      AC_MSG_WARN(*** MNG plug-in will not be built (MNG header file not found) ***)
 
1089
      have_libmng="no (MNG header file not found)"
1040
1090
    fi
1041
1091
  fi
1042
1092
 
1050
1100
# avoid destruction, but no data modification is performed.
1051
1101
############################################################
1052
1102
 
 
1103
have_libexif=no
1053
1104
AC_ARG_WITH(libexif,  [  --without-libexif       build without EXIF support])
1054
1105
if test x$with_libexif != xno && test -z "$LIBEXIF" && test -n "$LIBJPEG"; then
 
1106
  have_libexif=yes
1055
1107
  PKG_CHECK_MODULES(EXIF, libexif, 
1056
 
    AC_DEFINE(HAVE_EXIF, 1, "Define to 1 if libexif is available"),
1057
 
    AC_MSG_WARN([libexif not found!
1058
 
EXIF support will not be built into the JPEG plug-in. 
1059
 
libexif is available from http://www.sourceforge.net/projects/libexif]))
 
1108
    AC_DEFINE(HAVE_EXIF, 1, [Define to 1 if libexif is available]),
 
1109
    have_libexif="no (libexif not found)")
 
1110
  AC_MSG_CHECKING([if libexif is version 0.6.0 or newer])
 
1111
  if $PKG_CONFIG --atleast-version=0.6.0 libexif; then
 
1112
    have_exif_0_6=yes
 
1113
  else
 
1114
    have_exif_0_6=no
 
1115
  fi
 
1116
  AC_MSG_RESULT($have_exif_0_6)
 
1117
  if test x$have_exif_0_6 == xyes; then
 
1118
    AC_DEFINE(HAVE_EXIF_0_6, 1,
 
1119
              [Define to 1 if libexif is at least version 0.6.0])
 
1120
  fi
1060
1121
fi
1061
1122
 
1062
1123
AC_SUBST(EXIF_CFLAGS)
1063
1124
AC_SUBST(EXIF_LIBS)
1064
1125
 
 
1126
 
1065
1127
#################
1066
1128
# Check for libaa
1067
1129
#################
1068
1130
 
1069
1131
 
 
1132
have_libaa=no
1070
1133
AC_ARG_WITH(aa,  [  --without-aa            do not build the AA plug-in])
1071
1134
if test x$with_aa != xno && test -z "$LIBAA"; then
 
1135
  have_libaa=yes
1072
1136
  AC_CHECK_LIB(aa, aa_printf,
1073
1137
    [AC_CHECK_HEADER(aalib.h,
1074
1138
      AA='aa$(EXEEXT)'; LIBAA='-laa',
1075
 
      [AC_MSG_WARN(*** AA plug-in will not be built (AA header file not found) ***)])],
1076
 
    [AC_MSG_WARN(*** AA plug-in will not be built (AA library not found) ***)])
 
1139
      [have_libaa="no (AA header file not found)"])],
 
1140
    [have_libaa="no (AA library not found)"])
1077
1141
fi
1078
1142
 
1079
1143
AC_SUBST(AA)
1091
1155
if test "$gdk_target" = x11; then
1092
1156
  lib_X11=-lX11
1093
1157
fi
 
1158
have_libxpm=yes
1094
1159
if test -z "$LIBXPM"; then
1095
1160
  AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage,
1096
1161
    [AC_CHECK_HEADER(X11/xpm.h,
1097
1162
      XPM='xpm$(EXEEXT)'; LIBXPM="$X_LIBS $X_PRE_LIBS $lib_X11 -lXpm",
1098
 
      [AC_MSG_WARN(*** XPM plug-in will not be built (XPM header file not found) ***)])],
1099
 
    [AC_MSG_WARN(*** XPM plug-in will not be built (XPM library not found) ***)], $X_PRE_LIBS $lib_X11)
 
1163
      [have_libxpm="no (XPM header file not found)"])],
 
1164
    [have_libxpm="no (XPM library not found)"], $X_PRE_LIBS $lib_X11)
1100
1165
fi
1101
1166
CFLAGS="$gimp_save_CFLAGS"
1102
1167
LDFLAGS="$gimp_save_LDFLAGS"
1115
1180
if test "x$with_gtkhtml2" != xno; then
1116
1181
  PKG_CHECK_MODULES(GTKHTML2, libgtkhtml-2.0 >= gtkhtml2_required_version,
1117
1182
    have_gtkhtml2=yes,
1118
 
    AC_MSG_WARN([*** Help browser plug-in will not be built (GtkHtml2 not found) ***]))
 
1183
    AC_MSG_RESULT([no])
 
1184
    have_gtkhtml2="no (GtkHtml2 not found)")
1119
1185
else
1120
 
  AC_MSG_WARN([*** Help browser plug-in will not be built (GtkHtml2 support disabled) ***])
 
1186
  have_gtkhtml2="no (GtkHtml2 support disabled)"
1121
1187
fi
1122
1188
 
1123
 
AC_SUBST(GTKHTML2_CFLAGS)
1124
 
AC_SUBST(GTKHTML2_LIBS)
1125
 
 
1126
 
AM_CONDITIONAL(BUILD_HELPBROWSER, test x$have_gtkhtml2 = xyes)
 
1189
AM_CONDITIONAL(BUILD_HELPBROWSER, test "x$have_gtkhtml2" = xyes)
1127
1190
 
1128
1191
 
1129
1192
###################
1132
1195
 
1133
1196
AC_ARG_WITH(librsvg,[  --without-librsvg       build without librsvg support])
1134
1197
 
 
1198
have_librsvg=no
1135
1199
if test "x$with_librsvg" != xno; then
 
1200
  have_librsvg=yes
1136
1201
  PKG_CHECK_MODULES(SVG, librsvg-2.0 >= rsvg_required_version,
1137
1202
    SVG='svg$(EXEEXT)'
1138
1203
    LIBSVG=$SVG_LIBS,
1139
 
    AC_MSG_WARN([*** SVG import plug-in will not be built (librsvg not found) ***]))
 
1204
    AC_MSG_RESULT([no])
 
1205
    have_librsvg="no (librsvg not found)")
1140
1206
else
1141
 
  AC_MSG_WARN([*** SVG import plug-in will not be built (librsvg support disabled) ***])
 
1207
   have_librsvg="no (librsvg support disabled)"
1142
1208
fi
1143
1209
 
1144
1210
AC_SUBST(SVG)
1145
 
AC_SUBST(SVG_CFLAGS)
1146
1211
AC_SUBST(LIBSVG)
1147
1212
 
1148
1213
 
1149
 
######################
1150
 
# Check for gimp-print
1151
 
######################
1152
 
 
1153
 
AC_ARG_ENABLE(print, [  --disable-print         build without print support (requires libgimpprint)])
1154
 
 
1155
 
have_gimp_print=no
1156
 
if test "x$enable_print" != "xno"; then
1157
 
  AM_PATH_GIMPPRINT(gimpprint_required_version,
1158
 
    [print_version=`$GIMPPRINT_CONFIG --version`
1159
 
      if expr $print_version \>= gimpprint_toonew_version >/dev/null; then
1160
 
        AC_MSG_WARN([
1161
 
*** libgimpprint version $print_version is too new.
1162
 
*** It is likely an unstable development version.
1163
 
*** You need a version before gimpprint_toonew_version.])
1164
 
      else
1165
 
        have_gimp_print=yes
1166
 
dnl sanity check to avoid bug #125283
1167
 
        if expr $print_version \< gimpprint_suggested_version >/dev/null; then
1168
 
          AC_MSG_WARN([
1169
 
*** libgimpprint version $print_version causes problems under certain locales.
1170
 
*** We strongly suggest you upgrade to version gimpprint_suggested_version.])
1171
 
        fi
1172
 
      fi
1173
 
    ])
1174
 
fi
1175
 
 
1176
 
if test x$enable_print != xno && test x$have_gimp_print != xyes; then
1177
 
  AC_MSG_ERROR([
1178
 
*** Check for libgimpprint failed. You can download it from 
1179
 
*** http://gimp-print.sourceforge.net/ or you can build without it by passing 
1180
 
*** --disable-print to configure (but you won't be able to print then).])
1181
 
fi
1182
 
 
1183
 
AC_SUBST(PRINT_LIBS)
1184
 
AC_SUBST(PRINT_CFLAGS)
1185
 
AM_CONDITIONAL(BUILD_PRINT,
1186
 
               test x$enable_print != xno && test x$have_gimp_print = xyes)
 
1214
####################################
 
1215
# Allow to disable the print plug-in
 
1216
####################################
 
1217
 
 
1218
enable_print="no (disabled)"
 
1219
AC_ARG_WITH(print,[  --without-print         build without print support])
 
1220
 
 
1221
if test "x$with_print" != xno; then
 
1222
    enable_print="yes"
 
1223
fi
 
1224
AM_CONDITIONAL(BUILD_PRINT, test "x$enable_print" == xyes)
 
1225
 
 
1226
 
 
1227
######################
 
1228
# Check for libpoppler
 
1229
######################
 
1230
 
 
1231
have_poppler=no
 
1232
AC_ARG_WITH(poppler,[  --without-poppler       build without poppler support])
 
1233
 
 
1234
if test "x$with_poppler" != xno; then
 
1235
  PKG_CHECK_MODULES(POPPLER,
 
1236
    poppler-glib >= poppler_required_version gthread-2.0,
 
1237
    POPPLER='poppler$(EXEEXT)'
 
1238
    LIBPOPPLER=$POPPLER_LIBS
 
1239
    AC_DEFINE(HAVE_POPPLER, 1, [Define to 1 if libpoppler is available])
 
1240
    have_poppler=yes,
 
1241
    AC_MSG_RESULT([no])
 
1242
    have_poppler="Using PostScript plug-in (libpoppler not found)")
 
1243
else
 
1244
  have_poppler="Using PostScript plug-in (libpoppler support disabled)"
 
1245
fi
 
1246
 
 
1247
AC_SUBST(POPPLER)
 
1248
AC_SUBST(LIBPOPPLER)
 
1249
 
 
1250
if test "x$have_poppler" = xyes; then
 
1251
  if $PKG_CONFIG --atleast-version=0.4 poppler-glib; then
 
1252
    AC_DEFINE(HAVE_POPPLER_0_4, 1,
 
1253
              [Define to 1 if libpoppler >= 0.4 is available])
 
1254
  fi
 
1255
 
 
1256
  if $PKG_CONFIG --atleast-version=0.4.1 poppler-glib; then
 
1257
    AC_DEFINE(HAVE_POPPLER_0_4_1, 1,
 
1258
              [Define to 1 if libpoppler >= 0.4.1 is available])
 
1259
  fi
 
1260
fi
 
1261
 
 
1262
 
 
1263
###############################################################################
 
1264
# Check for gnome-vfs and libcurl (and optionally libgnomeui and gnome-keyring)
 
1265
###############################################################################
 
1266
 
 
1267
uri_plugin=no
 
1268
gnome_vfs_modules="gnome-vfs-2.0 >= gnome_vfs_required_version"
 
1269
 
 
1270
AC_ARG_WITH(gnomevfs,  [  --without-gnomevfs      build without gnomevfs support])
 
1271
 
 
1272
have_gnomeui="no (disabled)"
 
1273
have_gnome_keyring="no (disabled)"
 
1274
have_gnomevfs="no (disabled)"
 
1275
 
 
1276
if test x$with_gnomevfs != xno; then
 
1277
 
 
1278
if $PKG_CONFIG --atleast-version=gnomeui_required_version libgnomeui-2.0; then
 
1279
  have_gnomeui=yes
 
1280
  gnome_vfs_modules="$gnome_vfs_modules libgnomeui-2.0"
 
1281
else
 
1282
  have_gnomeui="no (libgnomeui-2.0 not found)"
 
1283
fi
 
1284
 
 
1285
if $PKG_CONFIG --atleast-version=gnome_keyring_required_version gnome-keyring-1; then
 
1286
  have_gnome_keyring=yes
 
1287
  gnome_vfs_modules="$gnome_vfs_modules gnome-keyring-1"
 
1288
else
 
1289
  have_gnome_keyring="no (gnome-keyring-1 not found)"
 
1290
fi
 
1291
 
 
1292
PKG_CHECK_MODULES(URI_GNOME_VFS, $gnome_vfs_modules,
 
1293
  have_gnomevfs=yes,
 
1294
  AC_MSG_RESULT([no])
 
1295
  have_gnomevfs="no (gnome-vfs-2.0 not found)")
 
1296
 
 
1297
fi
 
1298
 
 
1299
AM_CONDITIONAL(HAVE_GNOMEVFS, test x"$have_gnomevfs" = xyes)
 
1300
 
 
1301
libcurl_modules="libcurl >= libcurl_required_version"
 
1302
 
 
1303
AC_ARG_WITH(libcurl,  [  --without-libcurl       build without curl support])
 
1304
 
 
1305
have_libcurl="no (disabled)"
 
1306
 
 
1307
if test x$with_libcurl != xno; then
 
1308
 
 
1309
PKG_CHECK_MODULES(URI_LIBCURL, $libcurl_modules,
 
1310
  have_libcurl=yes,
 
1311
  AC_MSG_RESULT([no])
 
1312
  have_libcurl="no (libcurl not found)")
 
1313
 
 
1314
fi
 
1315
 
 
1316
AM_CONDITIONAL(HAVE_LIBCURL, test "x$have_libcurl" = xyes)
 
1317
 
 
1318
if test "x$have_gnomevfs" = xyes; then
 
1319
  uri_plugin="yes (using gnome-vfs)" 
 
1320
elif test x"$have_libcurl" = xyes; then
 
1321
  uri_plugin="yes (using libcurl)"
 
1322
elif test x"$os_win32" = xno; then
 
1323
  uri_plugin="yes (using wget)"
 
1324
fi
 
1325
 
 
1326
if test "x$have_gnomeui" = xyes; then
 
1327
  AC_DEFINE(HAVE_GNOMEUI, 1, [Define to 1 if libgnomeui is available])
 
1328
fi
 
1329
 
 
1330
if test "x$have_gnome_keyring" = xyes; then
 
1331
  AC_DEFINE(HAVE_GNOME_KEYRING, 1, [Define to 1 if gnome-keyring is available])
 
1332
fi
 
1333
 
 
1334
 
1187
1335
 
1188
1336
 
1189
1337
###################
1190
1338
# Check for libwmf2
1191
1339
###################
1192
1340
 
 
1341
have_libwmf=no
1193
1342
AC_PATH_PROG(WMF_CONFIG, libwmf-config, no)
1194
1343
if test "x$WMF_CONFIG" != "xno" ; then
 
1344
  have_libwmf=yes
1195
1345
  AC_MSG_CHECKING(for libwmf >= wmf_required_version)
1196
1346
  wmf_version=`$WMF_CONFIG --version`
1197
1347
  if expr $wmf_version \>= wmf_required_version >/dev/null; then
1200
1350
    LIBWMF=`$WMF_CONFIG --libs`
1201
1351
    WMF_CFLAGS=`$WMF_CONFIG --cflags`
1202
1352
  else
1203
 
    AC_MSG_WARN([*** WMF plug-in will not be built (libwmf is too old)])
 
1353
    have_libwmf="no (libwmf is too old)"
1204
1354
  fi
1205
1355
else
1206
 
  AC_MSG_WARN([*** WMF plug-in will not be built (libwmf not found) ***])
 
1356
  have_libwmf="no (libwmf not found)"
1207
1357
fi
1208
1358
AC_SUBST(LIBWMF)
1209
1359
AC_SUBST(WMF_CFLAGS)
 
1360
AC_SUBST(WMF)
1210
1361
 
1211
1362
 
1212
1363
################
1213
1364
# Check for lcms
1214
1365
################
1215
1366
 
1216
 
AC_ARG_WITH(lcms,[  --without-lcms          build without lcms support])
 
1367
AC_ARG_WITH(lcms, [  --without-lcms          build without lcms support])
1217
1368
 
1218
1369
have_lcms=no
1219
1370
if test "x$with_lcms" != xno; then
1227
1378
      ])
1228
1379
  ])
1229
1380
  if test $have_lcms = yes; then
1230
 
    LCMS_LIBS="-llcms"
 
1381
    LIBLCMS="-llcms"
 
1382
    LCMS='lcms$(EXEEXT)'
1231
1383
  else
1232
 
    AC_MSG_WARN([*** color proof module will not be built (lcms not found or unusable) ***])
 
1384
    have_lcms="no (lcms not found or unusable)"
1233
1385
  fi
1234
1386
else
1235
 
  AC_MSG_WARN([*** color proof module will not be built (lcms support disabled) ***])
 
1387
  have_lcms="no (lcms support disabled)"
1236
1388
fi
1237
1389
 
1238
 
AC_SUBST(LCMS_LIBS)
 
1390
AC_SUBST(LCMS)
 
1391
AC_SUBST(LIBLCMS)
1239
1392
AM_CONDITIONAL(HAVE_LCMS, test $have_lcms = yes)
1240
1393
 
1241
1394
 
1243
1396
# Check for alsa
1244
1397
################
1245
1398
 
1246
 
AM_PATH_ALSA(alsa_required_version,
1247
 
             AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if alsa is available]),
1248
 
             AC_MSG_WARN([*** midi input controller will be built without alsa support (alsa not found or unuseable) ***]))
1249
 
 
1250
 
 
1251
 
#######################
1252
 
# Check for linux input
1253
 
#######################
1254
 
 
1255
 
AC_ARG_WITH(linux-input,
1256
 
              [  --without-linux-input   don't build linux input event controller module])
 
1399
have_alsa=no
 
1400
AC_ARG_WITH(alsa, [  --without-alsa          disable alsa support in midi input controller])
 
1401
 
 
1402
if test "x$with_alsa" != xno; then
 
1403
  have_alsa=yes
 
1404
  AM_PATH_ALSA(alsa_required_version,
 
1405
               AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if alsa is available]),
 
1406
               have_alsa="no (libasound not found or unusable)")
 
1407
fi
 
1408
 
 
1409
 
 
1410
#######################
 
1411
# Check for Linux Input
 
1412
#######################
 
1413
 
 
1414
AC_ARG_WITH(linux-input, [  --without-linux-input   don't build linux input event controller module])
1257
1415
 
1258
1416
have_linux_input=no
1259
1417
if test "x$with_linux_input" != "xno"; then
1263
1421
AM_CONDITIONAL(HAVE_LINUX_INPUT, test $have_linux_input = yes)
1264
1422
 
1265
1423
 
 
1424
###############################
 
1425
# Check for DirectX DirectInput
 
1426
###############################
 
1427
 
 
1428
AC_ARG_WITH(directx-sdk, [  --with-directx-sdk=PFX  prefix where the DirectX SDK is installed(optional)])
 
1429
 
 
1430
have_dx_dinput=no
 
1431
if test x"$os_win32" = xyes; then
 
1432
  case "$with_directx_sdk" in
 
1433
    *" "*) AC_MSG_WARN([The DirectX SDK should be accessible through a path without spaces. Use MSYS mounts. Ignoring your --with-directx-sdk switch.])
 
1434
           with_directx_sdk=;;
 
1435
    *\\*) AC_MSG_WARN([Use plain (forward) slashes only in your --with-directx-sdk switch. Ignoring your --with-directx-sdk switch.])
 
1436
           with_directx_sdk=;;
 
1437
  esac
 
1438
 
 
1439
  dinput_save_CPPFLAGS="$CPPFLAGS"
 
1440
  dinput_save_LDFLAGS="$CPPFLAGS"
 
1441
  if test "x$with_directx_sdk" != x; then
 
1442
    CPPFLAGS="-I $with_directx_sdk/Include $CPPFLAGS"
 
1443
    LDFLAGS="-L$with_directx_sdk/Lib/x86 $LDFLAGS"
 
1444
    AC_CHECK_HEADER(dinput.h,
 
1445
                    [AC_CHECK_LIB(dxguid, GUID_XAxis, have_dx_dinput=yes)])
 
1446
  fi
 
1447
 
 
1448
  if test "x$have_dx_dinput" = xyes; then
 
1449
    AC_DEFINE(HAVE_DX_DINPUT, 1, [Define to 1 if you have DirectX DirectInput headers and libraries])
 
1450
  else
 
1451
    CPPFLAGS="$dinput_save_CPPFLAGS"
 
1452
    LDFLAGS="$dinput_save_LDFLAGS"
 
1453
  fi
 
1454
fi
 
1455
 
 
1456
AM_CONDITIONAL(HAVE_DX_DINPUT, test $have_dx_dinput = yes)
 
1457
 
 
1458
 
 
1459
###############################
 
1460
# Check for D-Bus GLib bindings
 
1461
###############################
 
1462
 
 
1463
AC_ARG_WITH(dbus,  [  --without-dbus          build without D-Bus support])
 
1464
 
 
1465
have_dbus_glib="no (disabled)"
 
1466
 
 
1467
if test x$with_dbus != xno; then
 
1468
 
 
1469
PKG_CHECK_MODULES(DBUS_GLIB, dbus-glib-1 >= dbus_glib_required_version,
 
1470
  have_dbus_glib=yes,
 
1471
  AC_MSG_RESULT([no])
 
1472
  have_dbus_glib=no)
 
1473
 
 
1474
fi
 
1475
 
 
1476
if test "x$have_dbus_glib" = xyes; then
 
1477
  AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool, no)
 
1478
  if test x$DBUS_BINDING_TOOL = xno; then
 
1479
    AC_MSG_WARN([Could not find dbus-binding-tool in your PATH])
 
1480
    have_dbus_glib="no (dbus-binding-tool not found)"
 
1481
  fi
 
1482
fi
 
1483
 
 
1484
if test "x$have_dbus_glib" = xyes; then
 
1485
  AC_DEFINE(HAVE_DBUS_GLIB, 1,
 
1486
            [Define to 1 if D-Bus GLib bindings are available])
 
1487
  GIMP_COMMAND='gimp-gimp_app_version'
 
1488
fi
 
1489
 
 
1490
 
 
1491
###############################################
 
1492
# Check for libhal (Hardware Abstraction Layer)
 
1493
###############################################
 
1494
 
 
1495
have_libhal=no
 
1496
 
 
1497
if test "x$have_linux_input" = xyes && test "x$have_dbus_glib" = xyes; then
 
1498
  PKG_CHECK_MODULES(HAL, hal >= libhal_required_version,
 
1499
    have_libhal=yes,
 
1500
    AC_MSG_RESULT([no])
 
1501
    have_libhal="no (libhal not found)"
 
1502
    )
 
1503
fi
 
1504
 
 
1505
if test "x$have_libhal" = xyes; then
 
1506
  AC_DEFINE(HAVE_LIBHAL, 1, [Define to 1 if libhal is available])
 
1507
fi
 
1508
 
 
1509
 
1266
1510
############################################################
1267
1511
# GIF compression: Allow builder to specify at compile time
1268
1512
# which compression style she wants to use for GIFs.
1322
1566
 
1323
1567
dnl Pygimp configure stuff ...
1324
1568
AC_ARG_ENABLE(python,
1325
 
  AC_HELP_STRING([--enable-python],
1326
 
                 [build python extension (by default disabled)]),,
1327
 
  [enable_python=no])
 
1569
  AC_HELP_STRING([--disable-python],
 
1570
                 [do not build the python extension]))
1328
1571
 
 
1572
m4_define([pycheck_error], [
 
1573
*** Could not find $1.
 
1574
*** Please install $2, or skip building the python scripting extension by
 
1575
*** passing --disable-python to configure (but then you will not be able
 
1576
*** to use scripts for GIMP that are written in Python).])
1329
1577
 
1330
1578
if test "x$enable_python" != xno; then
 
1579
  enable_python="yes"
1331
1580
  dnl check for Python
1332
 
  AM_PATH_PYTHON(2.2)
1333
 
  AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
 
1581
  AM_PATH_PYTHON(2.3.5,,
 
1582
    [AC_MSG_ERROR([pycheck_error([Python 2.3.5 or better], [it])])])
 
1583
  AM_CHECK_PYTHON_HEADERS(,
 
1584
    [AC_MSG_ERROR([pycheck_error([Python headers], [them])])])
 
1585
 
 
1586
  dnl Win32 needs all symbols resolved for linking, even for DLLs
 
1587
  dnl Assume the link library is in $exec_prefix/libs
 
1588
  dnl This might be able to be figured out from distutils, but it's
 
1589
  dnl not documented so we won't rely on internal implementation
 
1590
  PYLINK_LIBS=
 
1591
  if test "x$platform_win32" = "xyes"; then
 
1592
    PYBIN_PATH="$py_exec_prefix\pythonw.exe"
 
1593
    PYTHON_INCLUDES=`$echo "$PYTHON_INCLUDES" | sed -e 's/\\\\/\\//g'`
 
1594
    py_exec_prefix=`echo "$py_exec_prefix" | sed -e 's/\\\\/\\//g'`
 
1595
    pylibversion=`echo $PYTHON_VERSION | sed -e 's/\\.//'`
 
1596
    PYLINK_LIBS="-L${py_exec_prefix}/libs -lpython${pylibversion}"
 
1597
  else
 
1598
    PYBIN_PATH="$PYTHON"
 
1599
  fi
 
1600
  AC_SUBST(PYLINK_LIBS)
 
1601
  AC_SUBST(PYBIN_PATH)
1334
1602
 
1335
1603
  dnl check for PyGTK
1336
 
  PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= pygtk_required_version)
1337
 
  AC_SUBST(PYGTK_CFLAGS)
 
1604
  PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= pygtk_required_version,,
 
1605
    [AC_MSG_ERROR([pycheck_error([PyGTK], [it])])])
 
1606
 
 
1607
  AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
 
1608
  if test "x$PYGTK_CODEGEN" = xno; then
 
1609
    AC_MSG_ERROR([pycheck_error([pygtk-codegen-2.0 script], [it])])
 
1610
  fi
 
1611
 
 
1612
  AC_MSG_CHECKING(for pygtk defs)
 
1613
  PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
 
1614
  AC_SUBST(PYGTK_DEFSDIR)
 
1615
  AC_MSG_RESULT($PYGTK_DEFSDIR)
1338
1616
 
1339
1617
  GIMP_DETECT_CFLAGS(PYGIMP_EXTRA_CFLAGS, '-fno-strict-aliasing')
1340
1618
  AC_SUBST(PYGIMP_EXTRA_CFLAGS)
1342
1620
AM_CONDITIONAL(BUILD_PYTHON, test "x$enable_python" != xno)
1343
1621
 
1344
1622
 
 
1623
#########################################
 
1624
# Check whether script_fu should be built
 
1625
#########################################
 
1626
 
 
1627
have_script_fu=yes
 
1628
AC_ARG_WITH(script-fu,
 
1629
  AC_HELP_STRING([--without-script-fu],
 
1630
                 [do not build the script-fu extension]))
 
1631
 
 
1632
if test "x$with_script_fu" = "xno"; then
 
1633
  have_script_fu="no (script-fu extension disabled)"
 
1634
fi
 
1635
AM_CONDITIONAL(BUILD_SCRIPT_FU, test "x$with_script_fu" != "xno")
 
1636
 
 
1637
 
1345
1638
###########################################################
1346
1639
# Some plug-ins don't build on Win32, others are Win32-only
1347
1640
###########################################################
1348
1641
 
1349
 
if test x"$os_win32" = xyes; then
1350
 
  WINCLIPBOARD='winclipboard$(EXEEXT)'
1351
 
  WINPRINT='winprint$(EXEEXT)'
1352
 
else
 
1642
if test x"$os_win32" = xno; then
1353
1643
  MAIL='mail$(EXEEXT)'
1354
1644
  SCREENSHOT='screenshot$(EXEEXT)'
1355
 
  URL='url$(EXEEXT)'
1356
1645
fi
1357
1646
 
1358
1647
AC_SUBST(MAIL)
1359
1648
AC_SUBST(SCREENSHOT)
1360
 
AC_SUBST(URL)
1361
 
AC_SUBST(WINCLIPBOARD)
1362
 
AC_SUBST(WINPRINT)
1363
 
AC_SUBST(WMF)
1364
1649
 
1365
1650
 
1366
1651
############################################################
1367
1652
# Check for Mac OS X TWAIN framework (can't build on Darwin)
1368
1653
############################################################
1369
1654
 
 
1655
mac_twain_ok=no
1370
1656
AC_MSG_CHECKING([checking for Mac OS X TWAIN support])
1371
1657
AC_TRY_CPP([
1372
1658
#include <Carbon/Carbon.h>
1373
1659
#include <TWAIN/TWAIN.h>
1374
 
],
1375
 
twain_ok=yes,
1376
 
twain_ok=no)
1377
 
AC_MSG_RESULT($twain_ok)
1378
 
AM_CONDITIONAL(HAVE_MAC_TWAIN, test x$twain_ok = xyes)
 
1660
], mac_twain_ok=yes)
 
1661
AC_MSG_RESULT($mac_twain_ok)
 
1662
AM_CONDITIONAL(HAVE_MAC_TWAIN, test x$mac_twain_ok = xyes)
1379
1663
 
1380
1664
 
1381
1665
##########################################################
1425
1709
AM_CONDITIONAL(DEFAULT_BINARY, test x$enable_default_binary = xyes)
1426
1710
 
1427
1711
 
1428
 
AC_ARG_ENABLE(gimp-console, [  --enable-gimp-console   build a console-only binary which does not link GTK+], , enable_gimp_console=no)
 
1712
AC_ARG_ENABLE(gimp-console, [  --enable-gimp-console   build a console-only binary which does not link GTK+], , enable_gimp_console=yes)
1429
1713
 
1430
 
AM_CONDITIONAL(ENABLE_GIMP_CONSOLE, test x$enable_gimp_console = xyes)
 
1714
AM_CONDITIONAL(ENABLE_GIMP_CONSOLE, test x$enable_gimp_console != xno)
1431
1715
 
1432
1716
 
1433
1717
dnl Possibly change default gimpdir from .gimp-major.minor
1452
1736
# GNU format message catalogs go into $datadir/locale,
1453
1737
# standard location is $libdir/locale. DATADIRNAME set accordingly.
1454
1738
 
1455
 
localedir="$datadir/locale"
 
1739
gimplocaledir="$datadir/locale"
1456
1740
if test "$DATADIRNAME" = "lib"; then
1457
 
   localedir="$libdir/locale"
 
1741
   gimplocaledir="$libdir/locale"
1458
1742
fi
1459
1743
 
1460
 
AC_SUBST(localedir)
 
1744
AC_SUBST(gimplocaledir)
1461
1745
 
1462
1746
 
1463
1747
############################
1477
1761
AC_SUBST(GIMP_MKENUMS)
1478
1762
 
1479
1763
 
1480
 
#############################
1481
 
# Disable deprecated GIMP API
1482
 
#############################
 
1764
#########################
 
1765
# Disable deprecated APIs
 
1766
#########################
1483
1767
 
1484
1768
CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED"
1485
1769
 
1486
 
##############################################################
1487
 
# Default to disable deprecated GTK+ stuff for 2.4.x and 2.6.x
1488
 
##############################################################
1489
 
 
1490
 
if test "x$have_glib_2_7" != "xyes"; then
 
1770
if test "x$have_glib_2_13" != "xyes"; then
1491
1771
  CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
1492
1772
fi
1493
1773
 
1494
 
if test "x$have_gtk_2_7" != "xyes"; then
 
1774
if test "x$have_gtk_2_11" != "xyes"; then
1495
1775
  CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
1496
1776
fi
1497
1777
 
1498
 
if test "x$have_pango_1_9" != "xyes"; then
 
1778
if test "x$have_pango_1_15" != "xyes"; then
1499
1779
  CPPFLAGS="${CPPFLAGS} -DPANGO_DISABLE_DEPRECATED"
1500
1780
fi
1501
1781
 
 
1782
 
1502
1783
############################
1503
1784
# Require multihead safe API
1504
1785
############################
1574
1855
regexrepl/Makefile
1575
1856
libgimp/Makefile
1576
1857
libgimpbase/Makefile
 
1858
libgimpconfig/Makefile
1577
1859
libgimpcolor/Makefile
1578
1860
libgimpmath/Makefile
1579
1861
libgimpmodule/Makefile
1600
1882
app/widgets/Makefile
1601
1883
app/xcf/Makefile
1602
1884
plug-ins/Makefile
1603
 
plug-ins/dbbrowser/Makefile
1604
1885
plug-ins/script-fu/Makefile
1605
 
plug-ins/script-fu/siod/Makefile
 
1886
plug-ins/script-fu/ftx/Makefile
 
1887
plug-ins/script-fu/re/Makefile
 
1888
plug-ins/script-fu/tinyscheme/Makefile
1606
1889
plug-ins/script-fu/scripts/Makefile
1607
1890
plug-ins/script-fu/scripts/images/Makefile
1608
1891
plug-ins/xjt/Makefile
1631
1914
plug-ins/ifscompose/Makefile
1632
1915
plug-ins/imagemap/Makefile
1633
1916
plug-ins/imagemap/images/Makefile
 
1917
plug-ins/jpeg/Makefile
1634
1918
plug-ins/maze/Makefile
 
1919
plug-ins/metadata/Makefile
1635
1920
plug-ins/pagecurl/Makefile
1636
1921
plug-ins/print/Makefile
1637
1922
plug-ins/pygimp/Makefile
1638
 
plug-ins/pygimp/doc/Makefile
1639
1923
plug-ins/pygimp/plug-ins/Makefile
1640
1924
plug-ins/rcm/Makefile
1641
1925
plug-ins/rcm/images/Makefile
1642
1926
plug-ins/sel2path/Makefile
1643
1927
plug-ins/sgi/Makefile
1644
1928
plug-ins/twain/Makefile
 
1929
plug-ins/uri/Makefile
1645
1930
plug-ins/winicon/Makefile
1646
1931
plug-ins/winsnap/Makefile
1647
1932
modules/Makefile
1652
1937
devel-docs/libgimp/version
1653
1938
devel-docs/libgimpbase/Makefile
1654
1939
devel-docs/libgimpbase/version
 
1940
devel-docs/libgimpconfig/Makefile
 
1941
devel-docs/libgimpconfig/version
1655
1942
devel-docs/libgimpcolor/Makefile
1656
1943
devel-docs/libgimpcolor/version
1657
1944
devel-docs/libgimpmath/Makefile
1662
1949
devel-docs/libgimpthumb/version
1663
1950
devel-docs/libgimpwidgets/Makefile
1664
1951
devel-docs/libgimpwidgets/version
 
1952
devel-docs/tools/Makefile
1665
1953
docs/Makefile
1666
1954
menus/Makefile
1667
 
tips/Makefile
1668
1955
cursors/Makefile
1669
1956
themes/Makefile
1670
1957
themes/Default/Makefile
1672
1959
themes/Default/images/preferences/Makefile
1673
1960
themes/Small/Makefile
1674
1961
data/Makefile
 
1962
data/brushes/Makefile
1675
1963
data/environ/Makefile
1676
 
data/misc/Makefile
1677
 
data/misc/gimp.desktop.in
1678
 
data/misc/gimp.keys
1679
 
data/misc/gimp.applications
 
1964
data/gradients/Makefile
1680
1965
data/images/Makefile
1681
 
data/brushes/Makefile
1682
 
data/gradients/Makefile
 
1966
data/interpreters/Makefile
1683
1967
data/palettes/Makefile
1684
1968
data/patterns/Makefile
 
1969
data/tips/Makefile
 
1970
desktop/Makefile
 
1971
desktop/gimp.applications
 
1972
desktop/gimp.desktop.in
 
1973
desktop/gimp.keys
1685
1974
etc/Makefile
1686
1975
m4macros/Makefile
1687
1976
po/Makefile.in
1688
1977
po-libgimp/Makefile.in
1689
1978
po-plug-ins/Makefile.in
 
1979
po-python/Makefile.in
1690
1980
po-script-fu/Makefile.in
 
1981
po-tips/Makefile.in
1691
1982
gimp-zip
1692
1983
Makefile
1693
1984
])
1709
2000
 
1710
2001
AC_CONFIG_COMMANDS([sed-po-makefiles],
1711
2002
[sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile
 
2003
sed -e "/POTFILES =/r po-python/POTFILES" po-python/Makefile.in > po-python/Makefile
1712
2004
sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile
1713
 
sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile])
 
2005
sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile
 
2006
sed -e "/POTFILES =/r po-tips/POTFILES" po-tips/Makefile.in > po-tips/Makefile])
1714
2007
 
1715
2008
AC_OUTPUT
 
2009
 
 
2010
dnl Print a summary of features enabled/disabled:
 
2011
AC_MSG_RESULT([
 
2012
Building GIMP with prefix=$prefix, datarootdir=$datarootdir
 
2013
Desktop files install into $DESKTOP_DATADIR
 
2014
 
 
2015
Extra Binaries:
 
2016
  gimp-console:        $enable_gimp_console
 
2017
  gimp-remote:         $enable_gimp_remote
 
2018
 
 
2019
Optional Features:
 
2020
  D-Bus service:       $have_dbus_glib
 
2021
 
 
2022
Optional Plug-Ins:
 
2023
  Ascii Art:           $have_libaa
 
2024
  Help Browser:        $have_gtkhtml2
 
2025
  LCMS:                $have_lcms
 
2026
  JPEG:                $jpeg_ok
 
2027
  MNG:                 $have_libmng
 
2028
  PDF:                 $have_poppler
 
2029
  PNG:                 $have_libpng
 
2030
  Print:               $enable_print
 
2031
  PSP:                 $have_zlib
 
2032
  Python:              $enable_python
 
2033
  Script-Fu:           $have_script_fu
 
2034
  SVG:                 $have_librsvg
 
2035
  TIFF:                $have_libtiff
 
2036
  TWAIN (MacOS X):     $mac_twain_ok
 
2037
  TWAIN (Win32):       $os_win32
 
2038
  URI:                 $uri_plugin
 
2039
  Windows ICO          $have_libpng
 
2040
  WMF:                 $have_libwmf
 
2041
  XJT:                 $have_xjt
 
2042
  XPM:                 $have_libxpm
 
2043
 
 
2044
Plug-In Features:
 
2045
  EXIF support:        $have_libexif
 
2046
  GNOME UI:            $have_gnomeui
 
2047
  GNOME keyring:       $have_gnome_keyring
 
2048
 
 
2049
Optional Modules:
 
2050
  ALSA (MIDI Input):   $have_alsa
 
2051
  Linux Input:         $have_linux_input (HAL support: $have_libhal)
 
2052
  DirectInput (Win32): $have_dx_dinput
 
2053
  Color Correction:    $have_lcms
 
2054
  Soft Proof:          $have_lcms
 
2055
]);