~nik90/ubuntu/precise/eog/keywords

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-07-26 15:28:21 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: james.westby@ubuntu.com-20110726152821-g806mbptn727m1a5
Tags: upstream-3.1.4
ImportĀ upstreamĀ versionĀ 3.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1051
1051
AC_SUBST([am__untar])
1052
1052
]) # _AM_PROG_TAR
1053
1053
 
 
1054
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
 
1055
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
 
1056
AC_DEFUN([GNOME_DOC_DEFINES],
 
1057
[
 
1058
AC_ARG_WITH([help-dir],
 
1059
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
 
1060
  [with_help_dir='${datadir}/gnome/help'])
 
1061
HELP_DIR="$with_help_dir"
 
1062
AC_SUBST(HELP_DIR)
 
1063
 
 
1064
AC_ARG_WITH([omf-dir],
 
1065
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
 
1066
  [with_omf_dir='${datadir}/omf'])
 
1067
OMF_DIR="$with_omf_dir"
 
1068
AC_SUBST(OMF_DIR)
 
1069
 
 
1070
AC_ARG_WITH([help-formats],
 
1071
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
 
1072
  [with_help_formats=''])
 
1073
DOC_USER_FORMATS="$with_help_formats"
 
1074
AC_SUBST(DOC_USER_FORMATS)
 
1075
 
 
1076
AC_ARG_ENABLE([scrollkeeper],
 
1077
        [AC_HELP_STRING([--disable-scrollkeeper],
 
1078
                        [do not make updates to the scrollkeeper database])],,
 
1079
        enable_scrollkeeper=yes)
 
1080
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
 
1081
 
 
1082
dnl disable scrollkeeper automatically for distcheck
 
1083
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
 
1084
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
 
1085
 
 
1086
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
 
1087
])
 
1088
 
 
1089
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
 
1090
#
 
1091
AC_DEFUN([GNOME_DOC_INIT],
 
1092
[AC_REQUIRE([AC_PROG_LN_S])dnl
 
1093
 
 
1094
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
 
1095
 
 
1096
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
 
1097
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
 
1098
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
 
1099
 
 
1100
if test "$gdu_cv_have_gdu" = "yes"; then
 
1101
        AC_MSG_RESULT([yes])
 
1102
        ifelse([$2],,[:],[$2])
 
1103
else
 
1104
        AC_MSG_RESULT([no])
 
1105
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
 
1106
fi
 
1107
 
 
1108
GNOME_DOC_DEFINES
 
1109
])
 
1110
 
 
1111
 
 
1112
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
 
1113
# serial 40 IT_PROG_INTLTOOL
 
1114
AC_DEFUN([IT_PROG_INTLTOOL], [
 
1115
AC_PREREQ([2.50])dnl
 
1116
AC_REQUIRE([AM_NLS])dnl
 
1117
 
 
1118
case "$am__api_version" in
 
1119
    1.[01234])
 
1120
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
 
1121
    ;;
 
1122
    *)
 
1123
    ;;
 
1124
esac
 
1125
 
 
1126
if test -n "$1"; then
 
1127
    AC_MSG_CHECKING([for intltool >= $1])
 
1128
 
 
1129
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1130
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
1131
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1132
    ]
 
1133
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
 
1134
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
 
1135
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
 
1136
fi
 
1137
 
 
1138
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
 
1139
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
 
1140
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
 
1141
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
 
1142
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
 
1143
fi
 
1144
 
 
1145
  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 $< [$]@' 
 
1146
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 $< [$]@' 
 
1147
     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 $< [$]@' 
 
1148
     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 $< [$]@' 
 
1149
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
1150
     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 $< [$]@' 
 
1151
   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 $< [$]@' 
 
1152
    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 $< [$]@' 
 
1153
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 $< [$]@' 
 
1154
       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 $< [$]@' 
 
1155
      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 $< [$]@' 
 
1156
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
 
1157
      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 $< [$]@' 
 
1158
      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 $< [$]@' 
 
1159
    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 $< [$]@' 
 
1160
  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 $< [$]@' 
 
1161
    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 $< [$]@' 
 
1162
    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 $< [$]@'
 
1163
   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 $< [$]@'
 
1164
 
 
1165
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
 
1166
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
 
1167
_IT_SUBST(INTLTOOL_KEYS_RULE)
 
1168
_IT_SUBST(INTLTOOL_PROP_RULE)
 
1169
_IT_SUBST(INTLTOOL_OAF_RULE)
 
