~ubuntu-branches/ubuntu/saucy/parole/saucy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2012-08-15 13:56:10 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120815135610-xkgrhm52dq81czhe
Tags: 0.3.0-0ubuntu1
* New upstream release.
* debian/patches:
  - 01_fix-implicit-dso-linking.patch: dropped, included upstream.
  - 01_fix-plugin-install-dir.patch, 02_fix-ftbfs-enable-debug.patch,
    03_fix-ftbfs-built-twice.patch: added, fix wrong install path and build
    failures.
* debian/control:
  - replace b-dep on libxfcegui4-dev with libxfce4ui-1-dev and bump
    libgtk2.0-dev to >= 2.20.
* debian/rules:
  - create empty m4 directory if missing.
  - clean up autogenerated files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
2
 
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
# Inc.
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.
260
261
              [CATOBJEXT=.mo
261
262
               DATADIRNAME=lib])
262
263
            ;;
 
264
            *-*-openbsd*)
 
265
            CATOBJEXT=.mo
 
266
            DATADIRNAME=share
 
267
            ;;
263
268
            *)
264
269
            CATOBJEXT=.mo
265
270
            DATADIRNAME=lib
452
457
fi])
453
458
 
454
459
 
 
460
# nls.m4 serial 5 (gettext-0.18)
 
461
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
 
462
dnl Inc.
 
463
dnl This file is free software; the Free Software Foundation
 
464
dnl gives unlimited permission to copy and/or distribute it,
 
465
dnl with or without modifications, as long as this notice is preserved.
 
466
dnl
 
467
dnl This file can can be used in projects which are not available under
 
468
dnl the GNU General Public License or the GNU Library General Public
 
469
dnl License but which still want to provide support for the GNU gettext
 
470
dnl functionality.
 
471
dnl Please note that the actual code of the GNU gettext library is covered
 
472
dnl by the GNU Library General Public License, and the rest of the GNU
 
473
dnl gettext package package is covered by the GNU General Public License.
 
474
dnl They are *not* in the public domain.
 
475
 
 
476
dnl Authors:
 
477
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
478
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
479
 
 
480
AC_PREREQ([2.50])
 
481
 
 
482
AC_DEFUN([AM_NLS],
 
483
[
 
484
  AC_MSG_CHECKING([whether NLS is requested])
 
485
  dnl Default is enabled NLS
 
486
  AC_ARG_ENABLE([nls],
 
487
    [  --disable-nls           do not use Native Language Support],
 
488
    USE_NLS=$enableval, USE_NLS=yes)
 
489
  AC_MSG_RESULT([$USE_NLS])
 
490
  AC_SUBST([USE_NLS])
 
491
])
 
492
 
 
493
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
494
# serial 1 (pkg-config-0.24)
 
495
 
496
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
497
#
 
498
# This program is free software; you can redistribute it and/or modify
 
499
# it under the terms of the GNU General Public License as published by
 
500
# the Free Software Foundation; either version 2 of the License, or
 
501
# (at your option) any later version.
 
502
#
 
503
# This program is distributed in the hope that it will be useful, but
 
504
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
505
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
506
# General Public License for more details.
 
507
#
 
508
# You should have received a copy of the GNU General Public License
 
509
# along with this program; if not, write to the Free Software
 
510
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
511
#
 
512
# As a special exception to the GNU General Public License, if you
 
513
# distribute this file as part of a program that contains a
 
514
# configuration script generated by Autoconf, you may include it under
 
515
# the same distribution terms that you use for the rest of that program.
 
516
 
 
517
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
518
# ----------------------------------
 
519
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
520
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
521
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
522
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
523
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
524
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
525
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
526
 
 
527
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
528
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
529
fi
 
530
if test -n "$PKG_CONFIG"; then
 
531
        _pkg_min_version=m4_default([$1], [0.9.0])
 
532
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
533
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
534
                AC_MSG_RESULT([yes])
 
535
        else
 
536
                AC_MSG_RESULT([no])
 
537
                PKG_CONFIG=""
 
538
        fi
 
539
fi[]dnl
 
540
])# PKG_PROG_PKG_CONFIG
 
541
 
 
542
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
543
#
 
544
# Check to see whether a particular set of modules exists.  Similar
 
545
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
546
#
 
547
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
548
# only at the first occurence in configure.ac, so if the first place
 
549
# it's called might be skipped (such as if it is within an "if", you
 
550
# have to call PKG_CHECK_EXISTS manually
 
551
# --------------------------------------------------------------
 
552
AC_DEFUN([PKG_CHECK_EXISTS],
 
553
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
554
if test -n "$PKG_CONFIG" && \
 
555
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
556
  m4_default([$2], [:])
 
557
m4_ifvaln([$3], [else
 
558
  $3])dnl
 
559
fi])
 
560
 
 
561
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
562
# ---------------------------------------------
 
563
m4_define([_PKG_CONFIG],
 
564
[if test -n "$$1"; then
 
565
    pkg_cv_[]$1="$$1"
 
566
 elif test -n "$PKG_CONFIG"; then
 
567
    PKG_CHECK_EXISTS([$3],
 
568
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
569
                      test "x$?" != "x0" && pkg_failed=yes ],
 
570
                     [pkg_failed=yes])
 
571
 else
 
572
    pkg_failed=untried
 
573
fi[]dnl
 
574
])# _PKG_CONFIG
 
575
 
 
576
# _PKG_SHORT_ERRORS_SUPPORTED
 
577
# -----------------------------
 
578
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
579
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
580
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
581
        _pkg_short_errors_supported=yes
 
582
else
 
583
        _pkg_short_errors_supported=no
 
584
fi[]dnl
 
585
])# _PKG_SHORT_ERRORS_SUPPORTED
 
586
 
 
587
 
 
588
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
589
# [ACTION-IF-NOT-FOUND])
 
590
#
 
591
#
 
592
# Note that if there is a possibility the first call to
 
593
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
594
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
595
#
 
596
#
 
597
# --------------------------------------------------------------
 
598
AC_DEFUN([PKG_CHECK_MODULES],
 
599
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
600
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
601
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
602
 
 
603
pkg_failed=no
 
604
AC_MSG_CHECKING([for $1])
 
605
 
 
606
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
607
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
608
 
 
609
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
610
and $1[]_LIBS to avoid the need to call pkg-config.
 
611
See the pkg-config man page for more details.])
 
612
 
 
613
if test $pkg_failed = yes; then
 
614
        AC_MSG_RESULT([no])
 
615
        _PKG_SHORT_ERRORS_SUPPORTED
 
616
        if test $_pkg_short_errors_supported = yes; then
 
617
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
618
        else 
 
619
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
620
        fi
 
621
        # Put the nasty error message in config.log where it belongs
 
622
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
623
 
 
624
        m4_default([$4], [AC_MSG_ERROR(
 
625
[Package requirements ($2) were not met:
 
626
 
 
627
$$1_PKG_ERRORS
 
628
 
 
629
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
630
installed software in a non-standard prefix.
 
631
 
 
632
_PKG_TEXT])[]dnl
 
633
        ])
 
634
elif test $pkg_failed = untried; then
 
635
        AC_MSG_RESULT([no])
 
636
        m4_default([$4], [AC_MSG_FAILURE(
 
637
[The pkg-config script could not be found or is too old.  Make sure it
 
638
is in your PATH or set the PKG_CONFIG environment variable to the full
 
639
path to pkg-config.
 
640
 
 
641
_PKG_TEXT
 
642
 
 
643
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
644
        ])
 
645
else
 
646
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
647
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
648
        AC_MSG_RESULT([yes])
 
649
        $3
 
650
fi[]dnl
 
651
])# PKG_CHECK_MODULES
 
652
 
 
653
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
654
# Foundation, Inc.
 
655
#
 
656
# This file is free software; the Free Software Foundation
 
657
# gives unlimited permission to copy and/or distribute it,
 
658
# with or without modifications, as long as this notice is preserved.
 
659
 
 
660
# serial 1
 
661
 
 
662
# AM_AUTOMAKE_VERSION(VERSION)
 
663
# ----------------------------
 
664
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
665
# generated from the m4 files accompanying Automake X.Y.
 
666
# (This private macro should not be called outside this file.)
 
667
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
668
[am__api_version='1.11'
 
669
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
670
dnl require some minimum version.  Point them to the right macro.
 
671
m4_if([$1], [1.11.3], [],
 
672
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
673
])
 
674
 
 
675
# _AM_AUTOCONF_VERSION(VERSION)
 
676
# -----------------------------
 
677
# aclocal traces this macro to find the Autoconf version.
 
678
# This is a private macro too.  Using m4_define simplifies
 
679
# the logic in aclocal, which can simply ignore this definition.
 
680
m4_define([_AM_AUTOCONF_VERSION], [])
 
681
 
 
682
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
683
# -------------------------------
 
684
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
685
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
686
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
687
[AM_AUTOMAKE_VERSION([1.11.3])dnl
 
688
m4_ifndef([AC_AUTOCONF_VERSION],
 
689
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
690
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
691
 
 
692
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
693
 
 
694
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
695
#
 
696
# This file is free software; the Free Software Foundation
 
697
# gives unlimited permission to copy and/or distribute it,
 
698
# with or without modifications, as long as this notice is preserved.
 
699
 
 
700
# serial 1
 
701
 
 
702
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
703
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
704
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
705
#
 
706
# Of course, Automake must honor this variable whenever it calls a
 
707
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
708
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
709
# depending on how configure is run.  This is pretty annoying, since
 
710
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
711
# source directory, any form will work fine, but in subdirectories a
 
712
# relative path needs to be adjusted first.
 
713
#
 
714
# $ac_aux_dir/missing
 
715
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
716
# $top_srcdir/$ac_aux_dir/missing
 
717
#    fails if $ac_aux_dir is absolute,
 
718
#    fails when called from a subdirectory in a VPATH build with
 
719
#          a relative $ac_aux_dir
 
720
#
 
721
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
722
# are both prefixed by $srcdir.  In an in-source build this is usually
 
723
# harmless because $srcdir is `.', but things will broke when you
 
724
# start a VPATH build or use an absolute $srcdir.
 
725
#
 
726
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
727
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
728
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
729
# and then we would define $MISSING as
 
730
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
731
# This will work as long as MISSING is not called from configure, because
 
732
# unfortunately $(top_srcdir) has no meaning in configure.
 
733
# However there are other variables, like CC, which are often used in
 
734
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
735
#
 
736
# Another solution, used here, is to always expand $ac_aux_dir to an
 
737
# absolute PATH.  The drawback is that using absolute paths prevent a
 
738
# configured tree to be moved without reconfiguration.
 
739
 
 
740
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
741
[dnl Rely on autoconf to set up CDPATH properly.
 
742
AC_PREREQ([2.50])dnl
 
743
# expand $ac_aux_dir to an absolute path
 
744
am_aux_dir=`cd $ac_aux_dir && pwd`
 
745
])
 
746
 
 
747
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
748
 
 
749
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
750
# Free Software Foundation, Inc.
 
751
#
 
752
# This file is free software; the Free Software Foundation
 
753
# gives unlimited permission to copy and/or distribute it,
 
754
# with or without modifications, as long as this notice is preserved.
 
755
 
 
756
# serial 9
 
757
 
 
758
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
759
# -------------------------------------
 
760
# Define a conditional.
 
761
AC_DEFUN([AM_CONDITIONAL],
 
762
[AC_PREREQ(2.52)dnl
 
763
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
764
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
765
AC_SUBST([$1_TRUE])dnl
 
766
AC_SUBST([$1_FALSE])dnl
 
767
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
768
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
769
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
770
if $2; then
 
771
  $1_TRUE=
 
772
  $1_FALSE='#'
 
773
else
 
774
  $1_TRUE='#'
 
775
  $1_FALSE=
 
776
fi
 
777
AC_CONFIG_COMMANDS_PRE(
 
778
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
779
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
780
Usually this means the macro was only invoked conditionally.]])
 
781
fi])])
 
782
 
 
783
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
784
# 2010, 2011 Free Software Foundation, Inc.
 
785
#
 
786
# This file is free software; the Free Software Foundation
 
787
# gives unlimited permission to copy and/or distribute it,
 
788
# with or without modifications, as long as this notice is preserved.
 
789
 
 
790
# serial 12
 
791
 
 
792
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
793
# written in clear, in which case automake, when reading aclocal.m4,
 
794
# will think it sees a *use*, and therefore will trigger all it's
 
795
# C support machinery.  Also note that it means that autoscan, seeing
 
796
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
797
 
 
798
 
 
799
# _AM_DEPENDENCIES(NAME)
 
800
# ----------------------
 
801
# See how the compiler implements dependency checking.
 
802
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
803
# We try a few techniques and use that to set a single cache variable.
 
804
#
 
805
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
806
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
807
# dependency, and given that the user is not expected to run this macro,
 
808
# just rely on AC_PROG_CC.
 
809
AC_DEFUN([_AM_DEPENDENCIES],
 
810
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
811
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
812
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
813
AC_REQUIRE([AM_DEP_TRACK])dnl
 
814
 
 
815
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
816
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
817
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
818
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
819
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
820
                   [depcc="$$1"   am_compiler_list=])
 
821
 
 
822
AC_CACHE_CHECK([dependency style of $depcc],
 
823
               [am_cv_$1_dependencies_compiler_type],
 
824
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
825
  # We make a subdir and do the tests there.  Otherwise we can end up
 
826
  # making bogus files that we don't know about and never remove.  For
 
827
  # instance it was reported that on HP-UX the gcc test will end up
 
828
  # making a dummy file named `D' -- because `-MD' means `put the output
 
829
  # in D'.
 
830
  rm -rf conftest.dir
 
831
  mkdir conftest.dir
 
832
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
833
  # using a relative directory.
 
834
  cp "$am_depcomp" conftest.dir
 
835
  cd conftest.dir
 
836
  # We will build objects and dependencies in a subdirectory because
 
837
  # it helps to detect inapplicable dependency modes.  For instance
 
838
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
839
  # side effect of compilation, but ICC will put the dependencies in
 
840
  # the current directory while Tru64 will put them in the object
 
841
  # directory.
 
842
  mkdir sub
 
843
 
 
844
  am_cv_$1_dependencies_compiler_type=none
 
845
  if test "$am_compiler_list" = ""; then
 
846
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
847
  fi
 
848
  am__universal=false
 
849
  m4_case([$1], [CC],
 
850
    [case " $depcc " in #(
 
851
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
852
     esac],
 
853
    [CXX],
 
854
    [case " $depcc " in #(
 
855
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
856
     esac])
 
857
 
 
858
  for depmode in $am_compiler_list; do
 
859
    # Setup a source with many dependencies, because some compilers
 
860
    # like to wrap large dependency lists on column 80 (with \), and
 
861
    # we should not choose a depcomp mode which is confused by this.
 
862
    #
 
863
    # We need to recreate these files for each test, as the compiler may
 
864
    # overwrite some of them when testing with obscure command lines.
 
865
    # This happens at least with the AIX C compiler.
 
866
    : > sub/conftest.c
 
867
    for i in 1 2 3 4 5 6; do
 
868
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
869
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
870
      # Solaris 8's {/usr,}/bin/sh.
 
871
      touch sub/conftst$i.h
 
872
    done
 
873
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
874
 
 
875
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
876
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
877
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
878
    # versions had trouble with output in subdirs
 
879
    am__obj=sub/conftest.${OBJEXT-o}
 
880
    am__minus_obj="-o $am__obj"
 
881
    case $depmode in
 
882
    gcc)
 
883
      # This depmode causes a compiler race in universal mode.
 
884
      test "$am__universal" = false || continue
 
885
      ;;
 
886
    nosideeffect)
 
887
      # after this tag, mechanisms are not by side-effect, so they'll
 
888
      # only be used when explicitly requested
 
889
      if test "x$enable_dependency_tracking" = xyes; then
 
890
        continue
 
891
      else
 
892
        break
 
893
      fi
 
894
      ;;
 
895
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
896
      # This compiler won't grok `-c -o', but also, the minuso test has
 
897
      # not run yet.  These depmodes are late enough in the game, and
 
898
      # so weak that their functioning should not be impacted.
 
899
      am__obj=conftest.${OBJEXT-o}
 
900
      am__minus_obj=
 
901
      ;;
 
902
    none) break ;;
 
903
    esac
 
904
    if depmode=$depmode \
 
905
       source=sub/conftest.c object=$am__obj \
 
906
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
907
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
908
         >/dev/null 2>conftest.err &&
 
909
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
910
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
911
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
912
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
913
      # icc doesn't choke on unknown options, it will just issue warnings
 
914
      # or remarks (even with -Werror).  So we grep stderr for any message
 
915
      # that says an option was ignored or not supported.
 
916
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
917
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
918
      # The diagnosis changed in icc 8.0:
 
919
      #   icc: Command line remark: option '-MP' not supported
 
920
      if (grep 'ignoring option' conftest.err ||
 
921
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
922
        am_cv_$1_dependencies_compiler_type=$depmode
 
923
        break
 
924
      fi
 
925
    fi
 
926
  done
 
927
 
 
928
  cd ..
 
929
  rm -rf conftest.dir
 
930
else
 
931
  am_cv_$1_dependencies_compiler_type=none
 
932
fi
 
933
])
 
934
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
935
AM_CONDITIONAL([am__fastdep$1], [
 
936
  test "x$enable_dependency_tracking" != xno \
 
937
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
938
])
 
939
 
 
940
 
 
941
# AM_SET_DEPDIR
 
942
# -------------
 
943
# Choose a directory name for dependency files.
 
944
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
945
AC_DEFUN([AM_SET_DEPDIR],
 
946
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
947
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
948
])
 
949
 
 
950
 
 
951
# AM_DEP_TRACK
 
952
# ------------
 
