~ubuntu-branches/ubuntu/wily/ust/wily-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Package Import Robot
  • Author(s): Jon Bernard
  • Date: 2012-06-29 16:47:49 UTC
  • mto: (11.2.1 sid) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20120629164749-mcca8f7w9ovcktj2
Tags: upstream-2.0.4
ImportĀ upstreamĀ versionĀ 2.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for ust 0.16.
 
3
# Generated by GNU Autoconf 2.68 for lttng-ust 2.0.4.
4
4
#
5
5
# Report bugs to <mathieu dot desnoyers at efficios dot com>.
6
6
#
174
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
177
test \$(( 1 + 1 )) = 2 || exit 1
177
178
 
178
179
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179
180
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
182
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
183
    PATH=/empty FPATH=/empty; export PATH FPATH
183
184
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184
 
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185
 
test \$(( 1 + 1 )) = 2 || exit 1"
 
185
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186
186
  if (eval "$as_required") 2>/dev/null; then :
187
187
  as_have_required=yes
188
188
else
568
568
MAKEFLAGS=
569
569
 
570
570
# Identity of this package.
571
 
PACKAGE_NAME='ust'
572
 
PACKAGE_TARNAME='ust'
573
 
PACKAGE_VERSION='0.16'
574
 
PACKAGE_STRING='ust 0.16'
 
571
PACKAGE_NAME='lttng-ust'
 
572
PACKAGE_TARNAME='lttng-ust'
 
573
PACKAGE_VERSION='2.0.4'
 
574
PACKAGE_STRING='lttng-ust 2.0.4'
575
575
PACKAGE_BUGREPORT='mathieu dot desnoyers at efficios dot com'
576
576
PACKAGE_URL=''
577
577
 
578
 
ac_unique_file="ustctl/ustctl.c"
 
578
ac_unique_file="include/lttng/tracepoint.h"
579
579
# Factoring default headers for most tests.
580
580
ac_includes_default="\
581
581
#include <stdio.h>
616
616
am__EXEEXT_TRUE
617
617
LTLIBOBJS
618
618
LIBFORMAT
 
619
TEXINFO
619
620
LIBOBJS
 
621
CXXCPP
620
622
CPP
621
623
OTOOL64
622
624
OTOOL
637
639
FGREP
638
640
EGREP
639
641
GREP
640
 
SED
641
642
LIBTOOL
 
643
am__fastdepCXX_FALSE
 
644
am__fastdepCXX_TRUE
 
645
CXXDEPMODE
 
646
ac_ct_CXX
 
647
CXXFLAGS
 
648
CXX
642
649
am__fastdepCC_FALSE
643
650
am__fastdepCC_TRUE
644
651
CCDEPMODE
 
652
am__nodep
645
653
AMDEPBACKSLASH
646
654
AMDEP_FALSE
647
655
AMDEP_TRUE
655
663
LDFLAGS
656
664
CFLAGS
657
665
CC
 
666
PATCHLEVEL_VERSION
658
667
MINOR_VERSION
659
668
MAJOR_VERSION
 
669
SED
660
670
AM_BACKSLASH
661
671
AM_DEFAULT_VERBOSITY
 
672
AM_DEFAULT_V
 
673
AM_V
662
674
am__untar
663
675
am__tar
664
676
AMTAR
694
706
build_vendor
695
707
build_cpu
696
708
build
 
709
LTTNG_UST_LIBRARY_VERSION
697
710
target_alias
698
711
host_alias
699
712
build_alias
744
757
with_gnu_ld
745
758
with_sysroot
746
759
enable_libtool_lock
 
760
with_java_jdk
 
761
with_sdt
747
762
'
748
763
      ac_precious_vars='build_alias
749
764
host_alias
753
768
LDFLAGS
754
769
LIBS
755
770
CPPFLAGS
756
 
CPP'
 
771
CXX
 
772
CXXFLAGS
 
773
CCC
 
774
CPP
 
775
CXXCPP'
757
776
 
758
777
 
759
778
# Initialize some variables set by options.
1296
1315
  # Omit some internal or obsolete options to make the list less imposing.
1297
1316
  # This message is too long to be a string in the A/UX 3.1 sh.
1298
1317
  cat <<_ACEOF
1299
 
\`configure' configures ust 0.16 to adapt to many kinds of systems.
 
1318
\`configure' configures lttng-ust 2.0.4 to adapt to many kinds of systems.
1300
1319
 
1301
1320
Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1321
 
1344
1363
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1345
1364
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1346
1365
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1347
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ust]
 
1366
  --docdir=DIR            documentation root [DATAROOTDIR/doc/lttng-ust]
1348
1367
  --htmldir=DIR           html documentation [DOCDIR]
1349
1368
  --dvidir=DIR            dvi documentation [DOCDIR]
1350
1369
  --pdfdir=DIR            pdf documentation [DOCDIR]
1367
1386
 
1368
1387
if test -n "$ac_init_help"; then
1369
1388
  case $ac_init_help in
1370
 
     short | recursive ) echo "Configuration of ust 0.16:";;
 
1389
     short | recursive ) echo "Configuration of lttng-ust 2.0.4:";;
1371
1390
   esac
1372
1391
  cat <<\_ACEOF
1373
1392
 
1388
1407
Optional Packages:
1389
1408
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390
1409
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1410
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1392
1411
                          both]
1393
1412
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1394
1413
  --with-sysroot=DIR Search for dependent libraries within DIR
1395
1414
                        (or the compiler's sysroot if not specified).
 
1415
  --with-java-jdk=DIR     use the Java JDK in DIR. Ex : $JAVA_HOME.
 
1416
  --with-sdt              provide SystemTap integration via sdt.h [default=no]
1396
1417
 
1397
1418
Some influential environment variables:
1398
1419
  CC          C compiler command
1402
1423
  LIBS        libraries to pass to the linker, e.g. -l<library>
1403
1424
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404
1425
              you have headers in a nonstandard directory <include dir>
 
1426
  CXX         C++ compiler command
 
1427
  CXXFLAGS    C++ compiler flags
1405
1428
  CPP         C preprocessor
 
1429
  CXXCPP      C++ preprocessor
1406
1430
 
1407
1431
Use these variables to override the choices made by `configure' or to help
1408
1432
it to find libraries and programs with nonstandard names/locations.
1470
1494
test -n "$ac_init_help" && exit $ac_status
1471
1495
if $ac_init_version; then
1472
1496
  cat <<\_ACEOF
1473
 
ust configure 0.16
 
1497
lttng-ust configure 2.0.4
1474
1498
generated by GNU Autoconf 2.68
1475
1499
 
1476
1500
Copyright (C) 2010 Free Software Foundation, Inc.
1522
1546
 
1523
1547
} # ac_fn_c_try_compile
1524
1548
 
 
1549
# ac_fn_cxx_try_compile LINENO
 
1550
# ----------------------------
 
1551
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1552
ac_fn_cxx_try_compile ()
 
1553
{
 
1554
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1555
  rm -f conftest.$ac_objext
 
1556
  if { { ac_try="$ac_compile"
 
1557
case "(($ac_try" in
 
1558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1559
  *) ac_try_echo=$ac_try;;
 
1560
esac
 
1561
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1562
$as_echo "$ac_try_echo"; } >&5
 
1563
  (eval "$ac_compile") 2>conftest.err
 
1564
  ac_status=$?
 
1565
  if test -s conftest.err; then
 
1566
    grep -v '^ *+' conftest.err >conftest.er1
 
1567
    cat conftest.er1 >&5
 
1568
    mv -f conftest.er1 conftest.err
 
1569
  fi
 
1570
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1571
  test $ac_status = 0; } && {
 
1572
         test -z "$ac_cxx_werror_flag" ||
 
1573
         test ! -s conftest.err
 
1574
       } && test -s conftest.$ac_objext; then :
 
1575
  ac_retval=0
 
1576
else
 
1577
  $as_echo "$as_me: failed program was:" >&5
 
1578
sed 's/^/| /' conftest.$ac_ext >&5
 
1579
 
 
1580
        ac_retval=1
 
1581
fi
 
1582
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1583
  as_fn_set_status $ac_retval
 
1584
 
 
1585
} # ac_fn_cxx_try_compile
 
1586
 
1525
1587
# ac_fn_c_try_link LINENO
1526
1588
# -----------------------
1527
1589
# Try to link conftest.$ac_ext, and return whether this succeeded.
1745
1807
 
1746
1808
} # ac_fn_c_check_func
1747
1809
 
 
1810
# ac_fn_cxx_try_cpp LINENO
 
1811
# ------------------------
 
1812
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1813
ac_fn_cxx_try_cpp ()
 
1814
{
 
1815
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1816
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1817
case "(($ac_try" in
 
1818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1819
  *) ac_try_echo=$ac_try;;
 
1820
esac
 
1821
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1822
$as_echo "$ac_try_echo"; } >&5
 
1823
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1824
  ac_status=$?
 
1825
  if test -s conftest.err; then
 
1826
    grep -v '^ *+' conftest.err >conftest.er1
 
1827
    cat conftest.er1 >&5
 
1828
    mv -f conftest.er1 conftest.err
 
1829
  fi
 
1830
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1831
  test $ac_status = 0; } > conftest.i && {
 
1832
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1833
         test ! -s conftest.err
 
1834
       }; then :
 
1835
  ac_retval=0
 
1836
else
 
1837
  $as_echo "$as_me: failed program was:" >&5
 
1838
sed 's/^/| /' conftest.$ac_ext >&5
 
1839
 
 
1840
    ac_retval=1
 
1841
fi
 
1842
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1843
  as_fn_set_status $ac_retval
 
1844
 
 
1845
} # ac_fn_cxx_try_cpp
 
1846
 
 
1847
# ac_fn_cxx_try_link LINENO
 
1848
# -------------------------
 
1849
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1850
ac_fn_cxx_try_link ()
 
1851
{
 
1852
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1853
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1854
  if { { ac_try="$ac_link"
 
1855
case "(($ac_try" in
 
1856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1857
  *) ac_try_echo=$ac_try;;
 
1858
esac
 
1859
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1860
$as_echo "$ac_try_echo"; } >&5
 
1861
  (eval "$ac_link") 2>conftest.err
 
1862
  ac_status=$?
 
1863
  if test -s conftest.err; then
 
1864
    grep -v '^ *+' conftest.err >conftest.er1
 
1865
    cat conftest.er1 >&5
 
1866
    mv -f conftest.er1 conftest.err
 
1867
  fi
 
1868
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1869
  test $ac_status = 0; } && {
 
1870
         test -z "$ac_cxx_werror_flag" ||
 
1871
         test ! -s conftest.err
 
1872
       } && test -s conftest$ac_exeext && {
 
1873
         test "$cross_compiling" = yes ||
 
1874
         $as_test_x conftest$ac_exeext
 
1875
       }; then :
 
1876
  ac_retval=0
 
1877
else
 
1878
  $as_echo "$as_me: failed program was:" >&5
 
1879
sed 's/^/| /' conftest.$ac_ext >&5
 
1880
 
 
1881
        ac_retval=1
 
1882
fi
 
1883
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1884
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1885
  # interfere with the next link command; also delete a directory that is
 
1886
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1887
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1888
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1889
  as_fn_set_status $ac_retval
 
1890
 
 
1891
} # ac_fn_cxx_try_link
 
1892
 
1748
1893
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1749
1894
# -------------------------------------------------------
1750
1895
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1839
1984
This file contains any messages produced by compilers while
1840
1985
running configure, to aid debugging if configure makes a mistake.
1841
1986
 
1842
 
It was created by ust $as_me 0.16, which was
 
1987
It was created by lttng-ust $as_me 2.0.4, which was
1843
1988
generated by GNU Autoconf 2.68.  Invocation command line was
1844
1989
 
1845
1990
  $ $0 $@
2187
2332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
2333
 
2189
2334
 
 
2335
 
 
2336
# Following the numbering scheme proposed by libtool for the library version
 
2337
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
 
2338
LTTNG_UST_LIBRARY_VERSION=0:0:0
 
2339
 
 
2340
# note: remember to update tracepoint.h dlopen() to match this version
 
2341
# number. TODO: eventually automate by exporting the major number.
 
2342
 
2190
2343
ac_aux_dir=
2191
2344
for ac_dir in config "$srcdir"/config; do
2192
2345
  if test -f "$ac_dir/install-sh"; then
2765
2918
 
2766
2919
 
2767
2920
# Define the identity of the package.
2768
 
 PACKAGE='ust'
2769
 
 VERSION='0.16'
 
2921
 PACKAGE='lttng-ust'
 
2922
 VERSION='2.0.4'
2770
2923
 
2771
2924
 
2772
2925
cat >>confdefs.h <<_ACEOF
2796
2949
 
2797
2950
# We need awk for the "check" target.  The system "awk" is bad on
2798
2951
# some platforms.
2799
 
# Always define AMTAR for backward compatibility.
2800
 
 
2801
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2802
 
 
2803
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2952
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2953
# in the wild :-(  We should find a proper way to deprecate it ...
 
2954
AMTAR='$${TAR-tar}'
 
2955
 
 
2956
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2804
2957
 
2805
2958
 
2806
2959
 
2816
2969
no)  AM_DEFAULT_VERBOSITY=1;;
2817
2970
*)   AM_DEFAULT_VERBOSITY=0;;
2818
2971
esac
 
2972
am_make=${MAKE-make}
 
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2974
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2975
if ${am_cv_make_support_nested_variables+:} false; then :
 
2976
  $as_echo_n "(cached) " >&6
 
2977
else
 
2978
  if $as_echo 'TRUE=$(BAR$(V))
 
2979
BAR0=false
 
2980
BAR1=true
 
2981
V=1
 
2982
am__doit:
 
2983
        @$(TRUE)
 
2984
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2985
  am_cv_make_support_nested_variables=yes
 
2986
else
 
2987
  am_cv_make_support_nested_variables=no
 
2988
fi
 
2989
fi
 
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2991
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2992
if test $am_cv_make_support_nested_variables = yes; then
 
2993
    AM_V='$(V)'
 
2994
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2995
else
 
2996
  AM_V=$AM_DEFAULT_VERBOSITY
 
2997
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2998
fi
2819
2999
AM_BACKSLASH='\'
2820
3000
 
2821
3001
 
2822
 
ac_config_headers="$ac_config_headers config.h include/ust/config.h"
2823
 
 
2824
 
 
2825
 
# Compute minor/major version numbers
2826
 
major_version=`echo 0.16 | sed 's/\..*//'`
2827
 
minor_version=`echo 0.16 | sed 's/.*\.//' | sed 's/^0//'`
 
3002
 
 
3003
# Configuration options, which will be installed in the config.h
 
3004
ac_config_headers="$ac_config_headers config.h include/lttng/ust-config.h"
 
3005
 
 
3006
 
 
3007
 
 
3008
 
 
3009
# Compute minor/major/patchlevel version numbers
 
3010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
3011
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3012
if ${ac_cv_path_SED+:} false; then :
 
3013
  $as_echo_n "(cached) " >&6
 
3014
else
 
3015
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3016
     for ac_i in 1 2 3 4 5 6 7; do
 
3017
       ac_script="$ac_script$as_nl$ac_script"
 
3018
     done
 
3019
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3020
     { ac_script=; unset ac_script;}
 
3021
     if test -z "$SED"; then
 
3022
  ac_path_SED_found=false
 
3023
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3024
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3025
for as_dir in $PATH
 
3026
do
 
3027
  IFS=$as_save_IFS
 
3028
  test -z "$as_dir" && as_dir=.
 
3029
    for ac_prog in sed gsed; do
 
3030
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3031
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3032
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3033
# Check for GNU ac_path_SED and select it if it is found.
 
3034
  # Check for GNU $ac_path_SED
 
3035
case `"$ac_path_SED" --version 2>&1` in
 
3036
*GNU*)
 
3037
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3038
*)
 
3039
  ac_count=0
 
3040
  $as_echo_n 0123456789 >"conftest.in"
 
3041
  while :
 
3042
  do
 
3043
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3044
    mv "conftest.tmp" "conftest.in"
 
3045
    cp "conftest.in" "conftest.nl"
 
3046
    $as_echo '' >> "conftest.nl"
 
3047
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3048
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3049
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3050
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3051
      # Best one so far, save it but keep looking for a better one
 
3052
      ac_cv_path_SED="$ac_path_SED"
 
3053
      ac_path_SED_max=$ac_count
 
3054
    fi
 
3055
    # 10*(2^10) chars as input seems more than enough
 
3056
    test $ac_count -gt 10 && break
 
3057
  done
 
3058
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3059
esac
 
3060
 
 
3061
      $ac_path_SED_found && break 3
 
3062
    done
 
3063
  done
 
3064
  done
 
3065
IFS=$as_save_IFS
 
3066
  if test -z "$ac_cv_path_SED"; then
 
3067
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
3068
  fi
 
3069
else
 
3070
  ac_cv_path_SED=$SED
 
3071
fi
 
3072
 
 
3073
fi
 
3074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
3075
$as_echo "$ac_cv_path_SED" >&6; }
 
3076
 SED="$ac_cv_path_SED"
 
3077
  rm -f conftest.sed
 
3078
 
 
3079
major_version=$(echo 2.0.4 | sed 's/^\([0-9]\)*\.[0-9]*\.[0-9]*.*$/\1/')
 
3080
minor_version=$(echo 2.0.4 | sed 's/^[0-9]*\.\([0-9]*\)\.[0-9]*.*$/\1/')
 
3081
patchlevel_version=$(echo 2.0.4 | sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*$/\1/')
2828
3082
MAJOR_VERSION=$major_version
2829
3083
 
2830
3084
MINOR_VERSION=$minor_version
2831
3085
 
 
3086
PATCHLEVEL_VERSION=$patchlevel_version
 
3087
 
2832
3088
 
2833
3089
cat >>confdefs.h <<_ACEOF
2834
3090
#define VERSION_MAJOR $major_version
2840
3096
_ACEOF
2841
3097
 
2842
3098
 
 
3099
cat >>confdefs.h <<_ACEOF
 
3100
#define VERSION_PATCHLEVEL $patchlevel_version
 
3101
_ACEOF
 
3102
 
 
3103
 
 
3104
version_name="Annedd'ale"
 
3105
version_description="New type of beer, 100% from Quebec, flavored with sapin beaumier needles, with a touch of hops."
 
3106
 
 
3107
cat >>confdefs.h <<_ACEOF
 
3108
#define VERSION_NAME $version_name
 
3109
_ACEOF
 
3110
 
 
3111
 
 
3112
cat >>confdefs.h <<_ACEOF
 
3113
#define VERSION_DESCRIPTION $version_description
 
3114
_ACEOF
 
3115
 
2843
3116
 
2844
3117
# Checks for programs.
2845
3118
ac_ext=c
3683
3956
if test "x$enable_dependency_tracking" != xno; then
3684
3957
  am_depcomp="$ac_aux_dir/depcomp"
3685
3958
  AMDEPBACKSLASH='\'
 
3959
  am__nodep='_no'
3686
3960
fi
3687
3961
 if test "x$enable_dependency_tracking" != xno; then
3688
3962
  AMDEP_TRUE=
3707
3981
  # instance it was reported that on HP-UX the gcc test will end up
3708
3982
  # making a dummy file named `D' -- because `-MD' means `put the output
3709
3983
  # in D'.
 
3984
  rm -rf conftest.dir
3710
3985
  mkdir conftest.dir
3711
3986
  # Copy depcomp to subdir because otherwise we won't find it if we're
3712
3987
  # using a relative directory.
3766
4041
        break
3767
4042
      fi
3768
4043
      ;;
3769
 
    msvisualcpp | msvcmsys)
 
4044
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3770
4045
      # This compiler won't grok `-c -o', but also, the minuso test has
3771
4046
      # not run yet.  These depmodes are late enough in the game, and
3772
4047
      # so weak that their functioning should not be impacted.
3821
4096
fi
3822
4097
 
3823
4098
 
 
4099
ac_ext=cpp
 
4100
ac_cpp='$CXXCPP $CPPFLAGS'
 
4101
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4102
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4103
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4104
if test -z "$CXX"; then
 
4105
  if test -n "$CCC"; then
 
4106
    CXX=$CCC
 
4107
  else
 
4108
    if test -n "$ac_tool_prefix"; then
 
4109
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4110
  do
 
4111
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4112
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4114
$as_echo_n "checking for $ac_word... " >&6; }
 
4115
if ${ac_cv_prog_CXX+:} false; then :
 
4116
  $as_echo_n "(cached) " >&6
 
4117
else
 
4118
  if test -n "$CXX"; then
 
4119
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4120
else
 
4121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4122
for as_dir in $PATH
 
4123
do
 
4124
  IFS=$as_save_IFS
 
4125
  test -z "$as_dir" && as_dir=.
 
4126
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4127
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4128
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4129
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4130
    break 2
 
4131
  fi
 
4132
done
 
4133
  done
 
4134
IFS=$as_save_IFS
 
4135
 
 
4136
fi
 
4137
fi
 
4138
CXX=$ac_cv_prog_CXX
 
4139
if test -n "$CXX"; then
 
4140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
4141
$as_echo "$CXX" >&6; }
 
4142
else
 
4143
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4144
$as_echo "no" >&6; }
 
4145
fi
 
4146
 
 
4147
 
 
4148
    test -n "$CXX" && break
 
4149
  done
 
4150
fi
 
4151
if test -z "$CXX"; then
 
4152
  ac_ct_CXX=$CXX
 
4153
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4154
do
 
4155
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4156
set dummy $ac_prog; ac_word=$2
 
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4158
$as_echo_n "checking for $ac_word... " >&6; }
 
4159
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
4160
  $as_echo_n "(cached) " >&6
 
4161
else
 
4162
  if test -n "$ac_ct_CXX"; then
 
4163
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4164
else
 
4165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4166
for as_dir in $PATH
 
4167
do
 
4168
  IFS=$as_save_IFS
 
4169
  test -z "$as_dir" && as_dir=.
 
4170
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4171
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4172
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4173
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4174
    break 2
 
4175
  fi
 
4176
done
 
4177
  done
 
4178
IFS=$as_save_IFS
 
4179
 
 
4180
fi
 
4181
fi
 
4182
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4183
if test -n "$ac_ct_CXX"; then
 
4184
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
4185
$as_echo "$ac_ct_CXX" >&6; }
 
4186
else
 
4187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4188
$as_echo "no" >&6; }
 
4189
fi
 
4190
 
 
4191
 
 
4192
  test -n "$ac_ct_CXX" && break
 
4193
done
 
4194
 
 
4195
  if test "x$ac_ct_CXX" = x; then
 
4196
    CXX="g++"
 
4197
  else
 
4198
    case $cross_compiling:$ac_tool_warned in
 
4199
yes:)
 
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4201
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4202
ac_tool_warned=yes ;;
 
4203
esac
 
4204
    CXX=$ac_ct_CXX
 
4205
  fi
 
4206
fi
 
4207
 
 
4208
  fi
 
4209
fi
 
4210
# Provide some information about the compiler.
 
4211
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
4212
set X $ac_compile
 
4213
ac_compiler=$2
 
4214
for ac_option in --version -v -V -qversion; do
 
4215
  { { ac_try="$ac_compiler $ac_option >&5"
 
4216
case "(($ac_try" in
 
4217
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4218
  *) ac_try_echo=$ac_try;;
 
4219
esac
 
4220
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4221
$as_echo "$ac_try_echo"; } >&5
 