1170
_IT_SUBST(INTLTOOL_PONG_RULE)
 
1171
_IT_SUBST(INTLTOOL_SERVER_RULE)
 
1172
_IT_SUBST(INTLTOOL_SHEET_RULE)
 
1173
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
 
1174
_IT_SUBST(INTLTOOL_UI_RULE)
 
1175
_IT_SUBST(INTLTOOL_XAM_RULE)
 
1176
_IT_SUBST(INTLTOOL_KBD_RULE)
 
1177
_IT_SUBST(INTLTOOL_XML_RULE)
 
1178
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
 
1179
_IT_SUBST(INTLTOOL_CAVES_RULE)
 
1180
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
 
1181
_IT_SUBST(INTLTOOL_THEME_RULE)
 
1182
_IT_SUBST(INTLTOOL_SERVICE_RULE)
 
1183
_IT_SUBST(INTLTOOL_POLICY_RULE)
 
1184
 
 
1185
# Check the gettext tools to make sure they are GNU
 
1186
AC_PATH_PROG(XGETTEXT, xgettext)
 
1187
AC_PATH_PROG(MSGMERGE, msgmerge)
 
1188
AC_PATH_PROG(MSGFMT, msgfmt)
 
1189
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
 
1190
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
 
1191
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
1192
fi
 
1193
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
 
1194
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
 
1195
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
 
1196
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
 
1197
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
 
1198
fi
 
1199
 
 
1200
AC_PATH_PROG(INTLTOOL_PERL, perl)
 
1201
if test -z "$INTLTOOL_PERL"; then
 
1202
   AC_MSG_ERROR([perl not found])
 
1203
fi
 
1204
AC_MSG_CHECKING([for perl >= 5.8.1])
 
1205
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
 
1206
if test $? -ne 0; then
 
1207
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
 
1208
else
 
1209
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
1210
   AC_MSG_RESULT([$IT_PERL_VERSION])
 
1211
fi
 
1212
if test "x$2" != "xno-xml"; then
 
1213
   AC_MSG_CHECKING([for XML::Parser])
 
1214
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
1215
       AC_MSG_RESULT([ok])
 
1216
   else
 
1217
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
1218
   fi
 
1219
fi
 
1220
 
 
1221
# Substitute ALL_LINGUAS so we can use it in po/Makefile
 
1222
AC_SUBST(ALL_LINGUAS)
 
1223
 
 
1224
# Set DATADIRNAME correctly if it is not set yet
 
1225
# (copied from glib-gettext.m4)
 
1226
if test -z "$DATADIRNAME"; then
 
1227
  AC_LINK_IFELSE(
 
1228
    [AC_LANG_PROGRAM([[]],
 
1229
                     [[extern int _nl_msg_cat_cntr;
 
1230
                       return _nl_msg_cat_cntr]])],
 
1231
    [DATADIRNAME=share],
 
1232
    [case $host in
 
1233
    *-*-solaris*)
 
1234
    dnl On Solaris, if bind_textdomain_codeset is in libc,
 
1235
    dnl GNU format message catalog is always supported,
 
1236
    dnl since both are added to the libc all together.
 
1237
    dnl Hence, we'd like to go with DATADIRNAME=share
 
1238
    dnl in this case.
 
1239
    AC_CHECK_FUNC(bind_textdomain_codeset,
 
1240
      [DATADIRNAME=share], [DATADIRNAME=lib])
 
1241
    ;;
 
1242
    *)
 
1243
    [DATADIRNAME=lib]
 
1244
    ;;
 
1245
    esac])
 
1246
fi
 
1247
AC_SUBST(DATADIRNAME)
 
1248
 
 
1249
IT_PO_SUBDIR([po])
 
1250
 
 
1251
])
 
1252
 
 
1253
 
 
1254
# IT_PO_SUBDIR(DIRNAME)
 
1255
# ---------------------
 
1256
# All po subdirs have to be declared with this macro; the subdir "po" is
 
1257
# declared by IT_PROG_INTLTOOL.
 
1258
#
 
