~musicbrainz-developers/libdiscid/debian

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Sebastian Ramacher
  • Date: 2013-06-20 09:24:04 UTC
  • mfrom: (1.1.7)
  • Revision ID: git-v1:06cae97e4bd26b58f232f82e3fe636b586550e99
Merge tag 'upstream/0.5.1'

Upstream version 0.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.13.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.13.3 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
1338
1338
            LD="${LD-ld} -m elf_i386_fbsd"
1339
1339
            ;;
1340
1340
          x86_64-*linux*)
1341
 
            LD="${LD-ld} -m elf_i386"
 
1341
            case `/usr/bin/file conftest.o` in
 
1342
              *x86-64*)
 
1343
                LD="${LD-ld} -m elf32_x86_64"
 
1344
                ;;
 
1345
              *)
 
1346
                LD="${LD-ld} -m elf_i386"
 
1347
                ;;
 
1348
            esac
1342
1349
            ;;
1343
1350
          ppc64-*linux*|powerpc64-*linux*)
1344
1351
            LD="${LD-ld} -m elf32ppclinux"
1702
1709
    ;;
1703
1710
  *)
1704
1711
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1705
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
1712
    if test -n "$lt_cv_sys_max_cmd_len" && \
 
1713
        test undefined != "$lt_cv_sys_max_cmd_len"; then
1706
1714
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1707
1715
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1708
1716
    else
2526
2534
  esac
2527
2535
  ;;
2528
2536
 
2529
 
gnu*)
2530
 
  version_type=linux # correct to gnu/linux during the next big refactor
2531
 
  need_lib_prefix=no
2532
 
  need_version=no
2533
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2534
 
  soname_spec='${libname}${release}${shared_ext}$major'
2535
 
  shlibpath_var=LD_LIBRARY_PATH
2536
 
  shlibpath_overrides_runpath=no
2537
 
  hardcode_into_libs=yes
2538
 
  ;;
2539
 
 
2540
2537
haiku*)
2541
2538
  version_type=linux # correct to gnu/linux during the next big refactor
2542
2539
  need_lib_prefix=no
2653
2650
  ;;
2654
2651
 
2655
2652
# This must be glibc/ELF.
2656
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
2653
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2657
2654
  version_type=linux # correct to gnu/linux during the next big refactor
2658
2655
  need_lib_prefix=no
2659
2656
  need_version=no
2698
2695
  dynamic_linker='GNU/Linux ld.so'
2699
2696
  ;;
2700
2697
 
 
2698
netbsdelf*-gnu)
 
2699
  version_type=linux
 
2700
  need_lib_prefix=no
 
2701
  need_version=no
 
2702
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2703
  soname_spec='${libname}${release}${shared_ext}$major'
 
2704
  shlibpath_var=LD_LIBRARY_PATH
 
2705
  shlibpath_overrides_runpath=no
 
2706
  hardcode_into_libs=yes
 
2707
  dynamic_linker='NetBSD ld.elf_so'
 
2708
  ;;
 
2709
 
2701
2710
netbsd*)
2702
2711
  version_type=sunos
2703
2712
  need_lib_prefix=no
3257
3266
  fi
3258
3267
  ;;
3259
3268
 
3260
 
gnu*)
3261
 
  lt_cv_deplibs_check_method=pass_all
3262
 
  ;;
3263
 
 
3264
3269
haiku*)
3265
3270
  lt_cv_deplibs_check_method=pass_all
3266
3271
  ;;
3299
3304
  ;;
3300
3305
 
3301
3306
# This must be glibc/ELF.
3302
 
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
3307
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3303
3308
  lt_cv_deplibs_check_method=pass_all
3304
3309
  ;;
3305
3310
 
3306
 
netbsd*)
 
3311
netbsd* | netbsdelf*-gnu)
3307
3312
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3308
3313
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3309
3314
  else
4051
4056
            ;;
4052
4057
        esac
4053
4058
        ;;
4054
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4059
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4055
4060
        case $cc_basename in
4056
4061
          KCC*)
4057
4062
            # KAI C++ Compiler
4115
4120
            ;;
4116
4121
        esac
4117
4122
        ;;
4118
 
      netbsd*)
 
4123
      netbsd* | netbsdelf*-gnu)