4222
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4223
  ac_status=$?
 
4224
  if test -s conftest.err; then
 
4225
    sed '10a\
 
4226
... rest of stderr output deleted ...
 
4227
         10q' conftest.err >conftest.er1
 
4228
    cat conftest.er1 >&5
 
4229
  fi
 
4230
  rm -f conftest.er1 conftest.err
 
4231
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4232
  test $ac_status = 0; }
 
4233
done
 
4234
 
 
4235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
4236
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
4237
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
4238
  $as_echo_n "(cached) " >&6
 
4239
else
 
4240
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4241
/* end confdefs.h.  */
 
4242
 
 
4243
int
 
4244
main ()
 
4245
{
 
4246
#ifndef __GNUC__
 
4247
       choke me
 
4248
#endif
 
4249
 
 
4250
  ;
 
4251
  return 0;
 
4252
}
 
4253
_ACEOF
 
4254
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4255
  ac_compiler_gnu=yes
 
4256
else
 
4257
  ac_compiler_gnu=no
 
4258
fi
 
4259
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4260
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4261
 
 
4262
fi
 
4263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
4264
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
4265
if test $ac_compiler_gnu = yes; then
 
4266
  GXX=yes
 
4267
else
 
4268
  GXX=
 
4269
fi
 
4270
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4271
ac_save_CXXFLAGS=$CXXFLAGS
 
4272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
4273
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
4274
if ${ac_cv_prog_cxx_g+:} false; then :
 
4275
  $as_echo_n "(cached) " >&6
 
4276
else
 
4277
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
4278
   ac_cxx_werror_flag=yes
 
4279
   ac_cv_prog_cxx_g=no
 
4280
   CXXFLAGS="-g"
 
4281
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4282
/* end confdefs.h.  */
 
4283
 
 
4284
int
 
4285
main ()
 
4286
{
 
4287
 
 
4288
  ;
 
4289
  return 0;
 
4290
}
 
4291
_ACEOF
 
4292
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4293
  ac_cv_prog_cxx_g=yes
 
4294
else
 
4295
  CXXFLAGS=""
 
4296
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4297
/* end confdefs.h.  */
 
4298
 
 
4299
int
 
4300
main ()
 
4301
{
 
4302
 
 
4303
  ;
 
4304
  return 0;
 
4305
}
 
4306
_ACEOF
 
4307
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4308
 
 
4309
else
 
4310
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4311
         CXXFLAGS="-g"
 
4312
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4313
/* end confdefs.h.  */
 
4314
 
 
4315
int
 
4316
main ()
 
4317
{
 
4318
 
 
4319
  ;
 
4320
  return 0;
 
4321
}
 
4322
_ACEOF
 
4323
if ac_fn_cxx_try_compile "$LINENO"; then :
 
4324
  ac_cv_prog_cxx_g=yes
 
4325
fi
 
4326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4327
fi
 
4328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4329
fi
 
4330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4331
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
4332
fi
 
4333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
4334
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
4335
if test "$ac_test_CXXFLAGS" = set; then
 
4336
  CXXFLAGS=$ac_save_CXXFLAGS
 
4337
elif test $ac_cv_prog_cxx_g = yes; then
 
4338
  if test "$GXX" = yes; then
 
4339
    CXXFLAGS="-g -O2"
 
4340
  else
 
4341
    CXXFLAGS="-g"
 
4342
  fi
 
4343
else
 
4344
  if test "$GXX" = yes; then
 
4345
    CXXFLAGS="-O2"
 
4346
  else
 
4347
    CXXFLAGS=
 
4348
  fi
 
4349
fi
 
4350
ac_ext=c
 
4351
ac_cpp='$CPP $CPPFLAGS'
 
4352
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4353
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4354
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4355
 
 
4356
depcc="$CXX"  am_compiler_list=
 
4357
 
 
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4359
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4360
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
4361
  $as_echo_n "(cached) " >&6
 
4362
else
 
4363
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4364
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4365
  # making bogus files that we don't know about and never remove.  For
 
4366
  # instance it was reported that on HP-UX the gcc test will end up
 
4367
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4368
  # in D'.
 
4369
  rm -rf conftest.dir
 
4370
  mkdir conftest.dir
 
4371
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4372
  # using a relative directory.
 
4373
  cp "$am_depcomp" conftest.dir
 
4374
  cd conftest.dir
 
4375
  # We will build objects and dependencies in a subdirectory because
 
4376
  # it helps to detect inapplicable dependency modes.  For instance
 
4377
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4378
  # side effect of compilation, but ICC will put the dependencies in
 
4379
  # the current directory while Tru64 will put them in the object
 
4380
  # directory.
 
4381
  mkdir sub
 
4382
 
 
4383
  am_cv_CXX_dependencies_compiler_type=none
 
4384
  if test "$am_compiler_list" = ""; then
 
4385
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4386
  fi
 
4387
  am__universal=false
 
4388
  case " $depcc " in #(
 
4389
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4390
     esac
 
4391
 
 
4392
  for depmode in $am_compiler_list; do
 
4393
    # Setup a source with many dependencies, because some compilers
 
4394
    # like to wrap large dependency lists on column 80 (with \), and
 
4395
    # we should not choose a depcomp mode which is confused by this.
 
4396
    #
 
4397
    # We need to recreate these files for each test, as the compiler may
 
4398
    # overwrite some of them when testing with obscure command lines.
 
4399
    # This happens at least with the AIX C compiler.
 
4400
    : > sub/conftest.c
 
4401
    for i in 1 2 3 4 5 6; do
 
4402
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4403
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4404
      # Solaris 8's {/usr,}/bin/sh.
 
4405
      touch sub/conftst$i.h
 
4406
    done
 
4407
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4408
 
 
4409
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4410
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4411
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4412
    # versions had trouble with output in subdirs
 
4413
    am__obj=sub/conftest.${OBJEXT-o}
 
4414
    am__minus_obj="-o $am__obj"
 
4415
    case $depmode in
 
4416
    gcc)
 
4417
      # This depmode causes a compiler race in universal mode.
 
4418
      test "$am__universal" = false || continue
 
4419
      ;;
 
4420
    nosideeffect)
 
4421
      # after this tag, mechanisms are not by side-effect, so they'll
 
4422
      # only be used when explicitly requested
 
4423
      if test "x$enable_dependency_tracking" = xyes; then
 
4424
        continue
 
4425
      else
 
4426
        break
 
4427
      fi
 
4428
      ;;
 
4429
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4430
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4431
      # not run yet.  These depmodes are late enough in the game, and
 
4432
      # so weak that their functioning should not be impacted.
 
4433
      am__obj=conftest.${OBJEXT-o}
 
4434
      am__minus_obj=
 
4435
      ;;
 
4436
    none) break ;;
 
4437
    esac
 
4438
    if depmode=$depmode \
 
4439
       source=sub/conftest.c object=$am__obj \
 
4440
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4441
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4442
         >/dev/null 2>conftest.err &&
 
4443
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4444
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4445
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4446
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4447
      # icc doesn't choke on unknown options, it will just issue warnings
 
4448
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4449
      # that says an option was ignored or not supported.
 
4450
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4451
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4452
      # The diagnosis changed in icc 8.0:
 
4453
      #   icc: Command line remark: option '-MP' not supported
 
4454
      if (grep 'ignoring option' conftest.err ||
 
4455
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4456
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4457
        break
 
4458
      fi
 
4459
    fi
 
4460
  done
 
4461
 
 
4462
  cd ..
 
4463
  rm -rf conftest.dir
 
4464
else
 
4465
  am_cv_CXX_dependencies_compiler_type=none
 
4466
fi
 
4467
 
 
4468
fi
 
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4470
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4471
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4472
 
 
4473
 if
 
4474
  test "x$enable_dependency_tracking" != xno \
 
4475
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4476
  am__fastdepCXX_TRUE=
 
4477
  am__fastdepCXX_FALSE='#'
 
4478
else
 
4479
  am__fastdepCXX_TRUE='#'
 
4480
  am__fastdepCXX_FALSE=
 
4481
fi
 
4482
 
 
4483
 
3824
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3825
4485
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3826
4486
set x ${MAKE-make}
3860
4520
 
3861
4521
 
3862
4522
 
3863
 
macro_version='2.4'
3864
 
macro_revision='1.3293'
 
4523
macro_version='2.4.2'
 
4524
macro_revision='1.3337'
3865
4525
 
3866
4526
 
3867
4527
 
4635
5295
    lt_cv_sys_max_cmd_len=196608
4636
5296
    ;;
4637
5297
 
 
5298
  os2*)
 
5299
    # The test takes a long time on OS/2.
 
5300
    lt_cv_sys_max_cmd_len=8192
 
5301
    ;;
 
5302
 
4638
5303
  osf*)
4639
5304
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4640
5305
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4674
5339
      # If test is not a shell built-in, we'll probably end up computing a
4675
5340
      # maximum length that is only half of the actual maximum length, but
4676
5341
      # we can't tell.
4677
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
5342
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4678
5343
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4679
5344
              test $i != 17 # 1/2 MB should be enough
4680
5345
      do
5103
5768
  lt_cv_deplibs_check_method=pass_all
5104
5769
  ;;
5105
5770
 
5106
 
# This must be Linux ELF.
 
5771
# This must be glibc/ELF.
5107
5772
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5108
5773
  lt_cv_deplibs_check_method=pass_all
5109
5774
  ;;
5744
6409
if test -n "$RANLIB"; then
5745
6410
  case $host_os in
5746
6411
  openbsd*)
5747
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6412
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5748
6413
    ;;
5749
6414
  *)
5750
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6415
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5751
6416
    ;;
5752
6417
  esac
5753
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6418
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5754
6419
fi
5755
6420
 
5756
6421
case $host_os in
5897
6562
    # which start with @ or ?.
5898
6563
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5899
6564
"     {last_section=section; section=\$ 3};"\
 
6565
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5900
6566
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5901
6567
"     \$ 0!~/External *\|/{next};"\
5902
6568
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6285
6951
    CFLAGS="$SAVE_CFLAGS"
6286
6952
  fi
6287
6953
  ;;
6288
 
sparc*-*solaris*)
 
6954
*-*solaris*)
6289
6955
  # Find out which ABI we are using.
6290
6956
  echo 'int i;' > conftest.$ac_ext
6291
6957
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6296
6962
    case `/usr/bin/file conftest.o` in
6297
6963
    *64-bit*)
6298
6964
      case $lt_cv_prog_gnu_ld in
6299
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6965
      yes*)
 
6966
        case $host in
 
6967
        i?86-*-solaris*)
 
6968
          LD="${LD-ld} -m elf_x86_64"
 
6969
          ;;
 
6970
        sparc*-*-solaris*)
 
6971
          LD="${LD-ld} -m elf64_sparc"
 
6972
          ;;
 
6973
        esac
 
6974
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6975
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6976
          LD="${LD-ld}_sol2"
 
6977
        fi
 
6978
        ;;
6300
6979
      *)
6301
6980
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6302
6981
          LD="${LD-ld} -64"
6936
7615
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937
7616
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6938
7617
        _lt_result=$?
6939
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7618
        # If there is a non-empty error log, and "single_module"
 
7619
        # appears in it, assume the flag caused a linker warning
 
7620
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7621
          cat conftest.err >&5
 
7622
        # Otherwise, if the output was created with a 0 exit code from
 
7623
        # the compiler, it worked.
 
7624
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6940
7625
          lt_cv_apple_cc_single_mod=yes
6941
7626
        else
6942
7627
          cat conftest.err >&5
6947
7632
fi
6948
7633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6949
7634
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7635
 
6950
7636
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6951
7637
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6952
7638
if ${lt_cv_ld_exported_symbols_list+:} false; then :
6979
7665
fi
6980
7666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6981
7667
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7668
 
6982
7669
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6983
7670
$as_echo_n "checking for -force_load linker flag... " >&6; }
6984
7671
if ${lt_cv_ld_force_load+:} false; then :
7000
7687
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7001
7688
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7002
7689
      _lt_result=$?
7003
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
7690
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7691
        cat conftest.err >&5
 
7692
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7004
7693
        lt_cv_ld_force_load=yes
7005
7694
      else
7006
7695
        cat conftest.err >&5
7329
8018
 
7330
8019
 
7331
8020
 
 
8021
func_stripname_cnf ()
 
8022
{
 
8023
  case ${2} in
 
8024
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
8025
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
8026
  esac
 
8027
} # func_stripname_cnf
 
8028
 
 
8029
 
 
8030
 
 
8031
 
7332
8032
 
7333
8033
# Set options
7334
8034
 
7405
8105
 
7406
8106
# Check whether --with-pic was given.
7407
8107
if test "${with_pic+set}" = set; then :
7408
 
  withval=$with_pic; pic_mode="$withval"
 
8108
  withval=$with_pic; lt_p=${PACKAGE-default}
 
8109
    case $withval in
 
8110
    yes|no) pic_mode=$withval ;;
 
8111
    *)
 
8112
      pic_mode=default
 
8113
      # Look at the argument we got.  We use all the common list separators.
 
8114
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8115
      for lt_pkg in $withval; do
 
8116
        IFS="$lt_save_ifs"
 
8117
        if test "X$lt_pkg" = "X$lt_p"; then
 
8118
          pic_mode=yes
 
8119
        fi
 
8120
      done
 
8121
      IFS="$lt_save_ifs"
 
8122
      ;;
 
8123
    esac
7409
8124
else
7410
8125
  pic_mode=default
7411
8126
fi
7483
8198
 
7484
8199
 
7485
8200
 
 
8201
 
 
8202
 
 
8203
 
 
8204
 
7486
8205
test -z "$LN_S" && LN_S="ln -s"
7487
8206
 
7488
8207
 
7942
8661
    case $cc_basename in
7943
8662
    nvcc*) # Cuda Compiler Driver 2.2
7944
8663
      lt_prog_compiler_wl='-Xlinker '
7945
 
      lt_prog_compiler_pic='-Xcompiler -fPIC'
 
8664
      if test -n "$lt_prog_compiler_pic"; then
 
8665
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8666
      fi
7946
8667
      ;;
7947
8668
    esac
7948
8669
  else
8033
8754
        ;;
8034
8755
      *)
8035
8756
        case `$CC -V 2>&1 | sed 5q` in
8036
 
        *Sun\ F* | *Sun*Fortran*)
 
8757
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8037
8758
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8038
8759
          lt_prog_compiler_pic='-KPIC'
8039
8760
          lt_prog_compiler_static='-Bstatic'
8040
8761
          lt_prog_compiler_wl=''
8041
8762
          ;;
 
8763
        *Sun\ F* | *Sun*Fortran*)
 
8764
          lt_prog_compiler_pic='-KPIC'
 
8765
          lt_prog_compiler_static='-Bstatic'
 
8766
          lt_prog_compiler_wl='-Qoption ld '
 
8767
          ;;
8042
8768
        *Sun\ C*)
8043
8769
          # Sun C 5.9
8044
8770
          lt_prog_compiler_pic='-KPIC'
8045
8771
          lt_prog_compiler_static='-Bstatic'
8046
8772
          lt_prog_compiler_wl='-Wl,'
8047
8773
          ;;
 
8774
        *Intel*\ [CF]*Compiler*)
 
8775
          lt_prog_compiler_wl='-Wl,'
 
8776
          lt_prog_compiler_pic='-fPIC'
 
8777
          lt_prog_compiler_static='-static'
 
8778
          ;;
 
8779
        *Portland\ Group*)
 
8780
          lt_prog_compiler_wl='-Wl,'
 
8781
          lt_prog_compiler_pic='-fpic'
 
8782
          lt_prog_compiler_static='-Bstatic'
 
8783
          ;;
8048
8784
        esac
8049
8785
        ;;
8050
8786
      esac
8406
9142
  hardcode_direct=no
8407
9143
  hardcode_direct_absolute=no
8408
9144
  hardcode_libdir_flag_spec=
8409
 
  hardcode_libdir_flag_spec_ld=
8410
9145
  hardcode_libdir_separator=
8411
9146
  hardcode_minus_L=no
8412
9147
  hardcode_shlibpath_var=unsupported
8659
9394
        xlf* | bgf* | bgxlf* | mpixlf*)
8660
9395
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8661
9396
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8662
 
          hardcode_libdir_flag_spec=
8663
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9397
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8664
9398
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8665
9399
          if test "x$supports_anon_versioning" = xyes; then
8666
9400
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9040
9774
        # The linker will not automatically build a static lib if we build a DLL.
9041
9775
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9042
9776
        enable_shared_with_static_runtimes=yes
 
9777
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9043
9778
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9044
9779
        # Don't use ranlib
9045
9780
        old_postinstall_cmds='chmod 644 $oldlib'
9085
9820
  hardcode_shlibpath_var=unsupported
9086
9821
  if test "$lt_cv_ld_force_load" = "yes"; then
9087
9822
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9823
 
9088
9824
  else
9089
9825
    whole_archive_flag_spec=''
9090
9826
  fi
9113
9849
      hardcode_shlibpath_var=no
9114
9850
      ;;
9115
9851
 
9116
 
    freebsd1*)
9117
 
      ld_shlibs=no
9118
 
      ;;
9119
 
 
9120
9852
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9121
9853
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9122
9854
    # does not break anything, and helps significantly (at the cost of a little
9129
9861
      ;;
9130
9862
 
9131
9863
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9132
 
    freebsd2*)
 
9864
    freebsd2.*)
9133
9865
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134
9866
      hardcode_direct=yes
9135
9867
      hardcode_minus_L=yes
9168
9900
      fi
9169
9901
      if test "$with_gnu_ld" = no; then
9170
9902
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
9172
9903
        hardcode_libdir_separator=:
9173
9904
        hardcode_direct=yes
9174
9905
        hardcode_direct_absolute=yes
9792
10523
 
9793
10524
 
9794
10525
 
9795
 
 
9796
 
 
9797
 
 
9798
 
 
9799
 
 
9800
10526
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9801
10527
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9802
10528
 
9886
10612
 
9887
10613
case $host_os in
9888
10614
aix3*)
9889
 
  version_type=linux
 
10615
  version_type=linux # correct to gnu/linux during the next big refactor
9890
10616
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891
10617
  shlibpath_var=LIBPATH
9892
10618
 
9895
10621
  ;;
9896
10622
 
9897
10623
aix[4-9]*)
9898
 
  version_type=linux
 
10624
  version_type=linux # correct to gnu/linux during the next big refactor
9899
10625
  need_lib_prefix=no
9900
10626
  need_version=no
9901
10627
  hardcode_into_libs=yes
9960
10686
  ;;
9961
10687
 
9962
10688
bsdi[45]*)
9963
 
  version_type=linux
 
10689
  version_type=linux # correct to gnu/linux during the next big refactor
9964
10690
  need_version=no
9965
10691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966
10692
  soname_spec='${libname}${release}${shared_ext}$major'
10099
10825
  ;;
10100
10826
 
10101
10827
dgux*)
10102
 
  version_type=linux
 
10828
  version_type=linux # correct to gnu/linux during the next big refactor
10103
10829
  need_lib_prefix=no
10104
10830
  need_version=no
10105
10831
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10107
10833
  shlibpath_var=LD_LIBRARY_PATH
10108
10834
  ;;
10109
10835
 
10110
 
freebsd1*)
10111
 
  dynamic_linker=no
10112
 
  ;;
10113
 
 
10114
10836
freebsd* | dragonfly*)
10115
10837
  # DragonFly does not have aout.  When/if they implement a new
10116
10838
  # versioning mechanism, adjust this.
10118
10840
    objformat=`/usr/bin/objformat`
10119
10841
  else
10120
10842
    case $host_os in
10121
 
    freebsd[123]*) objformat=aout ;;
 
10843
    freebsd[23].*) objformat=aout ;;
10122
10844
    *) objformat=elf ;;
10123
10845
    esac
10124
10846
  fi
10136
10858
  esac
10137
10859
  shlibpath_var=LD_LIBRARY_PATH
10138
10860
  case $host_os in
10139
 
  freebsd2*)
 
10861
  freebsd2.*)
10140
10862
    shlibpath_overrides_runpath=yes
10141
10863
    ;;
10142
10864
  freebsd3.[01]* | freebsdelf3.[01]*)
10156
10878
  ;;
10157
10879
 
10158
10880
gnu*)
10159
 
  version_type=linux
 
10881
  version_type=linux # correct to gnu/linux during the next big refactor
10160
10882
  need_lib_prefix=no
10161
10883
  need_version=no
10162
10884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10167
10889
  ;;
10168
10890
 
10169
10891
haiku*)
10170
 
  version_type=linux
 
10892
  version_type=linux # correct to gnu/linux during the next big refactor
10171
10893
  need_lib_prefix=no
10172
10894
  need_version=no
10173
10895
  dynamic_linker="$host_os runtime_loader"
10228
10950
  ;;
10229
10951
 
10230
10952
interix[3-9]*)
10231
 
  version_type=linux
 
10953
  version_type=linux # correct to gnu/linux during the next big refactor
10232
10954
  need_lib_prefix=no
10233
10955
  need_version=no
10234
10956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10244
10966
    nonstopux*) version_type=nonstopux ;;
10245
10967
    *)
10246
10968
        if test "$lt_cv_prog_gnu_ld" = yes; then
10247
 
                version_type=linux
 
10969
                version_type=linux # correct to gnu/linux during the next big refactor
10248
10970
        else
10249
10971
                version_type=irix
10250
10972
        fi ;;
10281
11003
  dynamic_linker=no
10282
11004
  ;;
10283
11005
 
10284
 
# This must be Linux ELF.
 
11006
# This must be glibc/ELF.
10285
11007
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10286
 
  version_type=linux
 
11008
  version_type=linux # correct to gnu/linux during the next big refactor
10287
11009
  need_lib_prefix=no
10288
11010
  need_version=no
10289
11011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377
11099
  ;;
10378
11100
 
10379
11101
newsos6)
10380
 
  version_type=linux
 
11102
  version_type=linux # correct to gnu/linux during the next big refactor
10381
11103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382
11104
  shlibpath_var=LD_LIBRARY_PATH
10383
11105
  shlibpath_overrides_runpath=yes
10446
11168
  ;;
10447
11169
 
10448
11170
solaris*)
10449
 
  version_type=linux
 
11171
  version_type=linux # correct to gnu/linux during the next big refactor
10450
11172
  need_lib_prefix=no
10451
11173
  need_version=no
10452
11174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471
11193
  ;;
10472
11194
 
10473
11195
sysv4 | sysv4.3*)
10474
 
  version_type=linux
 
11196
  version_type=linux # correct to gnu/linux during the next big refactor
10475
11197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476
11198
  soname_spec='${libname}${release}${shared_ext}$major'
10477
11199
  shlibpath_var=LD_LIBRARY_PATH
10495
11217
 
10496
11218
sysv4*MP*)
10497
11219
  if test -d /usr/nec ;then
10498
 
    version_type=linux
 
11220
    version_type=linux # correct to gnu/linux during the next big refactor
10499
11221
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10500
11222
    soname_spec='$libname${shared_ext}.$major'
10501
11223
    shlibpath_var=LD_LIBRARY_PATH
10526
11248
 
10527
11249
tpf*)
10528
11250
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10529
 
  version_type=linux
 
11251
  version_type=linux # correct to gnu/linux during the next big refactor
10530
11252
  need_lib_prefix=no
10531
11253
  need_version=no
10532
11254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536
11258
  ;;
10537
11259
 
