274
274
m4_pattern_allow([AM_V_at])
275
275
m4_pattern_allow([AM_V_GEN])
276
276
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
278
YELP_LC_MEDIA_LINKS=true
281
for yelpopt in [$1]; do
283
lc-media-links) YELP_LC_MEDIA_LINKS=true ;;
284
no-lc-media-links) YELP_LC_MEDIA_LINKS= ;;
285
lc-dist) YELP_LC_DIST=true ;;
286
no-lc-dist) YELP_LC_DIST= ;;
287
*) AC_MSG_ERROR([Unrecognized [YELP_HELP_INIT] option $yelpopt"]) ;;
290
AC_SUBST([YELP_LC_MEDIA_LINKS])
291
AC_SUBST([YELP_LC_DIST])
277
293
AC_ARG_WITH([help-dir],
278
AC_HELP_STRING([--with-help-dir=DIR],
294
AS_HELP_STRING([--with-help-dir=DIR],
279
295
[path where help files are installed]),,
280
296
[with_help_dir='${datadir}/help'])
281
297
HELP_DIR="$with_help_dir"
370
386
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
371
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)
387
EXTRA_DIST += $(if $(YELP_LC_DIST),$(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp))
372
388
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
373
389
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
375
391
distdir: distdir-help-files
376
392
distdir-help-files:
377
@for lc in C $(HELP_LINGUAS); do \
393
@for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \
378
394
$(MKDIR_P) "$(distdir)/$$lc"; \
379
395
for file in $(HELP_FILES); do \
380
396
if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
432
448
echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
433
449
$(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
434
450
elif test "x$$lc" != "xC"; then \
435
echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
436
$(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
451
if test "x$(YELP_LC_MEDIA_LINKS)" != "x"; then \
452
echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
453
$(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
476
494
# generated from the m4 files accompanying Automake X.Y.
477
495
# (This private macro should not be called outside this file.)
478
496
AC_DEFUN([AM_AUTOMAKE_VERSION],
479
[am__api_version='1.13'
497
[am__api_version='1.14'
480
498
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
481
499
dnl require some minimum version. Point them to the right macro.
482
m4_if([$1], [1.13.4], [],
500
m4_if([$1], [1.14.1], [],
483
501
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
495
513
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
496
514
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
497
515
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
498
[AM_AUTOMAKE_VERSION([1.13.4])dnl
516
[AM_AUTOMAKE_VERSION([1.14.1])dnl
499
517
m4_ifndef([AC_AUTOCONF_VERSION],
500
518
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
501
519
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
862
880
# This macro actually does too much. Some checks are only needed if
863
881
# your package does certain things. But this isn't really a big deal.
883
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
884
m4_define([AC_PROG_CC],
885
m4_defn([AC_PROG_CC])
865
889
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
866
890
# AM_INIT_AUTOMAKE([OPTIONS])
867
891
# -----------------------------------------------
970
994
AC_CONFIG_COMMANDS_PRE(dnl
971
995
[m4_provide_if([_AM_COMPILER_EXEEXT],
972
996
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
998
# POSIX will say in a future version that running "rm -f" with no argument
999
# is OK; and we want to be able to make that assumption in our Makefile
1000
# recipes. So use an aggressive probe to check that the usage we want is
1001
# actually supported "in the wild" to an acceptable degree.
1002
# See automake bug#10828.
1003
# To make any issue more visible, cause the running configure to be aborted
1004
# by default if the 'rm' program in use doesn't match our expectations; the
1005
# user can still override this though.
1006
if rm -f && rm -fr && rm -rf; then : OK; else
1010
Your 'rm' program seems unable to run without file operands specified
1011
on the command line, even when the '-f' option is present. This is contrary
1012
to the behaviour of most rm programs out there, and not conforming with
1013
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1015
Please tell bug-automake@gnu.org about your system, including the value
1016
of your $PATH and any error possibly output before this message. This
1017
can help us improve future automake versions.
1020
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1021
echo 'Configuration will proceed anyway, since you have set the' >&2
1022
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1026
Aborting the configuration process, to ensure you take notice of the issue.
1028
You can download and install GNU coreutils to get an 'rm' implementation
1029
that behaves properly: <http://www.gnu.org/software/coreutils/>.
1031
If you want to complete the configuration process using your problematic
1032
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1033
to "yes", and re-run configure.
1036
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
975
1040
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
976
1041
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
978
1043
m4_define([_AC_COMPILER_EXEEXT],
979
1044
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
982
1046
# When config.status generates a header, we must update the stamp-h file.
983
1047
# This file resides in the same directory as the config header
984
1048
# that is generated. The stamp files are numbered to have different names.
1196
1260
AC_DEFUN([_AM_IF_OPTION],
1197
1261
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1263
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
1265
# This file is free software; the Free Software Foundation
1266
# gives unlimited permission to copy and/or distribute it,
1267
# with or without modifications, as long as this notice is preserved.
1271
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1272
# to automatically call this.
1273
AC_DEFUN([_AM_PROG_CC_C_O],
1274
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1275
AC_REQUIRE_AUX_FILE([compile])dnl
1276
AC_LANG_PUSH([C])dnl
1278
[whether $CC understands -c and -o together],
1279
[am_cv_prog_cc_c_o],
1280
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1281
# Make sure it works both with $CC and with simple cc.
1282
# Following AC_PROG_CC_C_O, we do the test twice because some
1283
# compilers refuse to overwrite an existing .o file with -o,
1284
# though they will create one.
1285
am_cv_prog_cc_c_o=yes
1287
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1288
&& test -f conftest2.$ac_objext; then
1291
am_cv_prog_cc_c_o=no
1295
rm -f core conftest*
1297
if test "$am_cv_prog_cc_c_o" != yes; then
1298
# Losing compiler, so override with the script.
1299
# FIXME: It is wrong to rewrite CC.
1300
# But if we don't then we get into trouble of one sort or another.
1301
# A longer-term fix would be to have automake use am__CC in this case,
1302
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1303
CC="$am_aux_dir/compile $CC"
1307
# For backward compatibility.
1308
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1199
1310
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1201
1312
# This file is free software; the Free Software Foundation
2304
2415
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
2418
m4_include([m4/glibtests.m4])
2307
2419
m4_include([m4/gtk-doc.m4])
2308
2420
m4_include([m4/intltool.m4])
2309
2421
m4_include([m4/libtool.m4])