~ubuntu-branches/ubuntu/feisty/avidemux/feisty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2005-05-25 13:02:29 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050525130229-jw94cav0yhmg7vjw
Tags: 1:2.0.40-0.0
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
14
 
# gettext.m4 serial 20 (gettext-0.12)
 
14
# gettext.m4 serial 28 (gettext-0.13)
15
15
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
16
16
dnl This file is free software, distributed under the terms of the GNU
17
17
dnl General Public License.  As a special exception to the GNU General
367
367
  AC_REQUIRE([AC_ISC_POSIX])dnl
368
368
  AC_REQUIRE([AC_HEADER_STDC])dnl
369
369
  AC_REQUIRE([AC_C_CONST])dnl
 
370
  AC_REQUIRE([bh_C_SIGNED])dnl
370
371
  AC_REQUIRE([AC_C_INLINE])dnl
371
372
  AC_REQUIRE([AC_TYPE_OFF_T])dnl
372
373
  AC_REQUIRE([AC_TYPE_SIZE_T])dnl
 
374
  AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl
 
375
  AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
 
376
  AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
 
377
  AC_REQUIRE([gt_TYPE_WINT_T])dnl
 
378
  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
 
379
  AC_REQUIRE([jm_AC_HEADER_STDINT_H])
 
380
  AC_REQUIRE([gt_TYPE_INTMAX_T])
 
381
  AC_REQUIRE([gt_PRINTF_POSIX])
373
382
  AC_REQUIRE([AC_FUNC_ALLOCA])dnl
374
383
  AC_REQUIRE([AC_FUNC_MMAP])dnl
375
384
  AC_REQUIRE([jm_GLIBC21])dnl
377
386
  AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
378
387
  AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
379
388
  AC_REQUIRE([gt_INTTYPES_PRI])dnl
 
389
  AC_REQUIRE([gl_XSIZE])dnl
380
390
 
 
391
  AC_CHECK_TYPE([ptrdiff_t], ,
 
392
    [AC_DEFINE([ptrdiff_t], [long],
 
393
       [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
 
394
    ])
381
395
  AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
382
396
stdlib.h string.h unistd.h sys/param.h])
383
 
  AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
384
 
geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
385
 
strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
 
397
  AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
 
398
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
 
399
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
386
400
__fsetlocking])
387
401
 
 
402
  dnl Use the _snprintf function only if it is declared (because on NetBSD it
 
403
  dnl is defined as a weak alias of snprintf; we prefer to use the latter).
 
404
  gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
 
405
  gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
 
406
 
 
407
  dnl Use the *_unlocked functions only if they are declared.
 
408
  dnl (because some of them were defined without being declared in Solaris
 
409
  dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
 
410
  dnl on Solaris 2.5.1 to run on Solaris 2.6).
 
411
  dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
 
412
  gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
 
413
  gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
 
414
  gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
 
415
 
 
416
  case $gt_cv_func_printf_posix in
 
417
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
418
    *) HAVE_POSIX_PRINTF=0 ;;
 
419
  esac
 
420
  AC_SUBST([HAVE_POSIX_PRINTF])
 
421
  if test "$ac_cv_func_asprintf" = yes; then
 
422
    HAVE_ASPRINTF=1
 
423
  else
 
424
    HAVE_ASPRINTF=0
 
425
  fi
 
426
  AC_SUBST([HAVE_ASPRINTF])
 
427
  if test "$ac_cv_func_snprintf" = yes; then
 
428
    HAVE_SNPRINTF=1
 
429
  else
 
430
    HAVE_SNPRINTF=0
 
431
  fi
 
432
  AC_SUBST([HAVE_SNPRINTF])
 
433
  if test "$ac_cv_func_wprintf" = yes; then
 
434
    HAVE_WPRINTF=1
 
435
  else
 
436
    HAVE_WPRINTF=0
 
437
  fi
 