10538
11260
uts4*)
10539
 
  version_type=linux
 
11261
  version_type=linux # correct to gnu/linux during the next big refactor
10540
11262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541
11263
  soname_spec='${libname}${release}${shared_ext}$major'
10542
11264
  shlibpath_var=LD_LIBRARY_PATH
11306
12028
 
11307
12029
CC="$lt_save_CC"
11308
12030
 
 
12031
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12032
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12033
    (test "X$CXX" != "Xg++"))) ; then
 
12034
  ac_ext=cpp
 
12035
ac_cpp='$CXXCPP $CPPFLAGS'
 
12036
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12037
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12038
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
12040
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
12041
if test -z "$CXXCPP"; then
 
12042
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
12043
  $as_echo_n "(cached) " >&6
 
12044
else
 
12045
      # Double quotes because CXXCPP needs to be expanded
 
12046
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
12047
    do
 
12048
      ac_preproc_ok=false
 
12049
for ac_cxx_preproc_warn_flag in '' yes
 
12050
do
 
12051
  # Use a header file that comes with gcc, so configuring glibc
 
12052
  # with a fresh cross-compiler works.
 
12053
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12054
  # <limits.h> exists even on freestanding compilers.
 
12055
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12056
  # not just through cpp. "Syntax error" is here to catch this case.
 
12057
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12058
/* end confdefs.h.  */
 
12059
#ifdef __STDC__
 
12060
# include <limits.h>
 
12061
#else
 
12062
# include <assert.h>
 
12063
#endif
 
12064
                     Syntax error
 
12065
_ACEOF
 
12066
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12067
 
 
12068
else
 
12069
  # Broken: fails on valid input.
 
12070
continue
 
12071
fi
 
12072
rm -f conftest.err conftest.i conftest.$ac_ext
 
12073
 
 
12074
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12075
  # can be detected and how.
 
12076
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12077
/* end confdefs.h.  */
 
12078
#include <ac_nonexistent.h>
 
12079
_ACEOF
 
12080
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12081
  # Broken: success on invalid input.
 
12082
continue
 
12083
else
 
12084
  # Passes both tests.
 
12085
ac_preproc_ok=:
 
12086
break
 
12087
fi
 
12088
rm -f conftest.err conftest.i conftest.$ac_ext
 
12089
 
 
12090
done
 
12091
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12092
rm -f conftest.i conftest.err conftest.$ac_ext
 
12093
if $ac_preproc_ok; then :
 
12094
  break
 
12095
fi
 
12096
 
 
12097
    done
 
12098
    ac_cv_prog_CXXCPP=$CXXCPP
 
12099
 
 
12100
fi
 
12101
  CXXCPP=$ac_cv_prog_CXXCPP
 
12102
else
 
12103
  ac_cv_prog_CXXCPP=$CXXCPP
 
12104
fi
 
12105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12106
$as_echo "$CXXCPP" >&6; }
 
12107
ac_preproc_ok=false
 
12108
for ac_cxx_preproc_warn_flag in '' yes
 
12109
do
 
12110
  # Use a header file that comes with gcc, so configuring glibc
 
12111
  # with a fresh cross-compiler works.
 
12112
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12113
  # <limits.h> exists even on freestanding compilers.
 
12114
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12115
  # not just through cpp. "Syntax error" is here to catch this case.
 
12116
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12117
/* end confdefs.h.  */
 
12118
#ifdef __STDC__
 
12119
# include <limits.h>
 
12120
#else
 
12121
# include <assert.h>
 
12122
#endif
 
12123
                     Syntax error
 
12124
_ACEOF
 
12125
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12126
 
 
12127
else
 
12128
  # Broken: fails on valid input.
 
12129
continue
 
12130
fi
 
12131
rm -f conftest.err conftest.i conftest.$ac_ext
 
12132
 
 
12133
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12134
  # can be detected and how.
 
12135
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12136
/* end confdefs.h.  */
 
12137
#include <ac_nonexistent.h>
 
12138
_ACEOF
 
12139
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12140
  # Broken: success on invalid input.
 
12141
continue
 
12142
else
 
12143
  # Passes both tests.
 
12144
ac_preproc_ok=:
 
12145
break
 
12146
fi
 
12147
rm -f conftest.err conftest.i conftest.$ac_ext
 
12148
 
 
12149
done
 
12150
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12151
rm -f conftest.i conftest.err conftest.$ac_ext
 
12152
if $ac_preproc_ok; then :
 
12153
 
 
12154
else
 
12155
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12156
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12157
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12158
See \`config.log' for more details" "$LINENO" 5; }
 
12159
fi
 
12160
 
 
12161
ac_ext=c
 
12162
ac_cpp='$CPP $CPPFLAGS'
 
12163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12166
 
 
12167
else
 
12168
  _lt_caught_CXX_error=yes
 
12169
fi
 
12170
 
 
12171
ac_ext=cpp
 
12172
ac_cpp='$CXXCPP $CPPFLAGS'
 
12173
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12174
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12175
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12176
 
 
12177
archive_cmds_need_lc_CXX=no
 
12178
allow_undefined_flag_CXX=
 
12179
always_export_symbols_CXX=no
 
12180
archive_expsym_cmds_CXX=
 
12181
compiler_needs_object_CXX=no
 
12182
export_dynamic_flag_spec_CXX=
 
12183
hardcode_direct_CXX=no
 
12184
hardcode_direct_absolute_CXX=no
 
12185
hardcode_libdir_flag_spec_CXX=
 
12186
hardcode_libdir_separator_CXX=
 
12187
hardcode_minus_L_CXX=no
 
12188
hardcode_shlibpath_var_CXX=unsupported
 
12189
hardcode_automatic_CXX=no
 
12190
inherit_rpath_CXX=no
 
12191
module_cmds_CXX=
 
12192
module_expsym_cmds_CXX=
 
12193
link_all_deplibs_CXX=unknown
 
12194
old_archive_cmds_CXX=$old_archive_cmds
 
12195
reload_flag_CXX=$reload_flag
 
12196
reload_cmds_CXX=$reload_cmds
 
12197
no_undefined_flag_CXX=
 
12198
whole_archive_flag_spec_CXX=
 
12199
enable_shared_with_static_runtimes_CXX=no
 
12200
 
 
12201
# Source file extension for C++ test sources.
 
12202
ac_ext=cpp
 
12203
 
 
12204
# Object file extension for compiled C++ test sources.
 
12205
objext=o
 
12206
objext_CXX=$objext
 
12207
 
 
12208
# No sense in running all these tests if we already determined that
 
12209
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12210
# are currently assumed to apply to all compilers on this platform,
 
12211
# and will be corrupted by setting them based on a non-working compiler.
 
12212
if test "$_lt_caught_CXX_error" != yes; then
 
12213
  # Code to be used in simple compile tests
 
12214
  lt_simple_compile_test_code="int some_variable = 0;"
 
12215
 
 
12216
  # Code to be used in simple link tests
 
12217
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12218
 
 
12219
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12220
 
 
12221
 
 
12222
 
 
12223
 
 
12224
 
 
12225
 
 
12226
# If no C compiler was specified, use CC.
 
12227
LTCC=${LTCC-"$CC"}
 
12228
 
 
12229
# If no C compiler flags were specified, use CFLAGS.
 
12230
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12231
 
 
12232
# Allow CC to be a program name with arguments.
 
12233
compiler=$CC
 
12234
 
 
12235
 
 
12236
  # save warnings/boilerplate of simple test code
 
12237
  ac_outfile=conftest.$ac_objext
 
12238
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12239
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12240
_lt_compiler_boilerplate=`cat conftest.err`
 
12241
$RM conftest*
 
12242
 
 
12243
  ac_outfile=conftest.$ac_objext
 
12244
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12245
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12246
_lt_linker_boilerplate=`cat conftest.err`
 
12247
$RM -r conftest*
 
12248
 
 
12249
 
 
12250
  # Allow CC to be a program name with arguments.
 
12251
  lt_save_CC=$CC
 
12252
  lt_save_CFLAGS=$CFLAGS
 
12253
  lt_save_LD=$LD
 
12254
  lt_save_GCC=$GCC
 
12255
  GCC=$GXX
 
12256
  lt_save_with_gnu_ld=$with_gnu_ld
 
12257
  lt_save_path_LD=$lt_cv_path_LD
 
12258
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12259
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12260
  else
 
12261
    $as_unset lt_cv_prog_gnu_ld
 
12262
  fi
 
12263
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12264
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12265
  else
 
12266
    $as_unset lt_cv_path_LD
 
12267
  fi
 
12268
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12269
  CC=${CXX-"c++"}
 
12270
  CFLAGS=$CXXFLAGS
 
12271
  compiler=$CC
 
12272
  compiler_CXX=$CC
 
12273
  for cc_temp in $compiler""; do
 
12274
  case $cc_temp in
 
12275
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12276
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12277
    \-*) ;;
 
12278
    *) break;;
 
12279
  esac
 
12280
done
 
12281
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12282
 
 
12283
 
 
12284
  if test -n "$compiler"; then
 
12285
    # We don't want -fno-exception when compiling C++ code, so set the
 
12286
    # no_builtin_flag separately
 
12287
    if test "$GXX" = yes; then
 
12288
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12289
    else
 
12290
      lt_prog_compiler_no_builtin_flag_CXX=
 
12291
    fi
 
12292
 
 
12293
    if test "$GXX" = yes; then
 
12294
      # Set up default GNU C++ configuration
 
12295
 
 
12296
 
 
12297
 
 
12298
# Check whether --with-gnu-ld was given.
 
12299
if test "${with_gnu_ld+set}" = set; then :
 
12300
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12301
else
 
12302
  with_gnu_ld=no
 
12303
fi
 
12304
 
 
12305
ac_prog=ld
 
12306
if test "$GCC" = yes; then
 
12307
  # Check if gcc -print-prog-name=ld gives a path.
 
12308
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12309
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12310
  case $host in
 
12311
  *-*-mingw*)
 
12312
    # gcc leaves a trailing carriage return which upsets mingw
 
12313
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12314
  *)
 
12315
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12316
  esac
 
12317
  case $ac_prog in
 
12318
    # Accept absolute paths.
 
12319
    [\\/]* | ?:[\\/]*)
 
12320
      re_direlt='/[^/][^/]*/\.\./'
 
12321
      # Canonicalize the pathname of ld
 
12322
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12323
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12324
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12325
      done
 
12326
      test -z "$LD" && LD="$ac_prog"
 
12327
      ;;
 
12328
  "")
 
12329
    # If it fails, then pretend we aren't using GCC.
 
12330
    ac_prog=ld
 
12331
    ;;
 
12332
  *)
 
12333
    # If it is relative, then search for the first ld in PATH.
 
12334
    with_gnu_ld=unknown
 
12335
    ;;
 
12336
  esac
 
12337
elif test "$with_gnu_ld" = yes; then
 
12338
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12339
$as_echo_n "checking for GNU ld... " >&6; }
 
12340
else
 
12341
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12342
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12343
fi
 
12344
if ${lt_cv_path_LD+:} false; then :
 
12345
  $as_echo_n "(cached) " >&6
 
12346
else
 
12347
  if test -z "$LD"; then
 
12348
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12349
  for ac_dir in $PATH; do
 
12350
    IFS="$lt_save_ifs"
 
12351
    test -z "$ac_dir" && ac_dir=.
 
12352
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12353
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12354
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12355
      # but apparently some variants of GNU ld only accept -v.
 
12356
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12357
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12358
      *GNU* | *'with BFD'*)
 
12359
        test "$with_gnu_ld" != no && break
 
12360
        ;;
 
12361
      *)
 
12362
        test "$with_gnu_ld" != yes && break
 
12363
        ;;
 
12364
      esac
 
12365
    fi
 
12366
  done
 
12367
  IFS="$lt_save_ifs"
 
12368
else
 
12369
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12370
fi
 
12371
fi
 
12372
 
 
12373
LD="$lt_cv_path_LD"
 
12374
if test -n "$LD"; then
 
12375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12376
$as_echo "$LD" >&6; }
 
12377
else
 
12378
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12379
$as_echo "no" >&6; }
 
12380
fi
 
12381
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12383
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12384
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12385
  $as_echo_n "(cached) " >&6
 
12386
else
 
12387
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12388
case `$LD -v 2>&1 </dev/null` in
 
12389
*GNU* | *'with BFD'*)
 
12390
  lt_cv_prog_gnu_ld=yes
 
12391
  ;;
 
12392
*)
 
12393
  lt_cv_prog_gnu_ld=no
 
12394
  ;;
 
12395
esac
 
12396
fi
 
12397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12398
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12399
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12400
 
 
12401
 
 
12402
 
 
12403
 
 
12404
 
 
12405
 
 
12406
 
 
12407
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12408
      # archiving commands below assume that GNU ld is being used.
 
12409
      if test "$with_gnu_ld" = yes; then
 
12410
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12411
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12412
 
 
12413
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12414
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12415
 
 
12416
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12417
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12418
        #     investigate it a little bit more. (MM)
 
12419
        wlarc='${wl}'
 
12420
 
 
12421
        # ancient GNU ld didn't support --whole-archive et. al.
 
12422
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12423
          $GREP 'no-whole-archive' > /dev/null; then
 
12424
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12425
        else
 
12426
          whole_archive_flag_spec_CXX=
 
12427
        fi
 
12428
      else
 
12429
        with_gnu_ld=no
 
12430
        wlarc=
 
12431
 
 
12432
        # A generic and very simple default shared library creation
 
12433
        # command for GNU C++ for the case where it uses the native
 
12434
        # linker, instead of GNU ld.  If possible, this setting should
 
12435
        # overridden to take advantage of the native linker features on
 
12436
        # the platform it is being used on.
 
12437
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12438
      fi
 
12439
 
 
12440
      # Commands to make compiler produce verbose output that lists
 
12441
      # what "hidden" libraries, object files and flags are used when
 
12442
      # linking a shared library.
 
12443
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
12444
 
 
12445
    else
 
12446
      GXX=no
 
12447
      with_gnu_ld=no
 
12448
      wlarc=
 
12449
    fi
 
12450
 
 
12451
    # PORTME: fill in a description of your system's C++ link characteristics
 
12452
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12453
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12454
    ld_shlibs_CXX=yes
 
12455
    case $host_os in
 
12456
      aix3*)
 
12457
        # FIXME: insert proper C++ library support
 
12458
        ld_shlibs_CXX=no
 
12459
        ;;
 
12460
      aix[4-9]*)
 
12461
        if test "$host_cpu" = ia64; then
 
12462
          # On IA64, the linker does run time linking by default, so we don't
 
12463
          # have to do anything special.
 
12464
          aix_use_runtimelinking=no
 
12465
          exp_sym_flag='-Bexport'
 
12466
          no_entry_flag=""
 
12467
        else
 
12468
          aix_use_runtimelinking=no
 
12469
 
 
12470
          # Test if we are trying to use run time linking or normal
 
12471
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12472
          # need to do runtime linking.
 
12473
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12474
            for ld_flag in $LDFLAGS; do
 
12475
              case $ld_flag in
 
12476
              *-brtl*)
 
12477
                aix_use_runtimelinking=yes
 
12478
                break
 
12479
                ;;
 
12480
              esac
 
12481
            done
 
12482
            ;;
 
12483
          esac
 
12484
 
 
12485
          exp_sym_flag='-bexport'
 
12486
          no_entry_flag='-bnoentry'
 
12487
        fi
 
12488
 
 
12489
        # When large executables or shared objects are built, AIX ld can
 
12490
        # have problems creating the table of contents.  If linking a library
 
12491
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12492
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12493
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12494
 
 
12495
        archive_cmds_CXX=''
 
12496
        hardcode_direct_CXX=yes
 
12497
        hardcode_direct_absolute_CXX=yes
 
12498
        hardcode_libdir_separator_CXX=':'
 
12499
        link_all_deplibs_CXX=yes
 
12500
        file_list_spec_CXX='${wl}-f,'
 
12501
 
 
12502
        if test "$GXX" = yes; then
 
12503
          case $host_os in aix4.[012]|aix4.[012].*)
 
12504
          # We only want to do this on AIX 4.2 and lower, the check
 
12505
          # below for broken collect2 doesn't work under 4.3+
 
12506
          collect2name=`${CC} -print-prog-name=collect2`
 
12507
          if test -f "$collect2name" &&
 
12508
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12509
          then
 
12510
            # We have reworked collect2
 
12511
            :
 
12512
          else
 
12513
            # We have old collect2
 
12514
            hardcode_direct_CXX=unsupported
 
12515
            # It fails to find uninstalled libraries when the uninstalled
 
12516
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12517
            # to unsupported forces relinking
 
12518
            hardcode_minus_L_CXX=yes
 
12519
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12520
            hardcode_libdir_separator_CXX=
 
12521
          fi
 
12522
          esac
 
12523
          shared_flag='-shared'
 
12524
          if test "$aix_use_runtimelinking" = yes; then
 
12525
            shared_flag="$shared_flag "'${wl}-G'
 
12526
          fi
 
12527
        else
 
12528
          # not using gcc
 
12529
          if test "$host_cpu" = ia64; then
 
12530
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12531
          # chokes on -Wl,-G. The following line is correct:
 
12532
          shared_flag='-G'
 
12533
          else
 
12534
            if test "$aix_use_runtimelinking" = yes; then
 
12535
              shared_flag='${wl}-G'
 
12536
            else
 
12537
              shared_flag='${wl}-bM:SRE'
 
12538
            fi
 
12539
          fi
 
12540
        fi
 
12541
 
 
12542
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12543
        # It seems that -bexpall does not export symbols beginning with
 
12544
        # underscore (_), so it is better to generate a list of symbols to
 
12545
        # export.
 
12546
        always_export_symbols_CXX=yes
 
12547
        if test "$aix_use_runtimelinking" = yes; then
 
12548
          # Warning - without using the other runtime loading flags (-brtl),
 
12549
          # -berok will link without error, but may produce a broken library.
 
12550
          allow_undefined_flag_CXX='-berok'
 
12551
          # Determine the default libpath from the value encoded in an empty
 
12552
          # executable.
 
12553
          if test "${lt_cv_aix_libpath+set}" = set; then
 
12554
  aix_libpath=$lt_cv_aix_libpath
 
12555
else
 
12556
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12557
  $as_echo_n "(cached) " >&6
 
12558
else
 
12559
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12560
/* end confdefs.h.  */
 
12561
 
 
12562
int
 
12563
main ()
 
12564
{
 
12565
 
 
12566
  ;
 
12567
  return 0;
 
12568
}
 
12569
_ACEOF
 
12570
if ac_fn_cxx_try_link "$LINENO"; then :
 
12571
 
 
12572
  lt_aix_libpath_sed='
 
12573
      /Import File Strings/,/^$/ {
 
12574
          /^0/ {
 
12575
              s/^0  *\([^ ]*\) *$/\1/
 
12576
              p
 
12577
          }
 
12578
      }'
 
12579
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12580
  # Check for a 64-bit object if we didn't find anything.
 
12581
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12582
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12583
  fi
 
12584
fi
 
12585
rm -f core conftest.err conftest.$ac_objext \
 
12586
    conftest$ac_exeext conftest.$ac_ext
 
12587
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12588
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12589
  fi
 
12590
 
 
12591
fi
 
12592
 
 
12593
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12594
fi
 
12595
 
 
12596
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12597
 
 
12598
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12599
        else
 
12600
          if test "$host_cpu" = ia64; then
 
12601
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12602
            allow_undefined_flag_CXX="-z nodefs"
 
12603
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
12604
          else
 
12605
            # Determine the default libpath from the value encoded in an
 
12606
            # empty executable.
 
12607
            if test "${lt_cv_aix_libpath+set}" = set; then
 
12608
  aix_libpath=$lt_cv_aix_libpath
 
12609
else
 
12610
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12611
  $as_echo_n "(cached) " >&6
 
12612
else
 
12613
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12614
/* end confdefs.h.  */
 
12615
 
 
12616
int
 
12617
main ()
 
12618
{
 
12619
 
 
12620
  ;
 
12621
  return 0;
 
12622
}
 
12623
_ACEOF
 
12624
if ac_fn_cxx_try_link "$LINENO"; then :
 
12625
 
 
12626
  lt_aix_libpath_sed='
 
12627
      /Import File Strings/,/^$/ {
 
12628
          /^0/ {
 
12629
              s/^0  *\([^ ]*\) *$/\1/
 
12630
              p
 
12631
          }
 
12632
      }'
 
12633
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12634
  # Check for a 64-bit object if we didn't find anything.
 
12635
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12636
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12637
  fi
 
12638
fi
 
12639
rm -f core conftest.err conftest.$ac_objext \
 
12640
    conftest$ac_exeext conftest.$ac_ext
 
12641
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12642
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12643
  fi
 
12644
 
 
12645
fi
 
12646
 
 
12647
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12648
fi
 
12649
 
 
12650
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12651
            # Warning - without using the other run time loading flags,
 
12652
            # -berok will link without error, but may produce a broken library.
 
12653
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
12654
            allow_undefined_flag_CXX=' ${wl}-berok'
 
12655
            if test "$with_gnu_ld" = yes; then
 
12656
              # We only use this code for GNU lds that support --whole-archive.
 
12657
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12658
            else
 
12659
              # Exported symbols can be pulled into shared objects from archives
 
12660
              whole_archive_flag_spec_CXX='$convenience'
 
12661
            fi
 
12662
            archive_cmds_need_lc_CXX=yes
 
12663
            # This is similar to how AIX traditionally builds its shared
 
12664
            # libraries.
 
12665
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
12666
          fi
 
12667
        fi
 
12668
        ;;
 
12669
 
 
12670
      beos*)
 
12671
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12672
          allow_undefined_flag_CXX=unsupported
 
12673
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12674
          # support --undefined.  This deserves some investigation.  FIXME
 
12675
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12676
        else
 
12677
          ld_shlibs_CXX=no
 
12678
        fi
 
12679
        ;;
 
12680
 
 
12681
      chorus*)
 
12682
        case $cc_basename in
 
12683
          *)
 
12684
          # FIXME: insert proper C++ library support
 
12685
          ld_shlibs_CXX=no
 
12686
          ;;
 
12687
        esac
 
12688
        ;;
 
12689
 
 
12690
      cygwin* | mingw* | pw32* | cegcc*)
 
12691
        case $GXX,$cc_basename in
 
12692
        ,cl* | no,cl*)
 
12693
          # Native MSVC
 
12694
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
12695
          # no search path for DLLs.
 
12696
          hardcode_libdir_flag_spec_CXX=' '
 
12697
          allow_undefined_flag_CXX=unsupported
 
12698
          always_export_symbols_CXX=yes
 
12699
          file_list_spec_CXX='@'
 
12700
          # Tell ltmain to make .lib files, not .a files.
 
12701
          libext=lib
 
12702
          # Tell ltmain to make .dll files, not .so files.
 
12703
          shrext_cmds=".dll"
 
12704
          # FIXME: Setting linknames here is a bad hack.
 
12705
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
12706
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12707
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
12708
            else
 
12709
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
12710
            fi~
 
12711
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
12712
            linknames='
 
12713
          # The linker will not automatically build a static lib if we build a DLL.
 
12714
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
12715
          enable_shared_with_static_runtimes_CXX=yes
 
12716
          # Don't use ranlib
 
12717
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
12718
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
12719
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
12720
            case $lt_outputfile in
 
12721
              *.exe|*.EXE) ;;
 
12722
              *)
 
12723
                lt_outputfile="$lt_outputfile.exe"
 
12724
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
12725
                ;;
 
12726
            esac~
 
12727
            func_to_tool_file "$lt_outputfile"~
 
12728
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
12729
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
12730
              $RM "$lt_outputfile.manifest";
 
12731
            fi'
 
12732
          ;;
 
12733
        *)
 
12734
          # g++
 
12735
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12736
          # as there is no search path for DLLs.
 
12737
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12738
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
12739
          allow_undefined_flag_CXX=unsupported
 
12740
          always_export_symbols_CXX=no
 
12741
          enable_shared_with_static_runtimes_CXX=yes
 
12742
 
 
12743
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12744
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
12745
            # If the export-symbols file already is a .def file (1st line
 
12746
            # is EXPORTS), use it as is; otherwise, prepend...
 
12747
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12748
              cp $export_symbols $output_objdir/$soname.def;
 
12749
            else
 
12750
              echo EXPORTS > $output_objdir/$soname.def;
 
12751
              cat $export_symbols >> $output_objdir/$soname.def;
 
12752
            fi~
 
12753
            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
12754
          else
 
12755
            ld_shlibs_CXX=no
 
12756
          fi
 
12757
          ;;
 
12758
        esac
 
12759
        ;;
 
12760
      darwin* | rhapsody*)
 
12761
 
 
12762
 
 
12763
  archive_cmds_need_lc_CXX=no
 
12764
  hardcode_direct_CXX=no
 
12765
  hardcode_automatic_CXX=yes
 
12766
  hardcode_shlibpath_var_CXX=unsupported
 
12767
  if test "$lt_cv_ld_force_load" = "yes"; then
 
12768
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
12769
 
 
12770
  else
 
12771
    whole_archive_flag_spec_CXX=''
 
12772
  fi
 
12773
  link_all_deplibs_CXX=yes
 
12774
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12775
  case $cc_basename in
 
12776
     ifort*) _lt_dar_can_shared=yes ;;
 
12777
     *) _lt_dar_can_shared=$GCC ;;
 
12778
  esac
 
12779
  if test "$_lt_dar_can_shared" = "yes"; then
 
12780
    output_verbose_link_cmd=func_echo_all
 
12781
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
12782
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12783
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
12784
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
12785
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12786
      archive_cmds_CXX="\$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${_lt_dsymutil}"
 
12787
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$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${_lt_dar_export_syms}${_lt_dsymutil}"
 
12788
    fi
 
12789
 
 
12790
  else
 
12791
  ld_shlibs_CXX=no
 
12792
  fi
 
12793
 
 
12794
        ;;
 
12795
 
 
12796
      dgux*)
 
12797
        case $cc_basename in
 
12798
          ec++*)
 
12799
            # FIXME: insert proper C++ library support
 
12800
            ld_shlibs_CXX=no
 
12801
            ;;
 
12802
          ghcx*)
 
12803
            # Green Hills C++ Compiler
 
12804
            # FIXME: insert proper C++ library support
 
12805
            ld_shlibs_CXX=no
 
12806
            ;;
 
12807
          *)
 
12808
            # FIXME: insert proper C++ library support
 
12809
            ld_shlibs_CXX=no
 
12810
            ;;
 
12811
        esac
 
12812
        ;;
 
12813
 
 
12814
      freebsd2.*)
 
12815
        # C++ shared libraries reported to be fairly broken before
 
12816
        # switch to ELF
 
12817
        ld_shlibs_CXX=no
 
12818
        ;;
 
12819
 
 
12820
      freebsd-elf*)
 
12821
        archive_cmds_need_lc_CXX=no
 
12822
        ;;
 
12823
 
 
12824
      freebsd* | dragonfly*)
 
12825
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12826
        # conventions
 
12827
        ld_shlibs_CXX=yes
 
12828
        ;;
 
12829
 
 
12830
      gnu*)
 
12831
        ;;
 
12832
 
 
12833
      haiku*)
 
12834
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12835
        link_all_deplibs_CXX=yes
 
12836
        ;;
 
12837
 
 
12838
      hpux9*)
 
12839
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12840
        hardcode_libdir_separator_CXX=:
 
12841
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12842
        hardcode_direct_CXX=yes
 
12843
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12844
                                             # but as the default
 
12845
                                             # location of the library.
 
12846
 
 
12847
        case $cc_basename in
 
12848
          CC*)
 
12849
            # FIXME: insert proper C++ library support
 
12850
            ld_shlibs_CXX=no
 
12851
            ;;
 
12852
          aCC*)
 
12853
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12854
            # Commands to make compiler produce verbose output that lists
 
12855
            # what "hidden" libraries, object files and flags are used when
 
12856
            # linking a shared library.
 
12857
            #
 
12858
            # There doesn't appear to be a way to prevent this compiler from
 
12859
            # explicitly linking system object files so we need to strip them
 
12860
            # from the output so that they don't get included in the library
 
12861
            # dependencies.
 
12862
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12863
            ;;
 
12864
          *)
 
12865
            if test "$GXX" = yes; then
 
12866
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12867
            else
 
12868
              # FIXME: insert proper C++ library support
 
12869
              ld_shlibs_CXX=no
 
12870
            fi
 
12871
            ;;
 
12872
        esac
 
12873
        ;;
 
12874
 
 
12875
      hpux10*|hpux11*)
 
12876
        if test $with_gnu_ld = no; then
 
12877
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12878
          hardcode_libdir_separator_CXX=:
 
12879
 
 
12880
          case $host_cpu in
 
12881
            hppa*64*|ia64*)
 
12882
              ;;
 
12883
            *)
 
12884
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12885
              ;;
 
12886
          esac
 
12887
        fi
 
12888
        case $host_cpu in
 
12889
          hppa*64*|ia64*)
 
12890
            hardcode_direct_CXX=no
 
12891
            hardcode_shlibpath_var_CXX=no
 
12892
            ;;
 
12893
          *)
 
12894
            hardcode_direct_CXX=yes
 
12895
            hardcode_direct_absolute_CXX=yes
 
12896
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12897
                                                 # but as the default
 
12898
                                                 # location of the library.
 
12899
            ;;
 
12900
        esac
 
12901
 
 
12902
        case $cc_basename in
 
12903
          CC*)
 
12904
            # FIXME: insert proper C++ library support
 
12905
            ld_shlibs_CXX=no
 
12906
            ;;
 
12907
          aCC*)
 
12908
            case $host_cpu in
 
12909
              hppa*64*)
 
12910
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12911
                ;;
 
12912
              ia64*)
 
12913
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12914
                ;;
 
12915
              *)
 
12916
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12917
                ;;
 
12918
            esac
 
12919
            # Commands to make compiler produce verbose output that lists
 
12920
            # what "hidden" libraries, object files and flags are used when
 
12921
            # linking a shared library.
 
12922
            #
 
12923
            # There doesn't appear to be a way to prevent this compiler from
 
12924
            # explicitly linking system object files so we need to strip them
 
12925
            # from the output so that they don't get included in the library
 
12926
            # dependencies.
 
12927
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
12928
            ;;
 
12929
          *)
 
12930
            if test "$GXX" = yes; then
 
12931
              if test $with_gnu_ld = no; then
 
12932
                case $host_cpu in
 
12933
                  hppa*64*)
 
12934
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12935
                    ;;
 
12936
                  ia64*)
 
12937
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12938
                    ;;
 
12939
                  *)
 
12940
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12941
                    ;;
 
12942
                esac
 
12943
              fi
 
12944
            else
 
12945
              # FIXME: insert proper C++ library support
 
12946
              ld_shlibs_CXX=no
 
12947
            fi
 
12948
            ;;
 
12949
        esac
 
12950
        ;;
 
12951
 
 
12952
      interix[3-9]*)
 
12953
        hardcode_direct_CXX=no
 
12954
        hardcode_shlibpath_var_CXX=no
 
12955
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12956
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12957
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12958
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12959
        # default) and relocated if they conflict, which is a slow very memory
 
12960
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12961
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12962
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12963
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12964
        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12965
        ;;
 
12966
      irix5* | irix6*)
 
12967
        case $cc_basename in
 
12968
          CC*)
 
12969
            # SGI C++
 
12970
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
12971
 
 
12972
            # Archives containing C++ object files must be created using
 
12973
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12974
            # necessary to make sure instantiated templates are included
 
12975
            # in the archive.
 
12976
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12977
            ;;
 
12978
          *)
 
12979
            if test "$GXX" = yes; then
 
12980
              if test "$with_gnu_ld" = no; then
 
12981
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12982
              else
 
12983
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
12984
              fi
 
12985
            fi
 
12986
            link_all_deplibs_CXX=yes
 
12987
            ;;
 
12988
        esac
 
12989
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12990
        hardcode_libdir_separator_CXX=:
 
12991
        inherit_rpath_CXX=yes
 
12992
        ;;
 
12993
 
 
12994
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
12995
        case $cc_basename in
 
12996
          KCC*)
 
12997
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12998
 
 
12999
            # KCC will only create a shared library if the output file
 
13000
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13001
            # to its proper name (with version) after linking.
 
13002
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13003
            archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
13004
            # Commands to make compiler produce verbose output that lists
 
13005
            # what "hidden" libraries, object files and flags are used when
 
13006
            # linking a shared library.
 
13007
            #
 
13008
            # There doesn't appear to be a way to prevent this compiler from
 
13009
            # explicitly linking system object files so we need to strip them
 
13010
            # from the output so that they don't get included in the library
 
13011
            # dependencies.
 
13012
            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13013
 
 
13014
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13015
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13016
 
 
13017
            # Archives containing C++ object files must be created using
 
13018
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13019
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13020
            ;;
 
13021
          icpc* | ecpc* )
 
13022
            # Intel C++
 
13023
            with_gnu_ld=yes
 
13024
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13025
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13026
            # earlier do not add the objects themselves.
 
13027
            case `$CC -V 2>&1` in
 
13028
              *"Version 7."*)
 
13029
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13030
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13031
                ;;
 
13032
              *)  # Version 8.0 or newer
 
13033
                tmp_idyn=
 
13034
                case $host_cpu in
 
13035
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13036
                esac
 
13037
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13038
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13039
                ;;
 
13040
            esac
 
13041
            archive_cmds_need_lc_CXX=no
 
13042
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13043
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13044
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13045
            ;;
 
13046
          pgCC* | pgcpp*)
 
13047
            # Portland Group C++ compiler
 
13048
            case `$CC -V` in
 
13049
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
13050
              prelink_cmds_CXX='tpldir=Template.dir~
 
13051
                rm -rf $tpldir~
 
13052
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13053
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
13054
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13055
                rm -rf $tpldir~
 
13056
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13057
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
13058
                $RANLIB $oldlib'
 
13059
              archive_cmds_CXX='tpldir=Template.dir~
 
13060
                rm -rf $tpldir~
 
13061
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13062
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13063
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13064
                rm -rf $tpldir~
 
13065
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13066
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13067
              ;;
 
13068
            *) # Version 6 and above use weak symbols
 
13069
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13070
              archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13071
              ;;
 
13072
            esac
 
13073
 
 
13074
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13075
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13076
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13077
            ;;
 
13078
          cxx*)
 
13079
            # Compaq C++
 
13080
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13081
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
13082
 
 
13083
            runpath_var=LD_RUN_PATH
 
13084
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13085
            hardcode_libdir_separator_CXX=:
 
13086
 
 
13087
            # Commands to make compiler produce verbose output that lists
 
13088
            # what "hidden" libraries, object files and flags are used when
 
13089
            # linking a shared library.
 
13090
            #
 
13091
            # There doesn't appear to be a way to prevent this compiler from
 
13092
            # explicitly linking system object files so we need to strip them
 
13093
            # from the output so that they don't get included in the library
 
13094
            # dependencies.
 
13095
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
 
13096
            ;;
 
13097
          xl* | mpixl* | bgxl*)
 
13098
            # IBM XL 8.0 on PPC, with GNU ld
 
13099
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13100
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13101
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13102
            if test "x$supports_anon_versioning" = xyes; then
 
13103
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13104
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13105
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13106
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13107
            fi
 
13108
            ;;
 
13109
          *)
 
13110
            case `$CC -V 2>&1 | sed 5q` in
 
13111
            *Sun\ C*)
 
13112
              # Sun C++ 5.9
 
13113
              no_undefined_flag_CXX=' -zdefs'
 
13114
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13115
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
13116
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13117
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
13118
              compiler_needs_object_CXX=yes
 
13119
 
 
13120
              # Not sure whether something based on
 
13121
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13122
              # would be better.
 
13123
              output_verbose_link_cmd='func_echo_all'
 
13124
 
 
13125
              # Archives containing C++ object files must be created using
 
13126
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13127
              # necessary to make sure instantiated templates are included
 
13128
              # in the archive.
 
13129
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13130
              ;;
 
13131
            esac
 
13132
            ;;
 
13133
        esac
 
13134
        ;;
 
13135
 
 
13136
      lynxos*)
 
13137
        # FIXME: insert proper C++ library support
 
13138
        ld_shlibs_CXX=no
 
13139
        ;;
 
13140
 
 
13141
      m88k*)
 
13142
        # FIXME: insert proper C++ library support
 
13143
        ld_shlibs_CXX=no
 
13144
        ;;
 
13145
 
 
13146
      mvs*)
 
13147
        case $cc_basename in
 
13148
          cxx*)
 
13149
            # FIXME: insert proper C++ library support
 
13150
            ld_shlibs_CXX=no
 
13151
            ;;
 
13152
          *)
 
13153
            # FIXME: insert proper C++ library support
 
13154
            ld_shlibs_CXX=no
 
13155
            ;;
 
13156
        esac
 
13157
        ;;
 
13158
 
 
13159
      netbsd*)
 
13160
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13161
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13162
          wlarc=
 
13163
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13164
          hardcode_direct_CXX=yes
 
13165
          hardcode_shlibpath_var_CXX=no
 
13166
        fi
 
13167
        # Workaround some broken pre-1.5 toolchains
 
13168
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13169
        ;;
 
13170
 
 
13171
      *nto* | *qnx*)
 
13172
        ld_shlibs_CXX=yes
 
13173
        ;;
 
13174
 
 
13175
      openbsd2*)
 
13176
        # C++ shared libraries are fairly broken
 
13177
        ld_shlibs_CXX=no
 
13178
        ;;
 
13179
 
 
13180
      openbsd*)
 
13181
        if test -f /usr/libexec/ld.so; then
 
13182
          hardcode_direct_CXX=yes
 
13183
          hardcode_shlibpath_var_CXX=no
 
13184
          hardcode_direct_absolute_CXX=yes
 
13185
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13186
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13187
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13188
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13189
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13190
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13191
          fi
 
13192
          output_verbose_link_cmd=func_echo_all
 
13193
        else
 
13194
          ld_shlibs_CXX=no
 
13195
        fi
 
13196
        ;;
 
13197
 
 
13198
      osf3* | osf4* | osf5*)
 
13199
        case $cc_basename in
 
13200
          KCC*)
 
13201
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13202
 
 
13203
            # KCC will only create a shared library if the output file
 
13204
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13205
            # to its proper name (with version) after linking.
 
13206
            archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
13207
 
 
13208
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13209
            hardcode_libdir_separator_CXX=:
 
13210
 
 
13211
            # Archives containing C++ object files must be created using
 
13212
            # the KAI C++ compiler.
 
13213
            case $host in
 
13214
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13215
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13216
            esac
 
13217
            ;;
 
13218
          RCC*)
 
13219
            # Rational C++ 2.4.1
 
13220
            # FIXME: insert proper C++ library support
 
13221
            ld_shlibs_CXX=no
 
13222
            ;;
 
13223
          cxx*)
 
13224
            case $host in
 
13225
              osf3*)
 
13226
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13227
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13228
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13229
                ;;
 
13230
              *)
 
13231
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13232
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
13233
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13234
                  echo "-hidden">> $lib.exp~
 
13235
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
 
13236
                  $RM $lib.exp'
 
13237
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13238
                ;;
 
13239
            esac
 
13240
 
 
13241
            hardcode_libdir_separator_CXX=:
 
13242
 
 
13243
            # Commands to make compiler produce verbose output that lists
 
13244
            # what "hidden" libraries, object files and flags are used when
 
13245
            # linking a shared library.
 
13246
            #
 
13247
            # There doesn't appear to be a way to prevent this compiler from
 
13248
            # explicitly linking system object files so we need to strip them
 
13249
            # from the output so that they don't get included in the library
 
13250
            # dependencies.
 
13251
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
13252
            ;;
 
13253
          *)
 
13254
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13255
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13256
              case $host in
 
13257
                osf3*)
 
13258
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13259
                  ;;
 
13260
                *)
 
13261
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13262
                  ;;
 
13263
              esac
 
13264
 
 
13265
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13266
              hardcode_libdir_separator_CXX=:
 
13267
 
 
13268
              # Commands to make compiler produce verbose output that lists
 
13269
              # what "hidden" libraries, object files and flags are used when
 
13270
              # linking a shared library.
 
13271
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13272
 
 
13273
            else
 
13274
              # FIXME: insert proper C++ library support
 
13275
              ld_shlibs_CXX=no
 
13276
            fi
 
13277
            ;;
 
13278
        esac
 
13279
        ;;
 
13280
 
 
13281
      psos*)
 
13282
        # FIXME: insert proper C++ library support
 
13283
        ld_shlibs_CXX=no
 
13284
        ;;
 
13285
 
 
13286
      sunos4*)
 
13287
        case $cc_basename in
 
13288
          CC*)
 
13289
            # Sun C++ 4.x
 
13290
            # FIXME: insert proper C++ library support
 
13291
            ld_shlibs_CXX=no
 
13292
            ;;
 
13293
          lcc*)
 
13294
            # Lucid
 
13295
            # FIXME: insert proper C++ library support
 
13296
            ld_shlibs_CXX=no
 
13297
            ;;
 
13298
          *)
 
13299
            # FIXME: insert proper C++ library support
 
13300
            ld_shlibs_CXX=no
 
13301
            ;;
 
13302
        esac
 
13303
        ;;
 
13304
 
 
13305
      solaris*)
 
13306
        case $cc_basename in
 
13307
          CC* | sunCC*)
 
13308
            # Sun C++ 4.2, 5.x and Centerline C++
 
13309
            archive_cmds_need_lc_CXX=yes
 
13310
            no_undefined_flag_CXX=' -zdefs'
 
13311
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13312
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13313
              $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'
 
13314
 
 
13315
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13316
            hardcode_shlibpath_var_CXX=no
 
13317
            case $host_os in
 
13318
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13319
              *)
 
13320
                # The compiler driver will combine and reorder linker options,
 
13321
                # but understands `-z linker_flag'.
 
