~ubuntu-branches/ubuntu/dapper/atk1.0/dapper

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-03-31 16:52:13 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060331165213-avzs7yjh20w26xp2
Tags: 1.11.4-0ubuntu1
* New upstream release:
  - Enhanced documentation: gtk-doc API docs are now at 100% coverage.
  - allow for NULL in-params to AtkImage coordinate APIs.
  - New langs: Georgian (ka), Oriya (or)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.7 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
4
# Free Software Foundation, Inc.
42
42
# This macro actually does too much some checks are only needed if
43
43
# your package does certain things.  But this isn't really a big deal.
44
44
 
45
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
 
45
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
46
46
# Free Software Foundation, Inc.
47
47
 
48
48
# This program is free software; you can redistribute it and/or modify
60
60
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
61
61
# 02111-1307, USA.
62
62
 
63
 
# serial 10
 
63
# serial 8
 
64
 
 
65
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
66
# written in clear, in which case automake, when reading aclocal.m4,
 
67
# will think it sees a *use*, and therefore will trigger all it's
 
68
# C support machinery.  Also note that it means that autoscan, seeing
 
69
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
70
 
64
71
 
65
72
AC_PREREQ([2.54])
66
73
 
105
112
 AC_SUBST([PACKAGE], [$1])dnl
106
113
 AC_SUBST([VERSION], [$2])],
107
114
[_AM_SET_OPTIONS([$1])dnl
108
 
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
109
 
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
115
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
 
116
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
110
117
 
111
118
_AM_IF_OPTION([no-define],,
112
119
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
127
134
# some platforms.
128
135
AC_REQUIRE([AC_PROG_AWK])dnl
129
136
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
130
 
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
131
137
 
132
138
_AM_IF_OPTION([no-dependencies],,
133
139
[AC_PROVIDE_IFELSE([AC_PROG_CC],
150
156
# loop where config.status creates the headers, so we can generate
151
157
# our stamp files there.
152
158
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
153
 
[# Compute $1's index in $config_headers.
154
 
_am_stamp_count=1
155
 
for _am_header in $config_headers :; do
156
 
  case $_am_header in
157
 
    $1 | $1:* )
158
 
      break ;;
159
 
    * )
160
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
161
 
  esac
162
 
done
 
159
[_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
163
160
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
164
161
 
165
162
# Copyright 2002  Free Software Foundation, Inc.
189
186
# Call AM_AUTOMAKE_VERSION so it can be traced.
190
187
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
191
188
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
192
 
         [AM_AUTOMAKE_VERSION([1.7.9])])
 
189
         [AM_AUTOMAKE_VERSION([1.7])])
193
190
 
194
191
# Helper functions for option handling.                    -*- Autoconf -*-
195
192
 
475
472
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
476
473
AC_SUBST([INSTALL_STRIP_PROGRAM])])
477
474
 
478
 
#                                                          -*- Autoconf -*-
479
 
# Copyright (C) 2003  Free Software Foundation, Inc.
480
 
 
481
 
# This program is free software; you can redistribute it and/or modify
482
 
# it under the terms of the GNU General Public License as published by
483
 
# the Free Software Foundation; either version 2, or (at your option)
484
 
# any later version.
485
 
 
486
 
# This program is distributed in the hope that it will be useful,
487
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
488
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
489
 
# GNU General Public License for more details.
490
 
 
491
 
# You should have received a copy of the GNU General Public License
492
 
# along with this program; if not, write to the Free Software
493
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
494
 
# 02111-1307, USA.
495
 
 
496
 
# serial 1
497
 
 
498
 
# Check whether the underlying file-system supports filenames
499
 
# with a leading dot.  For instance MS-DOS doesn't.
500
 
AC_DEFUN([AM_SET_LEADING_DOT],
501
 
[rm -rf .tst 2>/dev/null
502
 
mkdir .tst 2>/dev/null
503
 
if test -d .tst; then
504
 
  am__leading_dot=.
505
 
else
506
 
  am__leading_dot=_
507
 
fi
508
 
rmdir .tst 2>/dev/null
509
 
AC_SUBST([am__leading_dot])])
510
 
 
511
 
# serial 5                                              -*- Autoconf -*-
512
 
 
513
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
 
475
# serial 4                                              -*- Autoconf -*-
 
476
 
 
477
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
514
478
 
515
479
# This program is free software; you can redistribute it and/or modify
516
480
# it under the terms of the GNU General Public License as published by
571
535
  # using a relative directory.
572
536
  cp "$am_depcomp" conftest.dir
573
537
  cd conftest.dir
574
 
  # We will build objects and dependencies in a subdirectory because
575
 
  # it helps to detect inapplicable dependency modes.  For instance
576
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
577
 
  # side effect of compilation, but ICC will put the dependencies in
578
 
  # the current directory while Tru64 will put them in the object
579
 
  # directory.
580
 
  mkdir sub
581
538
 
582
539
  am_cv_$1_dependencies_compiler_type=none
583
540
  if test "$am_compiler_list" = ""; then
584
541
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
585
542
  fi
586
543
  for depmode in $am_compiler_list; do
587
 
    # Setup a source with many dependencies, because some compilers
588
 
    # like to wrap large dependency lists on column 80 (with \), and
589
 
    # we should not choose a depcomp mode which is confused by this.
590
 
    #
591
544
    # We need to recreate these files for each test, as the compiler may
592
545
    # overwrite some of them when testing with obscure command lines.
593
546
    # This happens at least with the AIX C compiler.
594
 
    : > sub/conftest.c
595
 
    for i in 1 2 3 4 5 6; do
596
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
597
 
      : > sub/conftst$i.h
598
 
    done
599
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
547
    echo '#include "conftest.h"' > conftest.c
 
548
    echo 'int i;' > conftest.h
 
549
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
600
550
 
601
551
    case $depmode in
602
552
    nosideeffect)