438
  AC_SUBST([HAVE_WPRINTF])
 
439
 
388
440
  AM_ICONV
389
441
  AM_LANGINFO_CODESET
390
442
  if test $ac_cv_header_locale_h = yes; then
424
476
])
425
477
 
426
478
 
 
479
dnl gt_CHECK_DECL(FUNC, INCLUDES)
 
480
dnl Check whether a function is declared.
 
481
AC_DEFUN([gt_CHECK_DECL],
 
482
[
 
483
  AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
 
484
    [AC_TRY_COMPILE([$2], [
 
485
#ifndef $1
 
486
  char *p = (char *) $1;
 
487
#endif
 
488
], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
 
489
  if test $ac_cv_have_decl_$1 = yes; then
 
490
    gt_value=1
 
491
  else
 
492
    gt_value=0
 
493
  fi
 
494
  AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
 
495
    [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
 
496
])
 
497
 
 
498
 
427
499
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
428
500
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
429
501
 
531
603
  fi
532
604
])
533
605
 
534
 
# lib-ld.m4 serial 2 (gettext-0.12)
 
606
# lib-ld.m4 serial 3 (gettext-0.13)
535
607
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
536
608
dnl This file is free software, distributed under the terms of the GNU
537
609
dnl General Public License.  As a special exception to the GNU General
547
619
AC_DEFUN([AC_LIB_PROG_LD_GNU],
548
620
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
549
621
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
550
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
551
 
  acl_cv_prog_gnu_ld=yes
552
 
else
553
 
  acl_cv_prog_gnu_ld=no
554
 
fi])
 
622
case `$LD -v 2>&1 </dev/null` in
 
623
*GNU* | *'with BFD'*)
 
624
  acl_cv_prog_gnu_ld=yes ;;
 
625
*)
 
626
  acl_cv_prog_gnu_ld=no ;;
 
627
esac])
555
628
with_gnu_ld=$acl_cv_prog_gnu_ld
556
629
])
557
630
 
621
694
      # Check to see if the program is GNU ld.  I'd rather use --version,
622
695
      # but apparently some GNU ld's only accept -v.
623
696
      # Break only if it was the GNU/non-GNU ld that we prefer.
624
 
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
625
 
        test "$with_gnu_ld" != no && break
626
 
      else
627
 
        test "$with_gnu_ld" != yes && break
628
 
      fi
 
697
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
698
      *GNU* | *'with BFD'*)
 
699
        test "$with_gnu_ld" != no && break ;;
 
700
      *)
 
701
        test "$with_gnu_ld" != yes && break ;;
 
702
      esac
629
703
    fi
630
704
  done
631
705
  IFS="$ac_save_ifs"
1194
1268
  done
1195
1269
])
1196
1270
 
1197
 
# lib-prefix.m4 serial 2 (gettext-0.12)
 
1271
# lib-prefix.m4 serial 3 (gettext-0.13)
1198
1272
dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
1199
1273
dnl This file is free software, distributed under the terms of the GNU
1200
1274
dnl General Public License.  As a special exception to the GNU General
1209
1283
dnl require excessive bracketing.
1210
1284
ifdef([AC_HELP_STRING],
1211
1285
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
1212
 
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
 
1286
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
1213
1287
 
1214
1288
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
1215
1289
dnl to access previously installed libraries. The basic assumption is that
1400
1474
  AC_SUBST(MKINSTALLDIRS)
1401
1475
])
1402
1476
 
1403
 
# po.m4 serial 1 (gettext-0.12)
 
1477
# po.m4 serial 3 (gettext-0.14)
1404
1478
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
1405
1479
dnl This file is free software, distributed under the terms of the GNU
1406
1480
dnl General Public License.  As a special exception to the GNU General
1513
1587
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
1514
1588
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
1515
1589
          POMAKEFILEDEPS="POTFILES.in"
1516
 
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
 
