1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
[m4_warning([this file was generated for autoconf 2.65.
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18
[m4_warning([this file was generated for autoconf 2.68.
18
19
You have another version of autoconf. It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
24
26
# This file is free software; the Free Software Foundation
25
27
# gives unlimited permission to copy and/or distribute it,
26
28
# with or without modifications, as long as this notice is preserved.
28
32
# AM_AUTOMAKE_VERSION(VERSION)
29
33
# ----------------------------
30
34
# Automake X.Y traces this macro to ensure aclocal.m4 has been
50
54
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
55
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
56
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
[AM_AUTOMAKE_VERSION([1.11])dnl
57
[AM_AUTOMAKE_VERSION([1.11.3])dnl
54
58
m4_ifndef([AC_AUTOCONF_VERSION],
55
59
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
60
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
62
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
62
66
# This file is free software; the Free Software Foundation
63
67
# gives unlimited permission to copy and/or distribute it,
64
68
# with or without modifications, as long as this notice is preserved.
66
72
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
73
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68
74
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
144
150
Usually this means the macro was only invoked conditionally.]])
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
# Free Software Foundation, Inc.
153
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
154
# 2010, 2011 Free Software Foundation, Inc.
150
156
# This file is free software; the Free Software Foundation
151
157
# gives unlimited permission to copy and/or distribute it,
152
158
# with or without modifications, as long as this notice is preserved.
156
162
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
163
# written in clear, in which case automake, when reading aclocal.m4,
546
556
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
548
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
558
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
550
561
# This file is free software; the Free Software Foundation
551
562
# gives unlimited permission to copy and/or distribute it,
552
563
# with or without modifications, as long as this notice is preserved.
554
567
# AM_PROG_INSTALL_SH
555
568
# ------------------
556
569
# Define $install_sh.
590
603
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
591
604
# From Jim Meyering
593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
# Free Software Foundation, Inc.
606
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
607
# 2011 Free Software Foundation, Inc.
596
609
# This file is free software; the Free Software Foundation
597
610
# gives unlimited permission to copy and/or distribute it,
611
624
[disable], [m4_define([am_maintainer_other], [enable])],
612
625
[m4_define([am_maintainer_other], [enable])
613
626
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
627
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
615
628
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
629
AC_ARG_ENABLE([maintainer-mode],
617
630
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
760
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
773
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
762
776
# This file is free software; the Free Software Foundation
763
777
# gives unlimited permission to copy and/or distribute it,
764
778
# with or without modifications, as long as this notice is preserved.
766
782
# AM_PROG_MKDIR_P
767
783
# ---------------
768
784
# Check for `mkdir -p'.
786
802
# Helper functions for option handling. -*- Autoconf -*-
788
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
804
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
790
807
# This file is free software; the Free Software Foundation
791
808
# gives unlimited permission to copy and/or distribute it,
792
809
# with or without modifications, as long as this notice is preserved.
796
813
# _AM_MANGLE_OPTION(NAME)
797
814
# -----------------------
799
816
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
801
818
# _AM_SET_OPTION(NAME)
802
# ------------------------------
819
# --------------------
803
820
# Set option NAME. Presently that only means defining a flag for this option.
804
821
AC_DEFUN([_AM_SET_OPTION],
805
822
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
807
824
# _AM_SET_OPTIONS(OPTIONS)
808
# ----------------------------------
825
# ------------------------
809
826
# OPTIONS is a space-separated list of Automake options.
810
827
AC_DEFUN([_AM_SET_OPTIONS],
811
828
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
882
899
AC_MSG_RESULT(yes)])
884
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
886
# This file is free software; the Free Software Foundation
887
# gives unlimited permission to copy and/or distribute it,
888
# with or without modifications, as long as this notice is preserved.
901
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
903
# This file is free software; the Free Software Foundation
904
# gives unlimited permission to copy and/or distribute it,
905
# with or without modifications, as long as this notice is preserved.
909
# AM_SILENT_RULES([DEFAULT])
910
# --------------------------
911
# Enable less verbose build rules; with the default set to DEFAULT
912
# (`yes' being less verbose, `no' or empty being verbose).
913
AC_DEFUN([AM_SILENT_RULES],
914
[AC_ARG_ENABLE([silent-rules],
915
[ --enable-silent-rules less verbose build output (undo: `make V=1')
916
--disable-silent-rules verbose build output (undo: `make V=0')])
917
case $enable_silent_rules in
918
yes) AM_DEFAULT_VERBOSITY=0;;
919
no) AM_DEFAULT_VERBOSITY=1;;
920
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
923
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
924
dnl do not support nested variable expansions.
925
dnl See automake bug#9928 and bug#10237.
927
AC_CACHE_CHECK([whether $am_make supports nested variables],
928
[am_cv_make_support_nested_variables],
929
[if AS_ECHO([['TRUE=$(BAR$(V))
935
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
936
am_cv_make_support_nested_variables=yes
938
am_cv_make_support_nested_variables=no
940
if test $am_cv_make_support_nested_variables = yes; then
941
dnl Using `$V' instead of `$(V)' breaks IRIX make.
943
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
945
AM_V=$AM_DEFAULT_VERBOSITY
946
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
949
AM_SUBST_NOTMAKE([AM_V])dnl
950
AC_SUBST([AM_DEFAULT_V])dnl
951
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
952
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
954
AC_SUBST([AM_BACKSLASH])dnl
955
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
958
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
960
# This file is free software; the Free Software Foundation
961
# gives unlimited permission to copy and/or distribute it,
962
# with or without modifications, as long as this notice is preserved.
890
966
# AM_PROG_INSTALL_STRIP
891
967
# ---------------------
909
985
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
910
986
AC_SUBST([INSTALL_STRIP_PROGRAM])])
912
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
988
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
914
990
# This file is free software; the Free Software Foundation
915
991
# gives unlimited permission to copy and/or distribute it,
916
992
# with or without modifications, as long as this notice is preserved.
920
996
# _AM_SUBST_NOTMAKE(VARIABLE)
921
997
# ---------------------------
924
1000
AC_DEFUN([_AM_SUBST_NOTMAKE])
926
1002
# AM_SUBST_NOTMAKE(VARIABLE)
927
# ---------------------------
1003
# --------------------------
928
1004
# Public sister of _AM_SUBST_NOTMAKE.
929
1005
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
931
1007
# Check how to create a tarball. -*- Autoconf -*-
933
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1009
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
935
1011
# This file is free software; the Free Software Foundation
936
1012
# gives unlimited permission to copy and/or distribute it,
952
1028
# a tarball read from stdin.
953
1029
# $(am__untar) < result.tar
954
1030
AC_DEFUN([_AM_PROG_TAR],
955
[# Always define AMTAR for backward compatibility.
956
AM_MISSING_PROG([AMTAR], [tar])
1031
[# Always define AMTAR for backward compatibility. Yes, it's still used
1032
# in the wild :-( We should find a proper way to deprecate it ...
1033
AC_SUBST([AMTAR], ['$${TAR-tar}'])
957
1034
m4_if([$1], [v7],
958
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1035
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
959
1036
[m4_case([$1], [ustar],, [pax],,
960
1037
[m4_fatal([Unknown tar format])])
961
1038
AC_MSG_CHECKING([how to create a $1 tar archive])
1051
1129
# ----------------------------------
1052
1130
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1053
1131
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1054
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1055
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
1132
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
1133
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
1134
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1135
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1136
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1056
1138
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1057
1139
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1074
1155
# Check to see whether a particular set of modules exists. Similar
1075
1156
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1078
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
1079
# this or PKG_CHECK_MODULES is called, or make sure to call
1080
# PKG_CHECK_EXISTS manually
1158
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1159
# only at the first occurence in configure.ac, so if the first place
1160
# it's called might be skipped (such as if it is within an "if", you
1161
# have to call PKG_CHECK_EXISTS manually
1081
1162
# --------------------------------------------------------------
1082
1163
AC_DEFUN([PKG_CHECK_EXISTS],
1083
1164
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1084
1165
if test -n "$PKG_CONFIG" && \
1085
1166
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1086
m4_ifval([$2], [$2], [:])
1167
m4_default([$2], [:])
1087
1168
m4_ifvaln([$3], [else
1092
1172
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1093
1173
# ---------------------------------------------
1094
1174
m4_define([_PKG_CONFIG],
1095
[if test -n "$PKG_CONFIG"; then
1096
if test -n "$$1"; then
1099
PKG_CHECK_EXISTS([$3],
1100
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
1175
[if test -n "$$1"; then
1177
elif test -n "$PKG_CONFIG"; then
1178
PKG_CHECK_EXISTS([$3],
1179
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
1180
test "x$?" != "x0" && pkg_failed=yes ],
1106
1185
])# _PKG_CONFIG
1143
1222
See the pkg-config man page for more details.])
1145
1224
if test $pkg_failed = yes; then
1146
1226
_PKG_SHORT_ERRORS_SUPPORTED
1147
1227
if test $_pkg_short_errors_supported = yes; then
1148
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
1228
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1150
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
1230
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1152
1232
# Put the nasty error message in config.log where it belongs
1153
1233
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1155
ifelse([$4], , [AC_MSG_ERROR(dnl
1235
m4_default([$4], [AC_MSG_ERROR(
1156
1236
[Package requirements ($2) were not met:
1160
1240
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1161
1241
installed software in a non-standard prefix.
1165
[AC_MSG_RESULT([no])
1167
1245
elif test $pkg_failed = untried; then
1168
ifelse([$4], , [AC_MSG_FAILURE(dnl
1247
m4_default([$4], [AC_MSG_FAILURE(
1169
1248
[The pkg-config script could not be found or is too old. Make sure it
1170
1249
is in your PATH or set the PKG_CONFIG environment variable to the full
1171
1250
path to pkg-config.
1175
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1254
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
1178
1257
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1179
1258
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1180
1259
AC_MSG_RESULT([yes])
1181
ifelse([$3], , :, [$3])
1183
1262
])# PKG_CHECK_MODULES
1266
1345
min_xine_version=ifelse([$1], , [0.5.0], [$1])
1267
1346
AC_PATH_TOOL([XINE_CONFIG], [xine-config], [no])
1268
1347
AC_MSG_CHECKING([for XINE-LIB version >= $min_xine_version])
1269
XINE_CFLAGS="`$XINE_CONFIG $xine_config_args --cflags`"
1270
XINE_LIBS="`$XINE_CONFIG $xine_config_args --libs`"
1271
XINE_VERSION="`$XINE_CONFIG $xine_config_args --version`"
1272
XINE_ACFLAGS="`$XINE_CONFIG $xine_config_args --acflags`"
1273
xine_data_dir="`$XINE_CONFIG $xine_config_args --datadir`"
1274
xine_script_dir="`$XINE_CONFIG $xine_config_args --scriptdir`"
1275
xine_plugin_dir="`$XINE_CONFIG $xine_config_args --plugindir`"
1276
xine_locale_dir="`$XINE_CONFIG $xine_config_args --localedir`"
1348
XINE_CFLAGS="`$XINE_CONFIG $xine_config_args --cflags 2>/dev/null`"
1349
XINE_LIBS="`$XINE_CONFIG $xine_config_args --libs 2>/dev/null`"
1350
XINE_VERSION="`$XINE_CONFIG $xine_config_args --version 2>/dev/null`"
1351
XINE_ACFLAGS="`$XINE_CONFIG $xine_config_args --acflags 2>/dev/null`"
1352
xine_data_dir="`$XINE_CONFIG $xine_config_args --datadir 2>/dev/null`"
1353
xine_script_dir="`$XINE_CONFIG $xine_config_args --scriptdir 2>/dev/null`"
1354
xine_plugin_dir="`$XINE_CONFIG $xine_config_args --plugindir 2>/dev/null`"
1355
xine_locale_dir="`$XINE_CONFIG $xine_config_args --localedir 2>/dev/null`"
1277
1356
_XINE_VERSION_CHECK([$min_xine_version], [$XINE_VERSION],
1278
1357
[xine_version_ok=yes; AC_MSG_RESULT([yes, $XINE_VERSION])],
1279
1358
[xine_version_ok=no; AC_MSG_RESULT([no, $XINE_VERSION])])
1302
1381
AC_SUBST(XINE_ACFLAGS)
1384
dnl XINE_ARG_WITH(VARIABLE, HELP-TEXT)
1385
dnl Like AC_ARG_WITH but strictly sets variables
1386
dnl hard_with_VARIABLE = "yes" or "no" if the option is present, else undefined
1387
dnl with_VARIABLE = "yes" or "no" if the option is enabled or disabled
1388
dnl (falls back on default_with_VARIABLE)
1389
dnl if both = yes, error is permissible if missing requirement(s)
1390
AC_DEFUN([XINE_ARG_WITH], [
1391
if test "x$default_with_[]m4_translit([[$1]], [-], [_])" = x; then
1392
AC_MSG_ERROR([default_with_[]m4_translit([[$1]], [-], [_]) is not set])
1394
AC_ARG_WITH([$1], [AS_HELP_STRING([--with-$1], [$2])],
1395
[test x"$withval" != xno && with_[]m4_translit([[$1]], [-], [_])=yes || with_[]m4_translit([[$1]], [-], [_])=no; hard_with_[]m4_translit([[$1]], [-], [_])="$with_[]m4_translit([[$1]], [-], [_])"],
1396
[with_[]m4_translit([[$1]], [-], [_])="$default_with_[]m4_translit([[$1]], [-], [_])"; hard_with_[]m4_translit([[$1]], [-], [_])=''])])
1398
dnl XINE_ARG_ENABLE(VARIABLE, HELP-TEXT)
1399
dnl Like AC_ARG_WITH_X but wrapping AC_ARG_ENABLE
1400
AC_DEFUN([XINE_ARG_ENABLE], [
1401
if test "x$default_enable_[]m4_translit([[$1]], [-], [_])" = x; then
1402
AC_MSG_ERROR([default_enable_[]m4_translit([[$1]], [-], [_]) is not set])
1404
AC_ARG_ENABLE([$1], [AS_HELP_STRING([--enable-$1], [$2])],
1405
[test x"$enableval" != xno && enable_[]m4_translit([[$1]], [-], [_])=yes || enable_[]m4_translit([[$1]], [-], [_])=no; hard_enable_[]m4_translit([[$1]], [-], [_])="$enable_[]m4_translit([[$1]], [-], [_])"],
1406
[enable_[]m4_translit([[$1]], [-], [_])="$default_enable_[]m4_translit([[$1]], [-], [_])"; hard_enable_[]m4_translit([[$1]], [-], [_])=''])])
1305
1408
m4_include([m4/gettext/gettext.m4])
1306
1409
m4_include([m4/gettext/iconv.m4])
1307
1410
m4_include([m4/gettext/lib-ld.m4])