4119
4124
        ;;
4120
4125
      *qnx* | *nto*)
4121
4126
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4350
4355
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4351
4356
      ;;
4352
4357
 
4353
 
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4358
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4354
4359
      case $cc_basename in
4355
4360
      # old Intel for x86_64 which still supported -KPIC.
4356
4361
      ecc*)
4592
4597
      ;;
4593
4598
    esac
4594
4599
    ;;
 
4600
  linux* | k*bsd*-gnu | gnu*)
 
4601
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4602
    ;;
4595
4603
  *)
4596
4604
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4597
4605
    ;;
4654
4662
  openbsd*)
4655
4663
    with_gnu_ld=no
4656
4664
    ;;
 
4665
  linux* | k*bsd*-gnu | gnu*)
 
4666
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
4667
    ;;
4657
4668
  esac
4658
4669
 
4659
4670
  _LT_TAGVAR(ld_shlibs, $1)=yes
4875
4886
      fi
4876
4887
      ;;
4877
4888
 
4878
 
    netbsd*)
 
4889
    netbsd* | netbsdelf*-gnu)
4879
4890
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4880
4891
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4881
4892
        wlarc=
5052
5063
        if test "$aix_use_runtimelinking" = yes; then
5053
5064
          shared_flag="$shared_flag "'${wl}-G'
5054
5065
        fi
 
5066
        _LT_TAGVAR(link_all_deplibs, $1)=no
5055
5067
      else
5056
5068
        # not using gcc
5057
5069
        if test "$host_cpu" = ia64; then
5356
5368
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5357
5369
      ;;
5358
5370
 
5359
 
    netbsd*)
 
5371
    netbsd* | netbsdelf*-gnu)
5360
5372
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5361
5373
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5362
5374
      else
6232
6244
        _LT_TAGVAR(ld_shlibs, $1)=yes
6233
6245
        ;;
6234
6246
 
6235
 
      gnu*)
6236
 
        ;;
6237
 
 
6238
6247
      haiku*)
6239
6248
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6240
6249
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6396
6405
        _LT_TAGVAR(inherit_rpath, $1)=yes
6397
6406
        ;;
6398
6407
 
6399
 
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
6408
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6400
6409
        case $cc_basename in
6401
6410
          KCC*)
6402
6411
            # Kuck and Associates, Inc. (KAI) C++ Compiler
8622
8631
[am__api_version='1.13'
8623
8632
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8624
8633
dnl require some minimum version.  Point them to the right macro.
8625
 
m4_if([$1], [1.13.1], [],
 
8634
m4_if([$1], [1.13.3], [],
8626
8635
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8627
8636
])
8628
8637
 
8638
8647
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8639
8648
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8640
8649
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8641
 
[AM_AUTOMAKE_VERSION([1.13.1])dnl
 
8650
[AM_AUTOMAKE_VERSION([1.13.3])dnl
8642
8651
m4_ifndef([AC_AUTOCONF_VERSION],
8643
8652
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8644
8653
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8645
8654
 
 
8655
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
 
8656
#
 
8657
# This file is free software; the Free Software Foundation
 
8658
# gives unlimited permission to copy and/or distribute it,
 
8659
# with or without modifications, as long as this notice is preserved.
 
8660
 
 
8661
# AM_PROG_AR([ACT-IF-FAIL])
 
8662
# -------------------------
 
8663
# Try to determine the archiver interface, and trigger the ar-lib wrapper
 
8664
# if it is needed.  If the detection of archiver interface fails, run
 
8665
# ACT-IF-FAIL (default is to abort configure with a proper error message).
 
8666
AC_DEFUN([AM_PROG_AR],
 
8667
[AC_BEFORE([$0], [LT_INIT])dnl
 
8668
AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
 
8669
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
8670
AC_REQUIRE_AUX_FILE([ar-lib])dnl
 
8671
AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
 
8672
: ${AR=ar}
 
8673
 
 
8674
AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
 
8675
  [am_cv_ar_interface=ar
 
8676
   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
 
8677
     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
 
8678
      AC_TRY_EVAL([am_ar_try])
 
8679
      if test "$ac_status" -eq 0; then
 
8680
        am_cv_ar_interface=ar
 
8681
      else
 
8682
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
 
8683
        AC_TRY_EVAL([am_ar_try])
 
8684
        if test "$ac_status" -eq 0; then
 
8685
          am_cv_ar_interface=lib
 
8686
        else
 
8687
          am_cv_ar_interface=unknown
 
8688
        fi
 
8689
      fi
 
8690
      rm -f conftest.lib libconftest.a
 
8691
     ])
 
8692
   ])
 
8693
 
 
8694
case $am_cv_ar_interface in
 
8695
ar)
 
8696
  ;;
 
8697
lib)
 
8698
  # Microsoft lib, so override with the ar-lib wrapper script.
 
8699
  # FIXME: It is wrong to rewrite AR.
 
8700
  # But if we don't then we get into trouble of one sort or another.
 
8701
  # A longer-term fix would be to have automake use am__AR in this case,
 
8702
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
 
8703
  # similar.
 
8704
  AR="$am_aux_dir/ar-lib $AR"
 
8705
  ;;
 
8706
unknown)
 