953
AC_DEFUN([AM_DEP_TRACK],
 
954
[AC_ARG_ENABLE(dependency-tracking,
 
955
[  --disable-dependency-tracking  speeds up one-time build
 
956
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
957
if test "x$enable_dependency_tracking" != xno; then
 
958
  am_depcomp="$ac_aux_dir/depcomp"
 
959
  AMDEPBACKSLASH='\'
 
960
  am__nodep='_no'
 
961
fi
 
962
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
963
AC_SUBST([AMDEPBACKSLASH])dnl
 
964
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
965
AC_SUBST([am__nodep])dnl
 
966
_AM_SUBST_NOTMAKE([am__nodep])dnl
 
967
])
 
968
 
 
969
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
970
 
 
971
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
972
# Free Software Foundation, Inc.
 
973
#
 
974
# This file is free software; the Free Software Foundation
 
975
# gives unlimited permission to copy and/or distribute it,
 
976
# with or without modifications, as long as this notice is preserved.
 
977
 
 
978
#serial 5
 
979
 
 
980
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
981
# ------------------------------
 
982
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
983
[{
 
984
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
985
  # are listed without --file.  Let's play safe and only enable the eval
 
986
  # if we detect the quoting.
 
987
  case $CONFIG_FILES in
 
988
  *\'*) eval set x "$CONFIG_FILES" ;;
 
989
  *)   set x $CONFIG_FILES ;;
 
990
  esac
 
991
  shift
 
992
  for mf
 
993
  do
 
994
    # Strip MF so we end up with the name of the file.
 
995
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
996
    # Check whether this is an Automake generated Makefile or not.
 
997
    # We used to match only the files named `Makefile.in', but
 
998
    # some people rename them; so instead we look at the file content.
 
999
    # Grep'ing the first line is not enough: some people post-process
 
1000
    # each Makefile.in and add a new line on top of each file to say so.
 
1001
    # Grep'ing the whole file is not good either: AIX grep has a line
 
1002
    # limit of 2048, but all sed's we know have understand at least 4000.
 
1003
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
1004
      dirpart=`AS_DIRNAME("$mf")`
 
1005
    else
 
1006
      continue
 
1007
    fi
 
1008
    # Extract the definition of DEPDIR, am__include, and am__quote
 
1009
    # from the Makefile without running `make'.
 
1010
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
1011
    test -z "$DEPDIR" && continue
 
1012
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
1013
    test -z "am__include" && continue
 
1014
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
1015
    # When using ansi2knr, U may be empty or an underscore; expand it
 
1016
    U=`sed -n 's/^U = //p' < "$mf"`
 
1017
    # Find all dependency output files, they are included files with
 
1018
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
1019
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
1020
    # expansion.
 
1021
    for file in `sed -n "
 
1022
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
1023
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
1024
      # Make sure the directory exists.
 
1025
      test -f "$dirpart/$file" && continue
 
1026
      fdir=`AS_DIRNAME(["$file"])`
 
1027
      AS_MKDIR_P([$dirpart/$fdir])
 
1028
      # echo "creating $dirpart/$file"
 
1029
      echo '# dummy' > "$dirpart/$file"
 
1030
    done
 
1031
  done
 
1032
}
 
1033
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
1034
 
 
1035
 
 
1036
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
1037
# -----------------------------
 
1038
# This macro should only be invoked once -- use via AC_REQUIRE.
 
1039
#
 
1040
# This code is only required when automatic dependency tracking
 
1041
# is enabled.  FIXME.  This creates each `.P' file that we will
 
1042
# need in order to bootstrap the dependency handling code.
 
1043
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1044
[AC_CONFIG_COMMANDS([depfiles],
 
1045
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
1046
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
1047
])
 
1048
 
 
1049
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1050
# Free Software Foundation, Inc.
 
1051
#
 
1052
# This file is free software; the Free Software Foundation
 
1053
# gives unlimited permission to copy and/or distribute it,
 
1054
# with or without modifications, as long as this notice is preserved.
 
1055
 
 
1056
# serial 8
 
1057
 
 
1058
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
1059
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
1060
 
 
1061
# Do all the work for Automake.                             -*- Autoconf -*-
 
1062
 
 
1063
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1064
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
1065
#
 
1066
# This file is free software; the Free Software Foundation
 
1067
# gives unlimited permission to copy and/or distribute it,
 
1068
# with or without modifications, as long as this notice is preserved.
 
1069
 
 
1070
# serial 16
 
1071
 
 
1072
# This macro actually does too much.  Some checks are only needed if
 
1073
# your package does certain things.  But this isn't really a big deal.
 
1074
 
 
1075
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
1076
# AM_INIT_AUTOMAKE([OPTIONS])
 
1077
# -----------------------------------------------
 
1078
# The call with PACKAGE and VERSION arguments is the old style
 
1079
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
1080
# and VERSION should now be passed to AC_INIT and removed from
 
1081
# the call to AM_INIT_AUTOMAKE.
 
1082
# We support both call styles for the transition.  After
 
1083
# the next Automake release, Autoconf can make the AC_INIT
 
1084
# arguments mandatory, and then we can depend on a new Autoconf
 
1085
# release and drop the old call support.
 
1086
AC_DEFUN([AM_INIT_AUTOMAKE],
 
1087
[AC_PREREQ([2.62])dnl
 
1088
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
1089
dnl the ones we care about.
 
1090
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
1091
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
1092
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
1093
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1094
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1095
  # is not polluted with repeated "-I."
 
1096
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1097
  # test to see if srcdir already configured
 
1098
  if test -f $srcdir/config.status; then
 
1099
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1100
  fi
 
1101
fi
 
1102
 
 
1103
# test whether we have cygpath
 
1104
if test -z "$CYGPATH_W"; then
 
1105
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1106
    CYGPATH_W='cygpath -w'
 
1107
  else
 
1108
    CYGPATH_W=echo
 
1109
  fi
 
1110
fi
 
1111
AC_SUBST([CYGPATH_W])
 
1112
 
 
1113
# Define the identity of the package.
 
1114
dnl Distinguish between old-style and new-style calls.
 
1115
m4_ifval([$2],
 
1116
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
1117
 AC_SUBST([PACKAGE], [$1])dnl
 
1118
 AC_SUBST([VERSION], [$2])],
 
1119
[_AM_SET_OPTIONS([$1])dnl
 
1120
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1121
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1122
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
1123
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
1124
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
1125
 
 
1126
_AM_IF_OPTION([no-define],,
 
1127
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
1128
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
1129
 
 
1130
# Some tools Automake needs.
 
1131
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
1132
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
1133
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
1134
AM_MISSING_PROG(AUTOCONF, autoconf)
 
1135
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
1136
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
1137
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
1138
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1139
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
1140
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
1141
# We need awk for the "check" target.  The system "awk" is bad on
 
1142
# some platforms.
 
1143
AC_REQUIRE([AC_PROG_AWK])dnl
 
1144
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
1145
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
1146
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
1147
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1148
                             [_AM_PROG_TAR([v7])])])
 
1149
_AM_IF_OPTION([no-dependencies],,
 
1150
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
1151
                  [_AM_DEPENDENCIES(CC)],
 
1152
                  [define([AC_PROG_CC],
 
1153
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1154
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1155
                  [_AM_DEPENDENCIES(CXX)],
 
1156
                  [define([AC_PROG_CXX],
 
1157
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1158
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1159
                  [_AM_DEPENDENCIES(OBJC)],
 
1160
                  [define([AC_PROG_OBJC],
 
1161
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1162
])
 
1163
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1164
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1165
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1166
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1167
AC_CONFIG_COMMANDS_PRE(dnl
 
1168
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1169
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1170
])
 
1171
 
 
1172
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1173
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1174
dnl mangled by Autoconf and run in a shell conditional statement.
 
1175
m4_define([_AC_COMPILER_EXEEXT],
 
1176
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
1177
 
 
1178
 
 
1179
# When config.status generates a header, we must update the stamp-h file.
 
1180
# This file resides in the same directory as the config header
 
1181
# that is generated.  The stamp files are numbered to have different names.
 
1182
 
 
1183
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
1184
# loop where config.status creates the headers, so we can generate
 
1185
# our stamp files there.
 
1186
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
1187
[# Compute $1's index in $config_headers.
 
1188
_am_arg=$1
 
1189
_am_stamp_count=1
 
1190
for _am_header in $config_headers :; do
 
1191
  case $_am_header in
 
1192
    $_am_arg | $_am_arg:* )
 
1193
      break ;;
 
1194
    * )
 
1195
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
1196
  esac
 
1197
done
 
1198
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
1199
 
 
1200
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
1201
# Inc.
 
1202
#
 
1203
# This file is free software; the Free Software Foundation
 
1204
# gives unlimited permission to copy and/or distribute it,
 
1205
# with or without modifications, as long as this notice is preserved.
 
1206
 
 
1207
# serial 1
 
1208
 
 
1209
# AM_PROG_INSTALL_SH
 
1210
# ------------------
 
1211
# Define $install_sh.
 
1212
AC_DEFUN([AM_PROG_INSTALL_SH],
 
1213
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1214
if test x"${install_sh}" != xset; then
 
1215
  case $am_aux_dir in
 
1216
  *\ * | *\     *)
 
1217
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1218
  *)
 
1219
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1220
  esac
 
1221
fi
 
1222
AC_SUBST(install_sh)])
 
1223
 
 
1224
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
1225
#
 
1226
# This file is free software; the Free Software Foundation
 
1227
# gives unlimited permission to copy and/or distribute it,
 
1228
# with or without modifications, as long as this notice is preserved.
 
1229
 
 
1230
# serial 2
 
1231
 
 
1232
# Check whether the underlying file-system supports filenames
 
1233
# with a leading dot.  For instance MS-DOS doesn't.
 
1234
AC_DEFUN([AM_SET_LEADING_DOT],
 
1235
[rm -rf .tst 2>/dev/null
 
1236
mkdir .tst 2>/dev/null
 
1237
if test -d .tst; then
 
1238
  am__leading_dot=.
 
1239
else
 
1240
  am__leading_dot=_
 
1241
fi
 
1242
rmdir .tst 2>/dev/null
 
1243
AC_SUBST([am__leading_dot])])
 
1244
 
 
1245
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
1246
# From Jim Meyering
 
1247
 
 
1248
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
1249
# 2011 Free Software Foundation, Inc.
 
1250
#
 
1251
# This file is free software; the Free Software Foundation
 
1252
# gives unlimited permission to copy and/or distribute it,
 
1253
# with or without modifications, as long as this notice is preserved.
 
1254
 
 
1255
# serial 5
 
1256
 
 
1257
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
1258
# ----------------------------------
 
1259
# Control maintainer-specific portions of Makefiles.
 
1260
# Default is to disable them, unless `enable' is passed literally.
 
1261
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
1262
# can override the default with the --enable/--disable switch.
 
1263
AC_DEFUN([AM_MAINTAINER_MODE],
 
1264
[m4_case(m4_default([$1], [disable]),
 
1265
       [enable], [m4_define([am_maintainer_other], [disable])],
 
1266
       [disable], [m4_define([am_maintainer_other], [enable])],
 
1267
       [m4_define([am_maintainer_other], [enable])
 
1268
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
1269
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
1270
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
1271
  AC_ARG_ENABLE([maintainer-mode],
 
1272
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
1273
                          (and sometimes confusing) to the casual installer],
 
1274
      [USE_MAINTAINER_MODE=$enableval],
 
1275
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
1276
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
1277
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
1278
  MAINT=$MAINTAINER_MODE_TRUE
 
1279
  AC_SUBST([MAINT])dnl
 
1280
]
 
1281
)
 
1282
 
 
1283
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
1284
 
 
1285
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
1286
 
 
1287
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
1288
#
 
1289
# This file is free software; the Free Software Foundation
 
1290
# gives unlimited permission to copy and/or distribute it,
 
1291
# with or without modifications, as long as this notice is preserved.
 
1292
 
 
1293
# serial 4
 
1294
 
 
1295
# AM_MAKE_INCLUDE()
 
1296
# -----------------
 
1297
# Check to see how make treats includes.
 
1298
AC_DEFUN([AM_MAKE_INCLUDE],
 
1299
[am_make=${MAKE-make}
 
1300
cat > confinc << 'END'
 
1301
am__doit:
 
1302
        @echo this is the am__doit target
 
1303
.PHONY: am__doit
 
1304
END
 
1305
# If we don't find an include directive, just comment out the code.
 
1306
AC_MSG_CHECKING([for style of include used by $am_make])
 
1307
am__include="#"
 
1308
am__quote=
 
1309
_am_result=none
 
1310
# First try GNU make style include.
 
1311
echo "include confinc" > confmf
 
1312
# Ignore all kinds of additional output from `make'.
 
1313
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1314
*the\ am__doit\ target*)
 
1315
  am__include=include
 
1316
  am__quote=
 
1317
  _am_result=GNU
 
1318
  ;;
 
1319
esac
 
1320
# Now try BSD make style include.
 
1321
if test "$am__include" = "#"; then
 
1322
   echo '.include "confinc"' > confmf
 
1323
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1324
   *the\ am__doit\ target*)
 
1325
     am__include=.include
 
1326
     am__quote="\""
 
1327
     _am_result=BSD
 
1328
     ;;
 
1329
   esac
 
1330
fi
 
1331
AC_SUBST([am__include])
 
1332
AC_SUBST([am__quote])
 
1333
AC_MSG_RESULT([$_am_result])
 
1334
rm -f confinc confmf
 
1335
])
 
1336
 
 
1337
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
1338
# Free Software Foundation, Inc.
 
1339
#
 
1340
# This file is free software; the Free Software Foundation
 
1341
# gives unlimited permission to copy and/or distribute it,
 
1342
# with or without modifications, as long as this notice is preserved.
 
1343
 
 
1344
# serial 6
 
1345
 
 
1346
# AM_PROG_CC_C_O
 
1347
# --------------
 
1348
# Like AC_PROG_CC_C_O, but changed for automake.
 
1349
AC_DEFUN([AM_PROG_CC_C_O],
 
1350
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
 
1351
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1352
AC_REQUIRE_AUX_FILE([compile])dnl
 
1353
# FIXME: we rely on the cache variable name because
 
1354
# there is no other way.
 
1355
set dummy $CC
 
1356
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
1357
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
1358
if test "$am_t" != yes; then
 
1359
   # Losing compiler, so override with the script.
 
1360
   # FIXME: It is wrong to rewrite CC.
 
1361
   # But if we don't then we get into trouble of one sort or another.
 
1362
   # A longer-term fix would be to have automake use am__CC in this case,
 
1363
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
1364
   CC="$am_aux_dir/compile $CC"
 
1365
fi
 
1366
dnl Make sure AC_PROG_CC is never called again, or it will override our
 
1367
dnl setting of CC.
 
1368
m4_define([AC_PROG_CC],
 
1369
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
 
1370
])
 
1371
 
 
1372
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
1373
 
 
1374
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
1375
# Free Software Foundation, Inc.
 
1376
#
 
1377
# This file is free software; the Free Software Foundation
 
1378
# gives unlimited permission to copy and/or distribute it,
 
1379
# with or without modifications, as long as this notice is preserved.
 
1380
 
 
1381
# serial 6
 
1382
 
 
1383
# AM_MISSING_PROG(NAME, PROGRAM)
 
1384
# ------------------------------
 
1385
AC_DEFUN([AM_MISSING_PROG],
 
1386
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
1387
$1=${$1-"${am_missing_run}$2"}
 
1388
AC_SUBST($1)])
 
1389
 
 
1390
 
 
1391
# AM_MISSING_HAS_RUN
 
1392
# ------------------
 
1393
# Define MISSING if not defined so far and test if it supports --run.
 
1394
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
1395
AC_DEFUN([AM_MISSING_HAS_RUN],
 
1396
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1397
AC_REQUIRE_AUX_FILE([missing])dnl
 
1398
if test x"${MISSING+set}" != xset; then
 
1399
  case $am_aux_dir in
 
1400
  *\ * | *\     *)
 
1401
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1402
  *)
 
1403
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1404
  esac
 
1405
fi
 
1406
# Use eval to expand $SHELL
 
1407
if eval "$MISSING --run true"; then
 
1408
  am_missing_run="$MISSING --run "
 
1409
else
 
1410
  am_missing_run=
 
1411
  AC_MSG_WARN([`missing' script is too old or missing])
 
1412
fi
 
1413
])
 
1414
 
 
1415
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
1416
# Inc.
 
1417
#
 
1418
# This file is free software; the Free Software Foundation
 
1419
# gives unlimited permission to copy and/or distribute it,
 
1420
# with or without modifications, as long as this notice is preserved.
 
1421
 
 
1422
# serial 1
 
1423
 
 
1424
# AM_PROG_MKDIR_P
 
1425
# ---------------
 
1426
# Check for `mkdir -p'.
 
1427
AC_DEFUN([AM_PROG_MKDIR_P],
 
1428
[AC_PREREQ([2.60])dnl
 
1429
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1430
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1431
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1432
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1433
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1434
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1435
dnl adjustment using top_builddir (which is defined more often than
 
1436
dnl MKDIR_P).
 
1437
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1438
case $mkdir_p in
 
1439
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1440
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1441
esac
 
1442
])
 
1443
 
 
1444
# Helper functions for option handling.                     -*- Autoconf -*-
 
1445
 
 
1446
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
1447
# Foundation, Inc.
 
1448
#
 
1449
# This file is free software; the Free Software Foundation
 
1450
# gives unlimited permission to copy and/or distribute it,
 
1451
# with or without modifications, as long as this notice is preserved.
 
1452
 
 
1453
# serial 5
 
1454
 
 
1455
# _AM_MANGLE_OPTION(NAME)
 
1456
# -----------------------
 
1457
AC_DEFUN([_AM_MANGLE_OPTION],
 
1458
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
1459
 
 
1460
# _AM_SET_OPTION(NAME)
 
1461
# --------------------
 
1462
# Set option NAME.  Presently that only means defining a flag for this option.
 
1463
AC_DEFUN([_AM_SET_OPTION],
 
1464
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
1465
 
 
1466
# _AM_SET_OPTIONS(OPTIONS)
 
1467
# ------------------------
 
1468
# OPTIONS is a space-separated list of Automake options.
 
1469
AC_DEFUN([_AM_SET_OPTIONS],
 
1470
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
1471
 
 
1472
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
1473
# -------------------------------------------
 
1474
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
1475
AC_DEFUN([_AM_IF_OPTION],
 
1476
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
1477
 
 
1478
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1479
#
 
1480
# This file is free software; the Free Software Foundation
 
1481
# gives unlimited permission to copy and/or distribute it,
 
1482
# with or without modifications, as long as this notice is preserved.
 
1483
 
 
1484
# serial 1
 
1485
 
 
1486
# AM_RUN_LOG(COMMAND)
 
1487
# -------------------
 
1488
# Run COMMAND, save the exit status in ac_status, and log it.
 
1489
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
1490
AC_DEFUN([AM_RUN_LOG],
 
1491
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
1492
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
1493
   ac_status=$?
 
1494
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1495
   (exit $ac_status); }])
 
1496
 
 
1497
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
1498
 
 
1499
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
1500
# Free Software Foundation, Inc.
 
1501
#
 
1502
# This file is free software; the Free Software Foundation
 
1503
# gives unlimited permission to copy and/or distribute it,
 
1504
# with or without modifications, as long as this notice is preserved.
 
1505
 
 
1506
# serial 5
 
1507
 
 
1508
# AM_SANITY_CHECK
 
1509
# ---------------
 
1510
AC_DEFUN([AM_SANITY_CHECK],
 
1511
[AC_MSG_CHECKING([whether build environment is sane])
 
1512
# Just in case
 
1513
sleep 1
 
1514
echo timestamp > conftest.file
 
1515
# Reject unsafe characters in $srcdir or the absolute working directory
 
1516
# name.  Accept space and tab only in the latter.
 
1517
am_lf='
 
1518
'
 
1519
case `pwd` in
 
1520
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1521
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1522
esac
 
1523
case $srcdir in
 
1524
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1525
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1526
esac
 
1527
 
 
1528
# Do `set' in a subshell so we don't clobber the current shell's
 
1529
# arguments.  Must try -L first in case configure is actually a
 
1530
# symlink; some systems play weird games with the mod time of symlinks
 
1531
# (eg FreeBSD returns the mod time of the symlink's containing
 
1532
# directory).
 
1533
if (
 
1534
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1535
   if test "$[*]" = "X"; then
 
1536
      # -L didn't work.
 
1537
      set X `ls -t "$srcdir/configure" conftest.file`
 
1538
   fi
 
1539
   rm -f conftest.file
 
1540
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1541
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1542
 
 
1543
      # If neither matched, then we have a broken ls.  This can happen
 
1544
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1545
      # broken ls alias from the environment.  This has actually
 
1546
      # happened.  Such a system could not be considered "sane".
 
1547
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1548
alias in your environment])
 
1549
   fi
 
1550
 
 
1551
   test "$[2]" = conftest.file
 
1552
   )
 
1553
then
 
1554
   # Ok.
 
1555
   :
 
1556
else
 
1557
   AC_MSG_ERROR([newly created file is older than distributed files!
 
1558
Check your system clock])
 
1559
fi
 
1560
AC_MSG_RESULT(yes)])
 
1561
 
 
1562
# Copyright (C) 2009, 2011  Free Software Foundation, Inc.
 
1563
#
 
1564
# This file is free software; the Free Software Foundation
 
1565
# gives unlimited permission to copy and/or distribute it,
 
1566
# with or without modifications, as long as this notice is preserved.
 
1567
 
 
1568
# serial 2
 
1569
 
 
1570
# AM_SILENT_RULES([DEFAULT])
 
1571
# --------------------------
 
1572
# Enable less verbose build rules; with the default set to DEFAULT
 
1573
# (`yes' being less verbose, `no' or empty being verbose).
 
1574
AC_DEFUN([AM_SILENT_RULES],
 
1575
[AC_ARG_ENABLE([silent-rules],
 
1576
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1577
  --disable-silent-rules         verbose build output (undo: `make V=0')])
 
1578
case $enable_silent_rules in
 
1579
yes) AM_DEFAULT_VERBOSITY=0;;
 
1580
no)  AM_DEFAULT_VERBOSITY=1;;
 
1581
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1582
esac
 
1583
dnl
 
1584
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
 
1585
dnl do not support nested variable expansions.
 
1586
dnl See automake bug#9928 and bug#10237.
 
1587
am_make=${MAKE-make}
 
1588
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
1589
   [am_cv_make_support_nested_variables],
 
1590
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
1591
BAR0=false
 
1592
BAR1=true
 
1593
V=1
 
1594
am__doit:
 
1595
        @$(TRUE)
 
1596
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
1597
  am_cv_make_support_nested_variables=yes
 
1598
else
 
1599
  am_cv_make_support_nested_variables=no
 
1600
fi])
 
1601
if test $am_cv_make_support_nested_variables = yes; then
 
1602
  dnl Using `$V' instead of `$(V)' breaks IRIX make.
 
1603
  AM_V='$(V)'
 
1604
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
1605
else
 
1606
  AM_V=$AM_DEFAULT_VERBOSITY
 
1607
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
1608
fi
 
1609
AC_SUBST([AM_V])dnl
 
1610
AM_SUBST_NOTMAKE([AM_V])dnl
 
1611
AC_SUBST([AM_DEFAULT_V])dnl
 
1612
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
1613
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
1614
AM_BACKSLASH='\'
 
1615
AC_SUBST([AM_BACKSLASH])dnl
 
1616
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
1617
])
 
1618
 
 
1619
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
1620
#
 
1621
# This file is free software; the Free Software Foundation
 
1622
# gives unlimited permission to copy and/or distribute it,
 
1623
# with or without modifications, as long as this notice is preserved.
 
1624
 
 
1625
# serial 1
 
1626
 
 
1627
# AM_PROG_INSTALL_STRIP
 
1628
# ---------------------
 
1629
# One issue with vendor `install' (even GNU) is that you can't
 
1630
# specify the program used to strip binaries.  This is especially
 
1631
# annoying in cross-compiling environments, where the build's strip
 
1632
# is unlikely to handle the host's binaries.
 
1633
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
1634
# always use install-sh in `make install-strip', and initialize
 
1635
# STRIPPROG with the value of the STRIP variable (set by the user).
 
1636
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
1637
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1638
# Installed binaries are usually stripped using `strip' when the user
 
1639
# run `make install-strip'.  However `strip' might not be the right
 
1640
# tool to use in cross-compilation environments, therefore Automake
 
1641
# will honor the `STRIP' environment variable to overrule this program.
 
1642
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1643
if test "$cross_compiling" != no; then
 
1644
  AC_CHECK_TOOL([STRIP], [strip], :)
 
1645
fi
 
1646
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
1647
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
1648
 
 
1649
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
1650
#
 
1651
# This file is free software; the Free Software Foundation
 
1652
# gives unlimited permission to copy and/or distribute it,
 
1653
# with or without modifications, as long as this notice is preserved.
 
1654
 
 
1655
# serial 3
 
1656
 
 
1657
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1658
# ---------------------------
 
1659
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1660
# This macro is traced by Automake.
 
1661
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1662
 
 
1663
# AM_SUBST_NOTMAKE(VARIABLE)
 
1664
# --------------------------
 
1665
# Public sister of _AM_SUBST_NOTMAKE.
 
1666
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1667
 
 
1668
# Check how to create a tarball.                            -*- Autoconf -*-
 
1669
 
 
1670
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
1671
#
 
1672
# This file is free software; the Free Software Foundation
 
1673
# gives unlimited permission to copy and/or distribute it,
 
1674
# with or without modifications, as long as this notice is preserved.
 
1675
 
 
1676
# serial 2
 
1677
 
 
1678
# _AM_PROG_TAR(FORMAT)
 
1679
# --------------------
 
1680
# Check how to create a tarball in format FORMAT.
 
1681
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1682
#
 
1683
# Substitute a variable $(am__tar) that is a command
 
1684
# writing to stdout a FORMAT-tarball containing the directory
 
1685
# $tardir.
 
1686
#     tardir=directory && $(am__tar) > result.tar
 
1687
#
 
1688
# Substitute a variable $(am__untar) that extract such
 
1689
# a tarball read from stdin.
 
1690
#     $(am__untar) < result.tar
 
1691
AC_DEFUN([_AM_PROG_TAR],
 
1692
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1693
# in the wild :-(  We should find a proper way to deprecate it ...
 
1694
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1695
m4_if([$1], [v7],
 
1696
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1697
     [m4_case([$1], [ustar],, [pax],,
 
1698
              [m4_fatal([Unknown tar format])])
 
1699
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1700
# Loop over all known methods to create a tar archive until one works.
 
1701
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1702
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1703
# Do not fold the above two line into one, because Tru64 sh and
 
1704
# Solaris sh will not grok spaces in the rhs of `-'.
 
1705
for _am_tool in $_am_tools
 
1706
do
 
1707
  case $_am_tool in
 
1708
  gnutar)
 
1709
    for _am_tar in tar gnutar gtar;
 
1710
    do
 
1711
      AM_RUN_LOG([$_am_tar --version]) && break
 
1712
    done
 
1713
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1714
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1715
    am__untar="$_am_tar -xf -"
 
1716
    ;;
 
1717
  plaintar)
 
1718
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1719
    # ustar tarball either.
 
1720
    (tar --version) >/dev/null 2>&1 && continue
 
1721
    am__tar='tar chf - "$$tardir"'
 
1722
    am__tar_='tar chf - "$tardir"'
 
1723
    am__untar='tar xf -'
 
1724
    ;;
 
1725
  pax)
 
1726
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1727
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1728
    am__untar='pax -r'
 
1729
    ;;
 
1730
  cpio)
 
1731
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1732
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1733
    am__untar='cpio -i -H $1 -d'
 
1734
    ;;
 
1735
  none)
 
1736
    am__tar=false
 
1737
    am__tar_=false
 
1738
    am__untar=false
 
1739
    ;;
 
1740
  esac
 
1741
 
 
1742
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1743
  # and am__untar set.
 
1744
  test -n "${am_cv_prog_tar_$1}" && break
 
1745
 
 
1746
  # tar/untar a dummy directory, and stop if the command works
 
1747
  rm -rf conftest.dir
 
1748
  mkdir conftest.dir
 
1749
  echo GrepMe > conftest.dir/file
 
1750
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1751
  rm -rf conftest.dir
 
1752
  if test -s conftest.tar; then
 
1753
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1754
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1755
  fi
 
1756
done
 
1757
rm -rf conftest.dir
 
1758
 
 
1759
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1760
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1761
AC_SUBST([am__tar])
 
1762
AC_SUBST([am__untar])
 
1763
]) # _AM_PROG_TAR
 
1764
 
455
1765
dnl -*- mode: autoconf -*-
456
1766
 
457
1767
# serial 1
460
1770
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
461
1771
AC_DEFUN([GTK_DOC_CHECK],
462
1772
[
 
1773
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
463
1774
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
464
1775
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
465
1776
 
487
1798
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
488
1799
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
489
1800
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
1801
    dnl don't check for glib if we build glib
 
1802
    if test "x$PACKAGE_NAME" != "xglib"; then
 
1803
      dnl don't fail if someone does not have glib
 
1804
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,)
 
1805
    fi
490
1806
  fi
491
1807
 
492
1808
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
516
1832
 
517
1833
 
518
1834
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
519
 
# serial 40 IT_PROG_INTLTOOL
 
1835
# serial 42 IT_PROG_INTLTOOL
520
1836
AC_DEFUN([IT_PROG_INTLTOOL], [
521
1837
AC_PREREQ([2.50])dnl
522
1838
AC_REQUIRE([AM_NLS])dnl
529
1845
    ;;
530
1846
esac
531
1847
 
 
1848
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
1849
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
1850
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
532
1851
if test -n "$1"; then
533
1852
    AC_MSG_CHECKING([for intltool >= $1])
534
 
 
535
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
536
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
537
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
538
 
    ]
539
1853
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
540
1854
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
541
1855
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
548
1862
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
549
1863
fi
550
1864
 
551
 
  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 $< [$]@' 
552
 
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 $< [$]@' 
553
 
     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 $< [$]@' 
554
 
     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 $< [$]@' 
555
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
556
 
     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 $< [$]@' 
557
 
   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 $< [$]@' 
558
 
    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 $< [$]@' 
559
 
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 $< [$]@' 
560
 
       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 $< [$]@' 
561
 
      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 $< [$]@' 
562
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
563
 
      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 $< [$]@' 
564
 
      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 $< [$]@' 
565
 
    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 $< [$]@' 
566
 
  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 $< [$]@' 
567
 
    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 $< [$]@' 
568
 
    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 $< [$]@'
569
 
   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 $< [$]@'
 
1865
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
1866
  AM_DEFAULT_VERBOSITY=1
 
1867
fi
 
1868
AC_SUBST([AM_DEFAULT_VERBOSITY])
 
1869
 
 
1870
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
1871
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
1872
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
 
1873
AC_SUBST(INTLTOOL_V_MERGE)
 
1874
AC_SUBST(INTLTOOL__v_MERGE_)
 
1875
AC_SUBST(INTLTOOL__v_MERGE_0)
 
1876
 
 
1877
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
1878
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
1879
intltool__v_merge_options_0='-q'
 
1880
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
 
1881
AC_SUBST(intltool__v_merge_options_)
 
1882
AC_SUBST(intltool__v_merge_options_0)
 
1883
 
 
1884
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1885
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1886
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1887
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1888
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
 
1889
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1890
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1891
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1892
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1893
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1894
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1895
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
1896
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
 
1897
else
 
1898
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
 
1899
fi
 
1900
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1901
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1902
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1903
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1904
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
1905
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
1906
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
570
1907
 
571
1908
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
572
1909
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
612
1949
if test $? -ne 0; then
613
1950
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
614
1951
else
615
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
1952
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
616
1953
   AC_MSG_RESULT([$IT_PERL_VERSION])
617
1954
fi
618
1955
if test "x$2" != "xno-xml"; then
711
2048
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
712
2049
#
713
2050
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
714
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
715
 
#                 Inc.
 
2051
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
2052
#                 Foundation, Inc.
716
2053
#   Written by Gordon Matzigkeit, 1996
717
2054
#
718
2055
# This file is free software; the Free Software Foundation gives
721
2058
 
722
2059
m4_define([_LT_COPYING], [dnl
723
2060
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
724
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
725
 
#                 Inc.
 
2061
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
2062
#                 Foundation, Inc.
726
2063
#   Written by Gordon Matzigkeit, 1996
727
2064
#
728
2065
#   This file is part of GNU Libtool.
856
2193
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
857
2194
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
858
2195
 
 
2196
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
2197
dnl
859
2198
_LT_DECL([], [host_alias], [0], [The host system])dnl
860
2199
_LT_DECL([], [host], [0])dnl
861
2200
_LT_DECL([], [host_os], [0])dnl
1341
2680
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1342
2681
configured by $[0], generated by m4_PACKAGE_STRING.
1343
2682
 
1344
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
2683
Copyright (C) 2011 Free Software Foundation, Inc.
1345
2684
This config.lt script is free software; the Free Software Foundation
1346
2685
gives unlimited permision to copy, distribute and modify it."
1347
2686
 
1505
2844
m4_case([$1],
1506
2845
  [C],                  [_LT_LANG(C)],
1507
2846
  [C++],                [_LT_LANG(CXX)],
 
2847
  [Go],                 [_LT_LANG(GO)],
1508
2848
  [Java],               [_LT_LANG(GCJ)],
1509
2849
  [Fortran 77],         [_LT_LANG(F77)],
1510
2850
  [Fortran],            [_LT_LANG(FC)],
1526
2866
])# _LT_LANG
1527
2867
 
1528
2868
 
 
2869
m4_ifndef([AC_PROG_GO], [
 
2870
# NOTE: This macro has been submitted for inclusion into   #
 
2871
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
2872
#  a released version of Autoconf we should remove this    #
 
2873
#  macro and use it instead.                               #
 
2874
m4_defun([AC_PROG_GO],
 
2875
[AC_LANG_PUSH(Go)dnl
 
2876
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
2877
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
2878
_AC_ARG_VAR_LDFLAGS()dnl
 
2879
AC_CHECK_TOOL(GOC, gccgo)
 
2880
if test -z "$GOC"; then
 
2881
  if test -n "$ac_tool_prefix"; then
 
2882
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
2883
  fi
 
2884
fi
 
2885
if test -z "$GOC"; then
 
2886
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
2887
fi
 
2888
])#m4_defun
 
2889
])#m4_ifndef
 
2890
 
 
2891
 
1529
2892
# _LT_LANG_DEFAULT_CONFIG
1530
2893
# -----------------------
1531
2894
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1556
2919
       m4_ifdef([LT_PROG_GCJ],
1557
2920
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1558
2921
 
 
2922
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
2923
  [LT_LANG(GO)],
 
2924
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
2925
 
1559
2926
AC_PROVIDE_IFELSE([LT_PROG_RC],
1560
2927
  [LT_LANG(RC)],
1561
2928
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1658
3025
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1659
3026
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1660
3027
        _lt_result=$?
1661
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
3028
        # If there is a non-empty error log, and "single_module"
 
3029
        # appears in it, assume the flag caused a linker warning
 
3030
        if test -s conftest.err && $GREP single_module conftest.err; then
 
3031
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
3032
        # Otherwise, if the output was created with a 0 exit code from
 
3033
        # the compiler, it worked.
 
3034
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1662
3035
          lt_cv_apple_cc_single_mod=yes
1663
3036
        else
1664
3037
          cat conftest.err >&AS_MESSAGE_LOG_FD
1666
3039
        rm -rf libconftest.dylib*
1667
3040
        rm -f conftest.*
1668
3041
      fi])
 
3042
 
1669
3043
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1670
3044
      [lt_cv_ld_exported_symbols_list],
1671
3045
      [lt_cv_ld_exported_symbols_list=no
1677
3051
        [lt_cv_ld_exported_symbols_list=no])
1678
3052
        LDFLAGS="$save_LDFLAGS"
1679
3053
    ])
 
3054
 
1680
3055
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1681
3056
      [lt_cv_ld_force_load=no
1682
3057
      cat > conftest.c << _LT_EOF
1694
3069
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1695
3070
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1696
3071
      _lt_result=$?
1697
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
3072
      if test -s conftest.err && $GREP force_load conftest.err; then
 
3073
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
3074
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1698
3075
        lt_cv_ld_force_load=yes
1699
3076
      else
1700
3077
        cat conftest.err >&AS_MESSAGE_LOG_FD
1739
3116
])
1740
3117
 
1741
3118
 
1742
 
# _LT_DARWIN_LINKER_FEATURES
1743
 
# --------------------------
 
3119
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
3120
# ---------------------------------
1744
3121
# Checks for linker and compiler features on darwin
1745
3122
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1746
3123
[
1751
3128
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1752
3129
  if test "$lt_cv_ld_force_load" = "yes"; then
1753
3130
    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
3131
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
3132
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1754
3133
  else
1755
3134
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1756
3135
  fi
2034
3413
    CFLAGS="$SAVE_CFLAGS"
2035
3414
  fi
2036
3415
  ;;
2037
 
sparc*-*solaris*)
 
3416
*-*solaris*)
2038
3417
  # Find out which ABI we are using.
2039
3418
  echo 'int i;' > conftest.$ac_ext
2040
3419
  if AC_TRY_EVAL(ac_compile); then
2041
3420
    case `/usr/bin/file conftest.o` in
2042
3421
    *64-bit*)
2043
3422
      case $lt_cv_prog_gnu_ld in
2044
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3423
      yes*)
 