13322
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13323
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13324
                ;;
 
13325
            esac
 
13326
            link_all_deplibs_CXX=yes
 
13327
 
 
13328
            output_verbose_link_cmd='func_echo_all'
 
13329
 
 
13330
            # Archives containing C++ object files must be created using
 
13331
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13332
            # necessary to make sure instantiated templates are included
 
13333
            # in the archive.
 
13334
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13335
            ;;
 
13336
          gcx*)
 
13337
            # Green Hills C++ Compiler
 
13338
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13339
 
 
13340
            # The C++ compiler must be used to create the archive.
 
13341
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13342
            ;;
 
13343
          *)
 
13344
            # GNU C++ compiler with Solaris linker
 
13345
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13346
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13347
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13348
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13349
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13350
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13351
 
 
13352
                # Commands to make compiler produce verbose output that lists
 
13353
                # what "hidden" libraries, object files and flags are used when
 
13354
                # linking a shared library.
 
13355
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13356
              else
 
13357
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13358
                # platform.
 
13359
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13360
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13361
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13362
 
 
13363
                # Commands to make compiler produce verbose output that lists
 
13364
                # what "hidden" libraries, object files and flags are used when
 
13365
                # linking a shared library.
 
13366
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13367
              fi
 
13368
 
 
13369
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13370
              case $host_os in
 
13371
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13372
                *)
 
13373
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13374
                  ;;
 
13375
              esac
 
13376
            fi
 
13377
            ;;
 
13378
        esac
 
13379
        ;;
 
13380
 
 
13381
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13382
      no_undefined_flag_CXX='${wl}-z,text'
 
13383
      archive_cmds_need_lc_CXX=no
 
13384
      hardcode_shlibpath_var_CXX=no
 
13385
      runpath_var='LD_RUN_PATH'
 
13386
 
 
13387
      case $cc_basename in
 
13388
        CC*)
 
13389
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13390
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13391
          ;;
 
13392
        *)
 
13393
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13394
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13395
          ;;
 
13396
      esac
 
13397
      ;;
 
13398
 
 
13399
      sysv5* | sco3.2v5* | sco5v6*)
 
13400
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13401
        # link with -lc, and that would cause any symbols used from libc to
 
13402
        # always be unresolved, which means just about no library would
 
13403
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13404
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13405
        # as -z defs.
 
13406
        no_undefined_flag_CXX='${wl}-z,text'
 
13407
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13408
        archive_cmds_need_lc_CXX=no
 
13409
        hardcode_shlibpath_var_CXX=no
 
13410
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13411
        hardcode_libdir_separator_CXX=':'
 
13412
        link_all_deplibs_CXX=yes
 
13413
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13414
        runpath_var='LD_RUN_PATH'
 
13415
 
 
13416
        case $cc_basename in
 
13417
          CC*)
 
13418
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13419
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13420
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13421
              '"$old_archive_cmds_CXX"
 
13422
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13423
              '"$reload_cmds_CXX"
 
13424
            ;;
 
13425
          *)
 
13426
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13427
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13428
            ;;
 
13429
        esac
 
13430
      ;;
 
13431
 
 
13432
      tandem*)
 
13433
        case $cc_basename in
 
13434
          NCC*)
 
13435
            # NonStop-UX NCC 3.20
 
13436
            # FIXME: insert proper C++ library support
 
13437
            ld_shlibs_CXX=no
 
13438
            ;;
 
13439
          *)
 
13440
            # FIXME: insert proper C++ library support
 
13441
            ld_shlibs_CXX=no
 
13442
            ;;
 
13443
        esac
 
13444
        ;;
 
13445
 
 
13446
      vxworks*)
 
13447
        # FIXME: insert proper C++ library support
 
13448
        ld_shlibs_CXX=no
 
13449
        ;;
 
13450
 
 
13451
      *)
 
13452
        # FIXME: insert proper C++ library support
 
13453
        ld_shlibs_CXX=no
 
13454
        ;;
 
13455
    esac
 
13456
 
 
13457
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13458
$as_echo "$ld_shlibs_CXX" >&6; }
 
13459
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13460
 
 
13461
    GCC_CXX="$GXX"
 
13462
    LD_CXX="$LD"
 
13463
 
 
13464
    ## CAVEAT EMPTOR:
 
13465
    ## There is no encapsulation within the following macros, do not change
 
13466
    ## the running order or otherwise move them around unless you know exactly
 
13467
    ## what you are doing...
 
13468
    # Dependencies to place before and after the object being linked:
 
13469
predep_objects_CXX=
 
13470
postdep_objects_CXX=
 
13471
predeps_CXX=
 
13472
postdeps_CXX=
 
13473
compiler_lib_search_path_CXX=
 
13474
 
 
13475
cat > conftest.$ac_ext <<_LT_EOF
 
13476
class Foo
 
