~ubuntu-branches/ubuntu/precise/gnome-icon-theme/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2009-09-22 14:01:52 UTC
  • mfrom: (1.1.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20090922140152-qkacrhpspdznj3s3
Tags: 2.28.0-0ubuntu1
New upstream release: (LP: #434429)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
 
17
[m4_warning([this file was generated for autoconf 2.64.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
452
452
fi])
453
453
 
454
454
 
455
 
 
456
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
457
 
# serial 40 IT_PROG_INTLTOOL
458
 
AC_DEFUN([IT_PROG_INTLTOOL], [
459
 
AC_PREREQ([2.50])dnl
460
 
AC_REQUIRE([AM_NLS])dnl
461
 
 
462
 
case "$am__api_version" in
463
 
    1.[01234])
464
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
465
 
    ;;
466
 
    *)
467
 
    ;;
468
 
esac
469
 
 
470
 
if test -n "$1"; then
471
 
    AC_MSG_CHECKING([for intltool >= $1])
472
 
 
473
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
474
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
475
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
476
 
    ]
477
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
478
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
479
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
480
 
fi
481
 
 
482
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
483
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
484
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
485
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
486
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
487
 
fi
488
 
 
489
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
490
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
491
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
492
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
493
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
494
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
495
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
496
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
497
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
498
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
499
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
500
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
501
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
502
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
503
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
504
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
505
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
506
 
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
507
 
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
508
 
 
509
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
510
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
511
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
512
 
_IT_SUBST(INTLTOOL_PROP_RULE)
513
 
_IT_SUBST(INTLTOOL_OAF_RULE)
514
 
_IT_SUBST(INTLTOOL_PONG_RULE)
515
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
516
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
517
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
518
 
_IT_SUBST(INTLTOOL_UI_RULE)
519
 
_IT_SUBST(INTLTOOL_XAM_RULE)
520
 
_IT_SUBST(INTLTOOL_KBD_RULE)
521
 
_IT_SUBST(INTLTOOL_XML_RULE)
522
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
523
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
524
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
525
 
_IT_SUBST(INTLTOOL_THEME_RULE)
526
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
527
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
528
 
 
529
 
# Check the gettext tools to make sure they are GNU
530
 
AC_PATH_PROG(XGETTEXT, xgettext)
531
 
AC_PATH_PROG(MSGMERGE, msgmerge)
532
 
AC_PATH_PROG(MSGFMT, msgfmt)
533
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
534
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
535
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
536
 
fi
537
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
538
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
539
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
540
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
541
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
542
 
fi
543
 
 
544
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
545
 
if test -z "$INTLTOOL_PERL"; then
546
 
   AC_MSG_ERROR([perl not found])
547
 
fi
548
 
AC_MSG_CHECKING([for perl >= 5.8.1])
549
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
550
 
if test $? -ne 0; then
551
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
552
 
else
553
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
554
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
555
 
fi
556
 
if test "x$2" != "xno-xml"; then
557
 
   AC_MSG_CHECKING([for XML::Parser])
558
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
559
 
       AC_MSG_RESULT([ok])
560
 
   else
561
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
562
 
   fi
563
 
fi
564
 
 
565
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
566
 
AC_SUBST(ALL_LINGUAS)
567
 
 
568
 
# Set DATADIRNAME correctly if it is not set yet
569
 
# (copied from glib-gettext.m4)
570
 
if test -z "$DATADIRNAME"; then
571
 
  AC_LINK_IFELSE(
572
 
    [AC_LANG_PROGRAM([[]],
573
 
                     [[extern int _nl_msg_cat_cntr;
574
 
                       return _nl_msg_cat_cntr]])],
575
 
    [DATADIRNAME=share],
576
 
    [case $host in
577
 
    *-*-solaris*)
578
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
579
 
    dnl GNU format message catalog is always supported,
580
 
    dnl since both are added to the libc all together.
581
 
    dnl Hence, we'd like to go with DATADIRNAME=share
582
 
    dnl in this case.
583
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
584
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
585
 
    ;;
586
 
    *)
587
 
    [DATADIRNAME=lib]
588
 
    ;;
589
 
    esac])
590
 
fi
591
 
AC_SUBST(DATADIRNAME)
592
 
 
593
 
IT_PO_SUBDIR([po])
594
 
 
595
 
])
596
 
 
597
 
 
598
 