3424
        case $host in
 
3425
        i?86-*-solaris*)
 
3426
          LD="${LD-ld} -m elf_x86_64"
 
3427
          ;;
 
3428
        sparc*-*-solaris*)
 
3429
          LD="${LD-ld} -m elf64_sparc"
 
3430
          ;;
 
3431
        esac
 
3432
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
3433
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
3434
          LD="${LD-ld}_sol2"
 
3435
        fi
 
3436
        ;;
2045
3437
      *)
2046
3438
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2047
3439
          LD="${LD-ld} -64"
2118
3510
if test -n "$RANLIB"; then
2119
3511
  case $host_os in
2120
3512
  openbsd*)
2121
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
3513
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2122
3514
    ;;
2123
3515
  *)
2124
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
3516
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2125
3517
    ;;
2126
3518
  esac
2127
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
3519
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2128
3520
fi
2129
3521
 
2130
3522
case $host_os in
2304
3696
    lt_cv_sys_max_cmd_len=196608
2305
3697
    ;;
2306
3698
 
 
3699
  os2*)
 
3700
    # The test takes a long time on OS/2.
 
3701
    lt_cv_sys_max_cmd_len=8192
 
3702
    ;;
 
3703
 
2307
3704
  osf*)
2308
3705
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2309
3706
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2343
3740
      # If test is not a shell built-in, we'll probably end up computing a