13477
{
 
13478
public:
 
13479
  Foo (void) { a = 0; }
 
13480
private:
 
13481
  int a;
 
13482
};
 
13483
_LT_EOF
 
13484
 
 
13485
 
 
13486
_lt_libdeps_save_CFLAGS=$CFLAGS
 
13487
case "$CC $CFLAGS " in #(
 
13488
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
13489
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
13490
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
13491
esac
 
13492
 
 
13493
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13494
  (eval $ac_compile) 2>&5
 
13495
  ac_status=$?
 
13496
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13497
  test $ac_status = 0; }; then
 
13498
  # Parse the compiler output and extract the necessary
 
13499
  # objects, libraries and library flags.
 
13500
 
 
13501
  # Sentinel used to keep track of whether or not we are before
 
13502
  # the conftest object file.
 
13503
  pre_test_object_deps_done=no
 
13504
 
 
13505
  for p in `eval "$output_verbose_link_cmd"`; do
 
13506
    case ${prev}${p} in
 
13507
 
 
13508
    -L* | -R* | -l*)
 
13509
       # Some compilers place space between "-{L,R}" and the path.
 
13510
       # Remove the space.
 
13511
       if test $p = "-L" ||
 
13512
          test $p = "-R"; then
 
13513
         prev=$p
 
13514
         continue
 
13515
       fi
 
13516
 
 
13517
       # Expand the sysroot to ease extracting the directories later.
 
13518
       if test -z "$prev"; then
 
13519
         case $p in
 
13520
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
13521
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
13522
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
13523
         esac
 
13524
       fi
 
13525
       case $p in
 
13526
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
13527
       esac
 
13528
       if test "$pre_test_object_deps_done" = no; then
 
13529
         case ${prev} in
 
13530
         -L | -R)
 
13531
           # Internal compiler library paths should come after those
 
13532
           # provided the user.  The postdeps already come after the
 
13533
           # user supplied libs so there is no need to process them.
 
13534
           if test -z "$compiler_lib_search_path_CXX"; then
 
13535
             compiler_lib_search_path_CXX="${prev}${p}"
 
13536
           else
 
13537
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13538
           fi
 
13539
           ;;
 
13540
         # The "-l" case would never come before the object being
 
13541
         # linked, so don't bother handling this case.
 
13542
         esac
 
13543
       else
 
13544
         if test -z "$postdeps_CXX"; then
 
13545
           postdeps_CXX="${prev}${p}"
 
13546
         else
 
13547
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13548
         fi
 
13549
       fi
 
13550
       prev=
 
13551
       ;;
 
13552
 
 
13553
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
13554
    *.$objext)
 
13555
       # This assumes that the test object file only shows up
 
13556
       # once in the compiler output.
 
13557
       if test "$p" = "conftest.$objext"; then
 
13558
         pre_test_object_deps_done=yes
 
13559
         continue
 
13560
       fi
 
13561
 
 
13562
       if test "$pre_test_object_deps_done" = no; then
 
13563
         if test -z "$predep_objects_CXX"; then
 
13564
           predep_objects_CXX="$p"
 
13565
         else
 
13566
           predep_objects_CXX="$predep_objects_CXX $p"
 
13567
         fi
 
13568
       else
 
13569
         if test -z "$postdep_objects_CXX"; then
 
13570
           postdep_objects_CXX="$p"
 
13571
         else
 
13572
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13573
         fi
 
13574
       fi
 
13575
       ;;
 
13576
 
 
13577
    *) ;; # Ignore the rest.
 
13578
 
 
13579
    esac
 
13580
  done
 
13581
 
 
13582
  # Clean up.
 
13583
  rm -f a.out a.exe
 
13584
else
 
13585
  echo "libtool.m4: error: problem compiling CXX test program"
 
13586
fi
 
13587
 
 
13588
$RM -f confest.$objext
 
13589
CFLAGS=$_lt_libdeps_save_CFLAGS
 
13590
 
 
13591
# PORTME: override above test on systems where it is broken
 
13592
case $host_os in
 
13593
interix[3-9]*)
 
13594
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
13595
  # hack all around it, let's just trust "g++" to DTRT.
 
13596
  predep_objects_CXX=
 
13597
  postdep_objects_CXX=
 
13598
  postdeps_CXX=
 
13599
  ;;
 
13600
 
 
13601
linux*)
 
13602
  case `$CC -V 2>&1 | sed 5q` in
 
13603
  *Sun\ C*)
 
13604
    # Sun C++ 5.9
 
13605
 
 
13606
    # The more standards-conforming stlport4 library is
 
13607
    # incompatible with the Cstd library. Avoid specifying
 
13608
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13609
    # -library=stlport4 depends on it.
 
13610
    case " $CXX $CXXFLAGS " in
 
13611
    *" -library=stlport4 "*)
 
13612
      solaris_use_stlport4=yes
 
13613
      ;;
 
13614
    esac
 
13615
 
 
13616
    if test "$solaris_use_stlport4" != yes; then
 
13617
      postdeps_CXX='-library=Cstd -library=Crun'
 
13618
    fi
 
13619
    ;;
 
13620
  esac
 
13621
  ;;
 
13622
 
 
13623
solaris*)
 
13624
  case $cc_basename in
 
13625
  CC* | sunCC*)
 
13626
    # The more standards-conforming stlport4 library is
 
13627
    # incompatible with the Cstd library. Avoid specifying
 
13628
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13629
    # -library=stlport4 depends on it.
 
13630
    case " $CXX $CXXFLAGS " in
 
13631
    *" -library=stlport4 "*)
 
13632
      solaris_use_stlport4=yes
 
13633
      ;;
 
13634
    esac
 
13635
 
 
13636
    # Adding this requires a known-good setup of shared libraries for
 
13637
    # Sun compiler versions before 5.6, else PIC objects from an old
 
13638
    # archive will be linked into the output, leading to subtle bugs.
 
13639
    if test "$solaris_use_stlport4" != yes; then
 
13640
      postdeps_CXX='-library=Cstd -library=Crun'
 
13641
    fi
 
13642
    ;;
 
13643
  esac
 
13644
  ;;
 
13645
esac
 
13646
 
 
13647
 
 
13648
case " $postdeps_CXX " in
 
13649
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13650
esac
 
13651
 compiler_lib_search_dirs_CXX=
 
13652
if test -n "${compiler_lib_search_path_CXX}"; then
 
13653
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13654
fi
 
13655
 
 
13656
 
 
13657
 
 
13658
 
 
13659
 
 
13660
 
 
13661
 
 
13662
 
 
13663
 
 
13664
 
 
13665
 
 
13666
 
 
13667
 
 
13668
 
 
13669
 
 
13670
 
 
13671
 
 
13672
 
 
13673
 
 
13674
 
 
13675
 
 
13676
 
 
13677
 
 
13678
 
 
13679
 
 
13680
 
 
13681
 
 
13682
 
 
13683
 
 
13684
 
 
13685
 
 
13686
    lt_prog_compiler_wl_CXX=
 
13687
lt_prog_compiler_pic_CXX=
 
13688
lt_prog_compiler_static_CXX=
 
13689
 
 
13690
 
 
13691
  # C++ specific cases for pic, static, wl, etc.
 
13692
  if test "$GXX" = yes; then
 
13693
    lt_prog_compiler_wl_CXX='-Wl,'
 
13694
    lt_prog_compiler_static_CXX='-static'
 
13695
 
 
13696
    case $host_os in
 
13697
    aix*)
 
13698
      # All AIX code is PIC.
 
13699
      if test "$host_cpu" = ia64; then
 
13700
        # AIX 5 now supports IA64 processor
 
13701
        lt_prog_compiler_static_CXX='-Bstatic'
 
13702
      fi
 
13703
      ;;
 
13704
 
 
13705
    amigaos*)
 
13706
      case $host_cpu in
 
13707
      powerpc)
 
13708
            # see comment about AmigaOS4 .so support
 
13709
            lt_prog_compiler_pic_CXX='-fPIC'
 
13710
        ;;
 
13711
      m68k)
 
13712
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13713
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13714
            # like `-m68040'.
 
13715
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13716
        ;;
 
13717
      esac
 
13718
      ;;
 
13719
 
 
13720
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13721
      # PIC is the default for these OSes.
 
13722
      ;;
 
13723
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13724
      # This hack is so that the source file can tell whether it is being
 
13725
      # built for inclusion in a dll (and should export symbols for example).
 
13726
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13727
      # (--disable-auto-import) libraries
 
13728
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13729
      ;;
 
13730
    darwin* | rhapsody*)
 
13731
      # PIC is the default on this platform
 
13732
      # Common symbols not allowed in MH_DYLIB files
 
13733
      lt_prog_compiler_pic_CXX='-fno-common'
 
13734
      ;;
 
13735
    *djgpp*)
 
13736
      # DJGPP does not support shared libraries at all
 
13737
      lt_prog_compiler_pic_CXX=
 
13738
      ;;
 
13739
    haiku*)
 
13740
      # PIC is the default for Haiku.
 
13741
      # The "-static" flag exists, but is broken.
 
13742
      lt_prog_compiler_static_CXX=
 
13743
      ;;
 
13744
    interix[3-9]*)
 
13745
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13746
      # Instead, we relocate shared libraries at runtime.
 
13747
      ;;
 
13748
    sysv4*MP*)
 
13749
      if test -d /usr/nec; then
 
13750
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13751
      fi
 
13752
      ;;
 
13753
    hpux*)
 
13754
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13755
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13756
      # sets the default TLS model and affects inlining.
 
13757
      case $host_cpu in
 
13758
      hppa*64*)
 
13759
        ;;
 
13760
      *)
 
13761
        lt_prog_compiler_pic_CXX='-fPIC'
 
13762
        ;;
 
13763
      esac
 
13764
      ;;
 
13765
    *qnx* | *nto*)
 
13766
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13767
      # it will coredump.
 
13768
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13769
      ;;
 
13770
    *)
 
13771
      lt_prog_compiler_pic_CXX='-fPIC'
 
13772
      ;;
 
13773
    esac
 
13774
  else
 
13775
    case $host_os in
 
13776
      aix[4-9]*)
 
13777
        # All AIX code is PIC.
 
13778
        if test "$host_cpu" = ia64; then
 
13779
          # AIX 5 now supports IA64 processor
 
13780
          lt_prog_compiler_static_CXX='-Bstatic'
 
13781
        else
 
13782
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13783
        fi
 
13784
        ;;
 
13785
      chorus*)
 
13786
        case $cc_basename in
 
13787
        cxch68*)
 
13788
          # Green Hills C++ Compiler
 
13789
          # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
13790
          ;;
 
13791
        esac
 
13792
        ;;
 
13793
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13794
        # This hack is so that the source file can tell whether it is being
 
13795
        # built for inclusion in a dll (and should export symbols for example).
 
13796
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13797
        ;;
 
13798
      dgux*)
 
13799
        case $cc_basename in
 
13800
          ec++*)
 
13801
            lt_prog_compiler_pic_CXX='-KPIC'
 
13802
            ;;
 
13803
          ghcx*)
 
13804
            # Green Hills C++ Compiler
 
13805
            lt_prog_compiler_pic_CXX='-pic'
 
13806
            ;;
 
13807
          *)
 
13808
            ;;
 
13809
        esac
 
13810
        ;;
 
13811
      freebsd* | dragonfly*)
 
13812
        # FreeBSD uses GNU C++
 
13813
        ;;
 
13814
      hpux9* | hpux10* | hpux11*)
 
13815
        case $cc_basename in
 
13816
          CC*)
 
13817
            lt_prog_compiler_wl_CXX='-Wl,'
 
13818
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13819
            if test "$host_cpu" != ia64; then
 
13820
              lt_prog_compiler_pic_CXX='+Z'
 
13821
            fi
 
13822
            ;;
 
13823
          aCC*)
 
13824
            lt_prog_compiler_wl_CXX='-Wl,'
 
13825
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13826
            case $host_cpu in
 
13827
            hppa*64*|ia64*)
 
13828
              # +Z the default
 
13829
              ;;
 
13830
            *)
 
13831
              lt_prog_compiler_pic_CXX='+Z'
 
13832
              ;;
 
13833
            esac
 
13834
            ;;
 
13835
          *)
 
13836
            ;;
 
13837
        esac
 
13838
        ;;
 
13839
      interix*)
 
13840
        # This is c89, which is MS Visual C++ (no shared libs)
 
13841
        # Anyone wants to do a port?
 
13842
        ;;
 
13843
      irix5* | irix6* | nonstopux*)
 
13844
        case $cc_basename in
 
13845
          CC*)
 
13846
            lt_prog_compiler_wl_CXX='-Wl,'
 
13847
            lt_prog_compiler_static_CXX='-non_shared'
 
13848
            # CC pic flag -KPIC is the default.
 
13849
            ;;
 
13850
          *)
 
13851
            ;;
 
13852
        esac
 
13853
        ;;
 
13854
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
13855
        case $cc_basename in
 
13856
          KCC*)
 
13857
            # KAI C++ Compiler
 
13858
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13859
            lt_prog_compiler_pic_CXX='-fPIC'
 
13860
            ;;
 
13861
          ecpc* )
 
13862
            # old Intel C++ for x86_64 which still supported -KPIC.
 
13863
            lt_prog_compiler_wl_CXX='-Wl,'
 
13864
            lt_prog_compiler_pic_CXX='-KPIC'
 
13865
            lt_prog_compiler_static_CXX='-static'
 
13866
            ;;
 
13867
          icpc* )
 
13868
            # Intel C++, used to be incompatible with GCC.
 
13869
            # ICC 10 doesn't accept -KPIC any more.
 
13870
            lt_prog_compiler_wl_CXX='-Wl,'
 
13871
            lt_prog_compiler_pic_CXX='-fPIC'
 
13872
            lt_prog_compiler_static_CXX='-static'
 
13873
            ;;
 
13874
          pgCC* | pgcpp*)
 
13875
            # Portland Group C++ compiler
 
13876
            lt_prog_compiler_wl_CXX='-Wl,'
 
13877
            lt_prog_compiler_pic_CXX='-fpic'
 
13878
            lt_prog_compiler_static_CXX='-Bstatic'
 
13879
            ;;
 
13880
          cxx*)
 
13881
            # Compaq C++
 
13882
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13883
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13884
            lt_prog_compiler_pic_CXX=
 
13885
            lt_prog_compiler_static_CXX='-non_shared'
 
13886
            ;;
 
13887
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
13888
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
13889
            lt_prog_compiler_wl_CXX='-Wl,'
 
13890
            lt_prog_compiler_pic_CXX='-qpic'
 
13891
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13892
            ;;
 
13893
          *)
 
13894
            case `$CC -V 2>&1 | sed 5q` in
 
13895
            *Sun\ C*)
 
13896
              # Sun C++ 5.9
 
13897
              lt_prog_compiler_pic_CXX='-KPIC'
 
13898
              lt_prog_compiler_static_CXX='-Bstatic'
 
13899
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13900
              ;;
 
13901
            esac
 
13902
            ;;
 
13903
        esac
 
13904
        ;;
 
13905
      lynxos*)
 
13906
        ;;
 
13907
      m88k*)
 
13908
        ;;
 
13909
      mvs*)
 
13910
        case $cc_basename in
 
13911
          cxx*)
 
13912
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13913
            ;;
 
13914
          *)
 
13915
            ;;
 
13916
        esac
 
13917
        ;;
 
13918
      netbsd* | netbsdelf*-gnu)
 
13919
        ;;
 
13920
      *qnx* | *nto*)
 
13921
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13922
        # it will coredump.
 
13923
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13924
        ;;
 
13925
      osf3* | osf4* | osf5*)
 
13926
        case $cc_basename in
 
13927
          KCC*)
 
13928
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13929
            ;;
 
13930
          RCC*)
 
13931
            # Rational C++ 2.4.1
 
13932
            lt_prog_compiler_pic_CXX='-pic'
 
13933
            ;;
 
13934
          cxx*)
 
13935
            # Digital/Compaq C++
 
13936
            lt_prog_compiler_wl_CXX='-Wl,'
 
13937
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13938
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13939
            lt_prog_compiler_pic_CXX=
 
13940
            lt_prog_compiler_static_CXX='-non_shared'
 
13941
            ;;
 
13942
          *)
 
13943
            ;;
 
13944
        esac
 
13945
        ;;
 
13946
      psos*)
 
13947
        ;;
 
13948
      solaris*)
 
13949
        case $cc_basename in
 
13950
          CC* | sunCC*)
 
13951
            # Sun C++ 4.2, 5.x and Centerline C++
 
13952
            lt_prog_compiler_pic_CXX='-KPIC'
 
13953
            lt_prog_compiler_static_CXX='-Bstatic'
 
13954
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13955
            ;;
 
13956
          gcx*)
 
13957
            # Green Hills C++ Compiler
 
13958
            lt_prog_compiler_pic_CXX='-PIC'
 
13959
            ;;
 
13960
          *)
 
13961
            ;;
 
13962
        esac
 
13963
        ;;
 
13964
      sunos4*)
 
13965
        case $cc_basename in
 
13966
          CC*)
 
13967
            # Sun C++ 4.x
 
13968
            lt_prog_compiler_pic_CXX='-pic'
 
13969
            lt_prog_compiler_static_CXX='-Bstatic'
 
13970
            ;;
 
13971
          lcc*)
 
13972
            # Lucid
 
13973
            lt_prog_compiler_pic_CXX='-pic'
 
13974
            ;;
 
13975
          *)
 
13976
            ;;
 
13977
        esac
 
13978
        ;;
 
13979
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13980
        case $cc_basename in
 
13981
          CC*)
 
13982
            lt_prog_compiler_wl_CXX='-Wl,'
 
13983
            lt_prog_compiler_pic_CXX='-KPIC'
 
13984
            lt_prog_compiler_static_CXX='-Bstatic'
 
13985
            ;;
 
13986
        esac
 
13987
        ;;
 
13988
      tandem*)
 
13989
        case $cc_basename in
 
13990
          NCC*)
 
13991
            # NonStop-UX NCC 3.20
 
13992
            lt_prog_compiler_pic_CXX='-KPIC'
 
13993
            ;;
 
13994
          *)
 
13995
            ;;
 
13996
        esac
 
13997
        ;;
 
13998
      vxworks*)
 
13999
        ;;
 
14000
      *)
 
14001
        lt_prog_compiler_can_build_shared_CXX=no
 
14002
        ;;
 
14003
    esac
 
14004
  fi
 
14005
 
 
14006
case $host_os in
 
14007
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14008
  *djgpp*)
 
14009
    lt_prog_compiler_pic_CXX=
 
14010
    ;;
 
14011
  *)
 
14012
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14013
    ;;
 
14014
esac
 
14015
 
 
14016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
14017
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14018
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
14019
  $as_echo_n "(cached) " >&6
 
14020
else
 
14021
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
14022
fi
 
14023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
14024
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
14025
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
14026
 
 
14027
#
 
14028
# Check to make sure the PIC flag actually works.
 
14029
#
 
14030
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14031
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14032
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14033
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
14034
  $as_echo_n "(cached) " >&6
 
14035
else
 
14036
  lt_cv_prog_compiler_pic_works_CXX=no
 
14037
   ac_outfile=conftest.$ac_objext
 
14038
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14039
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14040
   # Insert the option either (1) after the last *FLAGS variable, or
 
14041
   # (2) before a word containing "conftest.", or (3) at the end.
 
14042
   # Note that $ac_compile itself does not contain backslashes and begins
 
14043
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14044
   # The option is referenced via a variable to avoid confusing sed.
 
14045
   lt_compile=`echo "$ac_compile" | $SED \
 
14046
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14047
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14048
   -e 's:$: $lt_compiler_flag:'`
 
14049
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14050
   (eval "$lt_compile" 2>conftest.err)
 
14051
   ac_status=$?
 
14052
   cat conftest.err >&5
 
14053
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14054
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14055
     # The compiler can only warn and ignore the option if not recognized
 
14056
     # So say no if there are warnings other than the usual output.
 
14057
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
14058
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14059
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14060
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14061
     fi
 
14062
   fi
 
14063
   $RM conftest*
 
14064
 
 
14065
fi
 
14066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14067
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14068
 
 
14069
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14070
    case $lt_prog_compiler_pic_CXX in
 
14071
     "" | " "*) ;;
 
14072
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14073
     esac
 
14074
else
 
14075
    lt_prog_compiler_pic_CXX=
 
14076
     lt_prog_compiler_can_build_shared_CXX=no
 
14077
fi
 
14078
 
 
14079
fi
 
14080
 
 
14081
 
 
14082
 
 
14083
 
 
14084
 
 
14085
#
 
14086
# Check to make sure the static flag actually works.
 
14087
#
 
14088
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14090
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14091
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
14092
  $as_echo_n "(cached) " >&6
 
14093
else
 
14094
  lt_cv_prog_compiler_static_works_CXX=no
 
14095
   save_LDFLAGS="$LDFLAGS"
 
14096
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14097
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14098
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14099
     # The linker can only warn and ignore the option if not recognized
 
14100
     # So say no if there are warnings
 
14101
     if test -s conftest.err; then
 
14102
       # Append any errors to the config.log.
 
14103
       cat conftest.err 1>&5
 
14104
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14105
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14106
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14107
         lt_cv_prog_compiler_static_works_CXX=yes
 
14108
       fi
 
14109
     else
 
14110
       lt_cv_prog_compiler_static_works_CXX=yes
 
14111
     fi
 
14112
   fi
 
14113
   $RM -r conftest*
 
14114
   LDFLAGS="$save_LDFLAGS"
 
14115
 
 
14116
fi
 
14117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14118
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14119
 
 
14120
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14121
    :
 
14122
else
 
14123
    lt_prog_compiler_static_CXX=
 
14124
fi
 
14125
 
 
14126
 
 
14127
 
 
14128
 
 
14129
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14130
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14131
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14132
  $as_echo_n "(cached) " >&6
 
14133
else
 
14134
  lt_cv_prog_compiler_c_o_CXX=no
 
14135
   $RM -r conftest 2>/dev/null
 
14136
   mkdir conftest
 
14137
   cd conftest
 
14138
   mkdir out
 
14139
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14140
 
 
14141
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14142
   # Insert the option either (1) after the last *FLAGS variable, or
 
14143
   # (2) before a word containing "conftest.", or (3) at the end.
 
14144
   # Note that $ac_compile itself does not contain backslashes and begins
 
14145
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14146
   lt_compile=`echo "$ac_compile" | $SED \
 
14147
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14148
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14149
   -e 's:$: $lt_compiler_flag:'`
 
14150
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14151
   (eval "$lt_compile" 2>out/conftest.err)
 
14152
   ac_status=$?
 
14153
   cat out/conftest.err >&5
 
14154
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14155
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14156
   then
 
14157
     # The compiler can only warn and ignore the option if not recognized
 
14158
     # So say no if there are warnings
 
14159
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14160
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14161
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14162
       lt_cv_prog_compiler_c_o_CXX=yes
 
14163
     fi
 
14164
   fi
 
14165
   chmod u+w . 2>&5
 
14166
   $RM conftest*
 
14167
   # SGI C++ compiler will create directory out/ii_files/ for
 
14168
   # template instantiation
 