8707
  m4_default([$1],
 
8708
             [AC_MSG_ERROR([could not determine $AR interface])])
 
8709
  ;;
 
8710
esac
 
8711
AC_SUBST([AR])dnl
 
8712
])
 
8713
 
8646
8714
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8647
8715
 
8648
8716
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
8960
9028
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8961
9029
    test -z "$DEPDIR" && continue
8962
9030
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8963
 
    test -z "am__include" && continue
 
9031
    test -z "$am__include" && continue
8964
9032
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8965
9033
    # Find all dependency output files, they are included files with
8966
9034
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9512
9580
# Substitute a variable $(am__untar) that extract such
9513
9581
# a tarball read from stdin.
9514
9582
#     $(am__untar) < result.tar
 
9583
#
9515
9584
AC_DEFUN([_AM_PROG_TAR],
9516
9585
[# Always define AMTAR for backward compatibility.  Yes, it's still used
9517
9586
# in the wild :-(  We should find a proper way to deprecate it ...
9518
9587
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
9588
 
 
9589
# We'll loop over all known methods to create a tar archive until one works.
 
9590
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
9591
 
9519
9592
m4_if([$1], [v7],
9520
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9521
 
     [m4_case([$1], [ustar],, [pax],,
9522
 
              [m4_fatal([Unknown tar format])])
9523
 
AC_MSG_CHECKING([how to create a $1 tar archive])
9524
 
# Loop over all known methods to create a tar archive until one works.
9525
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9526
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9527
 
# Do not fold the above two line into one, because Tru64 sh and
9528
 
# Solaris sh will not grok spaces in the rhs of '-'.
9529
 
for _am_tool in $_am_tools
9530
 
do
9531
 
  case $_am_tool in
9532
 
  gnutar)
9533
 
    for _am_tar in tar gnutar gtar;
9534
 
    do
9535
 
      AM_RUN_LOG([$_am_tar --version]) && break
9536
 
    done
9537
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9538
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9539
 
    am__untar="$_am_tar -xf -"
9540
 
    ;;
9541
 
  plaintar)
9542
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
9543
 
    # ustar tarball either.
9544
 
    (tar --version) >/dev/null 2>&1 && continue
9545
 
    am__tar='tar chf - "$$tardir"'
9546
 
    am__tar_='tar chf - "$tardir"'
9547
 
    am__untar='tar xf -'
9548
 
    ;;
9549
 
  pax)
9550
 
    am__tar='pax -L -x $1 -w "$$tardir"'
9551
 
    am__tar_='pax -L -x $1 -w "$tardir"'
9552
 
    am__untar='pax -r'
9553
 
    ;;
9554
 
  cpio)
9555
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9556
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9557
 
    am__untar='cpio -i -H $1 -d'
9558
 
    ;;
9559
 
  none)
9560
 
    am__tar=false
9561
 
    am__tar_=false
9562
 
    am__untar=false
9563
 
    ;;
9564
 
  esac
9565
 
 
9566
 
  # If the value was cached, stop now.  We just wanted to have am__tar
9567
 
  # and am__untar set.
9568
 
  test -n "${am_cv_prog_tar_$1}" && break
9569
 
 
9570
 
  # tar/untar a dummy directory, and stop if the command works