1259
AC_DEFUN([IT_PO_SUBDIR],
 
1260
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
 
1261
dnl
 
1262
dnl The following CONFIG_COMMANDS should be executed at the very end
 
1263
dnl of config.status.
 
1264
AC_CONFIG_COMMANDS_PRE([
 
1265
  AC_CONFIG_COMMANDS([$1/stamp-it], [
 
1266
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
 
1267
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
 
1268
    fi
 
1269
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
 
1270
    >"$1/stamp-it.tmp"
 
1271
    [sed '/^#/d
 
1272
         s/^[[].*] *//
 
1273
         /^[    ]*$/d
 
1274
        '"s|^|  $ac_top_srcdir/|" \
 
1275
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
 
1276
    ]
 
1277
    [sed '/^POTFILES =/,/[^\\]$/ {
 
1278
                /^POTFILES =/!d
 
1279
                r $1/POTFILES
 
1280
          }
 
1281
         ' "$1/Makefile.in" >"$1/Makefile"]
 
1282
    rm -f "$1/Makefile.tmp"
 
1283
    mv "$1/stamp-it.tmp" "$1/stamp-it"
 
1284
  ])
 
1285
])dnl
 
1286
])
 
1287
 
 
1288
# _IT_SUBST(VARIABLE)
 
1289
# -------------------
 
1290
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
 
1291
#
 
1292
AC_DEFUN([_IT_SUBST],
 
1293
[
 
1294
AC_SUBST([$1])
 
1295
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
 
1296
]
 
1297
)
 
1298
 
 
1299
# deprecated macros
 
1300
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
 
1301
# A hint is needed for aclocal from Automake <= 1.9.4:
 
1302
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
 
1303
 
 
1304
 
1054
1305
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1055
1306
#
1056
1307
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3468
3719
    *) objformat=elf ;;
3469
3720
    esac
3470
3721
  fi
3471
 
  version_type=freebsd-$objformat
 
3722
  # Handle Gentoo/FreeBSD as it was Linux
 
3723
  case $host_vendor in
 
3724
    gentoo)
 
3725
      version_type=linux ;;
 
3726
    *)
 
3727
      version_type=freebsd-$objformat ;;
 
3728
  esac
 
3729
 
3472
3730
  case $version_type in
3473
3731
    freebsd-elf*)
3474
3732
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3479
3737
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3480
3738
      need_version=yes
3481
3739
      ;;
 
3740
    linux)
 
3741
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
3742
      soname_spec='${libname}${release}${shared_ext}$major'
 
3743
      need_lib_prefix=no
 
3744
      need_version=no
 
3745
      ;;
3482
3746
  esac
3483
3747
  shlibpath_var=LD_LIBRARY_PATH
3484
3748
  case $host_os in
3657
3921
  # before this can be enabled.
3658
3922
  hardcode_into_libs=yes
3659
3923
 
3660
 
  # Add ABI-specific directories to the system library path.
3661
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3662
 
 
3663
3924
  # Append ld.so.conf contents to the search path
3664
3925
  if test -f /etc/ld.so.conf; then
3665
3926
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
3666
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3667
 
 
 
3927
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3668
3928
  fi
3669
3929
 
3670
3930
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9482
9742
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
9483
9743
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9484
9744
 
 
9745
# nls.m4 serial 5 (gettext-0.18)
 
9746
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
9747
dnl Inc.
 
9748
dnl This file is free software; the Free Software Foundation
 
9749
dnl gives unlimited permission to copy and/or distribute it,
 
9750
dnl with or without modifications, as long as this notice is preserved.
 
9751
dnl
 
9752
dnl This file can can be used in projects which are not available under
 
9753
dnl the GNU General Public License or the GNU Library General Public
 
9754
dnl License but which still want to provide support for the GNU gettext
 
9755
dnl functionality.
 
9756
dnl Please note that the actual code of the GNU gettext library is covered
 
9757
dnl by the GNU Library General Public License, and the rest of the GNU
 
9758
dnl gettext package package is covered by the GNU General Public License.
 
9759
dnl They are *not* in the public domain.
 
9760
 
 
9761
dnl Authors:
 
9762
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
9763
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
9764
 
 
9765
AC_PREREQ([2.50])
 
9766
 
 
9767
AC_DEFUN([AM_NLS],
 
9768
[
 
9769
  AC_MSG_CHECKING([whether NLS is requested])
 
9770
  dnl Default is enabled NLS
 
9771
  AC_ARG_ENABLE([nls],
 
9772
    [  --disable-nls           do not use Native Language Support],
 
9773
    USE_NLS=$enableval, USE_NLS=yes)
 
9774
  AC_MSG_RESULT([$USE_NLS])
 
9775
  AC_SUBST([USE_NLS])
 
9776
])
 
9777
 
9485
9778
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9486
9779
# serial 1 (pkg-config-0.24)
9487
9780
9510
9803
# ----------------------------------
9511
9804
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9512
9805
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9513
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
 