614
564
    # mode.  It turns out that the SunPro C++ compiler does not properly
615
565
    # handle `-M -o', and we need to detect this.
616
566
    if depmode=$depmode \
617
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
618
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
619
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
620
 
         >/dev/null 2>conftest.err &&
621
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
622
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
567
       source=conftest.c object=conftest.o \
 
568
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
569
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
570
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
623
571
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
624
 
      # icc doesn't choke on unknown options, it will just issue warnings
625
 
      # (even with -Werror).  So we grep stderr for any message
626
 
      # that says an option was ignored.
627
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
628
 
        am_cv_$1_dependencies_compiler_type=$depmode
629
 
        break
630
 
      fi
 
572
      am_cv_$1_dependencies_compiler_type=$depmode
 
573
      break
631
574
    fi
632
575
  done
633
576
 
649
592
# Choose a directory name for dependency files.
650
593
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
651
594
AC_DEFUN([AM_SET_DEPDIR],
652
 
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
653
 
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
595
[rm -f .deps 2>/dev/null
 
596
mkdir .deps 2>/dev/null
 
597
if test -d .deps; then
 
598
  DEPDIR=.deps
 
599
else
 
600
  # MS-DOS does not allow filenames that begin with a dot.
 
601
  DEPDIR=_deps
 
602
fi
 
603
rmdir .deps 2>/dev/null
 
604
AC_SUBST([DEPDIR])
654
605
])
655
606
 
656
607
 
754
705
 
755
706
# Check to see how 'make' treats includes.      -*- Autoconf -*-
756
707
 
757
 
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 
708
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
758
709
 