1590
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
1517
1591
          # on $ac_dir but don't depend on user-specified configuration
1518
1592
          # parameters.
1519
1593
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
1529
1603
            # The set of available languages was given in configure.in.
1530
1604
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
1531
1605
          fi
 
1606
          # Compute POFILES
 
1607
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
1608
          # Compute UPDATEPOFILES
 
1609
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
1610
          # Compute DUMMYPOFILES
 
1611
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
1612
          # Compute GMOFILES
 
1613
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
1532
1614
          case "$ac_given_srcdir" in
1533
1615
            .) srcdirpre= ;;
1534
1616
            *) srcdirpre='$(srcdir)/' ;;
1535
1617
          esac
1536
1618
          POFILES=
1537
 
          GMOFILES=
1538
1619
          UPDATEPOFILES=
1539
1620
          DUMMYPOFILES=
 
1621
          GMOFILES=
1540
1622
          for lang in $ALL_LINGUAS; do
1541
1623
            POFILES="$POFILES $srcdirpre$lang.po"
1542
 
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1543
1624
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
1544
1625
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
1626
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1545
1627
          done
1546
1628
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
1547
1629
          # environment variable.
1576
1658
            done
1577
1659
          fi
1578
1660
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
1579
 
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
1661
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
1580
1662
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
1581
1663
            if test -f "$f"; then
1582
1664
              case "$f" in
1590
1672
      esac
1591
1673
    done],
1592
1674
   [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
1593
 
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
 
1675
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
1594
1676
    # from automake.
1595
1677
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
1596
1678
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
1598
1680
   ])
1599
1681
])
1600
1682
 
 
1683
dnl Postprocesses a Makefile in a directory containing PO files.
 
1684
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
 