9806
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
9807
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
9514
9808
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9515
9809
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9516
9810
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9556
9850
    pkg_cv_[]$1="$$1"
9557
9851
 elif test -n "$PKG_CONFIG"; then
9558
9852
    PKG_CHECK_EXISTS([$3],
9559
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
9853
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
9854
                      test "x$?" != "x0" && pkg_failed=yes ],
9560
9855
                     [pkg_failed=yes])
9561
9856
 else
9562
9857
    pkg_failed=untried
9604
9899
        AC_MSG_RESULT([no])
9605
9900
        _PKG_SHORT_ERRORS_SUPPORTED
9606
9901
        if test $_pkg_short_errors_supported = yes; then
9607
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
 
9902
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9608
9903
        else 
9609
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
 
9904
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9610
9905
        fi
9611
9906
        # Put the nasty error message in config.log where it belongs
9612
9907
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9619
9914
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9620
9915
installed software in a non-standard prefix.
9621
9916
 
9622
 
_PKG_TEXT])
 
9917
_PKG_TEXT])[]dnl
9623
9918
        ])
9624
9919
elif test $pkg_failed = untried; then
9625
9920
        AC_MSG_RESULT([no])
9630
9925
 
9631
9926
_PKG_TEXT
9632
9927
 
9633
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
 
9928
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9634
9929
        ])
9635
9930
else
9636
9931
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
10271
10566
  AC_SUBST(WARN_CXXFLAGS)
10272
10567
])
10273
10568
 
10274
 
dnl Do not call GNOME_DOC_DEFINES directly.  It is split out from
10275
 
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
10276
 
AC_DEFUN([GNOME_DOC_DEFINES],
10277
 
[
10278
 
AC_ARG_WITH([help-dir],
10279
 
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
10280
 
  [with_help_dir='${datadir}/gnome/help'])
10281
 
HELP_DIR="$with_help_dir"
10282
 
AC_SUBST(HELP_DIR)
10283
 
 
10284
 
AC_ARG_WITH([omf-dir],
10285
 
  AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
10286
 
  [with_omf_dir='${datadir}/omf'])
10287
 
OMF_DIR="$with_omf_dir"
10288
 
AC_SUBST(OMF_DIR)
10289
 
 
10290
 
AC_ARG_WITH([help-formats],
10291
 
  AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
10292
 
  [with_help_formats=''])
10293
 
DOC_USER_FORMATS="$with_help_formats"
10294
 
AC_SUBST(DOC_USER_FORMATS)
10295
 
 
10296
 
AC_ARG_ENABLE([scrollkeeper],
10297
 
        [AC_HELP_STRING([--disable-scrollkeeper],
10298
 
                        [do not make updates to the scrollkeeper database])],,
10299
 
        enable_scrollkeeper=yes)
10300
 
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
10301
 
 
10302
 
dnl disable scrollkeeper automatically for distcheck
10303
 
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
10304
 
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
10305
 
 
10306
 
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
10307
 
])
10308
 
 
10309
 
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
10310
 
#
10311
 
AC_DEFUN([GNOME_DOC_INIT],
10312
 
[AC_REQUIRE([AC_PROG_LN_S])dnl
10313
 
 
10314
 
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
10315
 
 
10316
 
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
10317
 
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
10318
 
        [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
10319
 
 
10320
 
if test "$gdu_cv_have_gdu" = "yes"; then
10321
 
        AC_MSG_RESULT([yes])
10322
 
        ifelse([$2],,[:],[$2])
10323
 
else
10324
 
        AC_MSG_RESULT([no])
10325
 
        ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
10326
 
fi
10327
 
 
10328
 
GNOME_DOC_DEFINES
10329
 
])
10330
 
 
10331
10569
dnl GLIB_GSETTINGS
10332
10570
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
10333
10571
dnl the schema should be compiled
10420
10658
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
10421
10659
AC_DEFUN([GTK_DOC_CHECK],
10422
10660
[
 
10661
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
10423
10662
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10424
10663
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
10425
10664
 
10475
10714
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
10476
10715
])
10477
10716
 
10478
 
 
10479
 
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
10480
 
# serial 40 IT_PROG_INTLTOOL
10481
 
AC_DEFUN([IT_PROG_INTLTOOL], [
10482
 
AC_PREREQ([2.50])dnl
10483
 
AC_REQUIRE([AM_NLS])dnl
10484
 
 
10485
 
case "$am__api_version" in
10486
 
    1.[01234])
10487
 
        AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
10488
 
    ;;
10489
 
    *)
10490
 
    ;;
10491
 
esac
10492
 
 
10493
 
if test -n "$1"; then
10494
 
    AC_MSG_CHECKING([for intltool >= $1])
10495
 
 
10496
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10497
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10498
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10499
 
    ]