759
710
# This program is free software; you can redistribute it and/or modify
760
711
# it under the terms of the GNU General Public License as published by
779
730
AC_DEFUN([AM_MAKE_INCLUDE],
780
731
[am_make=${MAKE-make}
781
732
cat > confinc << 'END'
782
 
am__doit:
 
733
doit:
783
734
        @echo done
784
 
.PHONY: am__doit
785
735
END
786
736
# If we don't find an include directive, just comment out the code.
787
737
AC_MSG_CHECKING([for style of include used by $am_make])
809
759
      _am_result=BSD
810
760
   fi
811
761
fi
812
 
AC_SUBST([am__include])
813
 
AC_SUBST([am__quote])
814
 
AC_MSG_RESULT([$_am_result])
 
762
AC_SUBST(am__include)
 
763
AC_SUBST(am__quote)
 
764
AC_MSG_RESULT($_am_result)
815
765
rm -f confinc confmf
816
766
])
817
767
 
991
941
default_ofile=libtool
992
942
can_build_shared=yes
993
943
 
994
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
944
# All known linkers require a `.a' archive for static linking (except MSVC,
995
945
# which needs '.lib').
996
946
libext=a
997
947
ltmain="$ac_aux_dir/ltmain.sh"
1207
1157
# find a string as large as possible, as long as the shell can cope with it
1208
1158
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1209
1159
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1210
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1211
 
       echo_test_string="`eval $cmd`" &&
 
1160
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
1161
       echo_test_string=`eval $cmd` &&
1212
1162
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1213
1163
    then
1214
1164
      break
1377
1327
  # Find out which ABI we are using.
1378
1328
  echo 'int i;' > conftest.$ac_ext
1379
1329
  if AC_TRY_EVAL(ac_compile); then
1380
 
    case "`/usr/bin/file conftest.o`" in
 
1330
    case `/usr/bin/file conftest.o` in
1381
1331
    *32-bit*)
1382
1332
      case $host in
1383
1333
        x86_64-*linux*)
1459
1409
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1460
1410
   # The option is referenced via a variable to avoid confusing sed.
1461
1411
   lt_compile=`echo "$ac_compile" | $SED \
1462
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1412
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1463
1413
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1464
1414
   -e 's:$: $lt_compiler_flag:'`
1465
1415
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1498
1448
   LDFLAGS="$LDFLAGS $3"
1499
1449
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
1500
1450
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1501
 
     # The compiler can only warn and ignore the option if not recognized
 
1451
     # The linker can only warn and ignore the option if not recognized
1502
1452
     # So say no if there are warnings
1503
1453
     if test -s conftest.err; then
1504
1454
       # Append any errors to the config.log.
1573
1523
    elif test -x /usr/sbin/sysctl; then
1574
1524
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1575
1525
    else
1576
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
1526
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
1577
1527
    fi
1578
1528
    # And add a safety zone
1579
1529
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1585
1535
    # nice to cause kernel panics so lets avoid the loop below.
1586
1536
    # First set a reasonable default.
1587
1537
    lt_cv_sys_max_cmd_len=16384
1588
 
    # 
 
1538
    #
1589
1539
    if test -x /sbin/sysconfig; then
1590
1540
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1591
1541
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1702
1652
}]
1703
1653
EOF
1704
1654
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1705
 
    (./conftest; exit; ) 2>/dev/null
 
1655
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1706
1656
    lt_status=$?
1707
1657
    case x$lt_status in
1708
1658
      x$lt_dlno_uscore) $1 ;;
1851
1801
   # Note that $ac_compile itself does not contain backslashes and begins
1852
1802
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1853
1803
   lt_compile=`echo "$ac_compile" | $SED \
1854
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1804
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1855
1805
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1856
1806
   -e 's:$: $lt_compiler_flag:'`
1857
1807
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1869
1819
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1870
1820
     fi
1871
1821
   fi
1872
 
   chmod u+w .
 
1822
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1873
1823
   $rm conftest*
1874
1824
   # SGI C++ compiler will create directory out/ii_files/ for
1875
1825
   # template instantiation
2129
2079
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2130
2080
      dldir=$destdir/`dirname \$dlpath`~
2131
2081
      test -d \$dldir || mkdir -p \$dldir~
2132
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2082
      $install_prog $dir/$dlname \$dldir/$dlname~
 
2083
      chmod a+x \$dldir/$dlname'