2344
3741
      # maximum length that is only half of the actual maximum length, but
2345
3742
      # we can't tell.
2346
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
3743
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2347
3744
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2348
3745
              test $i != 17 # 1/2 MB should be enough
2349
3746
      do
2889
4286
 
2890
4287
case $host_os in
2891
4288
aix3*)
2892
 
  version_type=linux
 
4289
  version_type=linux # correct to gnu/linux during the next big refactor
2893
4290
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2894
4291
  shlibpath_var=LIBPATH
2895
4292
 
2898
4295
  ;;
2899
4296
 
2900
4297
aix[[4-9]]*)
2901
 
  version_type=linux
 
4298
  version_type=linux # correct to gnu/linux during the next big refactor
2902
4299
  need_lib_prefix=no
2903
4300
  need_version=no
2904
4301
  hardcode_into_libs=yes
2963
4360
  ;;
2964
4361
 
2965
4362
bsdi[[45]]*)
2966
 
  version_type=linux
 
4363
  version_type=linux # correct to gnu/linux during the next big refactor
2967
4364
  need_version=no
2968
4365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2969
4366
  soname_spec='${libname}${release}${shared_ext}$major'
3102
4499
  ;;
3103
4500
 
3104
4501
dgux*)
3105
 
  version_type=linux
 
4502
  version_type=linux # correct to gnu/linux during the next big refactor
3106
4503
  need_lib_prefix=no
3107
4504
  need_version=no
3108
4505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3110
4507
  shlibpath_var=LD_LIBRARY_PATH
3111
4508
  ;;
3112
4509
 
3113
 
freebsd1*)
3114
 
  dynamic_linker=no
3115
 
  ;;
3116
 
 
3117
4510
freebsd* | dragonfly*)
3118
4511
  # DragonFly does not have aout.  When/if they implement a new
3119
4512
  # versioning mechanism, adjust this.
3121
4514
    objformat=`/usr/bin/objformat`
3122
4515
  else
3123
4516
    case $host_os in
3124
 
    freebsd[[123]]*) objformat=aout ;;
 
4517
    freebsd[[23]].*) objformat=aout ;;
3125
4518
    *) objformat=elf ;;
3126
4519
    esac
3127
4520
  fi
3139
4532
  esac
3140
4533
  shlibpath_var=LD_LIBRARY_PATH
3141
4534
  case $host_os in
3142
 
  freebsd2*)
 
4535
  freebsd2.*)
3143
4536
    shlibpath_overrides_runpath=yes
3144
4537
    ;;
3145
4538
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3159
4552
  ;;
3160
4553
 
3161
4554
gnu*)
3162
 
  version_type=linux
 
4555
  version_type=linux # correct to gnu/linux during the next big refactor
3163
4556
  need_lib_prefix=no
3164
4557
  need_version=no
3165
4558
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3166
4559
  soname_spec='${libname}${release}${shared_ext}$major'
3167
4560
  shlibpath_var=LD_LIBRARY_PATH
 
4561
  shlibpath_overrides_runpath=no
3168
4562
  hardcode_into_libs=yes
3169
4563
  ;;
3170
4564
 
3171
4565
haiku*)
3172
 
  version_type=linux
 
4566
  version_type=linux # correct to gnu/linux during the next big refactor
3173
4567
  need_lib_prefix=no
3174
4568
  need_version=no
3175
4569
  dynamic_linker="$host_os runtime_loader"
3230
4624
  ;;
3231
4625
 
3232
4626
interix[[3-9]]*)
3233
 
  version_type=linux
 
4627
  version_type=linux # correct to gnu/linux during the next big refactor
3234
4628
  need_lib_prefix=no
3235
4629
  need_version=no
3236
4630
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3246
4640
    nonstopux*) version_type=nonstopux ;;
3247
4641
    *)
3248
4642
        if test "$lt_cv_prog_gnu_ld" = yes; then
3249
 
                version_type=linux
 
4643
                version_type=linux # correct to gnu/linux during the next big refactor
3250
4644
        else
3251
4645
                version_type=irix
3252
4646
        fi ;;
3283
4677
  dynamic_linker=no
3284
4678
  ;;
3285
4679
 
3286
 
# This must be Linux ELF.
 
4680
# This must be glibc/ELF.
3287
4681
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3288
 
  version_type=linux
 
4682
  version_type=linux # correct to gnu/linux during the next big refactor
3289
4683
  need_lib_prefix=no
3290
4684
  need_version=no
3291
4685
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3329
4723
  dynamic_linker='GNU/Linux ld.so'
3330
4724
  ;;
3331
4725
 
 
4726
netbsdelf*-gnu)
 
4727
  version_type=linux
 
4728
  need_lib_prefix=no
 
4729
  need_version=no
 
4730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
4731
  soname_spec='${libname}${release}${shared_ext}$major'
 
4732
  shlibpath_var=LD_LIBRARY_PATH
 
4733
  shlibpath_overrides_runpath=no
 
4734
  hardcode_into_libs=yes
 
4735
  dynamic_linker='NetBSD ld.elf_so'
 
4736
  ;;
 
4737
 
3332
4738
netbsd*)
3333
4739
  version_type=sunos
3334
4740
  need_lib_prefix=no
3348
4754
  ;;
3349
4755
 
3350
4756
newsos6)
3351
 
  version_type=linux
 
4757
  version_type=linux # correct to gnu/linux during the next big refactor
3352
4758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3353
4759
  shlibpath_var=LD_LIBRARY_PATH
3354
4760
  shlibpath_overrides_runpath=yes
3417
4823
  ;;
3418
4824
 
3419
4825
solaris*)
3420
 
  version_type=linux
 
4826
  version_type=linux # correct to gnu/linux during the next big refactor
3421
4827
  need_lib_prefix=no
3422
4828
  need_version=no
3423
4829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3442
4848
  ;;
3443
4849
 
3444
4850
sysv4 | sysv4.3*)
3445
 
  version_type=linux
 
4851
  version_type=linux # correct to gnu/linux during the next big refactor
3446
4852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3447
4853
  soname_spec='${libname}${release}${shared_ext}$major'
3448
4854
  shlibpath_var=LD_LIBRARY_PATH
3466
4872
 
3467
4873
sysv4*MP*)
3468
4874
  if test -d /usr/nec ;then
3469
 
    version_type=linux
 
4875
    version_type=linux # correct to gnu/linux during the next big refactor
3470
4876
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3471
4877
    soname_spec='$libname${shared_ext}.$major'
3472
4878
    shlibpath_var=LD_LIBRARY_PATH
3497
4903
 
3498
4904
tpf*)
3499
4905
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3500
 
  version_type=linux
 
4906
  version_type=linux # correct to gnu/linux during the next big refactor
3501
4907
  need_lib_prefix=no
3502
4908
  need_version=no
3503
4909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3507
4913
  ;;
3508
4914
 
3509
4915
uts4*)
3510
 
  version_type=linux
 
4916
  version_type=linux # correct to gnu/linux during the next big refactor
3511
4917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3512
4918
  soname_spec='${libname}${release}${shared_ext}$major'
3513
4919
  shlibpath_var=LD_LIBRARY_PATH
3929
5335
  lt_cv_deplibs_check_method=pass_all
3930
5336
  ;;
3931
5337
 
3932
 
# This must be Linux ELF.
 
5338
# This must be glibc/ELF.
3933
5339
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3934
5340
  lt_cv_deplibs_check_method=pass_all
3935
5341
  ;;
3936
5342
 
3937
 
netbsd*)
 
5343
netbsd* | netbsdelf*-gnu)
3938
5344
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3939
5345
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3940
5346
  else
4349
5755
    # which start with @ or ?.
4350
5756
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4351
5757
"     {last_section=section; section=\$ 3};"\
 
5758
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4352
5759
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4353
5760
"     \$ 0!~/External *\|/{next};"\
4354
5761
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4745
6152
            ;;
4746
6153
        esac
4747
6154
        ;;
4748
 
      netbsd*)
 
6155
      netbsd* | netbsdelf*-gnu)
4749
6156
        ;;
4750
6157
      *qnx* | *nto*)
4751
6158
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4933
6340
    case $cc_basename in
4934
6341
    nvcc*) # Cuda Compiler Driver 2.2
4935
6342
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4936
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
6343
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
6344
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
6345
      fi
4937
6346
      ;;
4938
6347
    esac
4939
6348
  else
5025
6434
        ;;
5026
6435
      *)
5027
6436
        case `$CC -V 2>&1 | sed 5q` in
5028
 
        *Sun\ F* | *Sun*Fortran*)
 
6437
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
5029
6438
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5030
6439
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5031
6440
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5032
6441
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5033
6442
          ;;
 
6443
        *Sun\ F* | *Sun*Fortran*)
 
6444
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6445
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6446
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6447
          ;;
5034
6448
        *Sun\ C*)
5035
6449
          # Sun C 5.9
5036
6450
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5037
6451
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5038
6452
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5039
6453
          ;;
 
6454
        *Intel*\ [[CF]]*Compiler*)
 
6455
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6456
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6457
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6458
          ;;
 
6459
        *Portland\ Group*)
 
6460
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6461
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6462
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6463
          ;;
5040
6464
        esac
5041
6465
        ;;
5042
6466
      esac
5196
6620
    ;;
5197
6621
  cygwin* | mingw* | cegcc*)
5198
6622
    case $cc_basename in
5199
 
    cl*) ;;
 
6623
    cl*)
 
6624
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
6625
      ;;
5200
6626
    *)
5201
6627
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5202
6628
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5203
6629
      ;;
5204
6630
    esac
5205
6631
    ;;
 
6632
  linux* | k*bsd*-gnu | gnu*)
 
6633
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
6634
    ;;
5206
6635
  *)
5207
6636
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5208
6637
    ;;
5221
6650
  _LT_TAGVAR(hardcode_direct, $1)=no
5222
6651
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5223
6652
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5224
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5225
6653
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5226
6654
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5227
6655
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5266
6694
  openbsd*)
5267
6695
    with_gnu_ld=no
5268
6696
    ;;
 
6697
  linux* | k*bsd*-gnu | gnu*)
 
6698
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
6699
    ;;
5269
6700
  esac
5270
6701
 
5271
6702
  _LT_TAGVAR(ld_shlibs, $1)=yes
5472
6903
        xlf* | bgf* | bgxlf* | mpixlf*)
5473
6904
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5474
6905
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5475
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5476
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
6906
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5477
6907
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5478
6908
          if test "x$supports_anon_versioning" = xyes; then
5479
6909
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5488
6918
      fi
5489
6919
      ;;
5490
6920
 
5491
 
    netbsd*)
 
6921
    netbsd* | netbsdelf*-gnu)
5492
6922
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5493
6923
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5494
6924
        wlarc=
5665
7095
        if test "$aix_use_runtimelinking" = yes; then
5666
7096
          shared_flag="$shared_flag "'${wl}-G'
5667
7097
        fi
 
7098
        _LT_TAGVAR(link_all_deplibs, $1)=no
5668
7099
      else
5669
7100
        # not using gcc
5670
7101
        if test "$host_cpu" = ia64; then
5768
7199
        # The linker will not automatically build a static lib if we build a DLL.
5769
7200
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5770
7201
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
7202
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5771
7203
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5772
7204
        # Don't use ranlib
5773
7205
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5814
7246
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5815
7247
      ;;
5816
7248
 
5817
 
    freebsd1*)
5818
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5819
 
      ;;
5820
 
 
5821
7249
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5822
7250
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5823
7251
    # does not break anything, and helps significantly (at the cost of a little
5830
7258
      ;;
5831
7259
 
5832
7260
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5833
 
    freebsd2*)
 
7261
    freebsd2.*)
5834
7262
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5835
7263
      _LT_TAGVAR(hardcode_direct, $1)=yes
5836
7264
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5869
7297
      fi
5870
7298
      if test "$with_gnu_ld" = no; then
5871
7299
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5872
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5873
7300
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5874
7301
        _LT_TAGVAR(hardcode_direct, $1)=yes
5875
7302
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5973
7400
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5974
7401
      ;;
5975
7402
 
5976
 
    netbsd*)
 
7403
    netbsd* | netbsdelf*-gnu)
5977
7404
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5978
7405
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5979
7406
      else
6311
7738
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6312
7739
    [Flag to hardcode $libdir into a binary during linking.
6313
7740
    This must work even if $libdir does not exist])
6314
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6315
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6316
 
    during linking.  This must work even if $libdir does not exist]])
6317
7741
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6318
7742
    [Whether we need a single "-rpath" flag with a separated argument])
6319
7743
_LT_TAGDECL([], [hardcode_direct], [0],
6467
7891
_LT_TAGVAR(hardcode_direct, $1)=no
6468
7892
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6469
7893
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6470
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6471
7894
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6472
7895
_LT_TAGVAR(hardcode_minus_L, $1)=no
6473
7896
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6837
8260
        esac
6838
8261
        ;;
6839
8262
 
6840
 
      freebsd[[12]]*)
 
8263
      freebsd2.*)
6841
8264
        # C++ shared libraries reported to be fairly broken before
6842
8265
        # switch to ELF
6843
8266
        _LT_TAGVAR(ld_shlibs, $1)=no
7598
9021
  }
7599
9022
};
7600
9023
_LT_EOF
 
9024
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
9025
package foo
 
9026
func foo() {
 
9027
}
 
9028
_LT_EOF
7601
9029
])
7602
9030
 
7603
9031
_lt_libdeps_save_CFLAGS=$CFLAGS
7604
9032
case "$CC $CFLAGS " in #(
7605
9033
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7606
9034
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
9035
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7607
9036
esac
7608
9037
 
7609
9038
dnl Parse the compiler output and extract the necessary
7800
9229
_LT_TAGVAR(hardcode_direct, $1)=no
7801
9230
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7802
9231
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7803
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7804
9232
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7805
9233
_LT_TAGVAR(hardcode_minus_L, $1)=no
7806
9234
_LT_TAGVAR(hardcode_automatic, $1)=no
7933
9361
_LT_TAGVAR(hardcode_direct, $1)=no
7934
9362
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7935
9363
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7936
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7937
9364
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7938
9365
_LT_TAGVAR(hardcode_minus_L, $1)=no
7939
9366
_LT_TAGVAR(hardcode_automatic, $1)=no
8116
9543
])# _LT_LANG_GCJ_CONFIG
8117
9544
 
8118
9545
 
 
9546
# _LT_LANG_GO_CONFIG([TAG])
 
9547
# --------------------------
 
9548
# Ensure that the configuration variables for the GNU Go compiler
 
9549
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
9550
# to write the compiler configuration to `libtool'.
 