10500
 
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
10501
 
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10502
 
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
10503
 
fi
10504
 
 
10505
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
10506
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
10507
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
10508
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10509
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
10510
 
fi
10511
 
 
10512
 
  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 $< [$]@' 
10513
 
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 $< [$]@' 
10514
 
     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 $< [$]@' 
10515
 
     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 $< [$]@' 
10516
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
10517
 
     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 $< [$]@' 
10518
 
   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 $< [$]@' 
10519
 
    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 $< [$]@' 
10520
 
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 $< [$]@' 
10521
 
       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 $< [$]@' 
10522
 
      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 $< [$]@' 
10523
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
10524
 
      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 $< [$]@' 
10525
 
      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 $< [$]@' 
10526
 
    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 $< [$]@' 
10527
 
  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 $< [$]@' 
10528
 
    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 $< [$]@' 
10529
 
    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 $< [$]@'
10530
 
   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 $< [$]@'
10531
 
 
10532
 
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
10533
 
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
10534
 
_IT_SUBST(INTLTOOL_KEYS_RULE)
10535
 
_IT_SUBST(INTLTOOL_PROP_RULE)
10536
 
_IT_SUBST(INTLTOOL_OAF_RULE)
10537
 
_IT_SUBST(INTLTOOL_PONG_RULE)
10538
 
_IT_SUBST(INTLTOOL_SERVER_RULE)
10539
 
_IT_SUBST(INTLTOOL_SHEET_RULE)
10540
 
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
10541
 
_IT_SUBST(INTLTOOL_UI_RULE)
10542
 
_IT_SUBST(INTLTOOL_XAM_RULE)
10543
 
_IT_SUBST(INTLTOOL_KBD_RULE)
10544
 
_IT_SUBST(INTLTOOL_XML_RULE)
10545
 
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
10546
 
_IT_SUBST(INTLTOOL_CAVES_RULE)
10547
 
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
10548
 
_IT_SUBST(INTLTOOL_THEME_RULE)
10549
 
_IT_SUBST(INTLTOOL_SERVICE_RULE)
10550
 
_IT_SUBST(INTLTOOL_POLICY_RULE)
10551
 
 
10552
 
# Check the gettext tools to make sure they are GNU
10553
 
AC_PATH_PROG(XGETTEXT, xgettext)
10554
 
AC_PATH_PROG(MSGMERGE, msgmerge)
10555
 
AC_PATH_PROG(MSGFMT, msgfmt)
10556
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10557
 
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
10558
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10559
 
fi
10560
 
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
10561
 
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
10562
 
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
10563
 
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
10564
 
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10565
 
fi
10566
 
 
10567
 
AC_PATH_PROG(INTLTOOL_PERL, perl)
10568
 
if test -z "$INTLTOOL_PERL"; then
10569
 
   AC_MSG_ERROR([perl not found])
10570
 
fi
10571
 
AC_MSG_CHECKING([for perl >= 5.8.1])
10572
 
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
10573
 
if test $? -ne 0; then
10574
 
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
10575
 
else
10576
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
10577
 
   AC_MSG_RESULT([$IT_PERL_VERSION])
10578
 
fi
10579
 
if test "x$2" != "xno-xml"; then
10580
 
   AC_MSG_CHECKING([for XML::Parser])
10581
 
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
10582
 
       AC_MSG_RESULT([ok])
10583
 
   else
10584
 
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
10585
 
   fi
10586
 
fi
10587
 
 
10588
 
# Substitute ALL_LINGUAS so we can use it in po/Makefile
10589
 
AC_SUBST(ALL_LINGUAS)
10590
 
 
10591
 
# Set DATADIRNAME correctly if it is not set yet
10592
 
# (copied from glib-gettext.m4)
10593
 