2133
2084
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2134
2085
      dlpath=$dir/\$dldll~
2135
2086
       $rm \$dlpath'
2182
2133
  soname_spec='${libname}${release}${major}$shared_ext'
2183
2134
  shlibpath_overrides_runpath=yes
2184
2135
  shlibpath_var=DYLD_LIBRARY_PATH
2185
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
2136
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2186
2137
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2187
2138
  if test "$GCC" = yes; then
2188
2139
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2220
2171
freebsd* | dragonfly*)
2221
2172
  # DragonFly does not have aout.  When/if they implement a new
2222
2173
  # versioning mechanism, adjust this.
2223
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
2174
  if test -x /usr/bin/objformat; then
 
2175
    objformat=`/usr/bin/objformat`
 
2176
  else
 
2177
    case $host_os in
 
2178
    freebsd[[123]]*) objformat=aout ;;
 
2179
    *) objformat=elf ;;
 
2180
    esac
 
2181
  fi
2224
2182
  version_type=freebsd-$objformat
2225
2183
  case $version_type in
2226
2184
    freebsd-elf*)
2265
2223
  version_type=sunos
2266
2224
  need_lib_prefix=no
2267
2225
  need_version=no
2268
 
  case "$host_cpu" in
 
2226
  case $host_cpu in
2269
2227
  ia64*)
2270
2228
    shrext_cmds='.so'
2271
2229
    hardcode_into_libs=yes
2362
2320
  # before this can be enabled.
2363
2321
  hardcode_into_libs=yes
2364
2322
 
2365
 
  # find out which ABI we are using
2366
 
  libsuff=
2367
 
  case "$host_cpu" in
2368
 
  x86_64*|s390x*|powerpc64*)
2369
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2370
 
    if AC_TRY_EVAL(ac_compile); then
2371
 
      case `/usr/bin/file conftest.$ac_objext` in
2372
 
      *64-bit*)
2373
 
        libsuff=64
2374
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
2375
 
        ;;
2376
 
      esac
2377
 
    fi
2378
 
    rm -rf conftest*
2379
 
    ;;
2380
 
  esac
2381
 
 
2382
2323
  # Append ld.so.conf contents to the search path
2383
2324
  if test -f /etc/ld.so.conf; then
2384
2325
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2385
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
2326
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2386
2327
  fi
2387
2328
 
2388
2329
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2678
2619
 
2679
2620
# AC_LIBTOOL_WIN32_DLL
2680
2621
# --------------------
2681
 
# declare package support for building win32 dll's
 
2622
# declare package support for building win32 DLLs
2682
2623
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2683
2624
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2684
2625
])# AC_LIBTOOL_WIN32_DLL
2852
2793
      if test -n "$file_magic_test_file"; then
2853
2794
        case $deplibs_check_method in
2854
2795
        "file_magic "*)
2855
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2796
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2856
2797
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2857
2798
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2858
2799
            $EGREP "$file_magic_regex" > /dev/null; then
2962
2903
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2963
2904
      lt_cv_path_LD="$ac_dir/$ac_prog"
2964
2905
      # Check to see if the program is GNU ld.  I'd rather use --version,
2965
 
      # but apparently some GNU ld's only accept -v.
 
2906
      # but apparently some variants of GNU ld only accept -v.
2966
2907
      # Break only if it was the GNU/non-GNU ld that we prefer.
2967
2908
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2968
2909
      *GNU* | *'with BFD'*)
2994
2935
AC_DEFUN([AC_PROG_LD_GNU],
2995
2936
[AC_REQUIRE([AC_PROG_EGREP])dnl
2996
2937
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2997
 
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2938
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2998
2939
case `$LD -v 2>&1 </dev/null` in
2999
2940
*GNU* | *'with BFD'*)
3000
2941
  lt_cv_prog_gnu_ld=yes
3108
3049
 
3109
3050
hpux10.20* | hpux11*)
3110
3051
  lt_cv_file_magic_cmd=/usr/bin/file