9551
m4_defun([_LT_LANG_GO_CONFIG],
 
9552
[AC_REQUIRE([LT_PROG_GO])dnl
 
9553
AC_LANG_SAVE
 
9554
 
 
9555
# Source file extension for Go test sources.
 
9556
ac_ext=go
 
9557
 
 
9558
# Object file extension for compiled Go test sources.
 
9559
objext=o
 
9560
_LT_TAGVAR(objext, $1)=$objext
 
9561
 
 
9562
# Code to be used in simple compile tests
 
9563
lt_simple_compile_test_code="package main; func main() { }"
 
9564
 
 
9565
# Code to be used in simple link tests
 
9566
lt_simple_link_test_code='package main; func main() { }'
 
9567
 
 
9568
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9569
_LT_TAG_COMPILER
 
9570
 
 
9571
# save warnings/boilerplate of simple test code
 
9572
_LT_COMPILER_BOILERPLATE
 
9573
_LT_LINKER_BOILERPLATE
 
9574
 
 
9575
# Allow CC to be a program name with arguments.
 
9576
lt_save_CC=$CC
 
9577
lt_save_CFLAGS=$CFLAGS
 
9578
lt_save_GCC=$GCC
 
9579
GCC=yes
 
9580
CC=${GOC-"gccgo"}
 
9581
CFLAGS=$GOFLAGS
 
9582
compiler=$CC
 
9583
_LT_TAGVAR(compiler, $1)=$CC
 
9584
_LT_TAGVAR(LD, $1)="$LD"
 
9585
_LT_CC_BASENAME([$compiler])
 
9586
 
 
9587
# Go did not exist at the time GCC didn't implicitly link libc in.
 
9588
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
9589
 
 
9590
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
9591
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
9592
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
9593
 
 
9594
if test -n "$compiler"; then
 
9595
  _LT_COMPILER_NO_RTTI($1)
 
9596
  _LT_COMPILER_PIC($1)
 
9597
  _LT_COMPILER_C_O($1)
 
9598
  _LT_COMPILER_FILE_LOCKS($1)
 
9599
  _LT_LINKER_SHLIBS($1)
 
9600
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
9601
 
 
9602
  _LT_CONFIG($1)
 
9603
fi
 
9604
 
 
9605
AC_LANG_RESTORE
 
9606
 
 
9607
GCC=$lt_save_GCC
 
9608
CC=$lt_save_CC
 
9609
CFLAGS=$lt_save_CFLAGS
 
9610
])# _LT_LANG_GO_CONFIG
 
9611
 
 
9612
 
8119
9613
# _LT_LANG_RC_CONFIG([TAG])
8120
9614
# -------------------------
8121
9615
# Ensure that the configuration variables for the Windows resource compiler
8185
9679
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8186
9680
 
8187
9681
 
 
9682
# LT_PROG_GO
 
9683
# ----------
 
9684
AC_DEFUN([LT_PROG_GO],
 
9685
[AC_CHECK_TOOL(GOC, gccgo,)
 
9686
])
 
9687
 
 
9688
 
8188
9689
# LT_PROG_RC
8189
9690
# ----------
8190
9691
AC_DEFUN([LT_PROG_RC],
8849
10350
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8850
10351
m4_define([_LT_WITH_PIC],
8851
10352
[AC_ARG_WITH([pic],
8852
 
    [AS_HELP_STRING([--with-pic],
 
10353
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8853
10354
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8854
 
    [pic_mode="$withval"],
 
10355
    [lt_p=${PACKAGE-default}
 
10356
    case $withval in
 
10357
    yes|no) pic_mode=$withval ;;
 
10358
    *)
 
10359
      pic_mode=default
 
10360
      # Look at the argument we got.  We use all the common list separators.
 
10361
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10362
      for lt_pkg in $withval; do
 
10363
        IFS="$lt_save_ifs"
 
10364
        if test "X$lt_pkg" = "X$lt_p"; then
 
10365
          pic_mode=yes
 
10366
        fi
 
10367
      done
 
10368
      IFS="$lt_save_ifs"
 
10369
      ;;
 
10370
    esac],
8855
10371
    [pic_mode=default])
8856
10372
 
8857
10373
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9023
10539
 
9024
10540
# @configure_input@
9025
10541
 
9026
 
# serial 3293 ltversion.m4
 
10542
# serial 3337 ltversion.m4
9027
10543
# This file is part of GNU Libtool
9028
10544
 
9029
 
m4_define([LT_PACKAGE_VERSION], [2.4])
9030
 
m4_define([LT_PACKAGE_REVISION], [1.3293])
 
10545
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
10546
m4_define([LT_PACKAGE_REVISION], [1.3337])
9031
10547
 
9032
10548
AC_DEFUN([LTVERSION_VERSION],
9033
 
[macro_version='2.4'
9034
 
macro_revision='1.3293'
 
10549
[macro_version='2.4.2'
 
10550
macro_revision='1.3337'
9035
10551
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9036
10552
_LT_DECL(, macro_revision, 0)
9037
10553
])
9135
10651
m4_ifndef([_LT_PROG_FC],                [AC_DEFUN([_LT_PROG_FC])])
9136
10652
m4_ifndef([_LT_PROG_CXX],               [AC_DEFUN([_LT_PROG_CXX])])
9137
10653
 
9138
 
# nls.m4 serial 5 (gettext-0.18)
9139
 
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
9140
 
dnl Inc.
9141
 
dnl This file is free software; the Free Software Foundation
9142
 
dnl gives unlimited permission to copy and/or distribute it,
9143
 
dnl with or without modifications, as long as this notice is preserved.
9144
 
dnl
9145
 
dnl This file can can be used in projects which are not available under
9146
 
dnl the GNU General Public License or the GNU Library General Public
9147
 
dnl License but which still want to provide support for the GNU gettext
9148
 
dnl functionality.
9149
 
dnl Please note that the actual code of the GNU gettext library is covered
9150
 
dnl by the GNU Library General Public License, and the rest of the GNU
9151
 
dnl gettext package package is covered by the GNU General Public License.
9152
 
dnl They are *not* in the public domain.
9153
 
 
9154
 
dnl Authors:
9155
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
9156
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
9157
 
 
9158
 
AC_PREREQ([2.50])
9159
 
 
9160
 
AC_DEFUN([AM_NLS],
9161
 
[
9162
 
  AC_MSG_CHECKING([whether NLS is requested])
9163
 
  dnl Default is enabled NLS
9164
 
  AC_ARG_ENABLE([nls],
9165
 
    [  --disable-nls           do not use Native Language Support],
9166
 
    USE_NLS=$enableval, USE_NLS=yes)
9167
 
  AC_MSG_RESULT([$USE_NLS])
9168
 
  AC_SUBST([USE_NLS])
9169
 
])
9170
 
 
9171
 
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
9172
 
# serial 1 (pkg-config-0.24)
9173
 
9174
 
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9175
 
#
9176
 
# This program is free software; you can redistribute it and/or modify
9177
 
# it under the terms of the GNU General Public License as published by
9178
 
# the Free Software Foundation; either version 2 of the License, or
9179
 
# (at your option) any later version.
9180
 
#
9181
 
# This program is distributed in the hope that it will be useful, but
9182
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
9183
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9184
 
# General Public License for more details.
9185
 
#
9186
 
# You should have received a copy of the GNU General Public License
9187
 
# along with this program; if not, write to the Free Software
9188
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9189
 
#
9190
 
# As a special exception to the GNU General Public License, if you
9191
 
# distribute this file as part of a program that contains a
9192
 
# configuration script generated by Autoconf, you may include it under
9193
 
# the same distribution terms that you use for the rest of that program.
9194
 
 
9195
 
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9196
 
# ----------------------------------
9197
 
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9198
 
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9199
 
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9200
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9201
 
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9202
 
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9203
 
 
9204
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9205
 
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9206
 
fi
9207
 
if test -n "$PKG_CONFIG"; then
9208
 
        _pkg_min_version=m4_default([$1], [0.9.0])
9209
 
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9210
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9211
 
                AC_MSG_RESULT([yes])
9212
 
        else
9213
 
                AC_MSG_RESULT([no])
9214
 
                PKG_CONFIG=""
9215
 
        fi
9216
 
fi[]dnl
9217
 
])# PKG_PROG_PKG_CONFIG
9218
 
 
9219
 
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9220
 
#
9221
 
# Check to see whether a particular set of modules exists.  Similar
9222
 
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9223
 
#
9224
 
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9225
 
# only at the first occurence in configure.ac, so if the first place
9226
 
# it's called might be skipped (such as if it is within an "if", you
9227
 
# have to call PKG_CHECK_EXISTS manually
9228
 
# --------------------------------------------------------------
9229
 
AC_DEFUN([PKG_CHECK_EXISTS],
9230
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9231
 
if test -n "$PKG_CONFIG" && \
9232
 
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9233
 
  m4_default([$2], [:])
9234
 
m4_ifvaln([$3], [else
9235
 
  $3])dnl
9236
 
fi])
9237
 
 
9238
 
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9239
 
# ---------------------------------------------
9240
 
m4_define([_PKG_CONFIG],
9241
 
[if test -n "$$1"; then
9242
 
    pkg_cv_[]$1="$$1"
9243
 
 elif test -n "$PKG_CONFIG"; then
9244
 
    PKG_CHECK_EXISTS([$3],
9245
 
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9246
 
                     [pkg_failed=yes])
9247
 
 else
9248
 
    pkg_failed=untried
9249
 
fi[]dnl
9250
 
])# _PKG_CONFIG
9251
 
 
9252
 
# _PKG_SHORT_ERRORS_SUPPORTED
9253
 
# -----------------------------
9254
 
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9255
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9256
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9257
 
        _pkg_short_errors_supported=yes
9258
 
else
9259
 
        _pkg_short_errors_supported=no
9260
 
fi[]dnl
9261
 
])# _PKG_SHORT_ERRORS_SUPPORTED
9262
 
 
9263
 
 
9264
 
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9265
 
# [ACTION-IF-NOT-FOUND])
9266
 
#
9267
 
#
9268
 
# Note that if there is a possibility the first call to
9269
 
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9270
 
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9271
 
#
9272
 
#
9273
 
# --------------------------------------------------------------
9274
 
AC_DEFUN([PKG_CHECK_MODULES],
9275
 
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9276
 
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9277
 
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9278
 
 
9279
 
pkg_failed=no
9280
 
AC_MSG_CHECKING([for $1])
9281
 
 
9282
 
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9283
 
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9284
 
 
9285
 
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9286
 
and $1[]_LIBS to avoid the need to call pkg-config.
9287
 
See the pkg-config man page for more details.])
9288
 
 
9289
 
if test $pkg_failed = yes; then
9290
 
        AC_MSG_RESULT([no])
9291
 
        _PKG_SHORT_ERRORS_SUPPORTED
9292
 
        if test $_pkg_short_errors_supported = yes; then
9293
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9294
 
        else 
9295
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9296
 
        fi
9297
 
        # Put the nasty error message in config.log where it belongs
9298
 
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9299
 
 
9300
 
        m4_default([$4], [AC_MSG_ERROR(
9301
 
[Package requirements ($2) were not met:
9302
 
 
9303
 
$$1_PKG_ERRORS
9304
 
 
9305
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9306
 
installed software in a non-standard prefix.
9307
 
 
9308
 
_PKG_TEXT])[]dnl
9309
 
        ])
9310
 
elif test $pkg_failed = untried; then
9311
 
        AC_MSG_RESULT([no])
9312
 
        m4_default([$4], [AC_MSG_FAILURE(
9313
 
[The pkg-config script could not be found or is too old.  Make sure it
9314
 
is in your PATH or set the PKG_CONFIG environment variable to the full
9315
 
path to pkg-config.
9316
 
 
9317
 
_PKG_TEXT
9318
 
 
9319
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
9320
 
        ])
9321
 
else
9322
 
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9323
 
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9324
 
        AC_MSG_RESULT([yes])
9325
 
        $3
9326
 
fi[]dnl
9327
 
])# PKG_CHECK_MODULES
9328
 
 
9329
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
9330
 
#
9331
 
# This file is free software; the Free Software Foundation
9332
 
# gives unlimited permission to copy and/or distribute it,
9333
 
# with or without modifications, as long as this notice is preserved.
9334
 
 
9335
 
# AM_AUTOMAKE_VERSION(VERSION)
9336
 
# ----------------------------
9337
 
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9338
 
# generated from the m4 files accompanying Automake X.Y.
9339
 
# (This private macro should not be called outside this file.)
9340
 
AC_DEFUN([AM_AUTOMAKE_VERSION],
9341
 
[am__api_version='1.11'
9342
 
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9343
 
dnl require some minimum version.  Point them to the right macro.
9344
 
m4_if([$1], [1.11.1], [],
9345
 
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9346
 
])
9347
 
 
9348
 
# _AM_AUTOCONF_VERSION(VERSION)
9349
 
# -----------------------------
9350
 
# aclocal traces this macro to find the Autoconf version.
9351
 
# This is a private macro too.  Using m4_define simplifies
9352
 
# the logic in aclocal, which can simply ignore this definition.
9353
 
m4_define([_AM_AUTOCONF_VERSION], [])
9354
 
 
9355
 
# AM_SET_CURRENT_AUTOMAKE_VERSION
9356
 
# -------------------------------
9357
 
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9358
 
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9359
 
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9360
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9361
 
m4_ifndef([AC_AUTOCONF_VERSION],
9362
 
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9363
 
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9364
 
 
9365
 
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9366
 
 
9367
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9368
 
#
9369
 
# This file is free software; the Free Software Foundation
9370
 
# gives unlimited permission to copy and/or distribute it,
9371
 
# with or without modifications, as long as this notice is preserved.
9372
 
 
9373
 
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9374
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9375
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9376
 
#
9377
 
# Of course, Automake must honor this variable whenever it calls a
9378
 
# tool from the auxiliary directory.  The problem is that $srcdir (and
9379
 
# therefore $ac_aux_dir as well) can be either absolute or relative,
9380
 
# depending on how configure is run.  This is pretty annoying, since
9381
 
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9382
 
# source directory, any form will work fine, but in subdirectories a
9383
 
# relative path needs to be adjusted first.
9384
 
#
9385
 
# $ac_aux_dir/missing
9386
 
#    fails when called from a subdirectory if $ac_aux_dir is relative
9387
 
# $top_srcdir/$ac_aux_dir/missing
9388
 
#    fails if $ac_aux_dir is absolute,
9389
 
#    fails when called from a subdirectory in a VPATH build with
9390
 
#          a relative $ac_aux_dir
9391
 
#
9392
 
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9393
 
# are both prefixed by $srcdir.  In an in-source build this is usually
9394
 
# harmless because $srcdir is `.', but things will broke when you
9395
 
# start a VPATH build or use an absolute $srcdir.
9396
 
#
9397
 
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9398
 
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
9399
 
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9400
 
# and then we would define $MISSING as
9401
 
#   MISSING="\${SHELL} $am_aux_dir/missing"
9402
 
# This will work as long as MISSING is not called from configure, because
9403
 
# unfortunately $(top_srcdir) has no meaning in configure.
9404
 
# However there are other variables, like CC, which are often used in
9405
 
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9406
 
#
9407
 
# Another solution, used here, is to always expand $ac_aux_dir to an
9408
 
# absolute PATH.  The drawback is that using absolute paths prevent a
9409
 
# configured tree to be moved without reconfiguration.
9410
 
 
9411
 
AC_DEFUN([AM_AUX_DIR_EXPAND],
9412
 
[dnl Rely on autoconf to set up CDPATH properly.
9413
 
AC_PREREQ([2.50])dnl
9414
 
# expand $ac_aux_dir to an absolute path
9415
 
am_aux_dir=`cd $ac_aux_dir && pwd`
9416
 
])
9417
 
 
9418
 
# AM_CONDITIONAL                                            -*- Autoconf -*-
9419
 
 
9420
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9421
 
# Free Software Foundation, Inc.
9422
 
#
9423
 
# This file is free software; the Free Software Foundation
9424
 
# gives unlimited permission to copy and/or distribute it,
9425
 
# with or without modifications, as long as this notice is preserved.
9426
 
 
9427
 
# serial 9
9428
 
 
9429
 
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9430
 
# -------------------------------------
9431
 
# Define a conditional.
9432
 
AC_DEFUN([AM_CONDITIONAL],
9433
 
[AC_PREREQ(2.52)dnl
9434
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
9435
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9436
 
AC_SUBST([$1_TRUE])dnl
9437
 
AC_SUBST([$1_FALSE])dnl
9438
 
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9439
 
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9440
 
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9441
 
if $2; then
9442
 
  $1_TRUE=
9443
 
  $1_FALSE='#'
9444
 
else
9445
 
  $1_TRUE='#'
9446
 
  $1_FALSE=
9447
 
fi
9448
 
AC_CONFIG_COMMANDS_PRE(
9449
 
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9450
 
  AC_MSG_ERROR([[conditional "$1" was never defined.
9451
 
Usually this means the macro was only invoked conditionally.]])
9452
 
fi])])
9453
 
 
9454
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9455
 
# Free Software Foundation, Inc.
9456
 
#
9457
 
# This file is free software; the Free Software Foundation
9458
 
# gives unlimited permission to copy and/or distribute it,
9459
 
# with or without modifications, as long as this notice is preserved.
9460
 
 
9461
 
# serial 10
9462
 
 
9463
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9464
 
# written in clear, in which case automake, when reading aclocal.m4,
9465
 
# will think it sees a *use*, and therefore will trigger all it's
9466
 
# C support machinery.  Also note that it means that autoscan, seeing
9467
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9468
 
 
9469
 
 
9470
 
# _AM_DEPENDENCIES(NAME)
9471
 
# ----------------------
9472
 
# See how the compiler implements dependency checking.
9473
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9474
 
# We try a few techniques and use that to set a single cache variable.
9475
 
#
9476
 
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9477
 
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9478
 
# dependency, and given that the user is not expected to run this macro,
9479
 
# just rely on AC_PROG_CC.
9480
 
AC_DEFUN([_AM_DEPENDENCIES],
9481
 
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9482
 
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9483
 
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9484
 
AC_REQUIRE([AM_DEP_TRACK])dnl
9485
 
 
9486
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
9487
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
9488
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9489
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
9490
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
9491
 
                   [depcc="$$1"   am_compiler_list=])
9492
 
 
9493
 
AC_CACHE_CHECK([dependency style of $depcc],
9494
 
               [am_cv_$1_dependencies_compiler_type],
9495
 
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9496
 
  # We make a subdir and do the tests there.  Otherwise we can end up
9497
 
  # making bogus files that we don't know about and never remove.  For
9498
 
  # instance it was reported that on HP-UX the gcc test will end up
9499
 
  # making a dummy file named `D' -- because `-MD' means `put the output
9500
 
  # in D'.
9501
 
  mkdir conftest.dir
9502
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
9503
 
  # using a relative directory.
9504
 
  cp "$am_depcomp" conftest.dir
9505
 
  cd conftest.dir
9506
 
  # We will build objects and dependencies in a subdirectory because
9507
 
  # it helps to detect inapplicable dependency modes.  For instance
9508
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
9509
 
  # side effect of compilation, but ICC will put the dependencies in
9510
 
  # the current directory while Tru64 will put them in the object
9511
 
  # directory.
9512
 
  mkdir sub
9513
 
 
9514
 
  am_cv_$1_dependencies_compiler_type=none
9515
 
  if test "$am_compiler_list" = ""; then
9516
 
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9517
 
  fi
9518
 
  am__universal=false
9519
 
  m4_case([$1], [CC],
9520
 
    [case " $depcc " in #(
9521
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9522
 
     esac],
9523
 
    [CXX],
9524
 
    [case " $depcc " in #(
9525
 
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9526
 
     esac])
9527
 
 
9528
 
  for depmode in $am_compiler_list; do
9529
 
    # Setup a source with many dependencies, because some compilers
9530
 
    # like to wrap large dependency lists on column 80 (with \), and
9531
 
    # we should not choose a depcomp mode which is confused by this.
9532
 
    #
9533
 
    # We need to recreate these files for each test, as the compiler may
9534
 
    # overwrite some of them when testing with obscure command lines.
9535
 
    # This happens at least with the AIX C compiler.
9536
 
    : > sub/conftest.c
9537
 
    for i in 1 2 3 4 5 6; do
9538
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9539
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9540
 
      # Solaris 8's {/usr,}/bin/sh.
9541
 
      touch sub/conftst$i.h
9542
 
    done
9543
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9544
 
 
9545
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9546
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
9547
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
9548
 
    # versions had trouble with output in subdirs
9549
 
    am__obj=sub/conftest.${OBJEXT-o}
9550
 
    am__minus_obj="-o $am__obj"
9551
 
    case $depmode in
9552
 
    gcc)
9553
 
      # This depmode causes a compiler race in universal mode.
9554
 
      test "$am__universal" = false || continue
9555
 
      ;;
9556
 
    nosideeffect)
