~ubuntu-branches/debian/wheezy/gpe-expenses/wheezy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Neil Williams
  • Date: 2011-04-05 21:16:24 UTC
  • mfrom: (1.1.7 upstream) (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110405211624-90dqmvjzg75m1sz9
* New upstream release supporting -Wl,--no-add-needed tests.
  (Closes: #554729)
* Drop the .la file (release goal) - already tested with pilot-qof.
 (Closes: #620738)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
 
[m4_warning([this file was generated for autoconf 2.63.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
 
17
[m4_warning([this file was generated for autoconf 2.67.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
112
112
int 
113
113
main ()
114
114
{
115
 
  int major, minor, micro;
 
115
  unsigned int major, minor, micro;
116
116
  char *tmp_version;
117
 
  int ignored;
118
117
 
119
 
  ignored = system ("touch conf.glibtest");
 
118
  fclose (fopen ("conf.glibtest", "w"));
120
119
 
121
120
  /* HP/UX 9 (%@#!) writes to sscanf strings */
122
121
  tmp_version = g_strdup("$min_glib_version");
123
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
122
  if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
124
123
     printf("%s, bad version string\n", "$min_glib_version");
125
124
     exit(1);
126
125
   }
159
158
       }
160
159
     else
161
160
      {
162
 
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
 
161
        printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
163
162
               glib_major_version, glib_minor_version, glib_micro_version);
164
 
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
 
163
        printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
165
164
               major, minor, micro);
166
165
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
167
166
        printf("***\n");
383
382
AC_DEFUN([IT_PO_SUBDIR],
384
383
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
385
384
dnl
386
 
dnl The following CONFIG_COMMANDS should be exetuted at the very end
 
385
dnl The following CONFIG_COMMANDS should be executed at the very end
387
386
dnl of config.status.
388
387
AC_CONFIG_COMMANDS_PRE([
389
388
  AC_CONFIG_COMMANDS([$1/stamp-it], [
427
426
 
428
427
 
429
428
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
429
# serial 1 (pkg-config-0.24)
430
430
431
431
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
432
432
#
454
454
AC_DEFUN([PKG_PROG_PKG_CONFIG],
455
455
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
456
456
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
457
 
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
 
457
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
458
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
459
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
460
 
458
461
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
459
462
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
460
463
fi
467
470
                AC_MSG_RESULT([no])
468
471
                PKG_CONFIG=""
469
472
        fi
470
 
                
471
473
fi[]dnl
472
474
])# PKG_PROG_PKG_CONFIG
473
475
 
476
478
# Check to see whether a particular set of modules exists.  Similar
477
479
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
478
480
#
479
 
#
480
 
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
481
 
# this or PKG_CHECK_MODULES is called, or make sure to call
482
 
# PKG_CHECK_EXISTS manually
 
481
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
482
# only at the first occurence in configure.ac, so if the first place
 
483
# it's called might be skipped (such as if it is within an "if", you
 
484
# have to call PKG_CHECK_EXISTS manually
483
485
# --------------------------------------------------------------
484
486
AC_DEFUN([PKG_CHECK_EXISTS],
485
487
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
486
488
if test -n "$PKG_CONFIG" && \
487
489
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
488
 
  m4_ifval([$2], [$2], [:])
 
490
  m4_default([$2], [:])
489
491
m4_ifvaln([$3], [else
490
492
  $3])dnl
491
493
fi])
492
494
 
493
 
 
494
495
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
495
496
# ---------------------------------------------
496
497
m4_define([_PKG_CONFIG],
497
 
[if test -n "$PKG_CONFIG"; then
498
 
    if test -n "$$1"; then
499
 
        pkg_cv_[]$1="$$1"
500
 
    else
501
 
        PKG_CHECK_EXISTS([$3],
502
 
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
503
 
                         [pkg_failed=yes])
504
 
    fi
505
 
else
506
 
        pkg_failed=untried
 
498
[if test -n "$$1"; then
 
499
    pkg_cv_[]$1="$$1"
 
500
 elif test -n "$PKG_CONFIG"; then
 
501
    PKG_CHECK_EXISTS([$3],
 
502
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
 
503
                     [pkg_failed=yes])
 
504
 else
 
505
    pkg_failed=untried
507
506
fi[]dnl
508
507
])# _PKG_CONFIG
509
508
 
545
544
See the pkg-config man page for more details.])
546
545
 
547
546
if test $pkg_failed = yes; then
 
547
        AC_MSG_RESULT([no])
548
548
        _PKG_SHORT_ERRORS_SUPPORTED
549
549
        if test $_pkg_short_errors_supported = yes; then
550
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
550
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
551
551
        else 
552
 
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
552
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
553
553
        fi
554
554
        # Put the nasty error message in config.log where it belongs
555
555
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
556
556
 
557
 
        ifelse([$4], , [AC_MSG_ERROR(dnl
 
557
        m4_default([$4], [AC_MSG_ERROR(
558
558
[Package requirements ($2) were not met:
559
559
 
560
560
$$1_PKG_ERRORS
562
562
Consider adjusting the PKG_CONFIG_PATH environment variable if you
563
563
installed software in a non-standard prefix.
564
564
 
565
 
_PKG_TEXT
566
 
])],
567
 
                [AC_MSG_RESULT([no])
568
 
                $4])
 
565
_PKG_TEXT])[]dnl
 
566
        ])
569
567
elif test $pkg_failed = untried; then
570
 
        ifelse([$4], , [AC_MSG_FAILURE(dnl
 
568
        AC_MSG_RESULT([no])
 
569
        m4_default([$4], [AC_MSG_FAILURE(
571
570
[The pkg-config script could not be found or is too old.  Make sure it
572
571
is in your PATH or set the PKG_CONFIG environment variable to the full
573
572
path to pkg-config.
574
573
 
575
574
_PKG_TEXT
576
575
 
577
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
578
 
                [$4])
 
576
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
577
        ])
579
578
else
580
579
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
581
580
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
582
581
        AC_MSG_RESULT([yes])
583
 
        ifelse([$3], , :, [$3])
 
582
        $3
584
583
fi[]dnl
585
584
])# PKG_CHECK_MODULES
586
585
 
596
595
# generated from the m4 files accompanying Automake X.Y.
597
596
# (This private macro should not be called outside this file.)
598
597
AC_DEFUN([AM_AUTOMAKE_VERSION],
599
 
[am__api_version='1.10'
 
598
[am__api_version='1.11'
600
599
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
601
600
dnl require some minimum version.  Point them to the right macro.
602
 
m4_if([$1], [1.10.2], [],
 
601
m4_if([$1], [1.11.1], [],
603
602
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
604
603
])
605
604
 
615
614
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
616
615
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
617
616
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
618
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
617
[AM_AUTOMAKE_VERSION([1.11.1])dnl
619
618
m4_ifndef([AC_AUTOCONF_VERSION],
620
619
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
621
620
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
675
674
 
676
675
# AM_CONDITIONAL                                            -*- Autoconf -*-
677
676
 
678
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
677
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
679
678
# Free Software Foundation, Inc.
680
679
#
681
680
# This file is free software; the Free Software Foundation
682
681
# gives unlimited permission to copy and/or distribute it,
683
682
# with or without modifications, as long as this notice is preserved.
684
683
 
685
 
# serial 8
 
684
# serial 9
686
685
 
687
686
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
688
687
# -------------------------------------
695
694
AC_SUBST([$1_FALSE])dnl
696
695
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
697
696
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
697
m4_define([_AM_COND_VALUE_$1], [$2])dnl
698
698
if $2; then
699
699
  $1_TRUE=
700
700
  $1_FALSE='#'
708
708
Usually this means the macro was only invoked conditionally.]])
709
709
fi])])
710
710
 
711
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
711
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
712
712
# Free Software Foundation, Inc.
713
713
#
714
714
# This file is free software; the Free Software Foundation
715
715
# gives unlimited permission to copy and/or distribute it,
716
716
# with or without modifications, as long as this notice is preserved.
717
717
 
718
 
# serial 9
 
718
# serial 10
719
719
 
720
720
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
721
721
# written in clear, in which case automake, when reading aclocal.m4,
772
772
  if test "$am_compiler_list" = ""; then
773
773
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
774
774
  fi
 
775
  am__universal=false
 
776
  m4_case([$1], [CC],
 
777
    [case " $depcc " in #(
 
778
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
779
     esac],
 
780
    [CXX],
 
781
    [case " $depcc " in #(
 
782
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
783
     esac])
 
784
 
775
785
  for depmode in $am_compiler_list; do
776
786
    # Setup a source with many dependencies, because some compilers
777
787
    # like to wrap large dependency lists on column 80 (with \), and
789
799
    done
790
800
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
791
801
 
 
802
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
803
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
804
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
805
    # versions had trouble with output in subdirs
 
806
    am__obj=sub/conftest.${OBJEXT-o}
 
807
    am__minus_obj="-o $am__obj"
792
808
    case $depmode in
 
809
    gcc)
 
810
      # This depmode causes a compiler race in universal mode.
 
811
      test "$am__universal" = false || continue
 
812
      ;;
793
813
    nosideeffect)
794
814
      # after this tag, mechanisms are not by side-effect, so they'll
795
815
      # only be used when explicitly requested
799
819
        break
800
820
      fi
801
821
      ;;
 
822
    msvisualcpp | msvcmsys)
 
823
      # This compiler won't grok `-c -o', but also, the minuso test has
 
824
      # not run yet.  These depmodes are late enough in the game, and
 
825
      # so weak that their functioning should not be impacted.
 
826
      am__obj=conftest.${OBJEXT-o}
 
827
      am__minus_obj=
 
828
      ;;
802
829
    none) break ;;
803
830
    esac
804
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
805
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
806
 
    # handle `-M -o', and we need to detect this.
807
831
    if depmode=$depmode \
808
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
832
       source=sub/conftest.c object=$am__obj \
809
833
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
810
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
834
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
811
835
         >/dev/null 2>conftest.err &&
812
836
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
813
837
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
814
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
838
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
815
839
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
816
840
      # icc doesn't choke on unknown options, it will just issue warnings
817
841
      # or remarks (even with -Werror).  So we grep stderr for any message
875
899
# gives unlimited permission to copy and/or distribute it,
876
900
# with or without modifications, as long as this notice is preserved.
877
901
 
878
 
#serial 4
 
902
#serial 5
879
903
 
880
904
# _AM_OUTPUT_DEPENDENCY_COMMANDS
881
905
# ------------------------------
882
906
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
883
 
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
884
 
# are listed without --file.  Let's play safe and only enable the eval
885
 
# if we detect the quoting.
886
 
case $CONFIG_FILES in
887
 
*\'*) eval set x "$CONFIG_FILES" ;;
888
 
*)   set x $CONFIG_FILES ;;
889
 
esac
890
 
shift
891
 
for mf
892
 
do
893
 
  # Strip MF so we end up with the name of the file.
894
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
895
 
  # Check whether this is an Automake generated Makefile or not.
896
 
  # We used to match only the files named `Makefile.in', but
897
 
  # some people rename them; so instead we look at the file content.
898
 
  # Grep'ing the first line is not enough: some people post-process
899
 
  # each Makefile.in and add a new line on top of each file to say so.
900
 
  # Grep'ing the whole file is not good either: AIX grep has a line
901
 
  # limit of 2048, but all sed's we know have understand at least 4000.
902
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
903
 
    dirpart=`AS_DIRNAME("$mf")`
904
 
  else
905
 
    continue
906
 
  fi
907
 
  # Extract the definition of DEPDIR, am__include, and am__quote
908
 
  # from the Makefile without running `make'.
909
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
910
 
  test -z "$DEPDIR" && continue
911
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
912
 
  test -z "am__include" && continue
913
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
914
 
  # When using ansi2knr, U may be empty or an underscore; expand it
915
 
  U=`sed -n 's/^U = //p' < "$mf"`
916
 
  # Find all dependency output files, they are included files with
917
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
918
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
919
 
  # expansion.
920
 
  for file in `sed -n "
921
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
922
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
923
 
    # Make sure the directory exists.
924
 
    test -f "$dirpart/$file" && continue
925
 
    fdir=`AS_DIRNAME(["$file"])`
926
 
    AS_MKDIR_P([$dirpart/$fdir])
927
 
    # echo "creating $dirpart/$file"
928
 
    echo '# dummy' > "$dirpart/$file"
 
907
[{
 
908
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
909
  # are listed without --file.  Let's play safe and only enable the eval
 
910
  # if we detect the quoting.
 
911
  case $CONFIG_FILES in
 
912
  *\'*) eval set x "$CONFIG_FILES" ;;
 
913
  *)   set x $CONFIG_FILES ;;
 
914
  esac
 
915
  shift
 
916
  for mf
 
917
  do
 
918
    # Strip MF so we end up with the name of the file.
 
919
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
920
    # Check whether this is an Automake generated Makefile or not.
 
921
    # We used to match only the files named `Makefile.in', but
 
922
    # some people rename them; so instead we look at the file content.
 
923
    # Grep'ing the first line is not enough: some people post-process
 
924
    # each Makefile.in and add a new line on top of each file to say so.
 
925
    # Grep'ing the whole file is not good either: AIX grep has a line
 
926
    # limit of 2048, but all sed's we know have understand at least 4000.
 
927
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
928
      dirpart=`AS_DIRNAME("$mf")`
 
929
    else
 
930
      continue
 
931
    fi
 
932
    # Extract the definition of DEPDIR, am__include, and am__quote
 
933
    # from the Makefile without running `make'.
 
934
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
935
    test -z "$DEPDIR" && continue
 
936
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
937
    test -z "am__include" && continue
 
938
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
939
    # When using ansi2knr, U may be empty or an underscore; expand it
 
940
    U=`sed -n 's/^U = //p' < "$mf"`
 
941
    # Find all dependency output files, they are included files with
 
942
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
943
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
944
    # expansion.
 
945
    for file in `sed -n "
 
946
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
947
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
948
      # Make sure the directory exists.
 
949
      test -f "$dirpart/$file" && continue
 
950
      fdir=`AS_DIRNAME(["$file"])`
 
951
      AS_MKDIR_P([$dirpart/$fdir])
 
952
      # echo "creating $dirpart/$file"
 
953
      echo '# dummy' > "$dirpart/$file"
 
954
    done
929
955
  done
930
 
done
 
956
}
931
957
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
932
958
 
933
959
 
959
985
# Do all the work for Automake.                             -*- Autoconf -*-
960
986
 
961
987
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
962
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
988
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
963
989
#
964
990
# This file is free software; the Free Software Foundation
965
991
# gives unlimited permission to copy and/or distribute it,
966
992
# with or without modifications, as long as this notice is preserved.
967
993
 
968
 
# serial 13
 
994
# serial 16
969
995
 
970
996
# This macro actually does too much.  Some checks are only needed if
971
997
# your package does certain things.  But this isn't really a big deal.
982
1008
# arguments mandatory, and then we can depend on a new Autoconf
983
1009
# release and drop the old call support.
984
1010
AC_DEFUN([AM_INIT_AUTOMAKE],
985
 
[AC_PREREQ([2.60])dnl
 
1011
[AC_PREREQ([2.62])dnl
986
1012
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
987
1013
dnl the ones we care about.
988
1014
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1033
1059
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1034
1060
AM_MISSING_PROG(AUTOHEADER, autoheader)
1035
1061
AM_MISSING_PROG(MAKEINFO, makeinfo)
1036
 
AM_PROG_INSTALL_SH
1037
 
AM_PROG_INSTALL_STRIP
 
1062
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1063
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1038
1064
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1039
1065
# We need awk for the "check" target.  The system "awk" is bad on
1040
1066
# some platforms.
1042
1068
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1043
1069
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1044
1070
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1045
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1046
 
                             [_AM_PROG_TAR([v7])])])
 
1071
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
1072
                             [_AM_PROG_TAR([v7])])])
1047
1073
_AM_IF_OPTION([no-dependencies],,
1048
1074
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1049
 
                  [_AM_DEPENDENCIES(CC)],
1050
 
                  [define([AC_PROG_CC],
1051
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
1075
                  [_AM_DEPENDENCIES(CC)],
 
1076
                  [define([AC_PROG_CC],
 
1077
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1052
1078
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1053
 
                  [_AM_DEPENDENCIES(CXX)],
1054
 
                  [define([AC_PROG_CXX],
1055
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1079
                  [_AM_DEPENDENCIES(CXX)],
 
1080
                  [define([AC_PROG_CXX],
 
1081
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1056
1082
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1057
 
                  [_AM_DEPENDENCIES(OBJC)],
1058
 
                  [define([AC_PROG_OBJC],
1059
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1060
 
])
1061
 
])
 
1083
                  [_AM_DEPENDENCIES(OBJC)],
 
1084
                  [define([AC_PROG_OBJC],
 
1085
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
1086
])
 
1087
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
1088
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
1089
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
1090
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
1091
AC_CONFIG_COMMANDS_PRE(dnl
 
1092
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
1093
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
1094
])
 
1095
 
 
1096
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
1097
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
1098
dnl mangled by Autoconf and run in a shell conditional statement.
 
1099
m4_define([_AC_COMPILER_EXEEXT],
 
1100
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1062
1101
 
1063
1102
 
1064
1103
# When config.status generates a header, we must update the stamp-h file.
1082
1121
done
1083
1122
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1084
1123
 
1085
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1124
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
1086
1125
#
1087
1126
# This file is free software; the Free Software Foundation
1088
1127
# gives unlimited permission to copy and/or distribute it,
1093
1132
# Define $install_sh.
1094
1133
AC_DEFUN([AM_PROG_INSTALL_SH],
1095
1134
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1096
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
1135
if test x"${install_sh}" != xset; then
 
1136
  case $am_aux_dir in
 
1137
  *\ * | *\     *)
 
1138
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
1139
  *)
 
1140
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
1141
  esac
 
1142
fi
1097
1143
AC_SUBST(install_sh)])
1098
1144
 
1099
1145
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
1119
1165
 
1120
1166
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
1121
1167
 
1122
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1168
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
1123
1169
#
1124
1170
# This file is free software; the Free Software Foundation
1125
1171
# gives unlimited permission to copy and/or distribute it,
1126
1172
# with or without modifications, as long as this notice is preserved.
1127
1173
 
1128
 
# serial 3
 
1174
# serial 4
1129
1175
 
1130
1176
# AM_MAKE_INCLUDE()
1131
1177
# -----------------
1134
1180
[am_make=${MAKE-make}
1135
1181
cat > confinc << 'END'
1136
1182
am__doit:
1137
 
        @echo done
 
1183
        @echo this is the am__doit target
1138
1184
.PHONY: am__doit
1139
1185
END
1140
1186
# If we don't find an include directive, just comment out the code.
1144
1190
_am_result=none
1145
1191
# First try GNU make style include.
1146
1192
echo "include confinc" > confmf
1147
 
# We grep out `Entering directory' and `Leaving directory'
1148
 
# messages which can occur if `w' ends up in MAKEFLAGS.
1149
 
# In particular we don't look at `^make:' because GNU make might
1150
 
# be invoked under some other name (usually "gmake"), in which
1151
 
# case it prints its new name instead of `make'.
1152
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1153
 
   am__include=include
1154
 
   am__quote=
1155
 
   _am_result=GNU
1156
 
fi
 
1193
# Ignore all kinds of additional output from `make'.
 
1194
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1195
*the\ am__doit\ target*)
 
1196
  am__include=include
 
1197
  am__quote=
 
1198
  _am_result=GNU
 
1199
  ;;
 
1200
esac
1157
1201
# Now try BSD make style include.
1158
1202
if test "$am__include" = "#"; then
1159
1203
   echo '.include "confinc"' > confmf
1160
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1161
 
      am__include=.include
1162
 
      am__quote="\""
1163
 
      _am_result=BSD
1164
 
   fi
 
1204
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1205
   *the\ am__doit\ target*)
 
1206
     am__include=.include
 
1207
     am__quote="\""
 
1208
     _am_result=BSD
 
1209
     ;;
 
1210
   esac
1165
1211
fi
1166
1212
AC_SUBST([am__include])
1167
1213
AC_SUBST([am__quote])
1171
1217
 
1172
1218
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1173
1219
 
1174
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
1220
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1175
1221
# Free Software Foundation, Inc.
1176
1222
#
1177
1223
# This file is free software; the Free Software Foundation
1178
1224
# gives unlimited permission to copy and/or distribute it,
1179
1225
# with or without modifications, as long as this notice is preserved.
1180
1226
 
1181
 
# serial 5
 
1227
# serial 6
1182
1228
 
1183
1229
# AM_MISSING_PROG(NAME, PROGRAM)
1184
1230
# ------------------------------
1195
1241
AC_DEFUN([AM_MISSING_HAS_RUN],
1196
1242
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1197
1243
AC_REQUIRE_AUX_FILE([missing])dnl
1198
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1244
if test x"${MISSING+set}" != xset; then
 
1245
  case $am_aux_dir in
 
1246
  *\ * | *\     *)
 
1247
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1248
  *)
 