14169
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14170
   $RM out/* && rmdir out
 
14171
   cd ..
 
14172
   $RM -r conftest
 
14173
   $RM conftest*
 
14174
 
 
14175
fi
 
14176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14177
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14178
 
 
14179
 
 
14180
 
 
14181
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14182
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14183
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14184
  $as_echo_n "(cached) " >&6
 
14185
else
 
14186
  lt_cv_prog_compiler_c_o_CXX=no
 
14187
   $RM -r conftest 2>/dev/null
 
14188
   mkdir conftest
 
14189
   cd conftest
 
14190
   mkdir out
 
14191
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14192
 
 
14193
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14194
   # Insert the option either (1) after the last *FLAGS variable, or
 
14195
   # (2) before a word containing "conftest.", or (3) at the end.
 
14196
   # Note that $ac_compile itself does not contain backslashes and begins
 
14197
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14198
   lt_compile=`echo "$ac_compile" | $SED \
 
14199
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14200
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14201
   -e 's:$: $lt_compiler_flag:'`
 
14202
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14203
   (eval "$lt_compile" 2>out/conftest.err)
 
14204
   ac_status=$?
 
14205
   cat out/conftest.err >&5
 
14206
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14207
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14208
   then
 
14209
     # The compiler can only warn and ignore the option if not recognized
 
14210
     # So say no if there are warnings
 
14211
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14212
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14213
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14214
       lt_cv_prog_compiler_c_o_CXX=yes
 
14215
     fi
 
14216
   fi
 
14217
   chmod u+w . 2>&5
 
14218
   $RM conftest*
 
14219
   # SGI C++ compiler will create directory out/ii_files/ for
 
14220
   # template instantiation
 
14221
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14222
   $RM out/* && rmdir out
 
14223
   cd ..
 
14224
   $RM -r conftest
 
14225
   $RM conftest*
 
14226
 
 
14227
fi
 
14228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14229
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14230
 
 
14231
 
 
14232
 
 
14233
 
 
14234
hard_links="nottested"
 
14235
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14236
  # do not overwrite the value of need_locks provided by the user
 
14237
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14238
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14239
  hard_links=yes
 
14240
  $RM conftest*
 
14241
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14242
  touch conftest.a
 
14243
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14244
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14245
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14246
$as_echo "$hard_links" >&6; }
 
14247
  if test "$hard_links" = no; then
 
14248
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14249
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14250
    need_locks=warn
 
14251
  fi
 
14252
else
 
14253
  need_locks=no
 
14254
fi
 
14255
 
 
14256
 
 
14257
 
 
14258
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14259
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14260
 
 
14261
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14262
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14263
  case $host_os in
 
14264
  aix[4-9]*)
 
14265
    # If we're using GNU nm, then we don't want the "-C" option.
 
14266
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14267
    # Also, AIX nm treats weak defined symbols like other global defined
 
14268
    # symbols, whereas GNU nm marks them as "W".
 
14269
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14270
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14271
    else
 
14272
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14273
    fi
 
14274
    ;;
 
14275
  pw32*)
 
14276
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14277
    ;;
 
14278
  cygwin* | mingw* | cegcc*)
 
14279
    case $cc_basename in
 
14280
    cl*)
 
14281
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
14282
      ;;
 
14283
    *)
 
14284
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
14285
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14286
      ;;
 
14287
    esac
 
14288
    ;;
 
14289
  linux* | k*bsd*-gnu | gnu*)
 
14290
    link_all_deplibs_CXX=no
 
14291
    ;;
 
14292
  *)
 
14293
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14294
    ;;
 
14295
  esac
 
14296
 
 
14297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14298
$as_echo "$ld_shlibs_CXX" >&6; }
 
14299
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14300
 
 
14301
with_gnu_ld_CXX=$with_gnu_ld
 
14302
 
 
14303
 
 
14304
 
 
14305
 
 
14306
 
 
14307
 
 
14308
#
 
14309
# Do we need to explicitly link libc?
 
14310
#
 
14311
case "x$archive_cmds_need_lc_CXX" in
 
14312
x|xyes)
 
14313
  # Assume -lc should be added
 
14314
  archive_cmds_need_lc_CXX=yes
 
14315
 
 
14316
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14317
    case $archive_cmds_CXX in
 
14318
    *'~'*)
 
14319
      # FIXME: we may have to deal with multi-command sequences.
 
14320
      ;;
 
14321
    '$CC '*)
 
14322
      # Test whether the compiler implicitly links with -lc since on some
 
14323
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14324
      # to ld, don't add -lc before -lgcc.
 
14325
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14326
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14327
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14328
  $as_echo_n "(cached) " >&6
 
14329
else
 
14330
  $RM conftest*
 
14331
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14332
 
 
14333
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14334
  (eval $ac_compile) 2>&5
 
14335
  ac_status=$?
 
14336
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14337
  test $ac_status = 0; } 2>conftest.err; then
 
14338
          soname=conftest
 
14339
          lib=conftest
 
14340
          libobjs=conftest.$ac_objext
 
14341
          deplibs=
 
14342
          wl=$lt_prog_compiler_wl_CXX
 
14343
          pic_flag=$lt_prog_compiler_pic_CXX
 
14344
          compiler_flags=-v
 
14345
          linker_flags=-v
 
14346
          verstring=
 
14347
          output_objdir=.
 
14348
          libname=conftest
 
14349
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14350
          allow_undefined_flag_CXX=
 
14351
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14352
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14353
  ac_status=$?
 
14354
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14355
  test $ac_status = 0; }
 
14356
          then
 
14357
            lt_cv_archive_cmds_need_lc_CXX=no
 
14358
          else
 
14359
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14360
          fi
 
14361
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14362
        else
 
14363
          cat conftest.err 1>&5
 
14364
        fi
 
14365
        $RM conftest*
 
14366
 
 
14367
fi
 
14368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14369
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14370
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
14371
      ;;
 
14372
    esac
 
14373
  fi
 
14374
  ;;
 
14375
esac
 
14376
 
 
14377
 
 
14378
 
 
14379
 
 
14380
 
 
14381
 
 
14382
 
 
14383
 
 
14384
 
 
14385
 
 
14386
 
 
14387
 
 
14388
 
 
14389
 
 
14390
 
 
14391
 
 
14392
 
 
14393
 
 
14394
 
 
14395
 
 
14396
 
 
14397
 
 
14398
 
 
14399
 
 
14400
 
 
14401
 
 
14402
 
 
14403
 
 
14404
 
 
14405
 
 
14406
 
 
14407
 
 
14408
 
 
14409
 
 
14410
 
 
14411
 
 
14412
 
 
14413
 
 
14414
 
 
14415
 
 
14416
 
 
14417
 
 
14418
 
 
14419
 
 
14420
 
 
14421
 
 
14422
 
 
14423
 
 
14424
 
 
14425
 
 
14426
 
 
14427
 
 
14428
 
 
14429
 
 
14430
 
 
14431
 
 
14432
 
 
14433
 
 
14434
 
 
14435
 
 
14436
 
 
14437
 
 
14438
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14439
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14440
 
 
14441
library_names_spec=
 
14442
libname_spec='lib$name'
 
14443
soname_spec=
 
14444
shrext_cmds=".so"
 
14445
postinstall_cmds=
 
14446
postuninstall_cmds=
 
14447
finish_cmds=
 
14448
finish_eval=
 
14449
shlibpath_var=
 
14450
shlibpath_overrides_runpath=unknown
 
14451
version_type=none
 
14452
dynamic_linker="$host_os ld.so"
 
14453
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14454
need_lib_prefix=unknown
 
14455
hardcode_into_libs=no
 
14456
 
 
14457
# when you set need_version to no, make sure it does not cause -set_version
 
14458
# flags to be left without arguments
 
14459
need_version=unknown
 
14460
 
 
14461
case $host_os in
 
14462
aix3*)
 
14463
  version_type=linux # correct to gnu/linux during the next big refactor
 
14464
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14465
  shlibpath_var=LIBPATH
 
14466
 
 
14467
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14468
  soname_spec='${libname}${release}${shared_ext}$major'
 
14469
  ;;
 
14470
 
 
14471
aix[4-9]*)
 
14472
  version_type=linux # correct to gnu/linux during the next big refactor
 
14473
  need_lib_prefix=no
 
14474
  need_version=no
 
14475
  hardcode_into_libs=yes
 
14476
  if test "$host_cpu" = ia64; then
 
14477
    # AIX 5 supports IA64
 
14478
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14479
    shlibpath_var=LD_LIBRARY_PATH
 
14480
  else
 
14481
    # With GCC up to 2.95.x, collect2 would create an import file
 
14482
    # for dependence libraries.  The import file would start with
 
14483
    # the line `#! .'.  This would cause the generated library to
 
14484
    # depend on `.', always an invalid library.  This was fixed in
 
14485
    # development snapshots of GCC prior to 3.0.
 
14486
    case $host_os in
 
14487
      aix4 | aix4.[01] | aix4.[01].*)
 
14488
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14489
           echo ' yes '
 
14490
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
14491
        :
 
14492
      else
 
14493
        can_build_shared=no
 
14494
      fi
 
14495
      ;;
 
14496
    esac
 
14497
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14498
    # soname into executable. Probably we can add versioning support to
 
14499
    # collect2, so additional links can be useful in future.
 
14500
    if test "$aix_use_runtimelinking" = yes; then
 
14501
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14502
      # instead of lib<name>.a to let people know that these are not
 
14503
      # typical AIX shared libraries.
 
14504
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14505
    else
 
14506
      # We preserve .a as extension for shared libraries through AIX4.2
 
14507
      # and later when we are not doing run time linking.
 
14508
      library_names_spec='${libname}${release}.a $libname.a'
 
14509
      soname_spec='${libname}${release}${shared_ext}$major'
 
14510
    fi
 
14511
    shlibpath_var=LIBPATH
 
14512
  fi
 
14513
  ;;
 
14514
 
 
14515
amigaos*)
 
14516
  case $host_cpu in
 
14517
  powerpc)
 
14518
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14519
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14520
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14521
    ;;
 
14522
  m68k)
 
14523
    library_names_spec='$libname.ixlibrary $libname.a'
 
14524
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14525
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14526
    ;;
 
14527
  esac
 
14528
  ;;
 
14529
 
 
14530
beos*)
 
14531
  library_names_spec='${libname}${shared_ext}'
 
14532
  dynamic_linker="$host_os ld.so"
 
14533
  shlibpath_var=LIBRARY_PATH
 
14534
  ;;
 
14535
 
 
14536
bsdi[45]*)
 
14537
  version_type=linux # correct to gnu/linux during the next big refactor
 
14538
  need_version=no
 
14539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14540
  soname_spec='${libname}${release}${shared_ext}$major'
 
14541
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14542
  shlibpath_var=LD_LIBRARY_PATH
 
14543
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14544
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14545
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14546
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14547
  # libtool to hard-code these into programs
 
14548
  ;;
 
14549
 
 
14550
cygwin* | mingw* | pw32* | cegcc*)
 
14551
  version_type=windows
 
14552
  shrext_cmds=".dll"
 
14553
  need_version=no
 
14554
  need_lib_prefix=no
 
14555
 
 
14556
  case $GCC,$cc_basename in
 
14557
  yes,*)
 
14558
    # gcc
 
14559
    library_names_spec='$libname.dll.a'
 
14560
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14561
    postinstall_cmds='base_file=`basename \${file}`~
 
14562
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14563
      dldir=$destdir/`dirname \$dlpath`~
 
14564
      test -d \$dldir || mkdir -p \$dldir~
 
14565
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14566
      chmod a+x \$dldir/$dlname~
 
14567
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
14568
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
14569
      fi'
 
14570
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14571
      dlpath=$dir/\$dldll~
 
14572
       $RM \$dlpath'
 
14573
    shlibpath_overrides_runpath=yes
 
14574
 
 
14575
    case $host_os in
 
14576
    cygwin*)
 
14577
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14578
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14579
 
 
14580
      ;;
 
14581
    mingw* | cegcc*)
 
14582
      # MinGW DLLs use traditional 'lib' prefix
 
14583
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14584
      ;;
 
14585
    pw32*)
 
14586
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14587
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14588
      ;;
 
14589
    esac
 
14590
    dynamic_linker='Win32 ld.exe'
 
14591
    ;;
 
14592
 
 
14593
  *,cl*)
 
14594
    # Native MSVC
 
14595
    libname_spec='$name'
 
14596
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14597
    library_names_spec='${libname}.dll.lib'
 
14598
 
 
14599
    case $build_os in
 
14600
    mingw*)
 
14601
      sys_lib_search_path_spec=
 
14602
      lt_save_ifs=$IFS
 
14603
      IFS=';'
 
14604
      for lt_path in $LIB
 
14605
      do
 
14606
        IFS=$lt_save_ifs
 
14607
        # Let DOS variable expansion print the short 8.3 style file name.
 
14608
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
14609
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
14610
      done
 
14611
      IFS=$lt_save_ifs
 
14612
      # Convert to MSYS style.
 
14613
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
14614
      ;;
 
14615
    cygwin*)
 
14616
      # Convert to unix form, then to dos form, then back to unix form
 
14617
      # but this time dos style (no spaces!) so that the unix form looks
 
14618
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
14619
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
14620
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
14621
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14622
      ;;
 
14623
    *)
 
14624
      sys_lib_search_path_spec="$LIB"
 
14625
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
14626
        # It is most probably a Windows format PATH.
 
14627
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14628
      else
 
14629
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14630
      fi
 
14631
      # FIXME: find the short name or the path components, as spaces are
 
14632
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
14633
      ;;
 
14634
    esac
 
14635
 
 
14636
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14637
    postinstall_cmds='base_file=`basename \${file}`~
 
14638
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14639
      dldir=$destdir/`dirname \$dlpath`~
 
14640
      test -d \$dldir || mkdir -p \$dldir~
 
14641
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14642
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14643
      dlpath=$dir/\$dldll~
 
14644
       $RM \$dlpath'
 
14645
    shlibpath_overrides_runpath=yes
 
14646
    dynamic_linker='Win32 link.exe'
 
14647
    ;;
 
14648
 
 
14649
  *)
 
14650
    # Assume MSVC wrapper
 
14651
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14652
    dynamic_linker='Win32 ld.exe'
 
14653
    ;;
 
14654
  esac
 
14655
  # FIXME: first we should search . and the directory the executable is in
 
14656
  shlibpath_var=PATH
 
14657
  ;;
 
14658
 
 
14659
darwin* | rhapsody*)
 
14660
  dynamic_linker="$host_os dyld"
 
14661
  version_type=darwin
 
14662
  need_lib_prefix=no
 
14663
  need_version=no
 
14664
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14665
  soname_spec='${libname}${release}${major}$shared_ext'
 
14666
  shlibpath_overrides_runpath=yes
 
14667
  shlibpath_var=DYLD_LIBRARY_PATH
 
14668
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14669
 
 
14670
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14671
  ;;
 
14672
 
 
14673
dgux*)
 
14674
  version_type=linux # correct to gnu/linux during the next big refactor
 
14675
  need_lib_prefix=no
 
14676
  need_version=no
 
14677
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14678
  soname_spec='${libname}${release}${shared_ext}$major'
 
14679
  shlibpath_var=LD_LIBRARY_PATH
 
14680
  ;;
 
14681
 
 
14682
freebsd* | dragonfly*)
 
14683
  # DragonFly does not have aout.  When/if they implement a new
 
14684
  # versioning mechanism, adjust this.
 
14685
  if test -x /usr/bin/objformat; then
 
14686
    objformat=`/usr/bin/objformat`
 
14687
  else
 
14688
    case $host_os in
 
14689
    freebsd[23].*) objformat=aout ;;
 
14690
    *) objformat=elf ;;
 
14691
    esac
 
14692
  fi
 
14693
  version_type=freebsd-$objformat
 
14694
  case $version_type in
 
14695
    freebsd-elf*)
 
14696
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14697
      need_version=no
 
14698
      need_lib_prefix=no
 
14699
      ;;
 
14700
    freebsd-*)
 
14701
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14702
      need_version=yes
 
14703
      ;;
 
14704
  esac
 
14705
  shlibpath_var=LD_LIBRARY_PATH
 
14706
  case $host_os in
 
14707
  freebsd2.*)
 
14708
    shlibpath_overrides_runpath=yes
 
14709
    ;;
 
14710
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14711
    shlibpath_overrides_runpath=yes
 
14712
    hardcode_into_libs=yes
 
14713
    ;;
 
14714
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14715
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14716
    shlibpath_overrides_runpath=no
 
14717
    hardcode_into_libs=yes
 
14718
    ;;
 
14719
  *) # from 4.6 on, and DragonFly
 
14720
    shlibpath_overrides_runpath=yes
 
14721
    hardcode_into_libs=yes
 
14722
    ;;
 
14723
  esac
 
14724
  ;;
 
14725
 
 
14726
gnu*)
 
14727
  version_type=linux # correct to gnu/linux during the next big refactor
 
14728
  need_lib_prefix=no
 
14729
  need_version=no
 
14730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14731
  soname_spec='${libname}${release}${shared_ext}$major'
 
14732
  shlibpath_var=LD_LIBRARY_PATH
 
14733
  shlibpath_overrides_runpath=no
 
14734
  hardcode_into_libs=yes
 
14735
  ;;
 
14736
 
 
14737
haiku*)
 
14738
  version_type=linux # correct to gnu/linux during the next big refactor
 
14739
  need_lib_prefix=no
 
14740
  need_version=no
 
14741
  dynamic_linker="$host_os runtime_loader"
 
14742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14743
  soname_spec='${libname}${release}${shared_ext}$major'
 
14744
  shlibpath_var=LIBRARY_PATH
 
14745
  shlibpath_overrides_runpath=yes
 
14746
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
14747
  hardcode_into_libs=yes
 
14748
  ;;
 
14749
 
 
14750
hpux9* | hpux10* | hpux11*)
 
14751
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14752
  # link against other versions.
 
14753
  version_type=sunos
 
14754
  need_lib_prefix=no
 
14755
  need_version=no
 
14756
  case $host_cpu in
 
14757
  ia64*)
 
14758
    shrext_cmds='.so'
 
14759
    hardcode_into_libs=yes
 
14760
    dynamic_linker="$host_os dld.so"
 
14761
    shlibpath_var=LD_LIBRARY_PATH
 
14762
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14763
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14764
    soname_spec='${libname}${release}${shared_ext}$major'
 
14765
    if test "X$HPUX_IA64_MODE" = X32; then
 
14766
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14767
    else
 
14768
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14769
    fi
 
14770
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14771
    ;;
 
14772
  hppa*64*)
 
14773
    shrext_cmds='.sl'
 
14774
    hardcode_into_libs=yes
 
14775
    dynamic_linker="$host_os dld.sl"
 
14776
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14777
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14778
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14779
    soname_spec='${libname}${release}${shared_ext}$major'
 
14780
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14781
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14782
    ;;
 
14783
  *)
 
14784
    shrext_cmds='.sl'
 
14785
    dynamic_linker="$host_os dld.sl"
 
14786
    shlibpath_var=SHLIB_PATH
 
14787
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14788
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14789
    soname_spec='${libname}${release}${shared_ext}$major'
 
14790
    ;;
 
14791
  esac
 
14792
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
14793
  postinstall_cmds='chmod 555 $lib'
 
14794
  # or fails outright, so override atomically:
 
14795
  install_override_mode=555
 
14796
  ;;
 
14797
 
 
14798
interix[3-9]*)
 
14799
  version_type=linux # correct to gnu/linux during the next big refactor
 
14800
  need_lib_prefix=no
 
14801
  need_version=no
 
14802
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14803
  soname_spec='${libname}${release}${shared_ext}$major'
 
14804
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14805
  shlibpath_var=LD_LIBRARY_PATH
 
14806
  shlibpath_overrides_runpath=no
 
14807
  hardcode_into_libs=yes
 
14808
  ;;
 
14809
 
 
14810
irix5* | irix6* | nonstopux*)
 
14811
  case $host_os in
 
14812
    nonstopux*) version_type=nonstopux ;;
 
14813
    *)
 
14814
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14815
                version_type=linux # correct to gnu/linux during the next big refactor
 
14816
        else
 
14817
                version_type=irix
 
14818
        fi ;;
 
14819
  esac
 
14820
  need_lib_prefix=no
 
14821
  need_version=no
 
14822
  soname_spec='${libname}${release}${shared_ext}$major'
 
14823
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14824
  case $host_os in
 
14825
  irix5* | nonstopux*)
 
14826
    libsuff= shlibsuff=
 
14827
    ;;
 
14828
  *)
 
14829
    case $LD in # libtool.m4 will add one of these switches to LD
 
14830
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14831
      libsuff= shlibsuff= libmagic=32-bit;;
 
14832
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14833
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14834
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14835
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14836
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14837
    esac
 
14838
    ;;
 
14839
  esac
 
14840
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14841
  shlibpath_overrides_runpath=no
 
14842
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14843
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14844
  hardcode_into_libs=yes
 
14845
  ;;
 
14846
 
 
14847
# No shared lib support for Linux oldld, aout, or coff.
 
14848
linux*oldld* | linux*aout* | linux*coff*)
 
14849
  dynamic_linker=no
 
14850
  ;;
 
14851
 
 
14852
# This must be glibc/ELF.
 
14853
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14854
  version_type=linux # correct to gnu/linux during the next big refactor
 
14855
  need_lib_prefix=no
 
14856
  need_version=no
 
14857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14858
  soname_spec='${libname}${release}${shared_ext}$major'
 
14859
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14860
  shlibpath_var=LD_LIBRARY_PATH
 
14861
  shlibpath_overrides_runpath=no
 
14862
 
 
14863
  # Some binutils ld are patched to set DT_RUNPATH
 
14864
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
14865
  $as_echo_n "(cached) " >&6
 
14866
else
 
14867
  lt_cv_shlibpath_overrides_runpath=no
 
14868
    save_LDFLAGS=$LDFLAGS
 
14869
    save_libdir=$libdir
 
14870
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
14871
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
14872
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14873
/* end confdefs.h.  */
 
14874
 
 
14875
int
 
14876
main ()
 
14877
{
 
14878
 
 
14879
  ;
 
14880
  return 0;
 
14881
}
 
14882
_ACEOF
 
14883
if ac_fn_cxx_try_link "$LINENO"; then :
 
14884
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
14885
  lt_cv_shlibpath_overrides_runpath=yes
 
14886
fi
 
14887
fi
 
14888
rm -f core conftest.err conftest.$ac_objext \
 
14889
    conftest$ac_exeext conftest.$ac_ext
 
14890
    LDFLAGS=$save_LDFLAGS
 
14891
    libdir=$save_libdir
 
14892
 
 
14893
fi
 
14894
 
 
14895
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
14896
 
 
14897
  # This implies no fast_install, which is unacceptable.
 
14898
  # Some rework will be needed to allow for fast_install
 
14899
  # before this can be enabled.
 
14900
  hardcode_into_libs=yes
 
14901
 
 
14902
  # Append ld.so.conf contents to the search path
 
14903
  if test -f /etc/ld.so.conf; then
 
14904
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
14905
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14906
  fi
 
14907
 
 
14908
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14909
  # powerpc, because MkLinux only supported shared libraries with the
 
14910
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14911
  # most powerpc-linux boxes support dynamic linking these days and
 
14912
  # people can always --disable-shared, the test was removed, and we
 
14913
  # assume the GNU/Linux dynamic linker is in use.
 
14914
  dynamic_linker='GNU/Linux ld.so'
 
14915
  ;;
 
14916
 
 
14917
netbsdelf*-gnu)
 
14918
  version_type=linux
 