3111
 
  case "$host_cpu" in
 
3052
  case $host_cpu in
3112
3053
  ia64*)
3113
3054
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3114
3055
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3282
3223
# -----------------------------------
3283
3224
# sets LIBLTDL to the link flags for the libltdl convenience library and
3284
3225
# LTDLINCL to the include flags for the libltdl header and adds
3285
 
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
3286
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3287
 
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
3288
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3289
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3290
 
# flat and you're not using automake, define top_builddir and
3291
 
# top_srcdir appropriately in the Makefiles.
 
3226
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3227
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3228
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3229
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3230
# (note the single quotes!).  If your package is not flat and you're not
 
3231
# using automake, define top_builddir and top_srcdir appropriately in
 
3232
# the Makefiles.
3292
3233
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3293
3234
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3294
3235
  case $enable_ltdl_convenience in
3307
3248
# -----------------------------------
3308
3249
# sets LIBLTDL to the link flags for the libltdl installable library and
3309
3250
# LTDLINCL to the include flags for the libltdl header and adds
3310
 
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
3311
 
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
3312
 
# DIRECTORY is not provided and an installed libltdl is not found, it is
3313
 
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
3314
 
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3315
 
# quotes!).  If your package is not flat and you're not using automake,
3316
 
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
3251
# --enable-ltdl-install to the configure arguments.  Note that
 
3252
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3253
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3254
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3255
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3256
# flat and you're not using automake, define top_builddir and top_srcdir
 
3257
# appropriately in the Makefiles.
3317
3258
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3318
3259
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3319
3260
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3492
3433
 
3493
3434
# On AIX, shared libraries and static libraries use the same namespace, and
3494
3435
# are all built from PIC.
3495
 
case "$host_os" in
 
3436
case $host_os in
3496
3437
aix3*)
3497
3438
  test "$enable_shared" = yes && enable_static=no
3498
3439
  if test -n "$RANLIB"; then
3559
3500
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3560
3501
 
3561
3502
# Source file extension for C++ test sources.
3562
 
ac_ext=cc
 
3503
ac_ext=cpp
3563
3504
 
3564
3505
# Object file extension for compiled C++ test sources.
3565
3506
objext=o
3775
3716
        # Exported symbols can be pulled into shared objects from archives
3776
3717
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3777
3718
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3778
 
        # This is similar to how AIX traditionally builds it's shared libraries.
 
3719
        # This is similar to how AIX traditionally builds its shared libraries.
3779
3720
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3780
3721
      fi
3781
3722
    fi
3814
3755
    fi
3815
3756
  ;;
3816
3757
      darwin* | rhapsody*)
3817
 
        case "$host_os" in
 
3758
        case $host_os in
3818
3759
        rhapsody* | darwin1.[[012]])
3819
3760
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3820
3761
         ;;
3852
3793
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3853
3794
        fi
3854
3795
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3855
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3796
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3856
3797
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3857
3798
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3858
3799
          else
3865
3806
         output_verbose_link_cmd='echo'
3866
3807
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3867
3808
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3868
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3809
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3869
3810
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3870
3811
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3871
3812
          ;;
3945
3886
    ;;
3946
3887
  hpux10*|hpux11*)
3947
3888
    if test $with_gnu_ld = no; then
3948
 
      case "$host_cpu" in
 
3889
      case $host_cpu in
3949
3890
      hppa*64*)
3950
3891
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3951
3892
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3961
3902
        ;;
3962
3903
      esac
3963
3904
    fi
3964
 
    case "$host_cpu" in
 
3905
    case $host_cpu in
3965
3906
    hppa*64*)
3966
3907
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3967
3908
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3987
3928
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3988
3929
        ;;
3989
3930
      aCC*)
3990
 
        case "$host_cpu" in
 
3931
        case $host_cpu in
3991
3932
        hppa*64*|ia64*)
3992
3933
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3993
3934
          ;;
4008
3949
      *)
4009
3950
        if test "$GXX" = yes; then