9571
 
  rm -rf conftest.dir
9572
 
  mkdir conftest.dir
9573
 
  echo GrepMe > conftest.dir/file
9574
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9575
 
  rm -rf conftest.dir
9576
 
  if test -s conftest.tar; then
9577
 
    AM_RUN_LOG([$am__untar <conftest.tar])
9578
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9579
 
  fi
9580
 
done
9581
 
rm -rf conftest.dir
9582
 
 
9583
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9584
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
9593
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
9594
 
 
9595
  [m4_case([$1],
 
9596
    [ustar],
 
9597
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
9598
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
9599
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
9600
      # and bug#13588).
 
9601
      am_max_uid=2097151 # 2^21 - 1
 
9602
      am_max_gid=$am_max_uid
 
9603
      # The $UID and $GID variables are not portable, so we need to resort
 
9604
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
9605
      # below are definitely unexpected, so allow the users to see them
 
9606
      # (that is, avoid stderr redirection).
 
9607
      am_uid=`id -u || echo unknown`
 
9608
      am_gid=`id -g || echo unknown`
 
9609
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
9610
      if test $am_uid -le $am_max_uid; then
 
9611
         AC_MSG_RESULT([yes])
 
9612
      else
 
9613
         AC_MSG_RESULT([no])
 
9614
         _am_tools=none
 
9615
      fi
 
9616
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
9617
      if test $am_gid -le $am_max_gid; then
 
9618
         AC_MSG_RESULT([yes])
 
9619
      else
 
9620
        AC_MSG_RESULT([no])
 
9621
        _am_tools=none
 
9622
      fi],
 
9623
 
 
9624
  [pax],
 
9625
    [],
 
9626
 
 
9627
  [m4_fatal([Unknown tar format])])
 
9628
 
 
9629
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
9630
 
 
9631
  # Go ahead even if we have the value already cached.  We do so because we
 
9632
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
9633
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
9634
 
 
9635
  for _am_tool in $_am_tools; do
 
9636
    case $_am_tool in
 
9637
    gnutar)
 
9638
      for _am_tar in tar gnutar gtar; do
 
9639
        AM_RUN_LOG([$_am_tar --version]) && break
 
9640
      done
 
9641
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
9642
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
9643
      am__untar="$_am_tar -xf -"
 
9644
      ;;
 
9645
    plaintar)
 
9646
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
9647
      # ustar tarball either.
 
9648
      (tar --version) >/dev/null 2>&1 && continue
 
9649
      am__tar='tar chf - "$$tardir"'
 
9650
      am__tar_='tar chf - "$tardir"'
 
9651
      am__untar='tar xf -'
 
9652
      ;;
 
9653
    pax)
 
9654
      am__tar='pax -L -x $1 -w "$$tardir"'
 
9655
      am__tar_='pax -L -x $1 -w "$tardir"'
 
9656
      am__untar='pax -r'
 
9657
      ;;
 
9658
    cpio)
 
9659
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
9660
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
9661
      am__untar='cpio -i -H $1 -d'
 
9662
      ;;
 
9663
    none)
 
9664
      am__tar=false
 
9665
      am__tar_=false
 
9666
      am__untar=false
 
9667
      ;;
 
9668
    esac
 
9669
 
 
9670
    # If the value was cached, stop now.  We just wanted to have am__tar
 
9671
    # and am__untar set.
 
9672
    test -n "${am_cv_prog_tar_$1}" && break
 
9673
 
 
9674
    # tar/untar a dummy directory, and stop if the command works.
 
9675
    rm -rf conftest.dir
 
9676
    mkdir conftest.dir
 
9677
    echo GrepMe > conftest.dir/file
 
9678
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
9679
    rm -rf conftest.dir
 
9680
    if test -s conftest.tar; then
 
9681
      AM_RUN_LOG([$am__untar <conftest.tar])
 
9682
      AM_RUN_LOG([cat conftest.dir/file])
 
9683
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
9684
    fi
 
9685
  done
 
9686
  rm -rf conftest.dir
 
9687
 
 
9688
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
9689
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
9690
 
9585
9691
AC_SUBST([am__tar])
9586
9692
AC_SUBST([am__untar])
9587
9693
]) # _AM_PROG_TAR