14919
  need_lib_prefix=no
 
14920
  need_version=no
 
14921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14922
  soname_spec='${libname}${release}${shared_ext}$major'
 
14923
  shlibpath_var=LD_LIBRARY_PATH
 
14924
  shlibpath_overrides_runpath=no
 
14925
  hardcode_into_libs=yes
 
14926
  dynamic_linker='NetBSD ld.elf_so'
 
14927
  ;;
 
14928
 
 
14929
netbsd*)
 
14930
  version_type=sunos
 
14931
  need_lib_prefix=no
 
14932
  need_version=no
 
14933
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
14934
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14935
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14936
    dynamic_linker='NetBSD (a.out) ld.so'
 
14937
  else
 
14938
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14939
    soname_spec='${libname}${release}${shared_ext}$major'
 
14940
    dynamic_linker='NetBSD ld.elf_so'
 
14941
  fi
 
14942
  shlibpath_var=LD_LIBRARY_PATH
 
14943
  shlibpath_overrides_runpath=yes
 
14944
  hardcode_into_libs=yes
 
14945
  ;;
 
14946
 
 
14947
newsos6)
 
14948
  version_type=linux # correct to gnu/linux during the next big refactor
 
14949
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14950
  shlibpath_var=LD_LIBRARY_PATH
 
14951
  shlibpath_overrides_runpath=yes
 
14952
  ;;
 
14953
 
 
14954
*nto* | *qnx*)
 
14955
  version_type=qnx
 
14956
  need_lib_prefix=no
 
14957
  need_version=no
 
14958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14959
  soname_spec='${libname}${release}${shared_ext}$major'
 
14960
  shlibpath_var=LD_LIBRARY_PATH
 
14961
  shlibpath_overrides_runpath=no
 
14962
  hardcode_into_libs=yes
 
14963
  dynamic_linker='ldqnx.so'
 
14964
  ;;
 
14965
 
 
14966
openbsd*)
 
14967
  version_type=sunos
 
14968
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14969
  need_lib_prefix=no
 
14970
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14971
  case $host_os in
 
14972
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14973
    *)                          need_version=no  ;;
 
14974
  esac
 
14975
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14976
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14977
  shlibpath_var=LD_LIBRARY_PATH
 
14978
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14979
    case $host_os in
 
14980
      openbsd2.[89] | openbsd2.[89].*)
 
14981
        shlibpath_overrides_runpath=no
 
14982
        ;;
 
14983
      *)
 
14984
        shlibpath_overrides_runpath=yes
 
14985
        ;;
 
14986
      esac
 
14987
  else
 
14988
    shlibpath_overrides_runpath=yes
 
14989
  fi
 
14990
  ;;
 
14991
 
 
14992
os2*)
 
14993
  libname_spec='$name'
 
14994
  shrext_cmds=".dll"
 
14995
  need_lib_prefix=no
 
14996
  library_names_spec='$libname${shared_ext} $libname.a'
 
14997
  dynamic_linker='OS/2 ld.exe'
 
14998
  shlibpath_var=LIBPATH
 
14999
  ;;
 
15000
 
 
15001
osf3* | osf4* | osf5*)
 
15002
  version_type=osf
 
15003
  need_lib_prefix=no
 
15004
  need_version=no
 
15005
  soname_spec='${libname}${release}${shared_ext}$major'
 
15006
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15007
  shlibpath_var=LD_LIBRARY_PATH
 
15008
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15009
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15010
  ;;
 
15011
 
 
15012
rdos*)
 
15013
  dynamic_linker=no
 
15014
  ;;
 
15015
 
 
15016
solaris*)
 
15017
  version_type=linux # correct to gnu/linux during the next big refactor
 
15018
  need_lib_prefix=no
 
15019
  need_version=no
 
15020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15021
  soname_spec='${libname}${release}${shared_ext}$major'
 
15022
  shlibpath_var=LD_LIBRARY_PATH
 
15023
  shlibpath_overrides_runpath=yes
 
15024
  hardcode_into_libs=yes
 
15025
  # ldd complains unless libraries are executable
 
15026
  postinstall_cmds='chmod +x $lib'
 
15027
  ;;
 
15028
 
 
15029
sunos4*)
 
15030
  version_type=sunos
 
15031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15032
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15033
  shlibpath_var=LD_LIBRARY_PATH
 
15034
  shlibpath_overrides_runpath=yes
 
15035
  if test "$with_gnu_ld" = yes; then
 
15036
    need_lib_prefix=no
 
15037
  fi
 
15038
  need_version=yes
 
15039
  ;;
 
15040
 
 
15041
sysv4 | sysv4.3*)
 
15042
  version_type=linux # correct to gnu/linux during the next big refactor
 
15043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15044
  soname_spec='${libname}${release}${shared_ext}$major'
 
15045
  shlibpath_var=LD_LIBRARY_PATH
 
15046
  case $host_vendor in
 
15047
    sni)
 
15048
      shlibpath_overrides_runpath=no
 
15049
      need_lib_prefix=no
 
15050
      runpath_var=LD_RUN_PATH
 
15051
      ;;
 
15052
    siemens)
 
15053
      need_lib_prefix=no
 
15054
      ;;
 
15055
    motorola)
 
15056
      need_lib_prefix=no
 
15057
      need_version=no
 
15058
      shlibpath_overrides_runpath=no
 
15059
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15060
      ;;
 
15061
  esac
 
15062
  ;;
 
15063
 
 
15064
sysv4*MP*)
 
15065
  if test -d /usr/nec ;then
 
15066
    version_type=linux # correct to gnu/linux during the next big refactor
 
15067
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15068
    soname_spec='$libname${shared_ext}.$major'
 
15069
    shlibpath_var=LD_LIBRARY_PATH
 
15070
  fi
 
15071
  ;;
 
15072
 
 
15073
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15074
  version_type=freebsd-elf
 
15075
  need_lib_prefix=no
 
15076
  need_version=no
 
15077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15078
  soname_spec='${libname}${release}${shared_ext}$major'
 
15079
  shlibpath_var=LD_LIBRARY_PATH
 
15080
  shlibpath_overrides_runpath=yes
 
15081
  hardcode_into_libs=yes
 
15082
  if test "$with_gnu_ld" = yes; then
 
15083
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15084
  else
 
15085
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15086
    case $host_os in
 
15087
      sco3.2v5*)
 
15088
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15089
        ;;
 
15090
    esac
 
15091
  fi
 
15092
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15093
  ;;
 
15094
 
 
15095
tpf*)
 
15096
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15097
  version_type=linux # correct to gnu/linux during the next big refactor
 
15098
  need_lib_prefix=no
 
15099
  need_version=no
 
15100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15101
  shlibpath_var=LD_LIBRARY_PATH
 
15102
  shlibpath_overrides_runpath=no
 
15103
  hardcode_into_libs=yes
 
15104
  ;;
 
15105
 
 
15106
uts4*)
 
15107
  version_type=linux # correct to gnu/linux during the next big refactor
 
15108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15109
  soname_spec='${libname}${release}${shared_ext}$major'
 
15110
  shlibpath_var=LD_LIBRARY_PATH
 
15111
  ;;
 
15112
 
 
15113
*)
 
15114
  dynamic_linker=no
 
15115
  ;;
 
15116
esac
 
15117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15118
$as_echo "$dynamic_linker" >&6; }
 
15119
test "$dynamic_linker" = no && can_build_shared=no
 
15120
 
 
15121
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15122
if test "$GCC" = yes; then
 
15123
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15124
fi
 
15125
 
 
15126
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15127
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15128
fi
 
15129
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15130
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15131
fi
 
15132
 
 
15133
 
 
15134
 
 
15135
 
 
15136
 
 
15137
 
 
15138
 
 
15139
 
 
15140
 
 
15141
 
 
15142
 
 
15143
 
 
15144
 
 
15145
 
 
15146
 
 
15147
 
 
15148
 
 
15149
 
 
15150
 
 
15151
 
 
15152
 
 
15153
 
 
15154
 
 
15155
 
 
15156
 
 
15157
 
 
15158
 
 
15159
 
 
15160
 
 
15161
 
 
15162
 
 
15163
 
 
15164
 
 
15165
 
 
15166
 
 
15167
 
 
15168
 
 
15169
 
 
15170
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15171
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15172
hardcode_action_CXX=
 
15173
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15174
   test -n "$runpath_var_CXX" ||
 
15175
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15176
 
 
15177
  # We can hardcode non-existent directories.
 
15178
  if test "$hardcode_direct_CXX" != no &&
 
15179
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15180
     # have to relink, otherwise we might link with an installed library
 
15181
     # when we should be linking with a yet-to-be-installed one
 
15182
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15183
     test "$hardcode_minus_L_CXX" != no; then
 
15184
    # Linking always hardcodes the temporary library directory.
 
15185
    hardcode_action_CXX=relink
 
15186
  else
 
15187
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15188
    hardcode_action_CXX=immediate
 
15189
  fi
 
15190
else
 
15191
  # We cannot hardcode anything, or else we can only hardcode existing
 
15192
  # directories.
 
15193
  hardcode_action_CXX=unsupported
 
15194
fi
 
15195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15196
$as_echo "$hardcode_action_CXX" >&6; }
 
15197
 
 
15198
if test "$hardcode_action_CXX" = relink ||
 
15199
   test "$inherit_rpath_CXX" = yes; then
 
15200
  # Fast installation is not supported
 
15201
  enable_fast_install=no
 
15202
elif test "$shlibpath_overrides_runpath" = yes ||
 
15203
     test "$enable_shared" = no; then
 
15204
  # Fast installation is not necessary
 
15205
  enable_fast_install=needless
 
15206
fi
 
15207
 
 
15208
 
 
15209
 
 
15210
 
 
15211
 
 
15212
 
 
15213
 
 
15214
  fi # test -n "$compiler"
 
15215
 
 
15216
  CC=$lt_save_CC
 
15217
  CFLAGS=$lt_save_CFLAGS
 
15218
  LDCXX=$LD
 
15219
  LD=$lt_save_LD
 
15220
  GCC=$lt_save_GCC
 
15221
  with_gnu_ld=$lt_save_with_gnu_ld
 
15222
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15223
  lt_cv_path_LD=$lt_save_path_LD
 
15224
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15225
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15226
fi # test "$_lt_caught_CXX_error" != yes
 
15227
 
 
15228
ac_ext=c
 
15229
ac_cpp='$CPP $CPPFLAGS'
 
15230
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15231
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15232
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15233
 
 
15234
 
 
15235
 
11309
15236
 
11310
15237
 
11311
15238
 
11328
15255
 
11329
15256
 
11330
15257
## Checks for libraries.
11331
 
## FIXME: Replace `main' with a function in `-ldl':
11332
 
#AC_CHECK_LIB([dl], [main])
11333
 
## FIXME: Replace `main' with a function in `-lmarkers':
11334
 
#AC_CHECK_LIB([markers], [main])
11335
 
## FIXME: Replace `main' with a function in `-lpthread':
11336
 
#AC_CHECK_LIB([pthread], [main])
11337
 
## FIXME: Replace `main' with a function in `-ltracectl':
11338
 
#AC_CHECK_LIB([tracectl], [main])
11339
 
## FIXME: Replace `main' with a function in `-ltracing':
11340
 
#AC_CHECK_LIB([tracing], [main])
11341
 
## FIXME: Replace `main' with a function in `-lurcu':
11342
 
#AC_CHECK_LIB([urcu], [main])
 
15258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
15259
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
15260
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
15261
  $as_echo_n "(cached) " >&6
 
15262
else
 
15263
  ac_check_lib_save_LIBS=$LIBS
 
15264
LIBS="-ldl  $LIBS"
 
15265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15266
/* end confdefs.h.  */
 
15267
 
 
15268
/* Override any GCC internal prototype to avoid an error.
 
15269
   Use char because int might match the return type of a GCC
 
15270
   builtin and then its argument prototype would still apply.  */
 
15271
#ifdef __cplusplus
 
15272
extern "C"
 
15273
#endif
 
15274
char dlopen ();
 
15275
int
 
15276
main ()
 
15277
{
 
15278
return dlopen ();
 
15279
  ;
 
15280
  return 0;
 
15281
}
 
15282
_ACEOF
 
15283
if ac_fn_c_try_link "$LINENO"; then :
 
15284
  ac_cv_lib_dl_dlopen=yes
 
15285
else
 
15286
  ac_cv_lib_dl_dlopen=no
 
15287
fi
 
15288
rm -f core conftest.err conftest.$ac_objext \
 
15289
    conftest$ac_exeext conftest.$ac_ext
 
15290
LIBS=$ac_check_lib_save_LIBS
 
15291
fi
 
15292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
15293
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
15294
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
15295
  cat >>confdefs.h <<_ACEOF
 
15296
#define HAVE_LIBDL 1
 
15297
_ACEOF
 
15298
 
 
15299
  LIBS="-ldl $LIBS"
 
15300
 
 
15301
fi
 
15302
 
 
15303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
 
15304
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
 
15305
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
 
15306
  $as_echo_n "(cached) " >&6
 
15307
else
 
15308
  ac_check_lib_save_LIBS=$LIBS
 
15309
LIBS="-lpthread  $LIBS"
 
15310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15311
/* end confdefs.h.  */
 
15312
 
 
15313
/* Override any GCC internal prototype to avoid an error.
 
15314
   Use char because int might match the return type of a GCC
 
15315
   builtin and then its argument prototype would still apply.  */
 
15316
#ifdef __cplusplus
 
15317
extern "C"
 
15318
#endif
 
15319
char pthread_create ();
 
15320
int
 
15321
main ()
 
15322
{
 
15323
return pthread_create ();
 
15324
  ;
 
15325
  return 0;
 
15326
}
 
15327
_ACEOF
 
15328
if ac_fn_c_try_link "$LINENO"; then :
 
15329
  ac_cv_lib_pthread_pthread_create=yes
 
15330
else
 
15331
  ac_cv_lib_pthread_pthread_create=no
 
15332
fi
 
15333
rm -f core conftest.err conftest.$ac_objext \
 
15334
    conftest$ac_exeext conftest.$ac_ext
 
15335
LIBS=$ac_check_lib_save_LIBS
 
15336
fi
 
15337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
 
15338
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 
15339
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
 
15340
  cat >>confdefs.h <<_ACEOF
 
15341
#define HAVE_LIBPTHREAD 1
 
15342
_ACEOF
 
15343
 
 
15344
  LIBS="-lpthread $LIBS"
 
15345
 
 
15346
fi
 
15347
 
 
15348
 
 
15349
# Check for libuuid
 
15350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
 
15351
$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
 
15352
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
 
15353
  $as_echo_n "(cached) " >&6
 
15354
else
 
15355
  ac_check_lib_save_LIBS=$LIBS
 
15356
LIBS="-luuid  $LIBS"
 
15357
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15358
/* end confdefs.h.  */
 
15359
 
 
15360
/* Override any GCC internal prototype to avoid an error.
 
15361
   Use char because int might match the return type of a GCC
 
15362
   builtin and then its argument prototype would still apply.  */
 
15363
#ifdef __cplusplus
 
15364
extern "C"
 
15365
#endif
 
15366
char uuid_generate ();
 
15367
int
 
15368
main ()
 
15369
{
 
15370
return uuid_generate ();
 
15371
  ;
 
15372
  return 0;
 
15373
}
 
15374
_ACEOF
 
15375
if ac_fn_c_try_link "$LINENO"; then :
 
15376
  ac_cv_lib_uuid_uuid_generate=yes
 
15377
else
 
15378
  ac_cv_lib_uuid_uuid_generate=no
 
15379
fi
 
15380
rm -f core conftest.err conftest.$ac_objext \
 
15381
    conftest$ac_exeext conftest.$ac_ext
 
15382
LIBS=$ac_check_lib_save_LIBS
 
15383
fi
 
15384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
 
15385
$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
 
15386
if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
 
15387
  cat >>confdefs.h <<_ACEOF
 
15388
#define HAVE_LIBUUID 1
 
15389
_ACEOF
 
15390
 
 
15391
  LIBS="-luuid $LIBS"
 
15392
 
 
15393
else
 
15394
  as_fn_error $? "Cannot find libuuid. Use LDFLAGS=-Ldir to specify its location." "$LINENO" 5
 
15395
 
 
15396
fi
 
15397
 
11343
15398
 
11344
15399
# Checks for header files.
11345
15400
#AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
11468
15523
fi
11469
15524
 
11470
15525
 
11471
 
for ac_func in gettimeofday munmap socket strerror strtol
 
15526
for ac_func in gettimeofday munmap socket strerror strtol sched_getcpu sysconf
11472
15527
do :
11473
15528
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11474
15529
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11483
15538
 
11484
15539
CFLAGS="-Wall $CFLAGS"
11485
15540
 
 
15541
# Check for texinfo, required for building the documentation
 
15542
# TODO: make this (and building the documentation) optional
 
15543
# Extract the first word of "makeinfo", so it can be a program name with args.
 
15544
set dummy makeinfo; ac_word=$2
 
15545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15546
$as_echo_n "checking for $ac_word... " >&6; }
 
15547
if ${ac_cv_prog_TEXINFO+:} false; then :
 
15548
  $as_echo_n "(cached) " >&6
 
15549
else
 
15550
  if test -n "$TEXINFO"; then
 
15551
  ac_cv_prog_TEXINFO="$TEXINFO" # Let the user override the test.
 
15552
else
 
15553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15554
for as_dir in $PATH
 
15555
do
 
15556
  IFS=$as_save_IFS
 
15557
  test -z "$as_dir" && as_dir=.
 
15558
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15559
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15560
    ac_cv_prog_TEXINFO="yes"
 
15561
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15562
    break 2
 
15563
  fi
 
15564
done
 
15565
  done
 
15566
IFS=$as_save_IFS
 
15567
 
 
15568
fi
 
15569
fi
 
15570
TEXINFO=$ac_cv_prog_TEXINFO
 
15571
if test -n "$TEXINFO"; then
 
15572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXINFO" >&5
 
15573
$as_echo "$TEXINFO" >&6; }
 
15574
else
 
15575
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15576
$as_echo "no" >&6; }
 
15577
fi
 
15578
 
 
15579
 
 
15580
if test "x$TEXINFO" != "xyes"; then :
 
15581
 
 
15582
        as_fn_error $? "Please install the 'texinfo' program and make sure 'makeinfo' is in the PATH." "$LINENO" 5
 
15583
 
 
15584
fi
 
15585
 
11486
15586
# URCU
11487
15587
 
11488
15588
# urcu - check if we just find the headers it out of the box.
11495
15595
_ACEOF
11496
15596
 
11497
15597
else
11498
 
  as_fn_error $? "Cannot find URCU headers (urcu-bp.h). Use CFLAGS=-Idir to specify their location.
 
15598
  as_fn_error $? "Cannot find URCU headers (urcu-bp.h). Use CPPFLAGS=-Idir to specify their location.
11499
15599
This error can also occur when the liburcu package's configure script has not been run." "$LINENO" 5
11500
15600
fi
11501
15601
 
11502
15602
done
11503
15603
 
11504
15604
 
 
15605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking caa_likely()" >&5
 
15606
$as_echo_n "checking caa_likely()... " >&6; }
 
15607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15608
/* end confdefs.h.  */
 
15609
 
 
15610
#include <urcu/compiler.h>
 
15611
void fct(void)
 
15612
{
 
15613
        if (caa_likely(1)) {
 
15614
        }
 
15615
}
 
15616
 
 
15617
_ACEOF
 
15618
if ac_fn_c_try_compile "$LINENO"; then :
 
15619
 
 
15620
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15621
$as_echo "yes" >&6; }
 
15622
 
 
15623
else
 
15624
 
 
15625
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15626
$as_echo "no" >&6; }
 
15627
        as_fn_error $? "Please upgrade your version of liburcu to 0.6.6 or better" "$LINENO" 5
 
15628
 
 
15629
 
 
15630
fi
 
15631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15632
 
11505
15633
# urcu - check that URCU lib is available to compilation
11506
15634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for synchronize_rcu_bp in -lurcu-bp" >&5
11507
15635
$as_echo_n "checking for synchronize_rcu_bp in -lurcu-bp... " >&6; }
11651
15779
        powerpc) LIBFORMAT="elf32-powerpc" ;;
11652
15780
        ppc64) LIBFORMAT="elf64-powerpc" ;;
11653
15781
        powerpc64) LIBFORMAT="elf64-powerpc" ;;
11654
 
        s390) LIBFORMAT="elf32-s390" ;;
11655
 
        s390x) LIBFORMAT="elf64-s390" ;;
 
15782
        s390) LIBFORMAT="elf32-s390"; NO_UNALIGNED_ACCESS=1 ;;
 
15783
        s390x) LIBFORMAT="elf64-s390"; NO_UNALIGNED_ACCESS=1 ;;
11656
15784
        armv5) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;
11657
 
        arm) LIBFORMAT="elf32-littlearm" ;;
11658
 
        mips*) LIBFORMAT="" ;;
 
15785
        arm) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;
 
15786
        mips*) LIBFORMAT=""; NO_UNALIGNED_ACCESS=1;;
11659
15787
        *) as_fn_error $? "unable to detect library format (unsupported architecture ($host_cpu)?)" "$LINENO" 5 ;;
11660
15788
esac
11661
15789
 
11668
15796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669
15797
/* end confdefs.h.  */
11670
15798
 
11671
 
 
11672
 
int
11673
 
main ()
11674
 
{
11675
 
 
11676
15799
#ifndef __ARM_ARCH_5TEJ__
11677
15800
#error "no arm5 here"
11678
15801
#endif
11679
15802
 
11680
 
  ;
11681
 
  return 0;
11682
 
}
11683
15803
_ACEOF
11684
15804
if ac_fn_c_try_compile "$LINENO"; then :
11685
15805
 
11698
15818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699
15819
fi
11700
15820
if test x$NO_UNALIGNED_ACCESS = x ; then
11701
 
$as_echo "#define HAVE_EFFICIENT_UNALIGNED_ACCESS 1" >>confdefs.h
11702
 
 
11703
 
fi
11704
 
 
11705
 
ac_config_files="$ac_config_files Makefile doc/Makefile doc/man/Makefile doc/info/Makefile include/Makefile libust/Makefile tests/Makefile tests/hello/Makefile tests/hello2/Makefile tests/basic/Makefile tests/basic_long/Makefile tests/fork/Makefile tests/simple_include/Makefile tests/snprintf/Makefile tests/test-nevents/Makefile tests/test-libustinstr-malloc/Makefile tests/dlopen/Makefile tests/same_line_marker/Makefile tests/trace_event/Makefile tests/tracepoint/Makefile tests/tracepoint/benchmark/Makefile tests/register_test/Makefile tests/libustctl_function_tests/Makefile tests/exit-fast/Makefile libustinstr-malloc/Makefile libustfork/Makefile libustconsumer/Makefile ust-consumerd/Makefile ustctl/Makefile libustcomm/Makefile libustctl/Makefile snprintf/Makefile ust.pc include/ust/version.h"
 
15821
$as_echo "#define LTTNG_UST_HAVE_EFFICIENT_UNALIGNED_ACCESS 1" >>confdefs.h
 
15822
 
 
15823
fi
 
15824
 
 
15825
# Set compile flags to java include files if given
 
15826
 
 
15827
# Check whether --with-java-jdk was given.
 
15828
if test "${with_java_jdk+set}" = set; then :
 