# IT_PO_SUBDIR(DIRNAME)
599
 
# ---------------------
600
 
# All po subdirs have to be declared with this macro; the subdir "po" is
601
 
# declared by IT_PROG_INTLTOOL.
602
 
#
603
 
AC_DEFUN([IT_PO_SUBDIR],
604
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
605
 
dnl
606
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
607
 
dnl of config.status.
608
 
AC_CONFIG_COMMANDS_PRE([
609
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
610
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
611
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
612
 
    fi
613
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
614
 
    >"$1/stamp-it.tmp"
615
 
    [sed '/^#/d
616
 
         s/^[[].*] *//
617
 
         /^[    ]*$/d
618
 
        '"s|^|  $ac_top_srcdir/|" \
619
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
620
 
    ]
621
 
    [sed '/^POTFILES =/,/[^\\]$/ {
622
 
                /^POTFILES =/!d
623
 
                r $1/POTFILES
624
 
          }
625
 
         ' "$1/Makefile.in" >"$1/Makefile"]
626
 
    rm -f "$1/Makefile.tmp"
627
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
628
 
  ])
629
 
])dnl
630
 
])
631
 
 
632
 
# _IT_SUBST(VARIABLE)
633
 
# -------------------
634
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
635
 
#
636
 
AC_DEFUN([_IT_SUBST],
637
 
[
638
 
AC_SUBST([$1])
639
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
640
 
]
641
 
)
642
 
 
643
 
# deprecated macros
644
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
645
 
# A hint is needed for aclocal from Automake <= 1.9.4:
646
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
647
 
 
648
 
 
649
455
# nls.m4 serial 3 (gettext-0.15)
650
456
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
651
457
dnl This file is free software; the Free Software Foundation
848
654
# generated from the m4 files accompanying Automake X.Y.
849
655
# (This private macro should not be called outside this file.)
850
656
AC_DEFUN([AM_AUTOMAKE_VERSION],
851
 
[am__api_version='1.10'
 
657
[am__api_version='1.11'
852
658
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
853
659
dnl require some minimum version.  Point them to the right macro.
854
 
m4_if([$1], [1.10.2], [],
 
660
m4_if([$1], [1.11], [],
855
661
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
856
662
])
857
663
 
867
673
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
868
674
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
869
675
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
870
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
676
[AM_AUTOMAKE_VERSION([1.11])dnl
871
677
m4_ifndef([AC_AUTOCONF_VERSION],
872
678
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
873
679
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
927
733
 
928
734
# AM_CONDITIONAL                                            -*- Autoconf -*-
929
735
 
930
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
736
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
931
737
# Free Software Foundation, Inc.
932
738
#
933
739
# This file is free software; the Free Software Foundation
934
740
# gives unlimited permission to copy and/or distribute it,
935
741
# with or without modifications, as long as this notice is preserved.
936
742
 
937
 
# serial 8
 
743
# serial 9
938
744
 
939
745
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
940
746
# -------------------------------------
947
753
AC_SUBST([$1_FALSE])dnl
948
754
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
949
755
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
756
m4_define([_AM_COND_VALUE_$1], [$2])dnl
950
757
if $2; then
951
758
  $1_TRUE=
952
759
  $1_FALSE='#'
960
767
Usually this means the macro was only invoked conditionally.]])
961
768
fi])])
962
769
 
963
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
770
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
964
771
# Free Software Foundation, Inc.
965
772
#
966
773
# This file is free software; the Free Software Foundation
967
774
# gives unlimited permission to copy and/or distribute it,
968
775
# with or without modifications, as long as this notice is preserved.
969
776
 
970
 
# serial 9
 
777
# serial 10
971
778
 
972
779
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
973
780
# written in clear, in which case automake, when reading aclocal.m4,
1024
831
  if test "$am_compiler_list" = ""; then
1025
832
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1026
833
  fi
 
834
  am__universal=false
 
835
  m4_case([$1], [CC],
 
836
    [case " $depcc " in #(
 
837
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
838
     esac],
 
839
    [CXX],
 
840
    [case " $depcc " in #(
 
841
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
842
     esac])
 
843
 
1027
844
  for depmode in $am_compiler_list; do
1028
845
    # Setup a source with many dependencies, because some compilers
1029
846
    # like to wrap large dependency lists on column 80 (with \), and
1041
858
    done
