32
32
# generated from the m4 files accompanying Automake X.Y.
33
33
# (This private macro should not be called outside this file.)
34
34
AC_DEFUN([AM_AUTOMAKE_VERSION],
35
[am__api_version='1.13'
35
[am__api_version='1.14'
36
36
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37
37
dnl require some minimum version. Point them to the right macro.
38
m4_if([$1], [1.13.3], [],
38
m4_if([$1], [1.14], [],
39
39
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
51
51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52
52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53
53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54
[AM_AUTOMAKE_VERSION([1.13.3])dnl
54
[AM_AUTOMAKE_VERSION([1.14])dnl
55
55
m4_ifndef([AC_AUTOCONF_VERSION],
56
56
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57
57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
418
418
# This macro actually does too much. Some checks are only needed if
419
419
# your package does certain things. But this isn't really a big deal.
421
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
422
m4_define([AC_PROG_CC],
423
m4_defn([AC_PROG_CC])
421
427
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
422
428
# AM_INIT_AUTOMAKE([OPTIONS])
423
429
# -----------------------------------------------
526
532
AC_CONFIG_COMMANDS_PRE(dnl
527
533
[m4_provide_if([_AM_COMPILER_EXEEXT],
528
534
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
536
# POSIX will say in a future version that running "rm -f" with no argument
537
# is OK; and we want to be able to make that assumption in our Makefile
538
# recipes. So use an aggressive probe to check that the usage we want is
539
# actually supported "in the wild" to an acceptable degree.
540
# See automake bug#10828.
541
# To make any issue more visible, cause the running configure to be aborted
542
# by default if the 'rm' program in use doesn't match our expectations; the
543
# user can still override this though.
544
if rm -f && rm -fr && rm -rf; then : OK; else
548
Your 'rm' program seems unable to run without file operands specified
549
on the command line, even when the '-f' option is present. This is contrary
550
to the behaviour of most rm programs out there, and not conforming with
551
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
553
Please tell bug-automake@gnu.org about your system, including the value
554
of your $PATH and any error possibly output before this message. This
555
can help us improve future automake versions.
558
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
559
echo 'Configuration will proceed anyway, since you have set the' >&2
560
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
564
Aborting the configuration process, to ensure you take notice of the issue.
566
You can download and install GNU coreutils to get an 'rm' implementation
567
that behaves properly: <http://www.gnu.org/software/coreutils/>.
569
If you want to complete the configuration process using your problematic
570
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
571
to "yes", and re-run configure.
574
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
531
578
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
532
579
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
646
692
rm -f confinc confmf
649
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
651
# This file is free software; the Free Software Foundation
652
# gives unlimited permission to copy and/or distribute it,
653
# with or without modifications, as long as this notice is preserved.
657
# Like AC_PROG_CC_C_O, but changed for automake.
658
AC_DEFUN([AM_PROG_CC_C_O],
659
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
660
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
661
AC_REQUIRE_AUX_FILE([compile])dnl
662
# FIXME: we rely on the cache variable name because
663
# there is no other way.
665
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
666
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
667
if test "$am_t" != yes; then
668
# Losing compiler, so override with the script.
669
# FIXME: It is wrong to rewrite CC.
670
# But if we don't then we get into trouble of one sort or another.
671
# A longer-term fix would be to have automake use am__CC in this case,
672
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
673
CC="$am_aux_dir/compile $CC"
675
dnl Make sure AC_PROG_CC is never called again, or it will override our
677
m4_define([AC_PROG_CC],
678
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
681
695
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
683
697
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
780
794
AC_DEFUN([_AM_IF_OPTION],
781
795
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
797
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
799
# This file is free software; the Free Software Foundation
800
# gives unlimited permission to copy and/or distribute it,
801
# with or without modifications, as long as this notice is preserved.
805
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
806
# to automatically call this.
807
AC_DEFUN([_AM_PROG_CC_C_O],
808
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
809
AC_REQUIRE_AUX_FILE([compile])dnl
812
[whether $CC understands -c and -o together],
814
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
815
# Make sure it works both with $CC and with simple cc.
816
# Following AC_PROG_CC_C_O, we do the test twice because some
817
# compilers refuse to overwrite an existing .o file with -o,
818
# though they will create one.
819
am_cv_prog_cc_c_o=yes
821
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
822
&& test -f conftest2.$ac_objext; then
831
if test "$am_cv_prog_cc_c_o" != yes; then
832
# Losing compiler, so override with the script.
833
# FIXME: It is wrong to rewrite CC.
834
# But if we don't then we get into trouble of one sort or another.
835
# A longer-term fix would be to have automake use am__CC in this case,
836
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
837
CC="$am_aux_dir/compile $CC"
841
# For backward compatibility.
842
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
844
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
846
# This file is free software; the Free Software Foundation
847
# gives unlimited permission to copy and/or distribute it,
848
# with or without modifications, as long as this notice is preserved.
850
# AM_RUN_LOG(COMMAND)
851
# -------------------
852
# Run COMMAND, save the exit status in ac_status, and log it.
853
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
854
AC_DEFUN([AM_RUN_LOG],
855
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
856
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
858
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
859
(exit $ac_status); }])
783
861
# Check to make sure that the build environment is sane. -*- Autoconf -*-
785
863
# Copyright (C) 1996-2013 Free Software Foundation, Inc.