15829
  withval=$with_java_jdk; JAVA_JDK=$withval
 
15830
else
 
15831
  JAVA_JDK=""
 
15832
 
 
15833
fi
 
15834
 
 
15835
if test $JAVA_JDK; then :
 
15836
 
 
15837
        if test -d $JAVA_JDK; then :
 
15838
 
 
15839
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Java includes in $JAVA_SDK" >&5
 
15840
$as_echo "using Java includes in $JAVA_SDK" >&6; }
 
15841
                SUBDIRS=`find $JAVA_JDK/include -type d`
 
15842
                CPPFLAGS+=" "
 
15843
                CPPFLAGS+=`for x in $SUBDIRS; do echo -n "-I$x "; done`
 
15844
                CPPFLAGS+=" "
 
15845
 
 
15846
else
 
15847
 
 
15848
                as_fn_error $? "Unable to find Java include files in $JAVA_JDK" "$LINENO" 5
 
15849
 
 
15850
fi
 
15851
 
 
15852
fi
 
15853
 
 
15854
# sdt.h integration
 
15855
 
 
15856
# Check whether --with-sdt was given.
 
15857
if test "${with_sdt+set}" = set; then :
 
15858
  withval=$with_sdt; with_sdt=$withval
 
15859
else
 
15860
  with_sdt="no"
 
15861
 
 
15862
fi
 
15863
 
 
15864
 
 
15865
if test "x$with_sdt" = "xyes"; then :
 
15866
 
 
15867
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking STAP_PROBEV()" >&5
 
15868
$as_echo_n "checking STAP_PROBEV()... " >&6; }
 
15869
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15870
/* end confdefs.h.  */
 
15871
 
 
15872
        #define SDT_USE_VARIADIC
 
15873
        #include <sys/sdt.h>
 
15874
        void fct(void)
 
15875
        {
 
15876
                STAP_PROBEV(provider,name,1,2,3,4,5,6,7,8,9,10);
 
15877
        }
 
15878
 
 
15879
_ACEOF
 
15880
if ac_fn_c_try_compile "$LINENO"; then :
 
15881
 
 
15882
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
15883
$as_echo "yes" >&6; }
 
15884
                $as_echo "#define LTTNG_UST_HAVE_SDT_INTEGRATION 1" >>confdefs.h
 
15885
 
 
15886
 
 
15887
else
 
15888
 
 
15889
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15890
$as_echo "no" >&6; }
 
15891
                as_fn_error $? "The sdt.h integration was requested but the STAP_PROBEV define cannot be used. Make sure it is installed, and up to date, or use CPPFLAGS=-I/path/ to specify a non-standard path to sys/sdt.h" "$LINENO" 5
 
15892
 
 
15893
fi
 
15894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15895
 
 
15896
fi
 
15897
 
 
15898
#currently disabled.
 
15899
        #tests/hello2/Makefile
 
15900
        #tests/basic/Makefile
 
15901
        #tests/simple_include/Makefile
 
15902
        #tests/snprintf/Makefile
 
15903
        #tests/test-nevents/Makefile
 
15904
        #tests/test-libustinstr-malloc/Makefile
 
15905
        #tests/dlopen/Makefile
 
15906
        #tests/same_line_marker/Makefile
 
15907
        #tests/trace_event/Makefile
 
15908
        #tests/tracepoint/Makefile
 
15909
        #tests/tracepoint/benchmark/Makefile
 
15910
        #tests/register_test/Makefile
 
15911
        #tests/libustctl_function_#tests/Makefile
 
15912
        #tests/exit-fast/Makefile
 
15913
        #tests/basic_long/Makefile
 
15914
 
 
15915
#       liblttng-ust-java/Makefile
 
15916
 
 
15917
ac_config_files="$ac_config_files Makefile doc/Makefile doc/examples/Makefile include/Makefile include/lttng/ust-version.h snprintf/Makefile libringbuffer/Makefile liblttng-ust-comm/Makefile liblttng-ust/Makefile liblttng-ust-ctl/Makefile liblttng-ust-fork/Makefile liblttng-ust-libc-wrapper/Makefile tools/Makefile tests/Makefile tests/hello/Makefile tests/hello-static-lib/Makefile tests/hello.cxx/Makefile tests/demo/Makefile tests/fork/Makefile tests/ust-basic-tracing/Makefile tests/ust-multi-test/Makefile lttng-ust.pc"
 
15918
 
11706
15919
 
11707
15920
cat >confcache <<\_ACEOF
11708
15921
# This file is a shell script that caches the results of configure
11829
16042
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11830
16043
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11831
16044
fi
 
16045
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
16046
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
16047
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
16048
fi
11832
16049
 
11833
16050
: "${CONFIG_STATUS=./config.status}"
11834
16051
ac_write_fail=0
12238
16455
# report actual input values of CONFIG_FILES etc. instead of their
12239
16456
# values after options handling.
12240
16457
ac_log="
12241
 
This file was extended by ust $as_me 0.16, which was
 
16458
This file was extended by lttng-ust $as_me 2.0.4, which was
12242
16459
generated by GNU Autoconf 2.68.  Invocation command line was
12243
16460
 
12244
16461
  CONFIG_FILES    = $CONFIG_FILES
12304
16521
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12305
16522
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12306
16523
ac_cs_version="\\
12307
 
ust config.status 0.16
 
16524
lttng-ust config.status 2.0.4
12308
16525
configured by $0, generated by GNU Autoconf 2.68,
12309
16526
  with options \\"\$ac_cs_config\\"
12310
16527
 
12441
16658
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12442
16659
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12443
16660
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
16661
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12444
16662
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12445
16663
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12446
16664
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12523
16741
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12524
16742
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12525
16743
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12526
 
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12527
16744
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12528
16745
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12529
16746
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12563
16780
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12564
16781
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12565
16782
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
16783
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
16784
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
16785
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
16786
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
16787
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
16788
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
16789
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
16790
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16791
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16792
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16793
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
16794
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
16795
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16796
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
16797
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
16798
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
16799
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
16800
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
16801
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
16802
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16803
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16804
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
16805
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16806
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16807
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16808
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16809
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16810
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16811
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
16812
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16813
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
16814
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16815
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
16816
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
16817
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
16818
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
16819
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
16820
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
16821
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
16822
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
16823
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
16824
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16825
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
16826
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
16827
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16828
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
16829
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
16830
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
16831
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
16832
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
16833
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
16834
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
16835
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
16836
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
12566
16837
 
12567
16838
LTCC='$LTCC'
12568
16839
LTCFLAGS='$LTCFLAGS'
12579
16850
# Quote evaled strings.
12580
16851
for var in SHELL \
12581
16852
ECHO \
 
16853
PATH_SEPARATOR \
12582
16854
SED \
12583
16855
GREP \
12584
16856
EGREP \
12629
16901
allow_undefined_flag \
12630
16902
no_undefined_flag \
12631
16903
hardcode_libdir_flag_spec \
12632
 
hardcode_libdir_flag_spec_ld \
12633
16904
hardcode_libdir_separator \
12634
16905
exclude_expsyms \
12635
16906
include_expsyms \
12641
16912
install_override_mode \
12642
16913
finish_eval \
12643
16914
old_striplib \
12644
 
striplib; do
 
16915
striplib \
 
16916
compiler_lib_search_dirs \
 
16917
predep_objects \
 
16918
postdep_objects \
 
16919
predeps \
 
16920
postdeps \
 
16921
compiler_lib_search_path \
 
16922
LD_CXX \
 
16923
reload_flag_CXX \
 
16924
compiler_CXX \
 
16925
lt_prog_compiler_no_builtin_flag_CXX \
 
16926
lt_prog_compiler_pic_CXX \
 
16927
lt_prog_compiler_wl_CXX \
 
16928
lt_prog_compiler_static_CXX \
 
16929
lt_cv_prog_compiler_c_o_CXX \
 
16930
export_dynamic_flag_spec_CXX \
 
16931
whole_archive_flag_spec_CXX \
 
16932
compiler_needs_object_CXX \
 
16933
with_gnu_ld_CXX \
 
16934
allow_undefined_flag_CXX \
 
16935
no_undefined_flag_CXX \
 
16936
hardcode_libdir_flag_spec_CXX \
 
16937
hardcode_libdir_separator_CXX \
 
16938
exclude_expsyms_CXX \
 
16939
include_expsyms_CXX \
 
16940
file_list_spec_CXX \
 
16941
compiler_lib_search_dirs_CXX \
 
16942
predep_objects_CXX \
 
16943
postdep_objects_CXX \
 
16944
predeps_CXX \
 
16945
postdeps_CXX \
 
16946
compiler_lib_search_path_CXX; do
12645
16947
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12646
16948
    *[\\\\\\\`\\"\\\$]*)
12647
16949
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12671
16973
postuninstall_cmds \
12672
16974
finish_cmds \
12673
16975
sys_lib_search_path_spec \
12674
 
sys_lib_dlsearch_path_spec; do
 
16976
sys_lib_dlsearch_path_spec \
 
16977
reload_cmds_CXX \
 
16978
old_archive_cmds_CXX \
 
16979
old_archive_from_new_cmds_CXX \
 
16980
old_archive_from_expsyms_cmds_CXX \
 
16981
archive_cmds_CXX \
 
16982
archive_expsym_cmds_CXX \
 
16983
module_cmds_CXX \
 
16984
module_expsym_cmds_CXX \
 
16985
export_symbols_cmds_CXX \
 
16986
prelink_cmds_CXX \
 
16987
postlink_cmds_CXX; do
12675
16988
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12676
16989
    *[\\\\\\\`\\"\\\$]*)
12677
16990
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12702
17015
 
12703
17016
 
12704
17017
 
 
17018
 
 
17019
 
12705
17020
_ACEOF
12706
17021
 
12707
17022
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12711
17026
do
12712
17027
  case $ac_config_target in
12713
17028
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12714
 
    "include/ust/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ust/config.h" ;;
 
17029
    "include/lttng/ust-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lttng/ust-config.h" ;;
12715
17030
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12716
17031
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12717
17032
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12718
17033
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12719
 
    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
12720
 
    "doc/info/Makefile") CONFIG_FILES="$CONFIG_FILES doc/info/Makefile" ;;
 
17034
    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
12721
17035
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12722
 
    "libust/Makefile") CONFIG_FILES="$CONFIG_FILES libust/Makefile" ;;
 
17036
    "include/lttng/ust-version.h") CONFIG_FILES="$CONFIG_FILES include/lttng/ust-version.h" ;;
 
17037
    "snprintf/Makefile") CONFIG_FILES="$CONFIG_FILES snprintf/Makefile" ;;
 
17038
    "libringbuffer/Makefile") CONFIG_FILES="$CONFIG_FILES libringbuffer/Makefile" ;;
 
17039
    "liblttng-ust-comm/Makefile") CONFIG_FILES="$CONFIG_FILES liblttng-ust-comm/Makefile" ;;
 
17040
    "liblttng-ust/Makefile") CONFIG_FILES="$CONFIG_FILES liblttng-ust/Makefile" ;;
 
17041
    "liblttng-ust-ctl/Makefile") CONFIG_FILES="$CONFIG_FILES liblttng-ust-ctl/Makefile" ;;
 
17042
    "liblttng-ust-fork/Makefile") CONFIG_FILES="$CONFIG_FILES liblttng-ust-fork/Makefile" ;;
 
17043
    "liblttng-ust-libc-wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES liblttng-ust-libc-wrapper/Makefile" ;;
 
17044
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12723
17045
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12724
17046
    "tests/hello/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hello/Makefile" ;;
12725
 
    "tests/hello2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hello2/Makefile" ;;
12726
 
    "tests/basic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/basic/Makefile" ;;
12727
 
    "tests/basic_long/Makefile") CONFIG_FILES="$CONFIG_FILES tests/basic_long/Makefile" ;;
 
17047
    "tests/hello-static-lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hello-static-lib/Makefile" ;;
 
17048
    "tests/hello.cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hello.cxx/Makefile" ;;
 
17049
    "tests/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tests/demo/Makefile" ;;
12728
17050
    "tests/fork/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fork/Makefile" ;;
12729
 
    "tests/simple_include/Makefile") CONFIG_FILES="$CONFIG_FILES tests/simple_include/Makefile" ;;
12730
 
    "tests/snprintf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/snprintf/Makefile" ;;
12731
 
    "tests/test-nevents/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-nevents/Makefile" ;;
12732
 
    "tests/test-libustinstr-malloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-libustinstr-malloc/Makefile" ;;
12733
 
    "tests/dlopen/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dlopen/Makefile" ;;
12734
 
    "tests/same_line_marker/Makefile") CONFIG_FILES="$CONFIG_FILES tests/same_line_marker/Makefile" ;;
12735
 
    "tests/trace_event/Makefile") CONFIG_FILES="$CONFIG_FILES tests/trace_event/Makefile" ;;
12736
 
    "tests/tracepoint/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tracepoint/Makefile" ;;
12737
 
    "tests/tracepoint/benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tracepoint/benchmark/Makefile" ;;
12738
 
    "tests/register_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/register_test/Makefile" ;;
12739
 
    "tests/libustctl_function_tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libustctl_function_tests/Makefile" ;;
12740
 
    "tests/exit-fast/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exit-fast/Makefile" ;;
12741
 
    "libustinstr-malloc/Makefile") CONFIG_FILES="$CONFIG_FILES libustinstr-malloc/Makefile" ;;
12742
 
    "libustfork/Makefile") CONFIG_FILES="$CONFIG_FILES libustfork/Makefile" ;;
12743
 
    "libustconsumer/Makefile") CONFIG_FILES="$CONFIG_FILES libustconsumer/Makefile" ;;
12744
 
    "ust-consumerd/Makefile") CONFIG_FILES="$CONFIG_FILES ust-consumerd/Makefile" ;;
12745
 
    "ustctl/Makefile") CONFIG_FILES="$CONFIG_FILES ustctl/Makefile" ;;
12746
 
    "libustcomm/Makefile") CONFIG_FILES="$CONFIG_FILES libustcomm/Makefile" ;;
12747
 
    "libustctl/Makefile") CONFIG_FILES="$CONFIG_FILES libustctl/Makefile" ;;
12748
 
    "snprintf/Makefile") CONFIG_FILES="$CONFIG_FILES snprintf/Makefile" ;;
12749
 
    "ust.pc") CONFIG_FILES="$CONFIG_FILES ust.pc" ;;
12750
 
    "include/ust/version.h") CONFIG_FILES="$CONFIG_FILES include/ust/version.h" ;;
 
17051
    "tests/ust-basic-tracing/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ust-basic-tracing/Makefile" ;;
 
17052
    "tests/ust-multi-test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ust-multi-test/Makefile" ;;
 
17053
    "lttng-ust.pc") CONFIG_FILES="$CONFIG_FILES lttng-ust.pc" ;;
12751
17054
 
12752
17055
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12753
17056
  esac
13459
17762
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13460
17763
#
13461
17764
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13462
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13463
 
#                 Inc.
 
17765
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
17766
#                 Foundation, Inc.
13464
17767
#   Written by Gordon Matzigkeit, 1996
13465
17768
#
13466
17769
#   This file is part of GNU Libtool.
13488
17791
 
13489
17792
 
13490
17793
# The names of the tagged configurations supported by this script.
13491
 
available_tags=""
 
17794
available_tags="CXX "
13492
17795
 
13493
17796
# ### BEGIN LIBTOOL CONFIG
13494
17797
 
13514
17817
# An echo program that protects backslashes.
13515
17818
ECHO=$lt_ECHO
13516
17819
 
 
17820
# The PATH separator for the build system.
 
17821
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
17822
 
13517
17823
# The host system.
13518
17824
host_alias=$host_alias
13519
17825
host=$host
13815
18121
# This must work even if \$libdir does not exist
13816
18122
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13817
18123
 
13818
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
13819
 
# during linking.  This must work even if \$libdir does not exist.
13820
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13821
 
 
13822
18124
# Whether we need a single "-rpath" flag with a separated argument.
13823
18125
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13824
18126
 
13876
18178
# How to hardcode a shared library path into an executable.
13877
18179
hardcode_action=$hardcode_action
13878
18180
 
 
18181
# The directories searched by this compiler when creating a shared library.
 
18182
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
18183
 
 
18184
# Dependencies to place before and after the objects being linked to
 
18185
# create a shared library.
 
18186
predep_objects=$lt_predep_objects
 
18187
postdep_objects=$lt_postdep_objects
 
18188
predeps=$lt_predeps
 
18189
postdeps=$lt_postdeps
 
18190
 
 
18191
# The library search path used internally by the compiler when linking
 
18192
# a shared library.
 
18193
compiler_lib_search_path=$lt_compiler_lib_search_path
 
18194
 
13879
18195
# ### END LIBTOOL CONFIG
13880
18196
 
13881
18197
_LT_EOF
14068
18384
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14069
18385
  chmod +x "$ofile"
14070
18386
 
 
18387
 
 
18388
    cat <<_LT_EOF >> "$ofile"
 
18389
 
 
18390
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
18391
 
 
18392
# The linker used to build libraries.
 
18393
LD=$lt_LD_CXX
 
18394
 
 
18395
# How to create reloadable object files.
 
18396
reload_flag=$lt_reload_flag_CXX
 
18397
reload_cmds=$lt_reload_cmds_CXX
 
18398
 
 
18399
# Commands used to build an old-style archive.
 
18400
old_archive_cmds=$lt_old_archive_cmds_CXX
 
18401
 
 
18402
# A language specific compiler.
 
18403
CC=$lt_compiler_CXX
 
18404
 
 
18405
# Is the compiler the GNU compiler?
 
18406
with_gcc=$GCC_CXX
 
18407
 
 
18408
# Compiler flag to turn off builtin functions.
 
18409
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
18410
 
 
18411
# Additional compiler flags for building library objects.
 
18412
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
18413
 
 
18414
# How to pass a linker flag through the compiler.
 
18415
wl=$lt_lt_prog_compiler_wl_CXX
 
18416
 
 
18417
# Compiler flag to prevent dynamic linking.
 
18418
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
18419
 
 
18420
# Does compiler simultaneously support -c and -o options?
 
18421
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
18422
 
 
18423
# Whether or not to add -lc for building shared libraries.
 
18424
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
18425
 
 
18426
# Whether or not to disallow shared libs when runtime libs are static.
 
18427
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
18428
 
 
18429
# Compiler flag to allow reflexive dlopens.
 
18430
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
18431
 
 
18432
# Compiler flag to generate shared objects directly from archives.
 
18433
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
18434
 
 
18435
# Whether the compiler copes with passing no objects directly.
 
18436
compiler_needs_object=$lt_compiler_needs_object_CXX
 
18437
 
 
18438
# Create an old-style archive from a shared archive.
 
18439
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
18440
 
 
18441
# Create a temporary old-style archive to link instead of a shared archive.
 
18442
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
18443
 
 
18444
# Commands used to build a shared archive.
 
18445
archive_cmds=$lt_archive_cmds_CXX
 
18446
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
18447
 
 
18448
# Commands used to build a loadable module if different from building
 
18449
# a shared archive.
 
18450
module_cmds=$lt_module_cmds_CXX
 
18451
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
18452
 
 
18453
# Whether we are building with GNU ld or not.
 
18454
with_gnu_ld=$lt_with_gnu_ld_CXX
 
18455
 
 
18456
# Flag that allows shared libraries with undefined symbols to be built.
 
18457
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
18458
 
 
18459
# Flag that enforces no undefined symbols.
 
18460
no_undefined_flag=$lt_no_undefined_flag_CXX
 
18461
 
 
18462
# Flag to hardcode \$libdir into a binary during linking.
 
18463
# This must work even if \$libdir does not exist
 
18464
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
18465
 
 
18466
# Whether we need a single "-rpath" flag with a separated argument.
 
18467
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
18468
 
 
18469
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18470
# DIR into the resulting binary.
 
18471
hardcode_direct=$hardcode_direct_CXX
 
18472
 
 
18473
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
18474
# DIR into the resulting binary and the resulting library dependency is
 
18475
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
18476
# library is relocated.
 
18477
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
18478
 
 
18479
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
18480
# into the resulting binary.
 
18481
hardcode_minus_L=$hardcode_minus_L_CXX
 
18482
 
 
18483
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
18484
# into the resulting binary.
 
18485
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
18486
 
 
18487
# Set to "yes" if building a shared library automatically hardcodes DIR
 
18488
# into the library and all subsequent libraries and executables linked
 
18489
# against it.
 
18490
hardcode_automatic=$hardcode_automatic_CXX
 
18491
 
 
18492
# Set to yes if linker adds runtime paths of dependent libraries
 
18493
# to runtime path list.
 
18494
inherit_rpath=$inherit_rpath_CXX
 
18495
 
 
18496
# Whether libtool must link a program against all its dependency libraries.
 
18497
link_all_deplibs=$link_all_deplibs_CXX
 
18498
 
 
18499
# Set to "yes" if exported symbols are required.
 
18500
always_export_symbols=$always_export_symbols_CXX
 
18501
 
 
18502
# The commands to list exported symbols.
 
18503
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
18504
 
 
18505
# Symbols that should not be listed in the preloaded symbols.
 
18506
exclude_expsyms=$lt_exclude_expsyms_CXX
 
18507
 
 
18508
# Symbols that must always be exported.
 
18509
include_expsyms=$lt_include_expsyms_CXX
 
18510
 
 
18511
# Commands necessary for linking programs (against libraries) with templates.
 
18512
prelink_cmds=$lt_prelink_cmds_CXX
 
18513
 
 
18514
# Commands necessary for finishing linking programs.
 
18515
postlink_cmds=$lt_postlink_cmds_CXX
 
18516
 
 
18517
# Specify filename containing input files.
 
18518
file_list_spec=$lt_file_list_spec_CXX
 
18519
 
 
18520
# How to hardcode a shared library path into an executable.
 
18521
hardcode_action=$hardcode_action_CXX
 
18522
 
 
18523
# The directories searched by this compiler when creating a shared library.
 
18524
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
18525
 
 
18526
# Dependencies to place before and after the objects being linked to
 
18527
# create a shared library.
 
18528
predep_objects=$lt_predep_objects_CXX
 
18529
postdep_objects=$lt_postdep_objects_CXX
 
18530
predeps=$lt_predeps_CXX
 
18531
postdeps=$lt_postdeps_CXX
 
18532
 
 
18533
# The library search path used internally by the compiler when linking
 
18534
# a shared library.
 
18535
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
18536
 
 
18537
# ### END LIBTOOL TAG CONFIG: CXX
 
18538
_LT_EOF
 
18539
 
14071
18540
 ;;
14072
18541
 
14073
18542
  esac
14107
18576
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14108
18577
fi
14109
18578
 
 
18579
 
 
18580
$as_echo
 
18581
$as_echo "Version name: $version_name"
 
18582
$as_echo "$version_description"
 
18583
 
 
18584
# Report on the configuration options
 
18585
$as_echo
 
18586
$as_echo "LTTng-UST will be built with the following options:"
 
18587
$as_echo "Library format: $LIBFORMAT"
 
18588
 
 
18589
$as_echo
 
18590
$as_echo_n "sdt.h integration:  "
 
18591
if test "x$with_sdt" = "xyes"; then :
 
18592
  $as_echo "Enabled"
 
18593
else
 
18594
  $as_echo "Disabled"
 
18595
fi
 
18596
 
 
18597
$as_echo
 
18598
$as_echo "Type 'make' to compile."
 
18599