1042
859
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1043
860
 
 
861
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
862
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
863
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
864
    # versions had trouble with output in subdirs
 
865
    am__obj=sub/conftest.${OBJEXT-o}
 
866
    am__minus_obj="-o $am__obj"
1044
867
    case $depmode in
 
868
    gcc)
 
869
      # This depmode causes a compiler race in universal mode.
 
870
      test "$am__universal" = false || continue
 
871
      ;;
1045
872
    nosideeffect)
1046
873
      # after this tag, mechanisms are not by side-effect, so they'll
1047
874
      # only be used when explicitly requested
1051
878
        break
1052
879
      fi
1053
880
      ;;
 
881
    msvisualcpp | msvcmsys)
 
882
      # This compiler won't grok `-c -o', but also, the minuso test has
 
883
      # not run yet.  These depmodes are late enough in the game, and
 
884
      # so weak that their functioning should not be impacted.
 
885
      am__obj=conftest.${OBJEXT-o}
 
886
      am__minus_obj=
 
887
      ;;
1054
888
    none) break ;;
1055
889
    esac
1056
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
1057
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
1058
 
    # handle `-M -o', and we need to detect this.
1059
890
    if depmode=$depmode \
1060
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
891
       source=sub/conftest.c object=$am__obj \
1061
892
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1062
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
893
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1063
894
         >/dev/null 2>conftest.err &&
1064
895
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1065
896
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1066
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
897
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1067
898
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1068
899
      # icc doesn't choke on unknown options, it will just issue warnings
1069
900
      # or remarks (even with -Werror).  So we grep stderr for any message
1201
1032
# Do all the work for Automake.                             -*- Autoconf -*-
1202
1033
 
1203
1034
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1204
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
1035
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1205
1036
#
1206
1037
# This file is free software; the Free Software Foundation
1207
1038
# gives unlimited permission to copy and/or distribute it,
1208
1039
# with or without modifications, as long as this notice is preserved.
1209
1040
 
1210
 
# serial 13
 
1041
# serial 16
1211
1042
 
1212
1043
# This macro actually does too much.  Some checks are only needed if
1213
1044
# your package does certain things.  But this isn't really a big deal.
1224
1055
# arguments mandatory, and then we can depend on a new Autoconf
1225
1056
# release and drop the old call support.
1226
1057
AC_DEFUN([AM_INIT_AUTOMAKE],
1227
 
[AC_PREREQ([2.60])dnl
 
1058
[AC_PREREQ([2.62])dnl
1228
1059
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
1229
1060
dnl the ones we care about.
1230
1061
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1275
1106
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1276
1107
AM_MISSING_PROG(AUTOHEADER, autoheader)
1277
1108
AM_MISSING_PROG(MAKEINFO, makeinfo)
1278
 
AM_PROG_INSTALL_SH
1279
 
AM_PROG_INSTALL_STRIP
 
1109
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1110
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1280
1111
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1281
1112
# We need awk for the "check" target.  The system "awk" is bad on
1282
1113
# some platforms.
1284
1115
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1285
1116
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1286
1117
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1287
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1288
 
                             [_AM_PROG_TAR([v7])])])
 
1118
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1119
                             [_AM_PROG_TAR([v7])])])