if test -z "$DATADIRNAME"; then
10594
 
  AC_LINK_IFELSE(
10595
 
    [AC_LANG_PROGRAM([[]],
10596
 
                     [[extern int _nl_msg_cat_cntr;
10597
 
                       return _nl_msg_cat_cntr]])],
10598
 
    [DATADIRNAME=share],
10599
 
    [case $host in
10600
 
    *-*-solaris*)
10601
 
    dnl On Solaris, if bind_textdomain_codeset is in libc,
10602
 
    dnl GNU format message catalog is always supported,
10603
 
    dnl since both are added to the libc all together.
10604
 
    dnl Hence, we'd like to go with DATADIRNAME=share
10605
 
    dnl in this case.
10606
 
    AC_CHECK_FUNC(bind_textdomain_codeset,
10607
 
      [DATADIRNAME=share], [DATADIRNAME=lib])
10608
 
    ;;
10609
 
    *)
10610
 
    [DATADIRNAME=lib]
10611
 
    ;;
10612
 
    esac])
10613
 
fi
10614
 
AC_SUBST(DATADIRNAME)
10615
 
 
10616
 
IT_PO_SUBDIR([po])
10617
 
 
10618
 
])
10619
 
 
10620
 
 
10621
 
# IT_PO_SUBDIR(DIRNAME)
10622
 
# ---------------------
10623
 
# All po subdirs have to be declared with this macro; the subdir "po" is
10624
 
# declared by IT_PROG_INTLTOOL.
10625
 
#
10626
 
AC_DEFUN([IT_PO_SUBDIR],
10627
 
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10628
 
dnl
10629
 
dnl The following CONFIG_COMMANDS should be executed at the very end
10630
 
dnl of config.status.
10631
 
AC_CONFIG_COMMANDS_PRE([
10632
 
  AC_CONFIG_COMMANDS([$1/stamp-it], [
10633
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10634
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10635
 
    fi
10636
 
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10637
 
    >"$1/stamp-it.tmp"
10638
 
    [sed '/^#/d
10639
 
         s/^[[].*] *//
10640
 
         /^[    ]*$/d
10641
 
        '"s|^|  $ac_top_srcdir/|" \
10642
 
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10643
 
    ]
10644
 
    [sed '/^POTFILES =/,/[^\\]$/ {
10645
 
                /^POTFILES =/!d
10646
 
                r $1/POTFILES
10647
 
          }
10648
 
         ' "$1/Makefile.in" >"$1/Makefile"]
10649
 
    rm -f "$1/Makefile.tmp"
10650
 
    mv "$1/stamp-it.tmp" "$1/stamp-it"
10651
 
  ])
10652
 
])dnl
10653
 
])
10654
 
 
10655
 
# _IT_SUBST(VARIABLE)
10656
 
# -------------------
10657
 
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10658
 
#
10659
 
AC_DEFUN([_IT_SUBST],
10660
 
[
10661
 
AC_SUBST([$1])
10662
 
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10663
 
]
10664
 
)
10665
 
 
10666
 
# deprecated macros
10667
 
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10668
 
# A hint is needed for aclocal from Automake <= 1.9.4:
10669
 
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
10670
 
 
10671
 
 
10672
10717
dnl -*- mode: autoconf -*-
10673
10718
dnl Copyright 2009 Johan Dahlin
10674
10719
dnl
10764
10809
  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
10765
10810
])
10766
10811
 
10767
 
# nls.m4 serial 5 (gettext-0.18)
10768
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
10769
 
dnl Inc.
10770
 
dnl This file is free software; the Free Software Foundation
10771
 
dnl gives unlimited permission to copy and/or distribute it,
10772
 
dnl with or without modifications, as long as this notice is preserved.
10773
 
dnl
10774
 
dnl This file can can be used in projects which are not available under
10775
 
dnl the GNU General Public License or the GNU Library General Public
10776
 
dnl License but which still want to provide support for the GNU gettext
10777
 
dnl functionality.
10778
 
dnl Please note that the actual code of the GNU gettext library is covered
10779
 
dnl by the GNU Library General Public License, and the rest of the GNU
10780
 
dnl gettext package package is covered by the GNU General Public License.
10781
 
dnl They are *not* in the public domain.
10782
 
 
10783
 
dnl Authors:
10784
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
10785
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
10786
 
 
10787
 
AC_PREREQ([2.50])
10788
 
 
10789
 
AC_DEFUN([AM_NLS],
10790
 
[
10791
 
  AC_MSG_CHECKING([whether NLS is requested])
10792
 
  dnl Default is enabled NLS
10793
 
  AC_ARG_ENABLE([nls],
10794
 
    [  --disable-nls           do not use Native Language Support],
10795
 
    USE_NLS=$enableval, USE_NLS=yes)
10796
 
  AC_MSG_RESULT([$USE_NLS])
10797
 
  AC_SUBST([USE_NLS])
10798
 
])
10799