4010
3951
          if test $with_gnu_ld = no; then
4011
 
            case "$host_cpu" in
 
3952
            case $host_cpu in
4012
3953
            ia64*|hppa*64*)
4013
3954
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4014
3955
              ;;
4109
4050
 
4110
4051
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4111
4052
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4112
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
4053
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4113
4054
        ;;
4114
4055
      cxx*)
4115
4056
        # Compaq C++
4341
4282
    case $cc_basename in
4342
4283
      CC*)
4343
4284
        # Sun C++ 4.2, 5.x and Centerline C++
 
4285
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4344
4286
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4345
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4287
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4346
4288
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4347
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4289
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4348
4290
 
4349
4291
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4350
4292
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4364
4306
        esac
4365
4307
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4366
4308
 
4367
 
        # Commands to make compiler produce verbose output that lists
4368
 
        # what "hidden" libraries, object files and flags are used when
4369
 
        # linking a shared library.
4370
 
        #
4371
 
        # There doesn't appear to be a way to prevent this compiler from
4372
 
        # explicitly linking system object files so we need to strip them
4373
 
        # from the output so that they don't get included in the library
4374
 
        # dependencies.
4375
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4309
        output_verbose_link_cmd='echo'
4376
4310
 
4377
4311
        # Archives containing C++ object files must be created using
4378
4312
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4529
4463
  # The `*' in the case matches for architectures that use `case' in
4530
4464
  # $output_verbose_cmd can trigger glob expansion during the loop
4531
4465
  # eval without this substitution.
4532
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
4466
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4533
4467
 
4534
4468
  for p in `eval $output_verbose_link_cmd`; do
4535
4469
    case $p in
4605
4539
 
4606
4540
$rm -f confest.$objext
4607
4541
 
 
4542
# PORTME: override above test on systems where it is broken
 
4543
ifelse([$1],[CXX],
 
4544
[case $host_os in
 
4545
solaris*)
 
4546
  case $cc_basename in
 
4547
  CC*)
 
4548
    # Adding this requires a known-good setup of shared libraries for
 
4549
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4550
    # archive will be linked into the output, leading to subtle bugs.
 
4551
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
4552
    ;;
 
4553
  esac
 
4554
esac
 
4555
])
 
4556
 
4608
4557
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4609
4558
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4610
4559
esac
4674
4623
 
4675
4624
# On AIX, shared libraries and static libraries use the same namespace, and
4676
4625
# are all built from PIC.
4677
 
case "$host_os" in
 
4626
case $host_os in
4678
4627
aix3*)
4679
4628
  test "$enable_shared" = yes && enable_static=no
4680
4629
  if test -n "$RANLIB"; then
5573
5522
    hpux*)
5574
5523
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5575
5524
      # not for PA HP-UX.
5576
 
      case "$host_cpu" in
 
5525
      case $host_cpu in
5577
5526
      hppa*64*|ia64*)
5578
5527
        ;;
5579
5528
      *)
5642
5591
          aCC*)
5643
5592
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5644
5593
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5645
 
            case "$host_cpu" in
 
5594
            case $host_cpu in
5646
5595
            hppa*64*|ia64*)
5647
5596
              # +Z the default
5648
5597
              ;;
5683
5632
            # Portland Group C++ compiler.
5684
5633
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5685
5634
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5686
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5635
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5687
5636
            ;;
5688
5637
          cxx*)
5689
5638
            # Compaq C++
5847
5796
    hpux*)
5848
5797
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5849
5798
      # not for PA HP-UX.
5850
 
      case "$host_cpu" in
 
5799
      case $host_cpu in
5851
5800
      hppa*64*|ia64*)
5852
5801
        # +Z the default
5853
5802
        ;;
5894
5843
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5895
5844
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5896
5845
      # not for PA HP-UX.
5897
 
      case "$host_cpu" in
 
5846
      case $host_cpu in
5898
5847
      hppa*64*|ia64*)
5899
5848
        # +Z the default
5900
5849
        ;;