1289
1120
_AM_IF_OPTION([no-dependencies],,
1290
1121
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1291
 
                  [_AM_DEPENDENCIES(CC)],
1292
 
                  [define([AC_PROG_CC],
1293
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1122
                  [_AM_DEPENDENCIES(CC)],
 
1123
                  [define([AC_PROG_CC],
 
1124
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1294
1125
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1295
 
                  [_AM_DEPENDENCIES(CXX)],
1296
 
                  [define([AC_PROG_CXX],
1297
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1126
                  [_AM_DEPENDENCIES(CXX)],
 
1127
                  [define([AC_PROG_CXX],
 
1128
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1298
1129
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1299
 
                  [_AM_DEPENDENCIES(OBJC)],
1300
 
                  [define([AC_PROG_OBJC],
1301
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1302
 
])
1303
 
])
 
1130
                  [_AM_DEPENDENCIES(OBJC)],
 
1131
                  [define([AC_PROG_OBJC],
 
1132
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1133
])
 
1134
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1135
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1136
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1137
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1138
AC_CONFIG_COMMANDS_PRE(dnl
 
1139
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1140
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1141
])
 
1142
 
 
1143
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1144
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1145
dnl mangled by Autoconf and run in a shell conditional statement.
 
1146
m4_define([_AC_COMPILER_EXEEXT],
 
1147
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1304
1148
 
1305
1149
 
1306
1150
# When config.status generates a header, we must update the stamp-h file.
1324
1168
done
1325
1169
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1326
1170
 
1327
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1171
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
1328
1172
#
1329
1173
# This file is free software; the Free Software Foundation
1330
1174
# gives unlimited permission to copy and/or distribute it,
1335
1179
# Define $install_sh.
1336
1180
AC_DEFUN([AM_PROG_INSTALL_SH],
1337
1181
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1338
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
1182
if test x"${install_sh}" != xset; then
 
1183
  case $am_aux_dir in
 
1184
  *\ * | *\     *)
 
1185
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1186
  *)
 
1187
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1188
  esac
 
1189
fi
1339
1190
AC_SUBST(install_sh)])
1340
1191
 
1341
1192
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1361
1212
 
1362
1213
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1363
1214
 
1364
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1215
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
1365
1216
#
1366
1217
# This file is free software; the Free Software Foundation
1367
1218
# gives unlimited permission to copy and/or distribute it,
1368
1219
# with or without modifications, as long as this notice is preserved.
1369
1220
 
1370
 
# serial 3
 
1221
# serial 4
1371
1222
 
1372
1223
# AM_MAKE_INCLUDE()
1373
1224
# -----------------
1376
1227
[am_make=${MAKE-make}
1377
1228
cat > confinc << 'END'
1378
1229
am__doit:
1379
 
        @echo done
 
1230
        @echo this is the am__doit target
1380
1231
.PHONY: am__doit
1381
1232
END
1382
1233
# If we don't find an include directive, just comment out the code.
1386
1237
_am_result=none
1387
1238
# First try GNU make style include.
1388
1239
echo "include confinc" > confmf
1389
 
# We grep out `Entering directory' and `Leaving directory'
1390
 
# messages which can occur if `w' ends up in MAKEFLAGS.
1391
 
# In particular we don't look at `^make:' because GNU make might
1392
 
# be invoked under some other name (usually "gmake"), in which
1393
 
# case it prints its new name instead of `make'.
1394
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1395
 
   am__include=include
1396
 
   am__quote=
1397
 
   _am_result=GNU
1398
 
fi
 
1240
# Ignore all kinds of additional output from `make'.
 
1241
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1242
*the\ am__doit\ target*)
 
1243
  am__include=include
 
1244
  am__quote=
 
1245
  _am_result=GNU
 
1246
  ;;
 
1247
esac
1399
1248
# Now try BSD make style include.
1400
1249
if test "$am__include" = "#"; then
1401
1250
   echo '.include "confinc"' > confmf
1402
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1403
 
      am__include=.include
1404
 
      am__quote="\""
1405
 
      _am_result=BSD
1406
 
   fi
 
1251
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1252
   *the\ am__doit\ target*)
 
1253
     am__include=.include
 
1254
     am__quote="\""
 
1255
     _am_result=BSD
 
1256
     ;;
 
1257
   esac
1407
1258
fi
1408
1259
AC_SUBST([am__include])
1409
1260
AC_SUBST([am__quote])
1413
1264
 
1414
1265
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1415
1266
 
1416
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
1267
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1417
1268
# Free Software Foundation, Inc.
1418
1269
#
1419
1270
# This file is free software; the Free Software Foundation
1420
1271
# gives unlimited permission to copy and/or distribute it,
1421
1272
# with or without modifications, as long as this notice is preserved.
1422
1273
 
1423
 
# serial 5
 
1274
# serial 6
1424
1275
 
1425
1276
# AM_MISSING_PROG(NAME, PROGRAM)
1426
1277
# ------------------------------
1437
1288
AC_DEFUN([AM_MISSING_HAS_RUN],
1438
1289
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1439
1290
AC_REQUIRE_AUX_FILE([missing])dnl
1440
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1291
if test x"${MISSING+set}" != xset; then
 
1292
  case $am_aux_dir in
 
1293
  *\ * | *\     *)
 
1294
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1295
  *)
 
1296
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1297
  esac
 
1298
fi
1441
1299
# Use eval to expand $SHELL
1442
1300
if eval "$MISSING --run true"; then
1443
1301
  am_missing_run="$MISSING --run "
1525
1383
 
1526
1384
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1527
1385
 
1528
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1386
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1529
1387
# Free Software Foundation, Inc.
1530
1388
#
1531
1389
# This file is free software; the Free Software Foundation
1532
1390
# gives unlimited permission to copy and/or distribute it,
1533
1391
# with or without modifications, as long as this notice is preserved.
1534
1392
 
1535
 
# serial 4
 
1393
# serial 5
1536
1394
 
1537
1395
# AM_SANITY_CHECK
1538
1396
# ---------------
1541
1399
# Just in case
1542
1400
sleep 1
1543
1401
echo timestamp > conftest.file
 
1402
# Reject unsafe characters in $srcdir or the absolute working directory
 
1403
# name.  Accept space and tab only in the latter.
 
1404
am_lf='
 
1405
'
 
1406
case `pwd` in
 
1407
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1408
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1409
esac
 
1410
case $srcdir in
 
1411
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1412
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1413
esac
 
1414
 
1544
1415
# Do `set' in a subshell so we don't clobber the current shell's
1545
1416
# arguments.  Must try -L first in case configure is actually a
1546
1417
# symlink; some systems play weird games with the mod time of symlinks
1547
1418
# (eg FreeBSD returns the mod time of the symlink's containing
1548
1419
# directory).
1549
1420
if (
1550
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1421
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1551
1422
   if test "$[*]" = "X"; then
1552
1423
      # -L didn't work.
1553
 
      set X `ls -t $srcdir/configure conftest.file`
 
1424
      set X `ls -t "$srcdir/configure" conftest.file`
1554
1425
   fi
1555
1426
   rm -f conftest.file
1556
1427
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1603
1474
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1604
1475
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1605
1476
 
1606
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1477
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
1607
1478
#
1608
1479
# This file is free software; the Free Software Foundation
1609
1480
# gives unlimited permission to copy and/or distribute it,
1610
1481
# with or without modifications, as long as this notice is preserved.
1611
1482
 
 
1483
# serial 2
 
1484
 
1612
1485
# _AM_SUBST_NOTMAKE(VARIABLE)
1613
1486
# ---------------------------
1614
1487
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1615
1488
# This macro is traced by Automake.
1616
1489
AC_DEFUN([_AM_SUBST_NOTMAKE])
1617
1490
 
 
1491
# AM_SUBST_NOTMAKE(VARIABLE)
 
1492
# ---------------------------
 
1493
# Public sister of _AM_SUBST_NOTMAKE.
 
1494
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1495
 
1618
1496
# Check how to create a tarball.                            -*- Autoconf -*-
1619
1497
 
1620
1498
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1711
1589
AC_SUBST([am__untar])
1712
1590
]) # _AM_PROG_TAR
1713
1591
 
 
1592
 
 
1593
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
1594
# serial 40 IT_PROG_INTLTOOL
 
1595
AC_DEFUN([IT_PROG_INTLTOOL], [
 
1596
AC_PREREQ([2.50])dnl
 
1597
AC_REQUIRE([AM_NLS])dnl
 
1598
 
 
1599
case "$am__api_version" in
 
1600
    1.[01234])
 
1601
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
1602
    ;;
 
1603
    *)
 
1604
    ;;
 
1605
esac
 
1606
 
 
1607
if test -n "$1"; then
 
1608
    AC_MSG_CHECKING([for intltool >= $1])
 
1609
 
 
1610
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1611
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
1612
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1613
    ]
 