9557
 
      # after this tag, mechanisms are not by side-effect, so they'll
9558
 
      # only be used when explicitly requested
9559
 
      if test "x$enable_dependency_tracking" = xyes; then
9560
 
        continue
9561
 
      else
9562
 
        break
9563
 
      fi
9564
 
      ;;
9565
 
    msvisualcpp | msvcmsys)
9566
 
      # This compiler won't grok `-c -o', but also, the minuso test has
9567
 
      # not run yet.  These depmodes are late enough in the game, and
9568
 
      # so weak that their functioning should not be impacted.
9569
 
      am__obj=conftest.${OBJEXT-o}
9570
 
      am__minus_obj=
9571
 
      ;;
9572
 
    none) break ;;
9573
 
    esac
9574
 
    if depmode=$depmode \
9575
 
       source=sub/conftest.c object=$am__obj \
9576
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9577
 
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9578
 
         >/dev/null 2>conftest.err &&
9579
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9580
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9581
 
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9582
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9583
 
      # icc doesn't choke on unknown options, it will just issue warnings
9584
 
      # or remarks (even with -Werror).  So we grep stderr for any message
9585
 
      # that says an option was ignored or not supported.
9586
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
9587
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
9588
 
      # The diagnosis changed in icc 8.0:
9589
 
      #   icc: Command line remark: option '-MP' not supported
9590
 
      if (grep 'ignoring option' conftest.err ||
9591
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9592
 
        am_cv_$1_dependencies_compiler_type=$depmode
9593
 
        break
9594
 
      fi
9595
 
    fi
9596
 
  done
9597
 
 
9598
 
  cd ..
9599
 
  rm -rf conftest.dir
9600
 
else
9601
 
  am_cv_$1_dependencies_compiler_type=none
9602
 
fi
9603
 
])
9604
 
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9605
 
AM_CONDITIONAL([am__fastdep$1], [
9606
 
  test "x$enable_dependency_tracking" != xno \
9607
 
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9608
 
])
9609
 
 
9610
 
 
9611
 
# AM_SET_DEPDIR
9612
 
# -------------
9613
 
# Choose a directory name for dependency files.
9614
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9615
 
AC_DEFUN([AM_SET_DEPDIR],
9616
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9617
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9618
 
])
9619
 
 
9620
 
 
9621
 
# AM_DEP_TRACK
9622
 
# ------------
9623
 