5924
5873
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5925
5874
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5926
5875
        ;;
5927
 
      pgcc* | pgf77* | pgf90*)
 
5876
      pgcc* | pgf77* | pgf90* | pgf95*)
5928
5877
        # Portland Group compilers (*not* the Pentium gcc compiler,
5929
5878
        # which looks to be a dead project)
5930
5879
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5931
5880
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5932
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5881
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5933
5882
        ;;
5934
5883
      ccc*)
5935
5884
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6012
5961
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6013
5962
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6014
5963
fi
6015
 
case "$host_os" in
 
5964
case $host_os in
6016
5965
  # For platforms which do not support PIC, -DPIC is meaningless:
6017
5966
  *djgpp*)
6018
5967
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6108
6057
  if test "$with_gnu_ld" = yes; then
6109
6058
    # If archive_cmds runs LD, not CC, wlarc should be empty
6110
6059
    wlarc='${wl}'
6111
 
    
 
6060
 
6112
6061
    # Set some defaults for GNU ld with shared library support. These
6113
6062
    # are reset later if shared libraries are not supported. Putting them
6114
6063
    # here allows them to be overridden if necessary.
6129
6078
      *\ 2.11.*) ;; # other 2.11 versions
6130
6079
      *) supports_anon_versioning=yes ;;
6131
6080
    esac
6132
 
    
 
6081
 
6133
6082
    # See if GNU ld supports shared libraries.
6134
6083
    case $host_os in
6135
6084
    aix3* | aix4* | aix5*)
6203
6152
        tmp_addflag=
6204
6153
        case $cc_basename,$host_cpu in
6205
6154
        pgcc*)                          # Portland Group C compiler
6206
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6155
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6207
6156
          tmp_addflag=' $pic_flag'
6208
6157
          ;;
6209
 
        pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
6210
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6158
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6159
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6211
6160
          tmp_addflag=' $pic_flag -Mnomain' ;;
6212
6161
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6213
6162
          tmp_addflag=' -i_dynamic' ;;
6413
6362
          # Exported symbols can be pulled into shared objects from archives
6414
6363
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6415
6364
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6416
 
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6365
          # This is similar to how AIX traditionally builds its shared libraries.
6417
6366
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6418
6367
        fi
6419
6368
      fi
6453
6402
      ;;
6454
6403
 
6455
6404
    darwin* | rhapsody*)
6456
 
      case "$host_os" in
 
6405
      case $host_os in
6457
6406
        rhapsody* | darwin1.[[012]])
6458
6407
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6459
6408
         ;;
6482
6431
        output_verbose_link_cmd='echo'
6483
6432
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6484
6433
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6485
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6434
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6486
6435
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6487
6436
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6488
6437
    else
6491
6440
         output_verbose_link_cmd='echo'
6492
6441
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6493
6442
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6494
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6443
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6495
6444
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6496
6445
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6497
6446
          ;;
6557
6506
 
6558
6507
    hpux10* | hpux11*)
6559
6508
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6560
 
        case "$host_cpu" in
 
6509
        case $host_cpu in
6561
6510
        hppa*64*|ia64*)
6562
6511
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6563
6512
          ;;
6566
6515
          ;;
6567
6516
        esac
6568
6517
      else
6569
 
        case "$host_cpu" in
 
6518
        case $host_cpu in
6570
6519
        hppa*64*|ia64*)
6571
6520
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6572
6521
          ;;
6576
6525
        esac
6577
6526
      fi
6578
6527
      if test "$with_gnu_ld" = no; then
6579
 
        case "$host_cpu" in
 
6528
        case $host_cpu in
6580
6529
        hppa*64*)
6581
6530
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6582
6531
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7045
6994
         gmodule) 
7046
6995
             pkg_config_args="$pkg_config_args gmodule-2.0"
7047
6996
         ;;
7048
 
         gmodule-no-export) 
7049
 
             pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7050
 
         ;;
7051
6997
         gobject) 