1614
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
1615
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
1616
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
1617
fi
 
1618
 
 
1619
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
1620
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
1621
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
1622
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
1623
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
1624
fi
 
1625
 
 
1626
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1627
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1628
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1629
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1630
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
1631
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1632
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1633
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1634
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1635
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1636
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1637
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
1638
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1639
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1640
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1641
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1642
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1643
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
1644
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
1645
 
 
1646
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
1647
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
1648
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
1649
_IT_SUBST(INTLTOOL_PROP_RULE)
 
1650
_IT_SUBST(INTLTOOL_OAF_RULE)
 
1651
_IT_SUBST(INTLTOOL_PONG_RULE)
 
1652
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
1653
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
1654
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
1655
_IT_SUBST(INTLTOOL_UI_RULE)
 
1656
_IT_SUBST(INTLTOOL_XAM_RULE)
 
1657
_IT_SUBST(INTLTOOL_KBD_RULE)
 
1658
_IT_SUBST(INTLTOOL_XML_RULE)
 
1659
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
1660
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
1661
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
1662
_IT_SUBST(INTLTOOL_THEME_RULE)
 
1663
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
1664
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
1665
 
 
1666
# Check the gettext tools to make sure they are GNU
 
1667
AC_PATH_PROG(XGETTEXT, xgettext)
 