1249
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1250
  esac
 
1251
fi
1199
1252
# Use eval to expand $SHELL
1200
1253
if eval "$MISSING --run true"; then
1201
1254
  am_missing_run="$MISSING --run "
1266
1319
 
1267
1320
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1268
1321
 
1269
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1322
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1270
1323
# Free Software Foundation, Inc.
1271
1324
#
1272
1325
# This file is free software; the Free Software Foundation
1273
1326
# gives unlimited permission to copy and/or distribute it,
1274
1327
# with or without modifications, as long as this notice is preserved.
1275
1328
 
1276
 
# serial 4
 
1329
# serial 5
1277
1330
 
1278
1331
# AM_SANITY_CHECK
1279
1332
# ---------------
1282
1335
# Just in case
1283
1336
sleep 1
1284
1337
echo timestamp > conftest.file
 
1338
# Reject unsafe characters in $srcdir or the absolute working directory
 
1339
# name.  Accept space and tab only in the latter.
 
1340
am_lf='
 
1341
'
 
1342
case `pwd` in
 
1343
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1344
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1345
esac
 
1346
case $srcdir in
 
1347
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1348
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1349
esac
 
1350
 
1285
1351
# Do `set' in a subshell so we don't clobber the current shell's
1286
1352
# arguments.  Must try -L first in case configure is actually a
1287
1353
# symlink; some systems play weird games with the mod time of symlinks
1288
1354
# (eg FreeBSD returns the mod time of the symlink's containing
1289
1355
# directory).
1290
1356
if (
1291
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1357
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1292
1358
   if test "$[*]" = "X"; then
1293
1359
      # -L didn't work.
1294
 
      set X `ls -t $srcdir/configure conftest.file`
 
1360
      set X `ls -t "$srcdir/configure" conftest.file`
1295
1361
   fi
1296
1362
   rm -f conftest.file
1297
1363
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1344
1410
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1345
1411
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1346
1412
 
1347
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1413
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
1348
1414
#
1349
1415
# This file is free software; the Free Software Foundation
1350
1416
# gives unlimited permission to copy and/or distribute it,
1351
1417
# with or without modifications, as long as this notice is preserved.
1352
1418
 
 
1419
# serial 2
 
1420
 
1353
1421
# _AM_SUBST_NOTMAKE(VARIABLE)
1354
1422
# ---------------------------
1355
1423
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1356
1424
# This macro is traced by Automake.
1357
1425
AC_DEFUN([_AM_SUBST_NOTMAKE])
1358
1426
 
 
1427
# AM_SUBST_NOTMAKE(VARIABLE)
 
1428
# ---------------------------
 
1429
# Public sister of _AM_SUBST_NOTMAKE.
 
1430
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1431
 
1359
1432
# Check how to create a tarball.                            -*- Autoconf -*-
1360
1433
 
1361
1434
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.