AC_DEFUN([AM_DEP_TRACK],
9624
 
[AC_ARG_ENABLE(dependency-tracking,
9625
 
[  --disable-dependency-tracking  speeds up one-time build
9626
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
9627
 
if test "x$enable_dependency_tracking" != xno; then
9628
 
  am_depcomp="$ac_aux_dir/depcomp"
9629
 
  AMDEPBACKSLASH='\'
9630
 
fi
9631
 
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9632
 
AC_SUBST([AMDEPBACKSLASH])dnl
9633
 
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9634
 
])
9635
 
 
9636
 
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9637
 
 
9638
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9639
 
# Free Software Foundation, Inc.
9640
 
#
9641
 
# This file is free software; the Free Software Foundation
9642
 
# gives unlimited permission to copy and/or distribute it,
9643
 
# with or without modifications, as long as this notice is preserved.
9644
 
 
9645
 
#serial 5
9646
 
 
9647
 
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9648
 
# ------------------------------
9649
 
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9650
 
[{
9651
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9652
 
  # are listed without --file.  Let's play safe and only enable the eval
9653
 
  # if we detect the quoting.
9654
 
  case $CONFIG_FILES in
9655
 
  *\'*) eval set x "$CONFIG_FILES" ;;
9656
 
  *)   set x $CONFIG_FILES ;;
9657
 
  esac
9658
 
  shift
9659
 
  for mf
9660
 
  do
9661
 
    # Strip MF so we end up with the name of the file.
9662
 
    mf=`echo "$mf" | sed -e 's/:.*$//'`
9663
 
    # Check whether this is an Automake generated Makefile or not.
9664
 
    # We used to match only the files named `Makefile.in', but
9665
 
    # some people rename them; so instead we look at the file content.
9666
 
    # Grep'ing the first line is not enough: some people post-process
9667
 
    # each Makefile.in and add a new line on top of each file to say so.
9668
 
    # Grep'ing the whole file is not good either: AIX grep has a line
9669
 
    # limit of 2048, but all sed's we know have understand at least 4000.
9670
 
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9671
 
      dirpart=`AS_DIRNAME("$mf")`
9672
 
    else
9673
 
      continue
9674
 
    fi
9675
 
    # Extract the definition of DEPDIR, am__include, and am__quote
9676
 
    # from the Makefile without running `make'.
9677
 
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9678
 
    test -z "$DEPDIR" && continue
9679
 
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9680
 
    test -z "am__include" && continue
9681
 
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9682
 
    # When using ansi2knr, U may be empty or an underscore; expand it
9683
 
    U=`sed -n 's/^U = //p' < "$mf"`
9684
 
    # Find all dependency output files, they are included files with
9685
 
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9686
 
    # simplest approach to changing $(DEPDIR) to its actual value in the
9687
 
    # expansion.
9688
 
    for file in `sed -n "
9689
 
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9690
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9691
 
      # Make sure the directory exists.
9692
 
      test -f "$dirpart/$file" && continue
9693
 
      fdir=`AS_DIRNAME(["$file"])`
9694
 
      AS_MKDIR_P([$dirpart/$fdir])
9695
 
      # echo "creating $dirpart/$file"
9696
 
      echo '# dummy' > "$dirpart/$file"
9697
 
    done
9698
 
  done
9699
 
}
9700
 
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9701
 
 
9702
 
 
9703
 
# AM_OUTPUT_DEPENDENCY_COMMANDS
9704
 
# -----------------------------
9705
 
# This macro should only be invoked once -- use via AC_REQUIRE.
9706
 
#
9707
 
# This code is only required when automatic dependency tracking
9708
 
# is enabled.  FIXME.  This creates each `.P' file that we will
9709
 
# need in order to bootstrap the dependency handling code.
9710
 
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9711
 
[AC_CONFIG_COMMANDS([depfiles],
9712
 
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9713
 
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9714
 
])
9715
 
 
9716
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9717
 
# Free Software Foundation, Inc.
9718
 
#
9719
 
# This file is free software; the Free Software Foundation
9720
 
# gives unlimited permission to copy and/or distribute it,
9721
 
# with or without modifications, as long as this notice is preserved.
9722
 
 
9723
 
# serial 8
9724
 
 
9725
 
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
9726
 
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9727
 
 
9728
 
# Do all the work for Automake.                             -*- Autoconf -*-
9729
 
 
9730
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9731
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9732
 
#
9733
 
# This file is free software; the Free Software Foundation
9734
 
# gives unlimited permission to copy and/or distribute it,
9735
 
# with or without modifications, as long as this notice is preserved.
9736
 
 
9737
 
# serial 16
9738
 
 
9739
 
# This macro actually does too much.  Some checks are only needed if
9740
 
# your package does certain things.  But this isn't really a big deal.
9741
 
 
9742
 
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9743
 
# AM_INIT_AUTOMAKE([OPTIONS])
9744
 
# -----------------------------------------------
9745
 
# The call with PACKAGE and VERSION arguments is the old style
9746
 
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
9747
 
# and VERSION should now be passed to AC_INIT and removed from
9748
 
# the call to AM_INIT_AUTOMAKE.
9749
 
# We support both call styles for the transition.  After
9750
 
# the next Automake release, Autoconf can make the AC_INIT
9751
 
# arguments mandatory, and then we can depend on a new Autoconf
9752
 
# release and drop the old call support.
9753
 
AC_DEFUN([AM_INIT_AUTOMAKE],
9754
 
[AC_PREREQ([2.62])dnl
9755
 
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9756
 
dnl the ones we care about.
9757
 
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9758
 
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9759
 
AC_REQUIRE([AC_PROG_INSTALL])dnl
9760
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9761
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9762
 
  # is not polluted with repeated "-I."
9763
 
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9764
 
  # test to see if srcdir already configured
9765
 
  if test -f $srcdir/config.status; then
9766
 
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9767
 
  fi
9768
 
fi
9769
 
 
9770
 
# test whether we have cygpath
9771
 
if test -z "$CYGPATH_W"; then
9772
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
9773
 
    CYGPATH_W='cygpath -w'
9774
 
  else
9775
 
    CYGPATH_W=echo
9776
 
  fi
9777
 
fi
9778
 
AC_SUBST([CYGPATH_W])
9779
 
 
9780
 
# Define the identity of the package.
9781
 
dnl Distinguish between old-style and new-style calls.
9782
 
m4_ifval([$2],
9783
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9784
 
 AC_SUBST([PACKAGE], [$1])dnl
9785
 
 AC_SUBST([VERSION], [$2])],
9786
 
[_AM_SET_OPTIONS([$1])dnl
9787
 
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9788
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9789
 
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9790
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9791
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9792
 
 
9793
 
_AM_IF_OPTION([no-define],,
9794
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9795
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9796
 
 
9797
 
# Some tools Automake needs.
9798
 
AC_REQUIRE([AM_SANITY_CHECK])dnl
9799
 
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9800
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9801
 
AM_MISSING_PROG(AUTOCONF, autoconf)
9802
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9803
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
9804
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
9805
 
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9806
 
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9807
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9808
 
# We need awk for the "check" target.  The system "awk" is bad on
9809
 
# some platforms.
9810
 
AC_REQUIRE([AC_PROG_AWK])dnl
9811
 
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9812
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9813
 
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9814
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9815
 
                             [_AM_PROG_TAR([v7])])])
9816
 
_AM_IF_OPTION([no-dependencies],,
9817
 
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9818
 
                  [_AM_DEPENDENCIES(CC)],
9819
 
                  [define([AC_PROG_CC],
9820
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9821
 
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9822
 
                  [_AM_DEPENDENCIES(CXX)],
9823
 
                  [define([AC_PROG_CXX],
9824
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9825
 
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9826
 
                  [_AM_DEPENDENCIES(OBJC)],
9827
 
                  [define([AC_PROG_OBJC],
9828
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9829
 
])
9830
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9831
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9832
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9833
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9834
 
AC_CONFIG_COMMANDS_PRE(dnl
9835
 
[m4_provide_if([_AM_COMPILER_EXEEXT],
9836
 
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9837
 
])
9838
 
 
9839
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9840
 
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9841
 
dnl mangled by Autoconf and run in a shell conditional statement.
9842
 
m4_define([_AC_COMPILER_EXEEXT],
9843
 
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9844
 
 
9845
 
 
9846
 
# When config.status generates a header, we must update the stamp-h file.
9847
 
# This file resides in the same directory as the config header
9848
 
# that is generated.  The stamp files are numbered to have different names.
9849
 
 
9850
 
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9851
 
# loop where config.status creates the headers, so we can generate
9852
 
# our stamp files there.
9853
 
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9854
 
[# Compute $1's index in $config_headers.
9855
 
_am_arg=$1
9856
 
_am_stamp_count=1
9857
 
for _am_header in $config_headers :; do
9858
 
  case $_am_header in
9859
 
    $_am_arg | $_am_arg:* )
9860
 
      break ;;
9861
 
    * )
9862
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9863
 
  esac
9864
 
done
9865
 
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9866
 
 
9867
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9868
 
#
9869
 
# This file is free software; the Free Software Foundation
9870
 
# gives unlimited permission to copy and/or distribute it,
9871
 
# with or without modifications, as long as this notice is preserved.
9872
 
 
9873
 
# AM_PROG_INSTALL_SH
9874
 
# ------------------
9875
 
# Define $install_sh.
9876
 
AC_DEFUN([AM_PROG_INSTALL_SH],
9877
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9878
 
if test x"${install_sh}" != xset; then
9879
 
  case $am_aux_dir in
9880
 
  *\ * | *\     *)
9881
 
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9882
 
  *)
9883
 
    install_sh="\${SHELL} $am_aux_dir/install-sh"
9884
 
  esac
9885
 
fi
9886
 
AC_SUBST(install_sh)])
9887
 
 
9888
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
9889
 
#
9890
 
# This file is free software; the Free Software Foundation
9891
 
# gives unlimited permission to copy and/or distribute it,
9892
 
# with or without modifications, as long as this notice is preserved.
9893
 
 
9894
 
# serial 2
9895
 
 
9896
 
# Check whether the underlying file-system supports filenames
9897
 
# with a leading dot.  For instance MS-DOS doesn't.
9898
 
AC_DEFUN([AM_SET_LEADING_DOT],
9899
 
[rm -rf .tst 2>/dev/null
9900
 
mkdir .tst 2>/dev/null
9901
 
if test -d .tst; then
9902
 
  am__leading_dot=.
9903
 
else
9904
 
  am__leading_dot=_
9905
 
fi
9906
 
rmdir .tst 2>/dev/null
9907
 
AC_SUBST([am__leading_dot])])
9908
 
 
9909
 
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9910
 
# From Jim Meyering
9911
 
 
9912
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9913
 
# Free Software Foundation, Inc.
9914
 
#
9915
 
# This file is free software; the Free Software Foundation
9916
 
# gives unlimited permission to copy and/or distribute it,
9917
 
# with or without modifications, as long as this notice is preserved.
9918
 
 
9919
 
# serial 5
9920
 
 
9921
 
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9922
 
# ----------------------------------
9923
 
# Control maintainer-specific portions of Makefiles.
9924
 
# Default is to disable them, unless `enable' is passed literally.
9925
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
9926
 
# can override the default with the --enable/--disable switch.
9927
 
AC_DEFUN([AM_MAINTAINER_MODE],
9928
 
[m4_case(m4_default([$1], [disable]),
9929
 
       [enable], [m4_define([am_maintainer_other], [disable])],
9930
 
       [disable], [m4_define([am_maintainer_other], [enable])],
9931
 
       [m4_define([am_maintainer_other], [enable])
9932
 
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9933
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9934
 
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9935
 
  AC_ARG_ENABLE([maintainer-mode],
9936
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9937
 
                          (and sometimes confusing) to the casual installer],
9938
 
      [USE_MAINTAINER_MODE=$enableval],
9939
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9940
 
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9941
 
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9942
 
  MAINT=$MAINTAINER_MODE_TRUE
9943
 
  AC_SUBST([MAINT])dnl
9944
 
]
9945
 
)
9946
 
 
9947
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9948
 
 
9949
 
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9950
 
 
9951
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9952
 
#
9953
 
# This file is free software; the Free Software Foundation
9954
 
# gives unlimited permission to copy and/or distribute it,
9955
 
# with or without modifications, as long as this notice is preserved.
9956
 
 
9957
 
# serial 4
9958
 
 
9959
 
# AM_MAKE_INCLUDE()
9960
 
# -----------------
9961
 
# Check to see how make treats includes.
9962
 
AC_DEFUN([AM_MAKE_INCLUDE],
9963
 
[am_make=${MAKE-make}
9964
 
cat > confinc << 'END'
9965
 
am__doit:
9966
 
        @echo this is the am__doit target
9967
 
.PHONY: am__doit
9968
 
END
9969
 
# If we don't find an include directive, just comment out the code.
9970
 
AC_MSG_CHECKING([for style of include used by $am_make])
9971
 
am__include="#"
9972
 
am__quote=
9973
 
_am_result=none
9974
 
# First try GNU make style include.
9975
 
echo "include confinc" > confmf
9976
 
# Ignore all kinds of additional output from `make'.
9977
 
case `$am_make -s -f confmf 2> /dev/null` in #(
9978
 
*the\ am__doit\ target*)
9979
 
  am__include=include
9980
 
  am__quote=
9981
 
  _am_result=GNU
9982
 
  ;;
9983
 
esac
9984
 
# Now try BSD make style include.
9985
 
if test "$am__include" = "#"; then
9986
 
   echo '.include "confinc"' > confmf
9987
 
   case `$am_make -s -f confmf 2> /dev/null` in #(
9988
 
   *the\ am__doit\ target*)
9989
 
     am__include=.include
9990
 
     am__quote="\""
9991
 
     _am_result=BSD
9992
 
     ;;
9993
 
   esac
9994
 
fi
9995
 
AC_SUBST([am__include])
9996
 
AC_SUBST([am__quote])
9997
 
AC_MSG_RESULT([$_am_result])
9998
 
rm -f confinc confmf
9999
 
])
10000
 
 
10001
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
10002
 
# Free Software Foundation, Inc.
10003
 
#
10004
 
# This file is free software; the Free Software Foundation
10005
 
# gives unlimited permission to copy and/or distribute it,
10006
 
# with or without modifications, as long as this notice is preserved.
10007
 
 
10008
 
# serial 6
10009
 
 
10010
 
# AM_PROG_CC_C_O
10011
 
# --------------
10012
 
# Like AC_PROG_CC_C_O, but changed for automake.
10013
 
AC_DEFUN([AM_PROG_CC_C_O],
10014
 
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
10015
 
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10016
 
AC_REQUIRE_AUX_FILE([compile])dnl
10017
 
# FIXME: we rely on the cache variable name because
10018
 
# there is no other way.
10019
 
set dummy $CC
10020
 
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
10021
 
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10022
 
if test "$am_t" != yes; then
10023
 
   # Losing compiler, so override with the script.
10024
 
   # FIXME: It is wrong to rewrite CC.
10025
 
   # But if we don't then we get into trouble of one sort or another.
10026
 
   # A longer-term fix would be to have automake use am__CC in this case,
10027
 
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10028
 
   CC="$am_aux_dir/compile $CC"
10029
 
fi
10030
 
dnl Make sure AC_PROG_CC is never called again, or it will override our
10031
 
dnl setting of CC.
10032
 
m4_define([AC_PROG_CC],
10033
 
          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
10034
 
])
10035
 
 
10036
 
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
10037
 
 
10038
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
10039
 
# Free Software Foundation, Inc.
10040
 
#
10041
 
# This file is free software; the Free Software Foundation
10042
 
# gives unlimited permission to copy and/or distribute it,
10043
 
# with or without modifications, as long as this notice is preserved.
10044
 
 
10045
 
# serial 6
10046
 
 
10047
 
# AM_MISSING_PROG(NAME, PROGRAM)
10048
 
# ------------------------------
10049
 
AC_DEFUN([AM_MISSING_PROG],
10050
 
[AC_REQUIRE([AM_MISSING_HAS_RUN])
10051
 
$1=${$1-"${am_missing_run}$2"}
10052
 
AC_SUBST($1)])
10053
 
 
10054
 
 
10055
 
# AM_MISSING_HAS_RUN
10056
 
# ------------------
10057
 
# Define MISSING if not defined so far and test if it supports --run.
10058
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
10059
 
AC_DEFUN([AM_MISSING_HAS_RUN],
10060
 
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10061
 
AC_REQUIRE_AUX_FILE([missing])dnl
10062
 
if test x"${MISSING+set}" != xset; then
10063
 
  case $am_aux_dir in
10064
 
  *\ * | *\     *)
10065
 
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10066
 
  *)
10067
 
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10068
 
  esac
10069
 
fi
10070
 
# Use eval to expand $SHELL
10071
 
if eval "$MISSING --run true"; then
10072
 
  am_missing_run="$MISSING --run "
10073
 
else
10074
 
  am_missing_run=
10075
 
  AC_MSG_WARN([`missing' script is too old or missing])
10076
 
fi
10077
 
])
10078
 
 
10079
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
10080
 
#
10081
 
# This file is free software; the Free Software Foundation
10082
 
# gives unlimited permission to copy and/or distribute it,
10083
 
# with or without modifications, as long as this notice is preserved.
10084
 
 
10085
 
# AM_PROG_MKDIR_P
10086
 
# ---------------
10087
 
# Check for `mkdir -p'.
10088
 
AC_DEFUN([AM_PROG_MKDIR_P],
10089
 
[AC_PREREQ([2.60])dnl
10090
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10091
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
10092
 
dnl while keeping a definition of mkdir_p for backward compatibility.
10093
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10094
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10095
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
10096
 
dnl adjustment using top_builddir (which is defined more often than
10097
 
dnl MKDIR_P).
10098
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10099
 
case $mkdir_p in
10100
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
10101
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10102
 
esac
10103
 
])
10104
 
 
10105
 
# Helper functions for option handling.                     -*- Autoconf -*-
10106
 
 
10107
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
10108
 
#
10109
 
# This file is free software; the Free Software Foundation
10110
 
# gives unlimited permission to copy and/or distribute it,
10111
 
# with or without modifications, as long as this notice is preserved.
10112
 
 
10113
 
# serial 4
10114
 
 
10115
 
# _AM_MANGLE_OPTION(NAME)
10116
 
# -----------------------
10117
 
AC_DEFUN([_AM_MANGLE_OPTION],
10118
 
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10119
 
 
10120
 
# _AM_SET_OPTION(NAME)
10121
 
# ------------------------------
10122
 
# Set option NAME.  Presently that only means defining a flag for this option.
10123
 
AC_DEFUN([_AM_SET_OPTION],
10124
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10125
 
 
10126
 
# _AM_SET_OPTIONS(OPTIONS)
10127
 
# ----------------------------------
10128
 
# OPTIONS is a space-separated list of Automake options.
10129
 
AC_DEFUN([_AM_SET_OPTIONS],
10130
 
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10131
 
 
10132
 
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10133
 
# -------------------------------------------
10134
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10135
 
AC_DEFUN([_AM_IF_OPTION],
10136
 
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10137
 
 
10138
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
10139
 
#
10140
 
# This file is free software; the Free Software Foundation
10141
 
# gives unlimited permission to copy and/or distribute it,
10142
 
# with or without modifications, as long as this notice is preserved.
10143
 
 
10144
 
# AM_RUN_LOG(COMMAND)
10145
 
# -------------------
10146
 
# Run COMMAND, save the exit status in ac_status, and log it.
10147
 
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10148
 
AC_DEFUN([AM_RUN_LOG],
10149
 
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10150
 
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10151
 
   ac_status=$?
10152
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10153
 
   (exit $ac_status); }])
10154
 
 
10155
 
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
10156
 
 
10157
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
10158
 
# Free Software Foundation, Inc.
10159
 
#
10160
 
# This file is free software; the Free Software Foundation
10161
 
# gives unlimited permission to copy and/or distribute it,
10162
 
# with or without modifications, as long as this notice is preserved.
10163
 
 
10164
 
# serial 5
10165
 
 
10166
 
# AM_SANITY_CHECK
10167
 
# ---------------
10168
 
AC_DEFUN([AM_SANITY_CHECK],
10169
 
[AC_MSG_CHECKING([whether build environment is sane])
10170
 
# Just in case
10171
 
sleep 1
10172
 
echo timestamp > conftest.file
10173
 
# Reject unsafe characters in $srcdir or the absolute working directory
10174
 
# name.  Accept space and tab only in the latter.
10175
 
am_lf='
10176
 
'
10177
 
case `pwd` in
10178
 
  *[[\\\"\#\$\&\'\`$am_lf]]*)
10179
 
    AC_MSG_ERROR([unsafe absolute working directory name]);;
10180
 
esac
10181
 
case $srcdir in
10182
 
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
10183
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10184
 
esac
10185
 
 
10186
 
# Do `set' in a subshell so we don't clobber the current shell's
10187
 
# arguments.  Must try -L first in case configure is actually a
10188
 
# symlink; some systems play weird games with the mod time of symlinks
10189
 
# (eg FreeBSD returns the mod time of the symlink's containing
10190
 
# directory).
10191
 
if (
10192
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10193
 
   if test "$[*]" = "X"; then
10194
 
      # -L didn't work.
10195
 
      set X `ls -t "$srcdir/configure" conftest.file`
10196
 
   fi
10197
 
   rm -f conftest.file
10198
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
10199
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
10200
 
 
10201
 
      # If neither matched, then we have a broken ls.  This can happen
10202
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10203
 
      # broken ls alias from the environment.  This has actually
10204
 
      # happened.  Such a system could not be considered "sane".
10205
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
10206
 
alias in your environment])
10207
 
   fi
10208
 
 
10209
 
   test "$[2]" = conftest.file
10210
 
   )
10211
 
then
10212
 
   # Ok.
10213
 
   :
10214
 
else
10215
 
   AC_MSG_ERROR([newly created file is older than distributed files!
10216
 
Check your system clock])
10217
 
fi
10218
 
AC_MSG_RESULT(yes)])
10219
 
 
10220
 
# Copyright (C) 2009  Free Software Foundation, Inc.
10221
 
#
10222
 
# This file is free software; the Free Software Foundation
10223
 
# gives unlimited permission to copy and/or distribute it,
10224
 
# with or without modifications, as long as this notice is preserved.
10225
 
 
10226
 
# serial 1
10227
 
 
10228
 
# AM_SILENT_RULES([DEFAULT])
10229
 
# --------------------------
10230
 
# Enable less verbose build rules; with the default set to DEFAULT
10231
 
# (`yes' being less verbose, `no' or empty being verbose).
10232
 
AC_DEFUN([AM_SILENT_RULES],
10233
 
[AC_ARG_ENABLE([silent-rules],
10234
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
10235
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
10236
 
case $enable_silent_rules in
10237
 
yes) AM_DEFAULT_VERBOSITY=0;;
10238
 
no)  AM_DEFAULT_VERBOSITY=1;;
10239
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10240
 
esac
10241
 
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10242
 
AM_BACKSLASH='\'
10243
 
AC_SUBST([AM_BACKSLASH])dnl
10244
 
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10245
 
])
10246
 
 
10247
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
10248
 
#
10249
 
# This file is free software; the Free Software Foundation
10250
 
# gives unlimited permission to copy and/or distribute it,
10251
 
# with or without modifications, as long as this notice is preserved.
10252
 
 
10253
 
# AM_PROG_INSTALL_STRIP
10254
 
# ---------------------
10255
 
# One issue with vendor `install' (even GNU) is that you can't
10256
 
# specify the program used to strip binaries.  This is especially
10257
 
# annoying in cross-compiling environments, where the build's strip
10258
 
# is unlikely to handle the host's binaries.
10259
 
# Fortunately install-sh will honor a STRIPPROG variable, so we
10260
 
# always use install-sh in `make install-strip', and initialize
10261
 
# STRIPPROG with the value of the STRIP variable (set by the user).
10262
 
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10263
 
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10264
 
# Installed binaries are usually stripped using `strip' when the user
10265
 
# run `make install-strip'.  However `strip' might not be the right
10266
 
# tool to use in cross-compilation environments, therefore Automake
10267
 
# will honor the `STRIP' environment variable to overrule this program.
10268
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10269
 
if test "$cross_compiling" != no; then
10270
 
  AC_CHECK_TOOL([STRIP], [strip], :)
10271
 
fi
10272
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10273
 
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10274
 
 
10275
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
10276
 
#
10277
 
# This file is free software; the Free Software Foundation
10278
 
# gives unlimited permission to copy and/or distribute it,
10279
 
# with or without modifications, as long as this notice is preserved.
10280
 
 
10281
 
# serial 2
10282
 
 
10283
 
# _AM_SUBST_NOTMAKE(VARIABLE)
10284
 
# ---------------------------
10285
 
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10286
 
# This macro is traced by Automake.
10287
 
AC_DEFUN([_AM_SUBST_NOTMAKE])
10288
 
 
10289
 
# AM_SUBST_NOTMAKE(VARIABLE)
10290
 
# ---------------------------
10291
 
# Public sister of _AM_SUBST_NOTMAKE.
10292
 
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10293
 
 
10294
 
# Check how to create a tarball.                            -*- Autoconf -*-
10295
 
 
10296
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
10297
 
#
10298
 
# This file is free software; the Free Software Foundation
10299
 
# gives unlimited permission to copy and/or distribute it,
10300
 
# with or without modifications, as long as this notice is preserved.
10301
 
 
10302
 
# serial 2
10303
 
 
10304
 
# _AM_PROG_TAR(FORMAT)
10305
 
# --------------------
10306
 
# Check how to create a tarball in format FORMAT.
10307
 
# FORMAT should be one of `v7', `ustar', or `pax'.
10308
 
#
10309
 
# Substitute a variable $(am__tar) that is a command
10310
 
# writing to stdout a FORMAT-tarball containing the directory
10311
 
# $tardir.
10312
 
#     tardir=directory && $(am__tar) > result.tar
10313
 
#
10314
 
# Substitute a variable $(am__untar) that extract such
10315
 
# a tarball read from stdin.
10316
 
#     $(am__untar) < result.tar
10317
 
AC_DEFUN([_AM_PROG_TAR],
10318
 
[# Always define AMTAR for backward compatibility.
10319
 
AM_MISSING_PROG([AMTAR], [tar])
10320
 
m4_if([$1], [v7],
10321
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10322
 
     [m4_case([$1], [ustar],, [pax],,
10323
 
              [m4_fatal([Unknown tar format])])
10324
 
AC_MSG_CHECKING([how to create a $1 tar archive])
10325
 
# Loop over all known methods to create a tar archive until one works.
10326
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10327
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10328
 
# Do not fold the above two line into one, because Tru64 sh and
10329
 
# Solaris sh will not grok spaces in the rhs of `-'.
10330
 
for _am_tool in $_am_tools
10331
 
do
10332
 
  case $_am_tool in
10333
 
  gnutar)
10334
 
    for _am_tar in tar gnutar gtar;
10335
 
    do
10336
 
      AM_RUN_LOG([$_am_tar --version]) && break
10337
 
    done
10338
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10339
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10340
 
    am__untar="$_am_tar -xf -"
10341
 
    ;;
10342
 
  plaintar)
10343
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
10344
 
    # ustar tarball either.
10345
 
    (tar --version) >/dev/null 2>&1 && continue
10346
 
    am__tar='tar chf - "$$tardir"'
10347
 
    am__tar_='tar chf - "$tardir"'
10348
 
    am__untar='tar xf -'
10349
 
    ;;
10350
 
  pax)
10351
 
    am__tar='pax -L -x $1 -w "$$tardir"'
10352
 
    am__tar_='pax -L -x $1 -w "$tardir"'
10353
 
    am__untar='pax -r'
10354
 
    ;;
10355
 
  cpio)
10356
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10357
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10358
 
    am__untar='cpio -i -H $1 -d'
10359
 
    ;;
10360
 
  none)
10361
 
    am__tar=false
10362
 
    am__tar_=false
10363
 
    am__untar=false
10364
 
    ;;
10365
 
  esac
10366
 
 
10367
 
  # If the value was cached, stop now.  We just wanted to have am__tar
10368
 
  # and am__untar set.
10369
 
  test -n "${am_cv_prog_tar_$1}" && break
10370
 
 
10371
 
  # tar/untar a dummy directory, and stop if the command works
10372
 
  rm -rf conftest.dir
10373
 
  mkdir conftest.dir
10374
 
  echo GrepMe > conftest.dir/file
10375
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10376
 
  rm -rf conftest.dir
10377
 
  if test -s conftest.tar; then
10378
 
    AM_RUN_LOG([$am__untar <conftest.tar])
10379
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10380
 
  fi
10381
 
done
10382
 
rm -rf conftest.dir
10383
 
 
10384
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10385
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10386
 
AC_SUBST([am__tar])
10387
 
AC_SUBST([am__untar])
10388
 
]) # _AM_PROG_TAR
10389
 
 
10390
10654
dnl $Id$
10391
10655
dnl
10392
10656
dnl Copyright (c) 2002-2006
10394
10658
dnl
10395
10659
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
10396
10660
dnl
10397
 
dnl This program is free software; you can redistribute it and/or modify it
10398
 
dnl under the terms of the GNU General Public License as published by the Free
10399
 
dnl Software Foundation; either version 2 of the License, or (at your option)
10400
 
dnl any later version.
10401
 
dnl
10402
 
dnl This program is distributed in the hope that it will be useful, but WITHOUT
10403
 
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10404
 
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
10405
 
dnl more details.
10406
 
dnl
10407
 
dnl You should have received a copy of the GNU General Public License along with
10408
 
dnl this program; if not, write to the Free Software Foundation, Inc., 59 Temple
10409
 
dnl Place, Suite 330, Boston, MA  02111-1307  USA
 
10661
dnl This program is free software; you can redistribute it and/or modify
 
10662
dnl it under the terms of the GNU General Public License as published by
 
10663
dnl the Free Software Foundation; either version 2 of the License, or
 
10664
dnl (at your option) any later version.
 
10665
dnl
 
10666
dnl This program is distributed in the hope that it will be useful,
 
10667
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10668
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10669
dnl GNU General Public License for more details.
 
10670
dnl
 
10671
dnl You should have received a copy of the GNU General Public License along
 
10672
dnl with this program; if not, write to the Free Software Foundation, Inc.,
 
10673
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
10410
10674
dnl
10411
10675
dnl xdt-depends
10412
10676
dnl -----------
10432
10696
  # minimum supported version of pkg-config
10433
10697
  xdt_cv_PKG_CONFIG_MIN_VERSION=0.9.0
10434
10698
 
10435
 
  # lookup pkg-config utility
10436
 
  if test x"$PKG_CONFIG" = x""; then
10437
 
    AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
 
10699
  m4_ifdef([PKG_PROG_PKG_CONFIG],
 
10700
    [
 
10701
      PKG_PROG_PKG_CONFIG([$xdt_cv_PKG_CONFIG_MIN_VERSION])
10438
10702
 
10439
 
    if test x"$PKG_CONFIG" = x"no"; then
 
10703
      if test x"$PKG_CONFIG" = x""; then
 
10704
        echo
 
10705
        echo "*** Your version of pkg-config is too old. You need atleast"
 
10706
        echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config"
 
10707
        echo "*** from the freedesktop.org software repository at"
 
10708
        echo "***"
 
10709
        echo "***    http://www.freedesktop.org/software/pkgconfig"
 
10710
        echo "***"
 
10711
        exit 1;
 
10712
      fi
 
10713
    ],
 
10714
    [
 
10715
      echo
10440
10716
      echo "*** The pkg-config utility could not be found on your system."
10441
10717
      echo "*** Make sure it is in your path, or set the PKG_CONFIG"
10442
10718
      echo "*** environment variable to the full path to pkg-config."
10446
10722
      echo "***    http://www.freedesktop.org/software/pkgconfig"
10447
10723
      echo "***"
10448
10724
      exit 1
10449
 
    fi
10450
 
 
10451
 
    # check pkg-config version
10452
 
    AC_MSG_CHECKING([for pkg-config >= $xdt_cv_PKG_CONFIG_MIN_VERSION])
10453
 
    if $PKG_CONFIG --atleast-pkgconfig-version $xdt_cv_PKG_CONFIG_MIN_VERSION; then
10454
 
      xdt_cv_PKG_CONFIG_VERSION=`$PKG_CONFIG --version`
10455
 
      AC_MSG_RESULT([$xdt_cv_PKG_CONFIG_VERSION])
10456
 
    else
10457
 
      xdt_cv_PKG_CONFIG_VERSION=`$PKG_CONFIG --version`
10458
 
      AC_MSG_RESULT([$xdt_cv_PKG_CONFIG_VERSION])
10459
 
      echo "*** Your version of pkg-config is too old. You need atleast"
10460
 
      echo "*** pkg-config $xdt_cv_PKG_CONFIG_MIN_VERSION or newer. You can download pkg-config "
10461
 
      echo "*** from the freedesktop.org software repository at"
10462
 
      echo "***"
10463
 
      echo "***    http://www.freedesktop.org/software/pkgconfig"
10464
 
      echo "***"
10465
 
      exit 1
10466
 
    fi
10467
 
  fi
 
10725
    ])
10468
10726
])
10469
10727
 
10470
10728
 
10597
10855
 
10598
10856
 
10599
10857
 
10600
 
dnl BM_DEPEND(varname, package, version)
10601
 
dnl
10602
 
dnl Simple wrapper for XDT_CHECK_PACKAGE("varname", "package", "version"). Kept
10603
 
dnl for backward compatibility. Will be removed in the future.
10604
 
dnl
10605
 
AC_DEFUN([BM_DEPEND],
10606
 
[
10607
 
  XDT_CHECK_PACKAGE([$1], [$2], [$3])
10608
 
])
10609
 
 
10610
 
 
10611
 
 
10612
 
dnl BM_DEPEND_CHECK(var, pkg, version, name, helpstring, default)
10613
 
dnl
10614
 
dnl Simple wrapper for XDT_CHECK_OPTIONAL_PACKAGE(). Kept for backward
10615
 
dnl compatibility. Will be removed in the future.
10616
 
dnl
10617
 
AC_DEFUN([BM_DEPEND_CHECK],
10618
 
[
10619
 
  XDT_CHECK_OPTIONAL_PACKAGE([$1], [$2], [$3], [$4], [$5], [$6])
10620
 
])
10621
 
 
10622
 
 
10623
 
 
10624
10858
dnl XDT_CHECK_LIBX11()
10625
10859
dnl
10626
10860
dnl Executes various checks for X11. Sets LIBX11_CFLAGS, LIBX11_LDFLAGS
10757
10991
])
10758
10992
 
10759
10993
 
10760
 
 
10761
 
dnl BM_LIBX11()
10762
 
dnl
10763
 
dnl Simple wrapper for XDT_CHECK_LIBX11. Kept for backward
10764
 
dnl compatibility. Will be removed in the future.
10765
 
dnl
10766
 
AC_DEFUN([BM_LIBX11],
10767
 
[
10768
 
  AC_REQUIRE([XDT_CHECK_LIBX11])
10769
 
])
10770
 
 
10771
 
 
10772
 
 
10773
 
dnl BM_LIBX11_REQUIRE()
10774
 
dnl
10775
 
dnl Simple wrapper for XDT_CHECK_LIBX11_REQUIRE. Kept for backward
10776
 
dnl compatibility. Will be removed in the future.
10777
 
dnl
10778
 
AC_DEFUN([BM_LIBX11_REQUIRE],
10779
 
[
10780
 
  AC_REQUIRE([XDT_CHECK_LIBX11_REQUIRE])
10781
 
])
10782
 
 
10783
 
 
10784
 
 
10785
 
dnl BM_LIBSM()
10786
 
dnl
10787
 
dnl Simple wrapper for XDT_CHECK_LIBSM. Kept for backward
10788
 
dnl compatibility. Will be removed in the future.
10789
 
dnl
10790
 
AC_DEFUN([BM_LIBSM],
10791
 
[
10792
 
  AC_REQUIRE([XDT_CHECK_LIBSM])
10793
 
])
10794
 
 
10795
 
 
10796
 
 
10797
 
dnl BM_LIBXPM
10798
 
dnl
10799
 
dnl Simple wrapper for XDT_CHECK_LIBXPM. Kept for backward
10800
 
dnl compatibility. Will be removed in the future.
10801
 
dnl
10802
 
AC_DEFUN([BM_LIBXPM],
10803
 
[
10804
 
  AC_REQUIRE([XDT_CHECK_LIBXPM])
10805
 
])
10806
 
 
10807
 
 
10808
 
 
10809
 
dnl BM_LIBXPM_REQUIRE
10810
 
dnl
10811
 
dnl Simple wrapper for XDT_CHECK_LIBXPM_REQUIRE. Kept for
10812
 
dnl backward compatibility. Will be removed in the future.
10813
 
dnl
10814
 
AC_DEFUN([BM_LIBXPM_REQUIRE],
10815
 
[
10816
 
  AC_REQUIRE([XDT_CHECK_LIBXPM_REQUIRE])
10817
 
])
10818
 
 
10819
 
 
10820
10994
dnl $Id$
10821
10995
dnl
10822
10996
dnl Copyright (c) 2002-2006
10824
10998
dnl
10825
10999
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
10826
11000
dnl
10827
 
dnl This program is free software; you can redistribute it and/or modify it
10828
 
dnl under the terms of the GNU General Public License as published by the Free
10829
 
dnl Software Foundation; either version 2 of the License, or (at your option)
10830
 
dnl any later version.
10831
 
dnl
10832
 
dnl This program is distributed in the hope that it will be useful, but WITHOUT
10833
 
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10834
 
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
10835
 
dnl more details.
10836
 
dnl
10837
 
dnl You should have received a copy of the GNU General Public License along with
10838
 
dnl this program; if not, write to the Free Software Foundation, Inc., 59 Temple
10839
 
dnl Place, Suite 330, Boston, MA  02111-1307  USA
 
11001
dnl This program is free software; you can redistribute it and/or modify
 
11002
dnl it under the terms of the GNU General Public License as published by
 
11003
dnl the Free Software Foundation; either version 2 of the License, or
 
11004
dnl (at your option) any later version.
 
11005
dnl
 
11006
dnl This program is distributed in the hope that it will be useful,
 
11007
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11008
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11009
dnl GNU General Public License for more details.
 
11010
dnl
 
11011
dnl You should have received a copy of the GNU General Public License along
 
11012
dnl with this program; if not, write to the Free Software Foundation, Inc.,
 
11013
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
10840
11014
dnl
10841
11015
dnl xdt-depends
10842
11016
dnl -----------
10893
11067
                              -Wno-missing-field-initializers \
10894
11068
                              -Wno-unused-parameter -Wold-style-definition \
10895
11069
                              -Wdeclaration-after-statement \
10896
 
                              -Wmissing-declarations -Wredundant-decls \
 
11070
                              -Wmissing-declarations \
10897
11071
                              -Wmissing-noreturn -Wshadow -Wpointer-arith \
10898
11072
                              -Wcast-align -Wformat-security \
10899
11073
                              -Winit-self -Wmissing-include-dirs -Wundef \
10900
 
                              -Wmissing-format-attribute -Wnested-externs \
10901
 
                              -fstack-protector"
 
11074
                              -Wmissing-format-attribute -Wnested-externs"
10902
11075
    CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
10903
 
    
 
11076
 
 
11077
    if test x`uname` = x"Linux"; then
 
11078
      xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector"
 
11079
    fi
 
11080
 
 
11081
    dnl # signal.h inline is crapy on openbsd
 
11082
    if test x`uname` != x"OpenBSD"; then
 
11083
      xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -Wredundant-decls"
 
11084
    fi
 
11085
 
10904
11086
    if test x"$enable_debug" = x"full"; then
10905
11087
      AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
10906
 
      xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g3 -Werror"
 
11088
      xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g -Werror"
10907
11089
      CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
10908
11090
      AC_MSG_RESULT([full])
10909
11091
    else
10930
11112
    CPPFLAGS="$CPPFLAGS -DNDEBUG"
10931
11113
 
10932
11114
    if test x"$enable_debug" = x"no"; then
10933
 
      CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
 
11115
      CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT"
10934
11116
      AC_MSG_RESULT([no])
10935
11117
    else
10936
11118
      AC_MSG_RESULT([minimum])
10983
11165
 
10984
11166
  if test "x$have_gnuc_visibility" = "xyes"; then
10985
11167
    CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
10986
 
    XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
 
11168
    xdt_vis_hidden_cflags=""
 
11169
    XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-xldscope=hidden])
 