1668
AC_PATH_PROG(MSGMERGE, msgmerge)
 
1669
AC_PATH_PROG(MSGFMT, msgfmt)
 
1670
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
1671
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
1672
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
1673
fi
 
1674
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
1675
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
1676
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
1677
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
1678
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
1679
fi
 
1680
 
 
1681
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
1682
if test -z "$INTLTOOL_PERL"; then
 
1683
   AC_MSG_ERROR([perl not found])
 
1684
fi
 
1685
AC_MSG_CHECKING([for perl >= 5.8.1])
 
1686
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
1687
if test $? -ne 0; then
 
1688
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
1689
else
 
1690
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
1691
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
1692
fi
 
1693
if test "x$2" != "xno-xml"; then
 
1694
   AC_MSG_CHECKING([for XML::Parser])
 
1695
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
1696
       AC_MSG_RESULT([ok])
 
1697
   else
 
1698
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
1699
   fi
 
1700
fi
 
1701
 
 
1702
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
1703
AC_SUBST(ALL_LINGUAS)
 
1704
 
 
1705
# Set DATADIRNAME correctly if it is not set yet
 
1706
# (copied from glib-gettext.m4)
 
1707
if test -z "$DATADIRNAME"; then
 
1708
  AC_LINK_IFELSE(
 
1709
    [AC_LANG_PROGRAM([[]],
 
1710
                     [[extern int _nl_msg_cat_cntr;
 
1711
                       return _nl_msg_cat_cntr]])],
 
1712
    [DATADIRNAME=share],
 
1713
    [case $host in
 
1714
    *-*-solaris*)
 
1715
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
1716
    dnl GNU format message catalog is always supported,
 
1717
    dnl since both are added to the libc all together.
 
1718
    dnl Hence, we'd like to go with DATADIRNAME=share
 
1719
    dnl in this case.
 
1720
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
1721
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
1722
    ;;
 
1723
    *)
 
1724
    [DATADIRNAME=lib]
 
1725
    ;;
 
1726
    esac])
 
1727
fi
 
1728
AC_SUBST(DATADIRNAME)
 
1729
 
 
1730
IT_PO_SUBDIR([po])
 
1731
 
 
1732
])
 
1733
 
 
1734
 
 
1735
# IT_PO_SUBDIR(DIRNAME)
 
1736
# ---------------------
 
1737
# All po subdirs have to be declared with this macro; the subdir "po" is
 
1738
# declared by IT_PROG_INTLTOOL.
 
1739
#
 
1740
AC_DEFUN([IT_PO_SUBDIR],
 
1741
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
1742
dnl
 
1743
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
1744
dnl of config.status.
 
1745
AC_CONFIG_COMMANDS_PRE([
 
1746
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
1747
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
1748
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
1749
    fi
 
1750
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
1751
    >"$1/stamp-it.tmp"
 
1752
    [sed '/^#/d
 
1753
         s/^[[].*] *//
 
1754
         /^[    ]*$/d
 
1755
        '"s|^|  $ac_top_srcdir/|" \
 
1756
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
1757
    ]
 
1758
    [sed '/^POTFILES =/,/[^\\]$/ {
 
1759
                /^POTFILES =/!d
 
1760
                r $1/POTFILES
 
1761
          }
 
1762
         ' "$1/Makefile.in" >"$1/Makefile"]
 
1763
    rm -f "$1/Makefile.tmp"
 
1764
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
1765
  ])
 
1766
])dnl
 
1767
])
 
1768
 
 
1769
# _IT_SUBST(VARIABLE)
 
1770
# -------------------
 
1771
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
1772
#
 
1773
AC_DEFUN([_IT_SUBST],
 
1774
[
 
1775
AC_SUBST([$1])
 
1776
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
1777
]
 
1778
)
 
1779
 
 
1780
# deprecated macros
 
1781
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
1782
# A hint is needed for aclocal from Automake <= 1.9.4:
 
1783
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
1784
 
 
1785