2280
2280
])# PKG_CHECK_MODULES
2283
# PKG_INSTALLDIR(DIRECTORY)
2284
# -------------------------
2285
# Substitutes the variable pkgconfigdir as the location where a module
2286
# should install pkg-config .pc files. By default the directory is
2287
# $libdir/pkgconfig, but the default can be changed by passing
2288
# DIRECTORY. The user can override through the --with-pkgconfigdir
2290
AC_DEFUN([PKG_INSTALLDIR],
2291
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
2292
m4_pushdef([pkg_description],
2293
[pkg-config installation directory @<:@]pkg_default[@:>@])
2294
AC_ARG_WITH([pkgconfigdir],
2295
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
2296
[with_pkgconfigdir=]pkg_default)
2297
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
2298
m4_popdef([pkg_default])
2299
m4_popdef([pkg_description])
2300
]) dnl PKG_INSTALLDIR
2303
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
2304
# -------------------------
2305
# Substitutes the variable noarch_pkgconfigdir as the location where a
2306
# module should install arch-independent pkg-config .pc files. By
2307
# default the directory is $datadir/pkgconfig, but the default can be
2308
# changed by passing DIRECTORY. The user can override through the
2309
# --with-noarch-pkgconfigdir parameter.
2310
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
2311
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
2312
m4_pushdef([pkg_description],
2313
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
2314
AC_ARG_WITH([noarch-pkgconfigdir],
2315
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
2316
[with_noarch_pkgconfigdir=]pkg_default)
2317
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
2318
m4_popdef([pkg_default])
2319
m4_popdef([pkg_description])
2320
]) dnl PKG_NOARCH_INSTALLDIR
2323
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
2324
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2325
# -------------------------------------------
2326
# Retrieves the value of the pkg-config variable for the given module.
2327
AC_DEFUN([PKG_CHECK_VAR],
2328
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2329
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
2331
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
2332
AS_VAR_COPY([$1], [pkg_cv_][$1])
2334
AS_VAR_IF([$1], [""], [$5], [$4])dnl
2282
2337
# po.m4 serial 21 (gettext-0.18.3)
2283
2338
dnl Copyright (C) 1995-2013 Free Software Foundation, Inc.
2284
2339
dnl This file is free software; the Free Software Foundation
2837
2892
# generated from the m4 files accompanying Automake X.Y.
2838
2893
# (This private macro should not be called outside this file.)
2839
2894
AC_DEFUN([AM_AUTOMAKE_VERSION],
2840
[am__api_version='1.14'
2895
[am__api_version='1.13'
2841
2896
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2842
2897
dnl require some minimum version. Point them to the right macro.
2843
m4_if([$1], [1.14.1], [],
2898
m4_if([$1], [1.13.4], [],
2844
2899
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2856
2911
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
2857
2912
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2858
2913
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2859
[AM_AUTOMAKE_VERSION([1.14.1])dnl
2914
[AM_AUTOMAKE_VERSION([1.13.4])dnl
2860
2915
m4_ifndef([AC_AUTOCONF_VERSION],
2861
2916
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2862
2917
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
3337
3386
AC_CONFIG_COMMANDS_PRE(dnl
3338
3387
[m4_provide_if([_AM_COMPILER_EXEEXT],
3339
3388
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
3341
# POSIX will say in a future version that running "rm -f" with no argument
3342
# is OK; and we want to be able to make that assumption in our Makefile
3343
# recipes. So use an aggressive probe to check that the usage we want is
3344
# actually supported "in the wild" to an acceptable degree.
3345
# See automake bug#10828.
3346
# To make any issue more visible, cause the running configure to be aborted
3347
# by default if the 'rm' program in use doesn't match our expectations; the
3348
# user can still override this though.
3349
if rm -f && rm -fr && rm -rf; then : OK; else
3353
Your 'rm' program seems unable to run without file operands specified
3354
on the command line, even when the '-f' option is present. This is contrary
3355
to the behaviour of most rm programs out there, and not conforming with
3356
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3358
Please tell bug-automake@gnu.org about your system, including the value
3359
of your $PATH and any error possibly output before this message. This
3360
can help us improve future automake versions.
3363
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3364
echo 'Configuration will proceed anyway, since you have set the' >&2
3365
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3369
Aborting the configuration process, to ensure you take notice of the issue.
3371
You can download and install GNU coreutils to get an 'rm' implementation
3372
that behaves properly: <http://www.gnu.org/software/coreutils/>.
3374
If you want to complete the configuration process using your problematic
3375
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3376
to "yes", and re-run configure.
3379
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
3383
3391
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
3384
3392
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
3497
3506
rm -f confinc confmf
3509
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
3511
# This file is free software; the Free Software Foundation
3512
# gives unlimited permission to copy and/or distribute it,
3513
# with or without modifications, as long as this notice is preserved.
3517
# Like AC_PROG_CC_C_O, but changed for automake.
3518
AC_DEFUN([AM_PROG_CC_C_O],
3519
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
3520
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
3521
AC_REQUIRE_AUX_FILE([compile])dnl
3522
# FIXME: we rely on the cache variable name because
3523
# there is no other way.
3525
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
3526
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3527
if test "$am_t" != yes; then
3528
# Losing compiler, so override with the script.
3529
# FIXME: It is wrong to rewrite CC.
3530
# But if we don't then we get into trouble of one sort or another.
3531
# A longer-term fix would be to have automake use am__CC in this case,
3532
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3533
CC="$am_aux_dir/compile $CC"
3535
dnl Make sure AC_PROG_CC is never called again, or it will override our
3537
m4_define([AC_PROG_CC],
3538
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
3500
3541
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
3502
3543
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
3573
3614
# gives unlimited permission to copy and/or distribute it,
3574
3615
# with or without modifications, as long as this notice is preserved.
3578
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
3579
# to automatically call this.
3580
AC_DEFUN([_AM_PROG_CC_C_O],
3581
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
3582
AC_REQUIRE_AUX_FILE([compile])dnl
3583
AC_LANG_PUSH([C])dnl
3585
[whether $CC understands -c and -o together],
3586
[am_cv_prog_cc_c_o],
3587
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
3588
# Make sure it works both with $CC and with simple cc.
3589
# Following AC_PROG_CC_C_O, we do the test twice because some
3590
# compilers refuse to overwrite an existing .o file with -o,
3591
# though they will create one.
3592
am_cv_prog_cc_c_o=yes
3594
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
3595
&& test -f conftest2.$ac_objext; then
3598
am_cv_prog_cc_c_o=no
3602
rm -f core conftest*
3604
if test "$am_cv_prog_cc_c_o" != yes; then
3605
# Losing compiler, so override with the script.
3606
# FIXME: It is wrong to rewrite CC.
3607
# But if we don't then we get into trouble of one sort or another.
3608
# A longer-term fix would be to have automake use am__CC in this case,
3609
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3610
CC="$am_aux_dir/compile $CC"
3614
# For backward compatibility.
3615
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
3617
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
3619
# This file is free software; the Free Software Foundation
3620
# gives unlimited permission to copy and/or distribute it,
3621
# with or without modifications, as long as this notice is preserved.
3624
3618
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3625
3619
# ---------------------------------------------------------------------------
3849
3843
sys.exit(sys.hexversion < minverhex)"
3850
3844
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
3852
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
3854
# This file is free software; the Free Software Foundation
3855
# gives unlimited permission to copy and/or distribute it,
3856
# with or without modifications, as long as this notice is preserved.
3858
# AM_RUN_LOG(COMMAND)
3859
# -------------------
3860
# Run COMMAND, save the exit status in ac_status, and log it.
3861
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
3862
AC_DEFUN([AM_RUN_LOG],
3863
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
3864
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
3866
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3867
(exit $ac_status); }])
3869
3846
# Check to make sure that the build environment is sane. -*- Autoconf -*-
3871
3848
# Copyright (C) 1996-2013 Free Software Foundation, Inc.