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

« back to all changes in this revision

Viewing changes to aclocal.m4

  • 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:
44
44
      esac
45
45
  done
46
46
 
47
 
  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
47
  PKG_PROG_PKG_CONFIG([0.7])
48
48
 
49
49
  no_glib=""
50
50
 
51
 
  if test x$PKG_CONFIG != xno ; then
52
 
    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
53
 
      :
54
 
    else
55
 
      echo *** pkg-config too old; version 0.7 or better required.
56
 
      no_glib=yes
57
 
      PKG_CONFIG=no
58
 
    fi
59
 
  else
 
51
  if test "x$PKG_CONFIG" = x ; then
60
52
    no_glib=yes
 
53
    PKG_CONFIG=no
61
54
  fi
62
55
 
63
56
  min_glib_version=ifelse([$1], ,2.0.0,$1)
330
323
#-----------------
331
324
glib_DEFUN([GLIB_WITH_NLS],
332
325
  dnl NLS is obligatory
333
 
  [USE_NLS=yes
 
326
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
327
    USE_NLS=yes
334
328
    AC_SUBST(USE_NLS)
335
329
 
336
330
    gt_cv_have_gettext=no
434
428
          glib_save_LIBS="$LIBS"
435
429
          LIBS="$LIBS $INTLLIBS"
436
430
          AC_CHECK_FUNCS(dcgettext)
 
431
          MSGFMT_OPTS=
 
432
          AC_MSG_CHECKING([if msgfmt accepts -c])
 
433
          GLIB_RUN_PROG([msgfmt -c -o /dev/null],[
 
434
msgid ""
 
435
msgstr ""
 
436
"Content-Type: text/plain; charset=UTF-8\n"
 
437
"Project-Id-Version: test 1.0\n"
 
438
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
 
439
"Last-Translator: test <foo@bar.xx>\n"
 
440
"Language-Team: C <LL@li.org>\n"
 
441
"MIME-Version: 1.0\n"
 
442
"Content-Transfer-Encoding: 8bit\n"
 
443
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
 
444
          AC_SUBST(MSGFMT_OPTS)
437
445
          AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
438
446
          GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
439
447
            [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
605
613
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
606
614
glib_save_prefix="$prefix"
607
615
glib_save_exec_prefix="$exec_prefix"
 
616
glib_save_datarootdir="$datarootdir"
608
617
test "x$prefix" = xNONE && prefix=$ac_default_prefix
609
618
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
619
datarootdir=`eval echo "${datarootdir}"`
610
620
if test "x$CATOBJEXT" = "x.mo" ; then
611
621
  localedir=`eval echo "${libdir}/locale"`
612
622
else
614
624
fi
615
625
prefix="$glib_save_prefix"
616
626
exec_prefix="$glib_save_exec_prefix"
 
627
datarootdir="$glib_save_datarootdir"
617
628
AC_DEFINE_UNQUOTED($1, "$localedir",
618
629
  [Define the location where the catalogs will be installed])
619
630
])
626
637
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
627
638
])dnl
628
639
 
 
640
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
 
641
 
642
# Create a temporary file with TEST-FILE as its contents and pass the
 
643
# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
 
644
# 0 and perform ACTION-IF-FAIL for any other exit status.
 
645
AC_DEFUN([GLIB_RUN_PROG],
 
646
[cat >conftest.foo <<_ACEOF
 
647
$2
 
648
_ACEOF
 
649
if AC_RUN_LOG([$1 conftest.foo]); then
 
650
  m4_ifval([$3], [$3], [:])
 
651
m4_ifvaln([$4], [else $4])dnl
 
652
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
 
653
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
 
654
fi])
 
655
 
 
656
 
629
657
# Configure paths for GTK+
630
658
# Owen Taylor     1997-2001
631
659
 
915
943
 
916
944
# Substitute ALL_LINGUAS so we can use it in po/Makefile
917
945
AC_SUBST(ALL_LINGUAS)
918
 
    
 
946
 
 
947
# Set DATADIRNAME correctly if it is not set yet
 
948
# (copied from glib-gettext.m4)
 
949
if test -z "$DATADIRNAME"; then
 
950
  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
 
951
                 return _nl_msg_cat_cntr],
 
952
    [DATADIRNAME=share],
 
953
    [case $host in
 
954
    *-*-solaris*)
 
955
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
956
    dnl GNU format message catalog is always supported,
 
957
    dnl since both are added to the libc all together.
 
958
    dnl Hence, we'd like to go with DATADIRNAME=share
 
959
    dnl in this case.
 
960
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
961
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
962
    ;;
 
963
    *)
 
964
    [DATADIRNAME=lib]
 
965
    ;;
 
966
    esac])
 
967
fi
 
968
AC_SUBST(DATADIRNAME)
 
969
 
919
970
IT_PO_SUBDIR([po])
920
971
 
921
972
dnl The following is very similar to
7512
7563
 
7513
7564
_PKG_TEXT
7514
7565
])],
7515
 
                [$4])
 
7566
                [AC_MSG_RESULT([no])
 
7567
                $4])
7516
7568
elif test $pkg_failed = untried; then
7517
7569
        ifelse([$4], , [AC_MSG_FAILURE(dnl
7518
7570
[The pkg-config script could not be found or is too old.  Make sure it