7052
6998
             pkg_config_args="$pkg_config_args gobject-2.0"
7053
6999
         ;;
7273
7219
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7274
7220
fi
7275
7221
if test -n "$PKG_CONFIG"; then
7276
 
        _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
 
7222
        _pkg_min_version=m4_default([$1], [0.9.0])
7277
7223
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7278
7224
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7279
7225
                AC_MSG_RESULT([yes])
7309
7255
# ---------------------------------------------
7310
7256
m4_define([_PKG_CONFIG],
7311
7257
[if test -n "$PKG_CONFIG"; then
 
7258
    if test -n "$$1"; then
 
7259
        pkg_cv_[]$1="$$1"
 
7260
    else
7312
7261
        PKG_CHECK_EXISTS([$3],
7313
7262
                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7314
7263
                         [pkg_failed=yes])
 
7264
    fi
7315
7265
else
7316
7266
        pkg_failed=untried
7317
7267
fi[]dnl
7318
7268
])# _PKG_CONFIG
7319
7269
 
 
7270
# _PKG_SHORT_ERRORS_SUPPORTED
 
7271
# -----------------------------
 
7272
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
7273
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
7274
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
7275
        _pkg_short_errors_supported=yes
 
7276
else
 
7277
        _pkg_short_errors_supported=no
 
7278
fi[]dnl
 
7279
])# _PKG_SHORT_ERRORS_SUPPORTED
 
7280
 
 
7281
 
7320
7282
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7321
7283
# [ACTION-IF-NOT-FOUND])
7322
7284
#
7338
7300
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7339
7301
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7340
7302
 
 
7303
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
7304
and $1[]_LIBS to avoid the need to call pkg-config.
 
7305
See the pkg-config man page for more details.])
 
7306
 
7341
7307
if test $pkg_failed = yes; then
7342
 
        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
7308
        _PKG_SHORT_ERRORS_SUPPORTED
 
7309
        if test $_pkg_short_errors_supported = yes; then
 
7310
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
 
7311
        else 
 
7312
                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
 
7313
        fi
7343
7314
        # Put the nasty error message in config.log where it belongs
7344
 
        echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
 
7315
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7345
7316
 
7346
7317
        ifelse([$4], , [AC_MSG_ERROR(dnl
7347
 
[Package requirements ($2) were not met.
 
7318
[Package requirements ($2) were not met:
 
7319
 
 
7320
$$1_PKG_ERRORS
 
7321
 
7348
7322
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7349
7323
installed software in a non-standard prefix.
7350
7324
 
7351
 
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
7352
 
to avoid the need to call pkg-config.  See the pkg-config man page for
7353
 
more details.])],
 
7325
_PKG_TEXT
 
7326
])],
7354
7327
                [$4])
7355
7328
elif test $pkg_failed = untried; then
7356
7329
        ifelse([$4], , [AC_MSG_FAILURE(dnl
7358
7331
is in your PATH or set the PKG_CONFIG environment variable to the full
7359
7332
path to pkg-config.
7360
7333
 
7361
 
Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
7362
 
to avoid the need to call pkg-config.  See the pkg-config man page for
7363
 
more details.
 
7334
_PKG_TEXT
7364
7335
 
7365
7336
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
7366
7337
                [$4])
7495
7466
        [AC_TRY_LINK([
7496
7467
#include <libintl.h>
7497
7468
],
7498
 
         [return !ngettext ("","", 1)],
 
7469
         [return (int) ngettext ("","", 1)],
7499
7470
          gt_cv_func_ngettext_libc=yes,
7500
7471
          gt_cv_func_ngettext_libc=no)
7501
7472
        ])
7505
7476
                [AC_TRY_LINK([
7506
7477
#include <libintl.h>
7507
7478
],
7508
 
                  [return !dgettext ("","")],
 
7479
                  [return (int) dgettext ("","")],
7509
7480
                  gt_cv_func_dgettext_libc=yes,
7510
7481
                  gt_cv_func_dgettext_libc=no)
7511
7482
                ])