1685
[
 
1686
  # When this code is run, in config.status, two variables have already been
 
1687
  # set:
 
1688
  # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
 
1689
  # - LINGUAS is the value of the environment variable LINGUAS at configure
 
1690
  #   time.
 
1691
 
 
1692
changequote(,)dnl
 
1693
  # Adjust a relative srcdir.
 
1694
  ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
1695
  ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
1696
  ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
1697
  # In autoconf-2.13 it is called $ac_given_srcdir.
 
1698
  # In autoconf-2.50 it is called $srcdir.
 
1699
  test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
1700
  case "$ac_given_srcdir" in
 
1701
    .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
1702
    /*) top_srcdir="$ac_given_srcdir" ;;
 
1703
    *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
1704
  esac
 
1705
 
 
1706
  # Find a way to echo strings without interpreting backslash.
 
1707
  if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
 
1708
    gt_echo='echo'
 
1709
  else
 
1710
    if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
 
1711
      gt_echo='printf %s\n'
 
1712
    else
 
1713
      echo_func () {
 
1714
        cat <<EOT
 
1715
$*
 
1716
EOT
 
1717
      }
 
1718
      gt_echo='echo_func'
 
1719
    fi
 
1720
  fi
 
1721
 
 
1722
  # A sed script that extracts the value of VARIABLE from a Makefile.
 
1723
  sed_x_variable='
 
1724
# Test if the hold space is empty.
 
1725
x
 
1726
s/P/P/
 
1727
x
 
1728
ta
 
1729
# Yes it was empty. Look if we have the expected variable definition.
 
1730
/^[      ]*VARIABLE[     ]*=/{
 
1731
  # Seen the first line of the variable definition.
 
1732
  s/^[   ]*VARIABLE[     ]*=//
 
1733
  ba
 
1734
}
 
1735
bd
 
1736
:a
 
1737
# Here we are processing a line from the variable definition.
 
1738
# Remove comment, more precisely replace it with a space.
 
1739
s/#.*$/ /
 
1740
# See if the line ends in a backslash.
 
1741
tb
 
1742
:b
 
1743
s/\\$//
 
1744
# Print the line, without the trailing backslash.
 
1745
p
 
1746
tc
 
1747
# There was no trailing backslash. The end of the variable definition is
 
1748
# reached. Clear the hold space.
 
1749
s/^.*$//
 
1750
x
 
1751
bd
 
1752
:c
 
1753
# A trailing backslash means that the variable definition continues in the
 
1754
# next line. Put a nonempty string into the hold space to indicate this.
 
1755
s/^.*$/P/
 
1756
x
 
1757
:d
 
1758
'
 
1759
changequote([,])dnl
 
1760
 
 
1761
  # Set POTFILES to the value of the Makefile variable POTFILES.
 
1762
  sed_x_POTFILES="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`"
 
1763
  POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
 
1764
  # Compute POTFILES_DEPS as
 
1765
  #   $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
 
1766
  POTFILES_DEPS=
 
1767
  for file in $POTFILES; do
 
1768
    POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
 
1769
  done
 
1770
  POMAKEFILEDEPS=""
 
1771
 
 
1772
  if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
1773
    test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
1774
  fi
 
1775
  if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
1776
    # The LINGUAS file contains the set of available languages.
 
1777
    ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
1778
    POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
1779
  else
 
1780
    # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
 
1781
    sed_x_LINGUAS="`$gt_echo \"$sed_x_variable\" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`"
 
1782
    ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
 
1783
  fi
 
1784
  # Hide the ALL_LINGUAS assigment from automake.
 
1785
  eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
1786
  # Compute POFILES
 
1787
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
1788
  # Compute UPDATEPOFILES
 
1789
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
1790
  # Compute DUMMYPOFILES
 
1791
  # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
1792
  # Compute GMOFILES
 
1793
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
1794
  # Compute PROPERTIESFILES
 
1795
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
 
1796
  # Compute CLASSFILES
 
1797
  # as      $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
 
1798
  # Compute QMFILES
 
1799
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
 
1800
  # Compute MSGFILES
 
1801
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
 
1802
  # Compute RESOURCESDLLFILES
 
1803
  # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
 
1804
  case "$ac_given_srcdir" in
 
1805
    .) srcdirpre= ;;
 
1806
    *) srcdirpre='$(srcdir)/' ;;
 
1807
  esac
 
1808
  POFILES=
 
1809
  UPDATEPOFILES=
 
1810
  DUMMYPOFILES=
 
1811
  GMOFILES=
 
1812
  PROPERTIESFILES=
 
1813
  CLASSFILES=
 
1814
  QMFILES=
 
1815
  MSGFILES=
 
1816
  RESOURCESDLLFILES=
 
1817
  for lang in $ALL_LINGUAS; do
 
1818
    POFILES="$POFILES $srcdirpre$lang.po"
 
1819
    UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
1820
    DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
1821
    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
1822
    PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
 
1823
    CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
 
1824
    QMFILES="$QMFILES $srcdirpre$lang.qm"
 
1825
    frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
1826
    MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
 
1827
    frobbedlang=`echo $lang | sed -e 's/_/-/g'`
 
1828
    RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
 
1829
  done
 
1830
  # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
1831
  # environment variable.
 
1832
  INST_LINGUAS=
 
1833
  if test -n "$ALL_LINGUAS"; then
 
1834
    for presentlang in $ALL_LINGUAS; do
 
1835
      useit=no
 
1836
      if test "%UNSET%" != "$LINGUAS"; then
 
1837
        desiredlanguages="$LINGUAS"
 
1838
      else
 
1839
        desiredlanguages="$ALL_LINGUAS"
 
1840
      fi
 
1841
      for desiredlang in $desiredlanguages; do
 
1842
        # Use the presentlang catalog if desiredlang is
 
1843
        #   a. equal to presentlang, or
 
1844
        #   b. a variant of presentlang (because in this case,
 
1845
        #      presentlang can be used as a fallback for messages
 
1846
        #      which are not translated in the desiredlang catalog).
 
1847
        case "$desiredlang" in
 
1848
          "$presentlang"*) useit=yes;;
 
1849
        esac
 
1850
      done
 
1851
      if test $useit = yes; then
 
1852
        INST_LINGUAS="$INST_LINGUAS $presentlang"
 
1853
      fi
 
1854
    done
 
1855
  fi
 
1856
  CATALOGS=
 
1857
  JAVACATALOGS=
 
1858
  QTCATALOGS=
 
1859
  TCLCATALOGS=
 
1860
  CSHARPCATALOGS=
 
1861
  if test -n "$INST_LINGUAS"; then
 
1862
    for lang in $INST_LINGUAS; do
 
1863
      CATALOGS="$CATALOGS $lang.gmo"
 
1864
      JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
 
1865
      QTCATALOGS="$QTCATALOGS $lang.qm"
 
1866
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
1867
      TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
 
1868
      frobbedlang=`echo $lang | sed -e 's/_/-/g'`
 
1869
      CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
 
1870
    done
 
1871
  fi
 
1872
 
 
1873
  sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
 
1874
  if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
 
1875
    # Add dependencies that cannot be formulated as a simple suffix rule.
 
1876
    for lang in $ALL_LINGUAS; do
 
1877
      frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
1878
      cat >> "$ac_file.tmp" <<EOF
 
1879
$frobbedlang.msg: $lang.po
 
1880
        @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
 
1881
        \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 
1882
EOF
 
1883
    done
 
1884
  fi
 
1885
  if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
 
1886
    # Add dependencies that cannot be formulated as a simple suffix rule.
 
1887
    for lang in $ALL_LINGUAS; do
 
1888
      frobbedlang=`echo $lang | sed -e 's/_/-/g'`
 
1889
      cat >> "$ac_file.tmp" <<EOF
 
1890
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
 
1891
        @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
 
1892
        \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
 
1893
EOF
 
1894
    done
 
1895
  fi
 
1896
  if test -n "$POMAKEFILEDEPS"; then
 
1897
    cat >> "$ac_file.tmp" <<EOF
 
1898
Makefile: $POMAKEFILEDEPS
 
1899
EOF
 
1900
  fi
 
1901
  mv "$ac_file.tmp" "$ac_file"
 
1902
])
 
1903
 
1601
1904
# progtest.m4 serial 3 (gettext-0.12)
1602
1905
dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1603
1906
dnl This file is free software, distributed under the terms of the GNU
1721
2024
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1722
2025
         [AM_AUTOMAKE_VERSION([1.8.5])])
1723
2026
 
1724
 
# Figure out how to run the assembler.             -*- Autoconf -*-
1725
 
 
1726
 
# serial 3
1727
 
 
1728
 
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
1729
 
 
1730
 
# This program is free software; you can redistribute it and/or modify
1731
 
# it under the terms of the GNU General Public License as published by
1732
 
# the Free Software Foundation; either version 2, or (at your option)
1733
 
# any later version.
1734
 
 
1735
 
# This program is distributed in the hope that it will be useful,
1736
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1737
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1738
 
# GNU General Public License for more details.
1739
 
 
1740
 
# You should have received a copy of the GNU General Public License
1741
 
# along with this program; if not, write to the Free Software
1742
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1743
 
# 02111-1307, USA.
1744
 
 
1745
 
# AM_PROG_AS
1746
 
# ----------
1747
 
AC_DEFUN([AM_PROG_AS],
1748
 
[# By default we simply use the C compiler to build assembly code.
1749
 
AC_REQUIRE([AC_PROG_CC])
1750
 
test "${CCAS+set}" = set || CCAS=$CC
1751
 
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
1752
 
AC_ARG_VAR([CCAS],      [assembler compiler command (defaults to CC)])
1753
 
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
1754
 
])
1755
 
 
1756
2027
# AM_AUX_DIR_EXPAND
1757
2028
 
1758
2029
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.