11170
    if test "x$xdt_vis_hidden_cflags" = "x"; then
 
11171
      XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
 
11172
    fi
10987
11173
    CFLAGS="$CFLAGS $xdt_vis_hidden_cflags"
10988
11174
  fi
10989
11175
 
11002
11188
                [enable_linker_opts=$enableval], [enable_linker_opts=yes])
11003
11189
 
11004
11190
  if test "x$enable_linker_opts" != "xno"; then
11005
 
    AC_MSG_CHECKING([whether $LD accepts --as-needed])
11006
 
    case `$LD --as-needed -v 2>&1 </dev/null` in
11007
 
    *GNU* | *'with BFD'*)
11008
 
      LDFLAGS="$LDFLAGS -Wl,--as-needed"
11009
 
      AC_MSG_RESULT([yes])
11010
 
      ;;
11011
 
    *)
11012
 
      AC_MSG_RESULT([no])
11013
 
      ;;
11014
 
    esac
11015
 
    AC_MSG_CHECKING([whether $LD accepts -O1])
11016
 
    case `$LD -O1 -v 2>&1 </dev/null` in
11017
 
    *GNU* | *'with BFD'*)
11018
 
      LDFLAGS="$LDFLAGS -Wl,-O1"
11019
 
      AC_MSG_RESULT([yes])
11020
 
      ;;
11021
 
    *)
11022
 
      AC_MSG_RESULT([no])
11023
 
      ;;
11024
 
    esac
11025
 
  fi
11026
 
])
11027
 
 
11028
 
dnl BM_DEBUG_SUPPORT()
11029
 
dnl
11030
 
AC_DEFUN([BM_DEBUG_SUPPORT],
11031
 
[
11032
 
dnl # --enable-debug
11033
 
  AC_REQUIRE([XDT_FEATURE_DEBUG])
11034
 
 
11035
 
dnl # --enable-profiling
11036
 
  AC_ARG_ENABLE([profiling],
11037
 
AC_HELP_STRING([--enable-profiling],
11038
 
    [Generate extra code to write profile information])
11039
 
AC_HELP_STRING([--disable-profiling],
11040
 
    [No extra code for profiling (default)]),
11041
 
    [], [enable_profiling=no])
11042
 
 
11043
 
  AC_MSG_CHECKING([whether to build with profiling support])
11044
 
  if test x"$enable_profiling" != x"no"; then
11045
 
    CFLAGS="$CFLAGS -pg"
11046
 
    LDFLAGS="$LDFLAGS -pg"
11047
 
    AC_MSG_RESULT([yes])
11048
 
  else
11049
 
    AC_MSG_RESULT([no])
11050
 
  fi
11051
 
 
11052
 
dnl # --enable-gcov
11053
 
  AC_ARG_ENABLE([gcov],
11054
 
AC_HELP_STRING([--enable-gcov],
11055
 
    [compile with coverage profiling instrumentation (gcc only)])
11056
 
AC_HELP_STRING([--disable-gcov],
11057
 
    [do not generate coverage profiling instrumentation (default)]),
11058
 
    [], [enable_gcov=no])
11059
 
 
11060
 
  AC_MSG_CHECKING([whether to compile with coverage profiling instrumentation])
11061
 
  if test x"$enable_gcov" != x"no"; then
11062
 
    CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
11063
 
    AC_MSG_RESULT([yes])
11064
 
  else
11065
 
    AC_MSG_RESULT([no])
11066
 
  fi
11067
 
 
11068
 
dnl # --disable-asserts
11069
 
  AC_ARG_ENABLE([asserts],
11070
 
AC_HELP_STRING([--disable-asserts], [Disable assertions [DANGEROUS]]),
11071
 
    [], [enable_asserts=yes])
11072
 
 
11073
 
  AC_MSG_CHECKING([whether to disable assertions])
11074
 
  if test x"$enable_asserts" = x"no"; then
11075
 
    AC_MSG_RESULT([yes])
11076
 
    CPPFLAGS="$CPPFLAGS -DG_DISABLE_CHECKS -DG_DISABLE_ASSERT"
11077
 
    CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
11078
 
  else
11079
 
    AC_MSG_RESULT([no])
11080
 
  fi
11081
 
 
11082
 
dnl # --enable-final
11083
 
  AC_REQUIRE([AC_PROG_LD])
11084
 
  AC_ARG_ENABLE([final],
11085
 
AC_HELP_STRING([--enable-final], [Build final version]),
11086
 
    [], [enable_final=yes])
11087
 
 
11088
 
  AC_MSG_CHECKING([whether to build final version])
11089
 
  if test x"$enable_final" = x"yes"; then
11090
 
    AC_MSG_RESULT([yes])
11091
 
    AC_MSG_CHECKING([whether $LD accepts -O1])
11092
 
    case `$LD -O1 -v 2>&1 </dev/null` in
11093
 
    *GNU* | *'with BFD'*)
11094
 
      LDFLAGS="$LDFLAGS -Wl,-O1"
11095
 
      AC_MSG_RESULT([yes])
11096
 
        ;;
11097
 
    *)
11098
 
      AC_MSG_RESULT([no])
11099
 
        ;;
11100
 
    esac
11101
 
  else
11102
 
    AC_MSG_RESULT([no])
 
11191
    if test x`uname` != x"OpenBSD"; then
 
11192
      AC_MSG_CHECKING([whether $LD accepts --as-needed])
 
11193
      case `$LD --as-needed -v 2>&1 </dev/null` in
 
11194
      *GNU* | *'with BFD'*)
 
11195
        LDFLAGS="$LDFLAGS -Wl,--as-needed"
 
11196
        AC_MSG_RESULT([yes])
 
11197
        ;;
 
11198
      *)
 
11199
        AC_MSG_RESULT([no])
 
11200
        ;;
 
11201
      esac
 
11202
    fi
 
11203
    AC_MSG_CHECKING([whether $LD accepts -O1])
 
11204
    case `$LD -O1 -v 2>&1 </dev/null` in
 
11205
    *GNU* | *'with BFD'*)
 
11206
      LDFLAGS="$LDFLAGS -Wl,-O1"
 
11207
      AC_MSG_RESULT([yes])
 
11208
      ;;
 
11209
    *)
 
11210
      AC_MSG_RESULT([no])
 
11211
      ;;
 
11212
    esac
11103
11213
  fi
11104
11214
])
11105
11215
 
11110
11220
dnl
11111
11221
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
11112
11222
dnl
11113
 
dnl This program is free software; you can redistribute it and/or modify it
11114
 
dnl under the terms of the GNU General Public License as published by the Free
11115
 
dnl Software Foundation; either version 2 of the License, or (at your option)
11116
 
dnl any later version.
11117
 
dnl
11118
 
dnl This program is distributed in the hope that it will be useful, but WITHOUT
11119
 
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11120
 
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11121
 
dnl more details.
11122
 
dnl
11123
 
dnl You should have received a copy of the GNU General Public License along with
11124
 
dnl this program; if not, write to the Free Software Foundation, Inc., 59 Temple
11125
 
dnl Place, Suite 330, Boston, MA  02111-1307  USA
 
11223
dnl This program is free software; you can redistribute it and/or modify
 
11224
dnl it under the terms of the GNU General Public License as published by
 
11225
dnl the Free Software Foundation; either version 2 of the License, or
 
11226
dnl (at your option) any later version.
 
11227
dnl
 
11228
dnl This program is distributed in the hope that it will be useful,
 
11229
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11230
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11231
dnl GNU General Public License for more details.
 
11232
dnl
 
11233
dnl You should have received a copy of the GNU General Public License along
 
11234
dnl with this program; if not, write to the Free Software Foundation, Inc.,
 
11235
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
11126
11236
dnl
11127
11237
dnl xdt-i18n
11128
11238
dnl --------
11181
11291
])
11182
11292
 
11183
11293
 
11184
 
 
11185
 
dnl BM_I18N(PACKAGE, LINGUAS)
11186
 
dnl
11187
 
dnl Simple wrapper for XDT_I18N(LINGUAS, PACKAGE). Kept for
11188
 
dnl backward compatibility. Will be removed in the
11189
 
dnl future.
11190
 
dnl
11191
 
AC_DEFUN([BM_I18N],
11192
 
[
11193
 
  XDT_I18N([$2], [$1])
11194
 
])
11195
 
 
11196