~ubuntu-branches/ubuntu/lucid/libtasn1-3/lucid-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Metzler
  • Date: 2008-09-20 08:43:45 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080920084345-4zc3avwxte2l12nw
Tags: 1.5-1
* New upstream bugfix release.
* Drop tetex-bin Build-Depends alternative.

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.62 for libtasn1 1.4.
 
3
# Generated by GNU Autoconf 2.62 for libtasn1 1.5.
4
4
#
5
5
# Report bugs to <bug-gnutls@gnu.org>.
6
6
#
577
577
# Check that we are running under the correct shell.
578
578
SHELL=${CONFIG_SHELL-/bin/sh}
579
579
 
580
 
case X$lt_ECHO in
 
580
case X$ECHO in
581
581
X*--fallback-echo)
582
582
  # Remove one level of quotation (which was required for Make).
583
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
583
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
584
  ;;
585
585
esac
586
586
 
587
 
ECHO=${lt_ECHO-echo}
 
587
echo=${ECHO-echo}
588
588
if test "X$1" = X--no-reexec; then
589
589
  # Discard the --no-reexec flag, and continue.
590
590
  shift
591
591
elif test "X$1" = X--fallback-echo; then
592
592
  # Avoid inline document here, it may be left over
593
593
  :
594
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595
 
  # Yippee, $ECHO works!
 
594
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $echo works!
596
596
  :
597
597
else
598
598
  # Restart under the correct shell.
602
602
if test "X$1" = X--fallback-echo; then
603
603
  # used as fallback echo
604
604
  shift
605
 
  cat <<_LT_EOF
 
605
  cat <<EOF
606
606
$*
607
 
_LT_EOF
 
607
EOF
608
608
  exit 0
609
609
fi
610
610
 
612
612
# if CDPATH is set.
613
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
614
 
615
 
if test -z "$lt_ECHO"; then
616
 
  if test "X${echo_test_string+set}" != Xset; then
617
 
    # find a string as large as possible, as long as the shell can cope with it
618
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622
 
      then
623
 
        break
624
 
      fi
625
 
    done
626
 
  fi
627
 
 
628
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
631
 
    :
632
 
  else
633
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
634
 
    # backslashes.  This makes it impossible to quote backslashes using
635
 
    #   echo "$something" | sed 's/\\/\\\\/g'
636
 
    #
637
 
    # So, first we look for a working echo in the user's PATH.
638
 
 
639
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640
 
    for dir in $PATH /usr/ucb; do
641
 
      IFS="$lt_save_ifs"
642
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
646
 
        ECHO="$dir/echo"
647
 
        break
648
 
      fi
649
 
    done
 
615
if test -z "$ECHO"; then
 
616
if test "X${echo_test_string+set}" != Xset; then
 
617
# find a string as large as possible, as long as the shell can cope with it
 
618
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
621
       echo_test_string=`eval $cmd` &&
 
622
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
623
    then
 
624
      break
 
625
    fi
 
626
  done
 
627
fi
 
628
 
 
629
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
630
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
631
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
632
  :
 
633
else
 
634
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
635
  # backslashes.  This makes it impossible to quote backslashes using
 
636
  #   echo "$something" | sed 's/\\/\\\\/g'
 
637
  #
 
638
  # So, first we look for a working echo in the user's PATH.
 
639
 
 
640
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
641
  for dir in $PATH /usr/ucb; do
650
642
    IFS="$lt_save_ifs"
 
643
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
644
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
645
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
646
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
647
      echo="$dir/echo"
 
648
      break
 
649
    fi
 
650
  done
 
651
  IFS="$lt_save_ifs"
651
652
 
652
 
    if test "X$ECHO" = Xecho; then
653
 
      # We didn't find a better echo, so look for alternatives.
654
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
657
 
        # This shell has a builtin print -r that does the trick.
658
 
        ECHO='print -r'
659
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
661
 
        # If we have ksh, try running configure again with it.
662
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663
 
        export ORIGINAL_CONFIG_SHELL
664
 
        CONFIG_SHELL=/bin/ksh
665
 
        export CONFIG_SHELL
666
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
653
  if test "X$echo" = Xecho; then
 
654
    # We didn't find a better echo, so look for alternatives.
 
655
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
656
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
657
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
      # This shell has a builtin print -r that does the trick.
 
659
      echo='print -r'
 
660
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
661
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
662
      # If we have ksh, try running configure again with it.
 
663
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
664
      export ORIGINAL_CONFIG_SHELL
 
665
      CONFIG_SHELL=/bin/ksh
 
666
      export CONFIG_SHELL
 
667
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
668
    else
 
669
      # Try using printf.
 
670
      echo='printf %s\n'
 
671
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
672
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
673
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
674
        # Cool, printf works
 
675
        :
 
676
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
677
           test "X$echo_testing_string" = 'X\t' &&
 
678
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
679
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
680
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
681
        export CONFIG_SHELL
 
682
        SHELL="$CONFIG_SHELL"
 
683
        export SHELL
 
684
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
685
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
686
           test "X$echo_testing_string" = 'X\t' &&
 
687
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
688
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
689
        echo="$CONFIG_SHELL $0 --fallback-echo"
667
690
      else
668
 
        # Try using printf.
669
 
        ECHO='printf %s\n'
670
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
673
 
          # Cool, printf works
674
 
          :
675
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676
 
             test "X$echo_testing_string" = 'X\t' &&
677
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
679
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680
 
          export CONFIG_SHELL
681
 
          SHELL="$CONFIG_SHELL"
682
 
          export SHELL
683
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
684
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685
 
             test "X$echo_testing_string" = 'X\t' &&
686
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
688
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
689
 
        else
690
 
          # maybe with a smaller string...
691
 
          prev=:
692
 
 
693
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695
 
            then
696
 
              break
697
 
            fi
698
 
            prev="$cmd"
699
 
          done
700
 
 
701
 
          if test "$prev" != 'sed 50q "$0"'; then
702
 
            echo_test_string=`eval $prev`
703
 
            export echo_test_string
704
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705
 
          else
706
 
            # Oops.  We lost completely, so just stick with echo.
707
 
            ECHO=echo
 
691
        # maybe with a smaller string...
 
692
        prev=:
 
693
 
 
694
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
695
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
696
          then
 
697
            break
708
698
          fi
709
 
        fi
 
699
          prev="$cmd"
 
700
        done
 
701
 
 
702
        if test "$prev" != 'sed 50q "$0"'; then
 
703
          echo_test_string=`eval $prev`
 
704
          export echo_test_string
 
705
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
706
        else
 
707
          # Oops.  We lost completely, so just stick with echo.
 
708
          echo=echo
 
709
        fi
710
710
      fi
711
711
    fi
712
712
  fi
713
713
fi
 
714
fi
714
715
 
715
716
# Copy echo and quote the copy suitably for passing to libtool from
716
717
# the Makefile, instead of quoting the original, which is used later.
717
 
lt_ECHO=$ECHO
718
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
718
ECHO=$echo
 
719
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
720
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720
721
fi
721
722
 
722
723
 
723
724
 
724
725
 
 
726
tagnames=${tagnames+${tagnames},}CXX
 
727
 
 
728
tagnames=${tagnames+${tagnames},}F77
 
729
 
725
730
exec 7<&0 </dev/null 6>&1
726
731
 
727
732
# Name of the host.
745
750
# Identity of this package.
746
751
PACKAGE_NAME='libtasn1'
747
752
PACKAGE_TARNAME='libtasn1'
748
 
PACKAGE_VERSION='1.4'
749
 
PACKAGE_STRING='libtasn1 1.4'
 
753
PACKAGE_VERSION='1.5'
 
754
PACKAGE_STRING='libtasn1 1.5'
750
755
PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
751
756
 
752
757
# Factoring default headers for most tests.
846
851
AMTAR
847
852
am__tar
848
853
am__untar
849
 
build
850
 
build_cpu
851
 
build_vendor
852
 
build_os
853
 
host
854
 
host_cpu
855
 
host_vendor
856
 
host_os
857
854
LT_CURRENT
858
855
LT_REVISION
859
856
LT_AGE
877
874
CPP
878
875
GREP
879
876
EGREP
 
877
build
 
878
build_cpu
 
879
build_vendor
 
880
build_os
 
881
host
 
882
host_cpu
 
883
host_vendor
 
884
host_os
880
885
YACC
881
886
YFLAGS
882
887
LN_S
883
888
PERL
884
889
HELP2MAN
885
 
AS
886
 
DLLTOOL
887
 
OBJDUMP
888
 
LIBTOOL
889
890
SED
890
 
FGREP
891
 
LD
892
 
DUMPBIN
893
 
ac_ct_DUMPBIN
894
 
NM
 
891
ECHO
895
892
AR
896
 
lt_ECHO
897
893
DSYMUTIL
898
894
NMEDIT
 
895
DLLTOOL
 
896
AS
 
897
OBJDUMP
 
898
CXX
 
899
CXXFLAGS
 
900
ac_ct_CXX
 
901
CXXDEPMODE
 
902
am__fastdepCXX_TRUE
 
903
am__fastdepCXX_FALSE
 
904
CXXCPP
 
905
F77
 
906
FFLAGS
 
907
ac_ct_F77
 
908
LIBTOOL
899
909
VALGRIND
900
910
HAVE_LD_VERSION_SCRIPT_TRUE
901
911
HAVE_LD_VERSION_SCRIPT_FALSE
912
922
GNULIB_MKDTEMP
913
923
GNULIB_MKSTEMP
914
924
GNULIB_PUTENV
 
925
GNULIB_RPMATCH
915
926
GNULIB_SETENV
916
927
GNULIB_STRTOD
917
928
GNULIB_UNSETENV
919
930
HAVE_GETSUBOPT
920
931
HAVE_MKDTEMP
921
932
HAVE_REALLOC_POSIX
 
933
HAVE_RPMATCH
922
934
HAVE_SETENV
923
935
HAVE_STRTOD
924
936
HAVE_UNSETENV
955
967
GNULIB_MEMMEM
956
968
GNULIB_MEMPCPY
957
969
GNULIB_MEMRCHR
 
970
GNULIB_RAWMEMCHR
958
971
GNULIB_STPCPY
959
972
GNULIB_STPNCPY
960
973
GNULIB_STRCHRNUL
982
995
GNULIB_MBSTOK_R
983
996
GNULIB_STRERROR
984
997
GNULIB_STRSIGNAL
 
998
GNULIB_STRVERSCMP
985
999
HAVE_DECL_MEMMEM
986
1000
HAVE_MEMPCPY
987
1001
HAVE_DECL_MEMRCHR
 
1002
HAVE_RAWMEMCHR
988
1003
HAVE_STPCPY
989
1004
HAVE_STPNCPY
990
1005
HAVE_STRCHRNUL
998
1013
HAVE_DECL_STRTOK_R
999
1014
HAVE_DECL_STRERROR
1000
1015
HAVE_DECL_STRSIGNAL
 
1016
HAVE_STRVERSCMP
1001
1017
REPLACE_STRERROR
1002
1018
REPLACE_STRSIGNAL
1003
1019
REPLACE_MEMMEM
1059
1075
enable_dependency_tracking
1060
1076
enable_shared
1061
1077
enable_static
1062
 
with_pic
1063
1078
enable_fast_install
1064
1079
with_gnu_ld
1065
1080
enable_libtool_lock
 
1081
with_pic
 
1082
with_tags
1066
1083
enable_valgrind_tests
1067
1084
enable_ld_version_script
1068
1085
with_html_dir
1078
1095
CPPFLAGS
1079
1096
CPP
1080
1097
YACC
1081
 
YFLAGS'
 
1098
YFLAGS
 
1099
CXX
 
1100
CXXFLAGS
 
1101
CCC
 
1102
CXXCPP
 
1103
F77
 
1104
FFLAGS'
1082
1105
 
1083
1106
 
1084
1107
# Initialize some variables set by options.
1631
1654
  # Omit some internal or obsolete options to make the list less imposing.
1632
1655
  # This message is too long to be a string in the A/UX 3.1 sh.
1633
1656
  cat <<_ACEOF
1634
 
\`configure' configures libtasn1 1.4 to adapt to many kinds of systems.
 
1657
\`configure' configures libtasn1 1.5 to adapt to many kinds of systems.
1635
1658
 
1636
1659
Usage: $0 [OPTION]... [VAR=VALUE]...
1637
1660
 
1701
1724
 
1702
1725
if test -n "$ac_init_help"; then
1703
1726
  case $ac_init_help in
1704
 
     short | recursive ) echo "Configuration of libtasn1 1.4:";;
 
1727
     short | recursive ) echo "Configuration of libtasn1 1.5:";;
1705
1728
   esac
1706
1729
  cat <<\_ACEOF
1707
1730
 
1725
1748
Optional Packages:
1726
1749
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1727
1750
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1751
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1728
1752
  --with-pic              try to use only PIC/non-PIC objects [default=use
1729
1753
                          both]
1730
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1754
  --with-tags[=TAGS]      include additional configurations [automatic]
1731
1755
  --with-html-dir=PATH    path to installed docs
1732
1756
 
1733
1757
Some influential environment variables:
1744
1768
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1745
1769
              This script will default YFLAGS to the empty string to avoid a
1746
1770
              default value of `-d' given by some make applications.
 
1771
  CXX         C++ compiler command
 
1772
  CXXFLAGS    C++ compiler flags
 
1773
  CXXCPP      C++ preprocessor
 
1774
  F77         Fortran 77 compiler command
 
1775
  FFLAGS      Fortran 77 compiler flags
1747
1776
 
1748
1777
Use these variables to override the choices made by `configure' or to help
1749
1778
it to find libraries and programs with nonstandard names/locations.
1811
1840
test -n "$ac_init_help" && exit $ac_status
1812
1841
if $ac_init_version; then
1813
1842
  cat <<\_ACEOF
1814
 
libtasn1 configure 1.4
 
1843
libtasn1 configure 1.5
1815
1844
generated by GNU Autoconf 2.62
1816
1845
 
1817
1846
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1825
1854
This file contains any messages produced by compilers while
1826
1855
running configure, to aid debugging if configure makes a mistake.
1827
1856
 
1828
 
It was created by libtasn1 $as_me 1.4, which was
 
1857
It was created by libtasn1 $as_me 1.5, which was
1829
1858
generated by GNU Autoconf 2.62.  Invocation command line was
1830
1859
 
1831
1860
  $ $0 $@
2547
2576
 
2548
2577
# Define the identity of the package.
2549
2578
 PACKAGE='libtasn1'
2550
 
 VERSION='1.4'
 
2579
 VERSION='1.5'
2551
2580
 
2552
2581
 
2553
2582
cat >>confdefs.h <<_ACEOF
2693
2722
 
2694
2723
 
2695
2724
 
2696
 
# Make sure we can run config.sub.
2697
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2698
 
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2699
 
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2700
 
   { (exit 1); exit 1; }; }
2701
 
 
2702
 
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2703
 
$as_echo_n "checking build system type... " >&6; }
2704
 
if test "${ac_cv_build+set}" = set; then
2705
 
  $as_echo_n "(cached) " >&6
2706
 
else
2707
 
  ac_build_alias=$build_alias
2708
 
test "x$ac_build_alias" = x &&
2709
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2710
 
test "x$ac_build_alias" = x &&
2711
 
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2712
 
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2713
 
   { (exit 1); exit 1; }; }
2714
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2715
 
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2716
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2717
 
   { (exit 1); exit 1; }; }
2718
 
 
2719
 
fi
2720
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2721
 
$as_echo "$ac_cv_build" >&6; }
2722
 
case $ac_cv_build in
2723
 
*-*-*) ;;
2724
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2725
 
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2726
 
   { (exit 1); exit 1; }; };;
2727
 
esac
2728
 
build=$ac_cv_build
2729
 
ac_save_IFS=$IFS; IFS='-'
2730
 
set x $ac_cv_build
2731
 
shift
2732
 
build_cpu=$1
2733
 
build_vendor=$2
2734
 
shift; shift
2735
 
# Remember, the first character of IFS is used to create $*,
2736
 
# except with old shells:
2737
 
build_os=$*
2738
 
IFS=$ac_save_IFS
2739
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740
 
 
2741
 
 
2742
 
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2743
 
$as_echo_n "checking host system type... " >&6; }
2744
 
if test "${ac_cv_host+set}" = set; then
2745
 
  $as_echo_n "(cached) " >&6
2746
 
else
2747
 
  if test "x$host_alias" = x; then
2748
 
  ac_cv_host=$ac_cv_build
2749
 
else
2750
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2751
 
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2752
 
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2753
 
   { (exit 1); exit 1; }; }
2754
 
fi
2755
 
 
2756
 
fi
2757
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2758
 
$as_echo "$ac_cv_host" >&6; }
2759
 
case $ac_cv_host in
2760
 
*-*-*) ;;
2761
 
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2762
 
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2763
 
   { (exit 1); exit 1; }; };;
2764
 
esac
2765
 
host=$ac_cv_host
2766
 
ac_save_IFS=$IFS; IFS='-'
2767
 
set x $ac_cv_host
2768
 
shift
2769
 
host_cpu=$1
2770
 
host_vendor=$2
2771
 
shift; shift
2772
 
# Remember, the first character of IFS is used to create $*,
2773
 
# except with old shells:
2774
 
host_os=$*
2775
 
IFS=$ac_save_IFS
2776
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2777
 
 
2778
 
 
2779
 
 
2780
 
 
2781
 
 
2782
 
 
2783
 
        { $as_echo "$as_me:$LINENO: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
2784
 
$as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
2785
 
        { $as_echo "$as_me:$LINENO: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
2786
 
$as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
2787
 
        hostname=`hostname`
2788
 
        if test "$hostname"; then
2789
 
           { $as_echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
2790
 
$as_echo "$as_me: autobuild hostname... $hostname" >&6;}
2791
 
        fi
2792
 
 
2793
 
        date=`date +%Y%m%d-%H%M%S`
2794
 
        if test "$?" != 0; then
2795
 
           date=`date`
2796
 
        fi
2797
 
        if test "$date"; then
2798
 
           { $as_echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
2799
 
$as_echo "$as_me: autobuild timestamp... $date" >&6;}
2800
 
        fi
2801
 
 
2802
2725
 
2803
2726
# Library code modified:                              REVISION++
2804
2727
# Interfaces changed/added/removed:   CURRENT++       REVISION=0
2806
2729
# Interfaces removed:                           AGE=0
2807
2730
LT_CURRENT=3
2808
2731
 
2809
 
LT_REVISION=15
 
2732
LT_REVISION=16
2810
2733
 
2811
2734
LT_AGE=0
2812
2735
 
4862
4785
_ACEOF
4863
4786
 
4864
4787
 
 
4788
# Make sure we can run config.sub.
 
4789
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4790
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
4791
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
4792
   { (exit 1); exit 1; }; }
 
4793
 
 
4794
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
4795
$as_echo_n "checking build system type... " >&6; }
 
4796
if test "${ac_cv_build+set}" = set; then
 
4797
  $as_echo_n "(cached) " >&6
 
4798
else
 
4799
  ac_build_alias=$build_alias
 
4800
test "x$ac_build_alias" = x &&
 
4801
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4802
test "x$ac_build_alias" = x &&
 
4803
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4804
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4805
   { (exit 1); exit 1; }; }
 
4806
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4807
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
4808
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
4809
   { (exit 1); exit 1; }; }
 
4810
 
 
4811
fi
 
4812
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4813
$as_echo "$ac_cv_build" >&6; }
 
4814
case $ac_cv_build in
 
4815
*-*-*) ;;
 
4816
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
4817
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
4818
   { (exit 1); exit 1; }; };;
 
4819
esac
 
4820
build=$ac_cv_build
 
4821
ac_save_IFS=$IFS; IFS='-'
 
4822
set x $ac_cv_build
 
4823
shift
 
4824
build_cpu=$1
 
4825
build_vendor=$2
 
4826
shift; shift
 
4827
# Remember, the first character of IFS is used to create $*,
 
4828
# except with old shells:
 
4829
build_os=$*
 
4830
IFS=$ac_save_IFS
 
4831
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4832
 
 
4833
 
 
4834
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
4835
$as_echo_n "checking host system type... " >&6; }
 
4836
if test "${ac_cv_host+set}" = set; then
 
4837
  $as_echo_n "(cached) " >&6
 
4838
else
 
4839
  if test "x$host_alias" = x; then
 
4840
  ac_cv_host=$ac_cv_build
 
4841
else
 
4842
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4843
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
4844
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
4845
   { (exit 1); exit 1; }; }
 
4846
fi
 
4847
 
 
4848
fi
 
4849
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4850
$as_echo "$ac_cv_host" >&6; }
 
4851
case $ac_cv_host in
 
4852
*-*-*) ;;
 
4853
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
4854
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
4855
   { (exit 1); exit 1; }; };;
 
4856
esac
 
4857
host=$ac_cv_host
 
4858
ac_save_IFS=$IFS; IFS='-'
 
4859
set x $ac_cv_host
 
4860
shift
 
4861
host_cpu=$1
 
4862
host_vendor=$2
 
4863
shift; shift
 
4864
# Remember, the first character of IFS is used to create $*,
 
4865
# except with old shells:
 
4866
host_os=$*
 
4867
IFS=$ac_save_IFS
 
4868
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4869
 
 
4870
 
4865
4871
 
4866
4872
   case $ac_cv_prog_cc_stdc in
4867
4873
  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5214
5220
 
5215
5221
 
5216
5222
 
 
5223
 
 
5224
  if test -z "$AB_PACKAGE"; then
 
5225
    AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
 
5226
  fi
 
5227
  { $as_echo "$as_me:$LINENO: autobuild project... $AB_PACKAGE" >&5
 
5228
$as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;}
 
5229
 
 
5230
  if test -z "$AB_VERSION"; then
 
5231
    AB_VERSION=${PACKAGE_VERSION:-$VERSION}
 
5232
  fi
 
5233
  { $as_echo "$as_me:$LINENO: autobuild revision... $AB_VERSION" >&5
 
5234
$as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;}
 
5235
 
 
5236
  hostname=`hostname`
 
5237
  if test "$hostname"; then
 
5238
    { $as_echo "$as_me:$LINENO: autobuild hostname... $hostname" >&5
 
5239
$as_echo "$as_me: autobuild hostname... $hostname" >&6;}
 
5240
  fi
 
5241
 
 
5242
 
 
5243
 
 
5244
  date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
 
5245
  if test "$?" != 0; then
 
5246
    date=`date`
 
5247
  fi
 
5248
  if test "$date"; then
 
5249
    { $as_echo "$as_me:$LINENO: autobuild timestamp... $date" >&5
 
5250
$as_echo "$as_me: autobuild timestamp... $date" >&6;}
 
5251
  fi
 
5252
 
 
5253
 
 
5254
 
 
5255
 
5217
5256
for ac_prog in 'bison -y' byacc
5218
5257
do
5219
5258
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5371
5410
 
5372
5411
{ $as_echo "$as_me:$LINENO: Detecting options for shared libraries" >&5
5373
5412
$as_echo "$as_me: Detecting options for shared libraries" >&6;}
5374
 
enable_win32_dll=yes
5375
 
 
 
5413
 
 
5414
 
 
5415
# Check whether --enable-shared was given.
 
5416
if test "${enable_shared+set}" = set; then
 
5417
  enableval=$enable_shared; p=${PACKAGE-default}
 
5418
    case $enableval in
 
5419
    yes) enable_shared=yes ;;
 
5420
    no) enable_shared=no ;;
 
5421
    *)
 
5422
      enable_shared=no
 
5423
      # Look at the argument we got.  We use all the common list separators.
 
5424
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5425
      for pkg in $enableval; do
 
5426
        IFS="$lt_save_ifs"
 
5427
        if test "X$pkg" = "X$p"; then
 
5428
          enable_shared=yes
 
5429
        fi
 
5430
      done
 
5431
      IFS="$lt_save_ifs"
 
5432
      ;;
 
5433
    esac
 
5434
else
 
5435
  enable_shared=yes
 
5436
fi
 
5437
 
 
5438
 
 
5439
# Check whether --enable-static was given.
 
5440
if test "${enable_static+set}" = set; then
 
5441
  enableval=$enable_static; p=${PACKAGE-default}
 
5442
    case $enableval in
 
5443
    yes) enable_static=yes ;;
 
5444
    no) enable_static=no ;;
 
5445
    *)
 
5446
     enable_static=no
 
5447
      # Look at the argument we got.  We use all the common list separators.
 
5448
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5449
      for pkg in $enableval; do
 
5450
        IFS="$lt_save_ifs"
 
5451
        if test "X$pkg" = "X$p"; then
 
5452
          enable_static=yes
 
5453
        fi
 
5454
      done
 
5455
      IFS="$lt_save_ifs"
 
5456
      ;;
 
5457
    esac
 
5458
else
 
5459
  enable_static=yes
 
5460
fi
 
5461
 
 
5462
 
 
5463
# Check whether --enable-fast-install was given.
 
5464
if test "${enable_fast_install+set}" = set; then
 
5465
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
5466
    case $enableval in
 
5467
    yes) enable_fast_install=yes ;;
 
5468
    no) enable_fast_install=no ;;
 
5469
    *)
 
5470
      enable_fast_install=no
 
5471
      # Look at the argument we got.  We use all the common list separators.
 
5472
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5473
      for pkg in $enableval; do
 
5474
        IFS="$lt_save_ifs"
 
5475
        if test "X$pkg" = "X$p"; then
 
5476
          enable_fast_install=yes
 
5477
        fi
 
5478
      done
 
5479
      IFS="$lt_save_ifs"
 
5480
      ;;
 
5481
    esac
 
5482
else
 
5483
  enable_fast_install=yes
 
5484
fi
 
5485
 
 
5486
 
 
5487
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5488
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
5489
if test "${lt_cv_path_SED+set}" = set; then
 
5490
  $as_echo_n "(cached) " >&6
 
5491
else
 
5492
  # Loop through the user's path and test for sed and gsed.
 
5493
# Then use that list of sed's as ones to test for truncation.
 
5494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5495
for as_dir in $PATH
 
5496
do
 
5497
  IFS=$as_save_IFS
 
5498
  test -z "$as_dir" && as_dir=.
 
5499
  for lt_ac_prog in sed gsed; do
 
5500
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5501
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
5502
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5503
      fi
 
5504
    done
 
5505
  done
 
5506
done
 
5507
IFS=$as_save_IFS
 
5508
lt_ac_max=0
 
5509
lt_ac_count=0
 
5510
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5511
# along with /bin/sed that truncates output.
 
5512
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5513
  test ! -f $lt_ac_sed && continue
 
5514
  cat /dev/null > conftest.in
 
5515
  lt_ac_count=0
 
5516
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5517
  # Check for GNU sed and select it if it is found.
 
5518
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5519
    lt_cv_path_SED=$lt_ac_sed
 
5520
    break
 
5521
  fi
 
5522
  while true; do
 
5523
    cat conftest.in conftest.in >conftest.tmp
 
5524
    mv conftest.tmp conftest.in
 
5525
    cp conftest.in conftest.nl
 
5526
    echo >>conftest.nl
 
5527
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5528
    cmp -s conftest.out conftest.nl || break
 
5529
    # 10000 chars as input seems more than enough
 
5530
    test $lt_ac_count -gt 10 && break
 
5531
    lt_ac_count=`expr $lt_ac_count + 1`
 
5532
    if test $lt_ac_count -gt $lt_ac_max; then
 
5533
      lt_ac_max=$lt_ac_count
 
5534
      lt_cv_path_SED=$lt_ac_sed
 
5535
    fi
 
5536
  done
 
5537
done
 
5538
 
 
5539
fi
 
5540
 
 
5541
SED=$lt_cv_path_SED
 
5542
 
 
5543
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
5544
$as_echo "$SED" >&6; }
 
5545
 
 
5546
 
 
5547
# Check whether --with-gnu-ld was given.
 
5548
if test "${with_gnu_ld+set}" = set; then
 
5549
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5550
else
 
5551
  with_gnu_ld=no
 
5552
fi
 
5553
 
 
5554
ac_prog=ld
 
5555
if test "$GCC" = yes; then
 
5556
  # Check if gcc -print-prog-name=ld gives a path.
 
5557
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5558
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5559
  case $host in
 
5560
  *-*-mingw*)
 
5561
    # gcc leaves a trailing carriage return which upsets mingw
 
5562
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5563
  *)
 
5564
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5565
  esac
 
5566
  case $ac_prog in
 
5567
    # Accept absolute paths.
 
5568
    [\\/]* | ?:[\\/]*)
 
5569
      re_direlt='/[^/][^/]*/\.\./'
 
5570
      # Canonicalize the pathname of ld
 
5571
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5572
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5573
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5574
      done
 
5575
      test -z "$LD" && LD="$ac_prog"
 
5576
      ;;
 
5577
  "")
 
5578
    # If it fails, then pretend we aren't using GCC.
 
5579
    ac_prog=ld
 
5580
    ;;
 
5581
  *)
 
5582
    # If it is relative, then search for the first ld in PATH.
 
5583
    with_gnu_ld=unknown
 
5584
    ;;
 
5585
  esac
 
5586
elif test "$with_gnu_ld" = yes; then
 
5587
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5588
$as_echo_n "checking for GNU ld... " >&6; }
 
5589
else
 
5590
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5591
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5592
fi
 
5593
if test "${lt_cv_path_LD+set}" = set; then
 
5594
  $as_echo_n "(cached) " >&6
 
5595
else
 
5596
  if test -z "$LD"; then
 
5597
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5598
  for ac_dir in $PATH; do
 
5599
    IFS="$lt_save_ifs"
 
5600
    test -z "$ac_dir" && ac_dir=.
 
5601
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5602
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5603
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5604
      # but apparently some variants of GNU ld only accept -v.
 
5605
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5606
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5607
      *GNU* | *'with BFD'*)
 
5608
        test "$with_gnu_ld" != no && break
 
5609
        ;;
 
5610
      *)
 
5611
        test "$with_gnu_ld" != yes && break
 
5612
        ;;
 
5613
      esac
 
5614
    fi
 
5615
  done
 
5616
  IFS="$lt_save_ifs"
 
5617
else
 
5618
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5619
fi
 
5620
fi
 
5621
 
 
5622
LD="$lt_cv_path_LD"
 
5623
if test -n "$LD"; then
 
5624
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
5625
$as_echo "$LD" >&6; }
 
5626
else
 
5627
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5628
$as_echo "no" >&6; }
 
5629
fi
 
5630
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5631
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5632
   { (exit 1); exit 1; }; }
 
5633
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5634
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5635
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5636
  $as_echo_n "(cached) " >&6
 
5637
else
 
5638
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5639
case `$LD -v 2>&1 </dev/null` in
 
5640
*GNU* | *'with BFD'*)
 
5641
  lt_cv_prog_gnu_ld=yes
 
5642
  ;;
 
5643
*)
 
5644
  lt_cv_prog_gnu_ld=no
 
5645
  ;;
 
5646
esac
 
5647
fi
 
5648
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5649
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5650
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5651
 
 
5652
 
 
5653
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5654
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5655
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5656
  $as_echo_n "(cached) " >&6
 
5657
else
 
5658
  lt_cv_ld_reload_flag='-r'
 
5659
fi
 
5660
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5661
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5662
reload_flag=$lt_cv_ld_reload_flag
 
5663
case $reload_flag in
 
5664
"" | " "*) ;;
 
5665
*) reload_flag=" $reload_flag" ;;
 
5666
esac
 
5667
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5668
case $host_os in
 
5669
  darwin*)
 
5670
    if test "$GCC" = yes; then
 
5671
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5672
    else
 
5673
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5674
    fi
 
5675
    ;;
 
5676
esac
 
5677
 
 
5678
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5679
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
5680
if test "${lt_cv_path_NM+set}" = set; then
 
5681
  $as_echo_n "(cached) " >&6
 
5682
else
 
5683
  if test -n "$NM"; then
 
5684
  # Let the user override the test.
 
5685
  lt_cv_path_NM="$NM"
 
5686
else
 
5687
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5688
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5689
    lt_nm_to_check="$lt_nm_to_check nm"
 
5690
  fi
 
5691
  for lt_tmp_nm in $lt_nm_to_check; do
 
5692
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5693
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5694
      IFS="$lt_save_ifs"
 
5695
      test -z "$ac_dir" && ac_dir=.
 
5696
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5697
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5698
        # Check to see if the nm accepts a BSD-compat flag.
 
5699
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5700
        #   nm: unknown option "B" ignored
 
5701
        # Tru64's nm complains that /dev/null is an invalid object file
 
5702
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5703
        */dev/null* | *'Invalid file or object type'*)
 
5704
          lt_cv_path_NM="$tmp_nm -B"
 
5705
          break
 
5706
          ;;
 
5707
        *)
 
5708
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5709
          */dev/null*)
 
5710
            lt_cv_path_NM="$tmp_nm -p"
 
5711
            break
 
5712
            ;;
 
5713
          *)
 
5714
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5715
            continue # so that we can try to find one that supports BSD flags
 
5716
            ;;
 
5717
          esac
 
5718
          ;;
 
5719
        esac
 
5720
      fi
 
5721
    done
 
5722
    IFS="$lt_save_ifs"
 
5723
  done
 
5724
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5725
fi
 
5726
fi
 
5727
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5728
$as_echo "$lt_cv_path_NM" >&6; }
 
5729
NM="$lt_cv_path_NM"
 
5730
 
 
5731
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
5732
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5733
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5734
  $as_echo_n "(cached) " >&6
 
5735
else
 
5736
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5737
lt_cv_file_magic_test_file=
 
5738
lt_cv_deplibs_check_method='unknown'
 
5739
# Need to set the preceding variable on all platforms that support
 
5740
# interlibrary dependencies.
 
5741
# 'none' -- dependencies not supported.
 
5742
# `unknown' -- same as none, but documents that we really don't know.
 
5743
# 'pass_all' -- all dependencies passed with no checks.
 
5744
# 'test_compile' -- check by making test program.
 
5745
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5746
# which responds to the $file_magic_cmd with a given extended regex.
 
5747
# If you have `file' or equivalent on your system and you're not sure
 
5748
# whether `pass_all' will *always* work, you probably want this one.
 
5749
 
 
5750
case $host_os in
 
5751
aix[4-9]*)
 
5752
  lt_cv_deplibs_check_method=pass_all
 
5753
  ;;
 
5754
 
 
5755
beos*)
 
5756
  lt_cv_deplibs_check_method=pass_all
 
5757
  ;;
 
5758
 
 
5759
bsdi[45]*)
 
5760
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5761
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5762
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5763
  ;;
 
5764
 
 
5765
cygwin*)
 
5766
  # func_win32_libid is a shell function defined in ltmain.sh
 
5767
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5768
  lt_cv_file_magic_cmd='func_win32_libid'
 
5769
  ;;
 
5770
 
 
5771
mingw* | pw32*)
 
5772
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5773
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5774
  # unless we find 'file', for example because we are cross-compiling.
 
5775
  if ( file / ) >/dev/null 2>&1; then
 
5776
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5777
    lt_cv_file_magic_cmd='func_win32_libid'
 
5778
  else
 
5779
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5780
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5781
  fi
 
5782
  ;;
 
5783
 
 
5784
darwin* | rhapsody*)
 
5785
  lt_cv_deplibs_check_method=pass_all
 
5786
  ;;
 
5787
 
 
5788
freebsd* | dragonfly*)
 
5789
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5790
    case $host_cpu in
 
5791
    i*86 )
 
5792
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5793
      # Let's accept both of them until this is cleared up.
 
5794
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5795
      lt_cv_file_magic_cmd=/usr/bin/file
 
5796
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5797
      ;;
 
5798
    esac
 
5799
  else
 
5800
    lt_cv_deplibs_check_method=pass_all
 
5801
  fi
 
5802
  ;;
 
5803
 
 
5804
gnu*)
 
5805
  lt_cv_deplibs_check_method=pass_all
 
5806
  ;;
 
5807
 
 
5808
hpux10.20* | hpux11*)
 
5809
  lt_cv_file_magic_cmd=/usr/bin/file
 
5810
  case $host_cpu in
 
5811
  ia64*)
 
5812
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5813
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5814
    ;;
 
5815
  hppa*64*)
 
5816
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5817
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5818
    ;;
 
5819
  *)
 
5820
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5821
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5822
    ;;
 
5823
  esac
 
5824
  ;;
 
5825
 
 
5826
interix[3-9]*)
 
5827
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5828
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5829
  ;;
 
5830
 
 
5831
irix5* | irix6* | nonstopux*)
 
5832
  case $LD in
 
5833
  *-32|*"-32 ") libmagic=32-bit;;
 
5834
  *-n32|*"-n32 ") libmagic=N32;;
 
5835
  *-64|*"-64 ") libmagic=64-bit;;
 
5836
  *) libmagic=never-match;;
 
5837
  esac
 
5838
  lt_cv_deplibs_check_method=pass_all
 
5839
  ;;
 
5840
 
 
5841
# This must be Linux ELF.
 
5842
linux* | k*bsd*-gnu)
 
5843
  lt_cv_deplibs_check_method=pass_all
 
5844
  ;;
 
5845
 
 
5846
netbsd* | netbsdelf*-gnu)
 
5847
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5848
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5849
  else
 
5850
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5851
  fi
 
5852
  ;;
 
5853
 
 
5854
newos6*)
 
5855
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5856
  lt_cv_file_magic_cmd=/usr/bin/file
 
5857
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5858
  ;;
 
5859
 
 
5860
nto-qnx*)
 
5861
  lt_cv_deplibs_check_method=unknown
 
5862
  ;;
 
5863
 
 
5864
openbsd*)
 
5865
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5866
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5867
  else
 
5868
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5869
  fi
 
5870
  ;;
 
5871
 
 
5872
osf3* | osf4* | osf5*)
 
5873
  lt_cv_deplibs_check_method=pass_all
 
5874
  ;;
 
5875
 
 
5876
rdos*)
 
5877
  lt_cv_deplibs_check_method=pass_all
 
5878
  ;;
 
5879
 
 
5880
solaris*)
 
5881
  lt_cv_deplibs_check_method=pass_all
 
5882
  ;;
 
5883
 
 
5884
sysv4 | sysv4.3*)
 
5885
  case $host_vendor in
 
5886
  motorola)
 
5887
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
5888
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5889
    ;;
 
5890
  ncr)
 
5891
    lt_cv_deplibs_check_method=pass_all
 
5892
    ;;
 
5893
  sequent)
 
5894
    lt_cv_file_magic_cmd='/bin/file'
 
5895
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5896
    ;;
 
5897
  sni)
 
5898
    lt_cv_file_magic_cmd='/bin/file'
 
5899
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5900
    lt_cv_file_magic_test_file=/lib/libc.so
 
5901
    ;;
 
5902
  siemens)
 
5903
    lt_cv_deplibs_check_method=pass_all
 
5904
    ;;
 
5905
  pc)
 
5906
    lt_cv_deplibs_check_method=pass_all
 
5907
    ;;
 
5908
  esac
 
5909
  ;;
 
5910
 
 
5911
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5912
  lt_cv_deplibs_check_method=pass_all
 
5913
  ;;
 
5914
esac
 
5915
 
 
5916
fi
 
5917
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5918
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5919
file_magic_cmd=$lt_cv_file_magic_cmd
 
5920
deplibs_check_method=$lt_cv_deplibs_check_method
 
5921
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5922
 
 
5923
 
 
5924
 
 
5925
 
 
5926
# If no C compiler was specified, use CC.
 
5927
LTCC=${LTCC-"$CC"}
 
5928
 
 
5929
# If no C compiler flags were specified, use CFLAGS.
 
5930
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5931
 
 
5932
# Allow CC to be a program name with arguments.
 
5933
compiler=$CC
 
5934
 
 
5935
# Check whether --enable-libtool-lock was given.
 
5936
if test "${enable_libtool_lock+set}" = set; then
 
5937
  enableval=$enable_libtool_lock;
 
5938
fi
 
5939
 
 
5940
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5941
 
 
5942
# Some flags need to be propagated to the compiler or linker for good
 
5943
# libtool support.
5376
5944
case $host in
 
5945
ia64-*-hpux*)
 
5946
  # Find out which ABI we are using.
 
5947
  echo 'int i;' > conftest.$ac_ext
 
5948
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5949
  (eval $ac_compile) 2>&5
 
5950
  ac_status=$?
 
5951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5952
  (exit $ac_status); }; then
 
5953
    case `/usr/bin/file conftest.$ac_objext` in
 
5954
    *ELF-32*)
 
5955
      HPUX_IA64_MODE="32"
 
5956
      ;;
 
5957
    *ELF-64*)
 
5958
      HPUX_IA64_MODE="64"
 
5959
      ;;
 
5960
    esac
 
5961
  fi
 
5962
  rm -rf conftest*
 
5963
  ;;
 
5964
*-*-irix6*)
 
5965
  # Find out which ABI we are using.
 
5966
  echo '#line 5966 "configure"' > conftest.$ac_ext
 
5967
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5968
  (eval $ac_compile) 2>&5
 
5969
  ac_status=$?
 
5970
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5971
  (exit $ac_status); }; then
 
5972
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5973
    case `/usr/bin/file conftest.$ac_objext` in
 
5974
    *32-bit*)
 
5975
      LD="${LD-ld} -melf32bsmip"
 
5976
      ;;
 
5977
    *N32*)
 
5978
      LD="${LD-ld} -melf32bmipn32"
 
5979
      ;;
 
5980
    *64-bit*)
 
5981
      LD="${LD-ld} -melf64bmip"
 
5982
      ;;
 
5983
    esac
 
5984
   else
 
5985
    case `/usr/bin/file conftest.$ac_objext` in
 
5986
    *32-bit*)
 
5987
      LD="${LD-ld} -32"
 
5988
      ;;
 
5989
    *N32*)
 
5990
      LD="${LD-ld} -n32"
 
5991
      ;;
 
5992
    *64-bit*)
 
5993
      LD="${LD-ld} -64"
 
5994
      ;;
 
5995
    esac
 
5996
   fi
 
5997
  fi
 
5998
  rm -rf conftest*
 
5999
  ;;
 
6000
 
 
6001
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6002
s390*-*linux*|sparc*-*linux*)
 
6003
  # Find out which ABI we are using.
 
6004
  echo 'int i;' > conftest.$ac_ext
 
6005
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6006
  (eval $ac_compile) 2>&5
 
6007
  ac_status=$?
 
6008
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6009
  (exit $ac_status); }; then
 
6010
    case `/usr/bin/file conftest.o` in
 
6011
    *32-bit*)
 
6012
      case $host in
 
6013
        x86_64-*kfreebsd*-gnu)
 
6014
          LD="${LD-ld} -m elf_i386_fbsd"
 
6015
          ;;
 
6016
        x86_64-*linux*)
 
6017
          LD="${LD-ld} -m elf_i386"
 
6018
          ;;
 
6019
        ppc64-*linux*|powerpc64-*linux*)
 
6020
          LD="${LD-ld} -m elf32ppclinux"
 
6021
          ;;
 
6022
        s390x-*linux*)
 
6023
          LD="${LD-ld} -m elf_s390"
 
6024
          ;;
 
6025
        sparc64-*linux*)
 
6026
          LD="${LD-ld} -m elf32_sparc"
 
6027
          ;;
 
6028
      esac
 
6029
      ;;
 
6030
    *64-bit*)
 
6031
      case $host in
 
6032
        x86_64-*kfreebsd*-gnu)
 
6033
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
6034
          ;;
 
6035
        x86_64-*linux*)
 
6036
          LD="${LD-ld} -m elf_x86_64"
 
6037
          ;;
 
6038
        ppc*-*linux*|powerpc*-*linux*)
 
6039
          LD="${LD-ld} -m elf64ppc"
 
6040
          ;;
 
6041
        s390*-*linux*)
 
6042
          LD="${LD-ld} -m elf64_s390"
 
6043
          ;;
 
6044
        sparc*-*linux*)
 
6045
          LD="${LD-ld} -m elf64_sparc"
 
6046
          ;;
 
6047
      esac
 
6048
      ;;
 
6049
    esac
 
6050
  fi
 
6051
  rm -rf conftest*
 
6052
  ;;
 
6053
 
 
6054
*-*-sco3.2v5*)
 
6055
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6056
  SAVE_CFLAGS="$CFLAGS"
 
6057
  CFLAGS="$CFLAGS -belf"
 
6058
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6059
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6060
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6061
  $as_echo_n "(cached) " >&6
 
6062
else
 
6063
  ac_ext=c
 
6064
ac_cpp='$CPP $CPPFLAGS'
 
6065
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6066
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6067
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6068
 
 
6069
     cat >conftest.$ac_ext <<_ACEOF
 
6070
/* confdefs.h.  */
 
6071
_ACEOF
 
6072
cat confdefs.h >>conftest.$ac_ext
 
6073
cat >>conftest.$ac_ext <<_ACEOF
 
6074
/* end confdefs.h.  */
 
6075
 
 
6076
int
 
6077
main ()
 
6078
{
 
6079
 
 
6080
  ;
 
6081
  return 0;
 
6082
}
 
6083
_ACEOF
 
6084
rm -f conftest.$ac_objext conftest$ac_exeext
 
6085
if { (ac_try="$ac_link"
 
6086
case "(($ac_try" in
 
6087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6088
  *) ac_try_echo=$ac_try;;
 
6089
esac
 
6090
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6091
$as_echo "$ac_try_echo") >&5
 
6092
  (eval "$ac_link") 2>conftest.er1
 
6093
  ac_status=$?
 
6094
  grep -v '^ *+' conftest.er1 >conftest.err
 
6095
  rm -f conftest.er1
 
6096
  cat conftest.err >&5
 
6097
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6098
  (exit $ac_status); } && {
 
6099
         test -z "$ac_c_werror_flag" ||
 
6100
         test ! -s conftest.err
 
6101
       } && test -s conftest$ac_exeext && {
 
6102
         test "$cross_compiling" = yes ||
 
6103
         $as_test_x conftest$ac_exeext
 
6104
       }; then
 
6105
  lt_cv_cc_needs_belf=yes
 
6106
else
 
6107
  $as_echo "$as_me: failed program was:" >&5
 
6108
sed 's/^/| /' conftest.$ac_ext >&5
 
6109
 
 
6110
        lt_cv_cc_needs_belf=no
 
6111
fi
 
6112
 
 
6113
rm -rf conftest.dSYM
 
6114
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6115
      conftest$ac_exeext conftest.$ac_ext
 
6116
     ac_ext=c
 
6117
ac_cpp='$CPP $CPPFLAGS'
 
6118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6121
 
 
6122
fi
 
6123
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6124
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6125
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6126
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6127
    CFLAGS="$SAVE_CFLAGS"
 
6128
  fi
 
6129
  ;;
 
6130
sparc*-*solaris*)
 
6131
  # Find out which ABI we are using.
 
6132
  echo 'int i;' > conftest.$ac_ext
 
6133
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6134
  (eval $ac_compile) 2>&5
 
6135
  ac_status=$?
 
6136
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6137
  (exit $ac_status); }; then
 
6138
    case `/usr/bin/file conftest.o` in
 
6139
    *64-bit*)
 
6140
      case $lt_cv_prog_gnu_ld in
 
6141
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6142
      *)
 
6143
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6144
          LD="${LD-ld} -64"
 
6145
        fi
 
6146
        ;;
 
6147
      esac
 
6148
      ;;
 
6149
    esac
 
6150
  fi
 
6151
  rm -rf conftest*
 
6152
  ;;
 
6153
 
5377
6154
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5378
6155
  if test -n "$ac_tool_prefix"; then
 
6156
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6157
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6158
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6159
$as_echo_n "checking for $ac_word... " >&6; }
 
6160
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
6161
  $as_echo_n "(cached) " >&6
 
6162
else
 
6163
  if test -n "$DLLTOOL"; then
 
6164
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6165
else
 
6166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6167
for as_dir in $PATH
 
6168
do
 
6169
  IFS=$as_save_IFS
 
6170
  test -z "$as_dir" && as_dir=.
 
6171
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6172
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6173
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6174
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6175
    break 2
 
6176
  fi
 
6177
done
 
6178
done
 
6179
IFS=$as_save_IFS
 
6180
 
 
6181
fi
 
6182
fi
 
6183
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6184
if test -n "$DLLTOOL"; then
 
6185
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
6186
$as_echo "$DLLTOOL" >&6; }
 
6187
else
 
6188
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6189
$as_echo "no" >&6; }
 
6190
fi
 
6191
 
 
6192
 
 
6193
fi
 
6194
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6195
  ac_ct_DLLTOOL=$DLLTOOL
 
6196
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6197
set dummy dlltool; ac_word=$2
 
6198
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6199
$as_echo_n "checking for $ac_word... " >&6; }
 
6200
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
6201
  $as_echo_n "(cached) " >&6
 
6202
else
 
6203
  if test -n "$ac_ct_DLLTOOL"; then
 
6204
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6205
else
 
6206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6207
for as_dir in $PATH
 
6208
do
 
6209
  IFS=$as_save_IFS
 
6210
  test -z "$as_dir" && as_dir=.
 
6211
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6213
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6214
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6215
    break 2
 
6216
  fi
 
6217
done
 
6218
done
 
6219
IFS=$as_save_IFS
 
6220
 
 
6221
fi
 
6222
fi
 
6223
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6224
if test -n "$ac_ct_DLLTOOL"; then
 
6225
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
6226
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6227
else
 
6228
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6229
$as_echo "no" >&6; }
 
6230
fi
 
6231
 
 
6232
  if test "x$ac_ct_DLLTOOL" = x; then
 
6233
    DLLTOOL="false"
 
6234
  else
 
6235
    case $cross_compiling:$ac_tool_warned in
 
6236
yes:)
 
6237
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6238
whose name does not start with the host triplet.  If you think this
 
6239
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6240
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6241
whose name does not start with the host triplet.  If you think this
 
6242
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6243
ac_tool_warned=yes ;;
 
6244
esac
 
6245
    DLLTOOL=$ac_ct_DLLTOOL
 
6246
  fi
 
6247
else
 
6248
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6249
fi
 
6250
 
 
6251
  if test -n "$ac_tool_prefix"; then
5379
6252
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5380
6253
set dummy ${ac_tool_prefix}as; ac_word=$2
5381
6254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5472
6345
fi
5473
6346
 
5474
6347
  if test -n "$ac_tool_prefix"; then
5475
 
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5476
 
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5477
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5478
 
$as_echo_n "checking for $ac_word... " >&6; }
5479
 
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5480
 
  $as_echo_n "(cached) " >&6
5481
 
else
5482
 
  if test -n "$DLLTOOL"; then
5483
 
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5484
 
else
5485
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486
 
for as_dir in $PATH
5487
 
do
5488
 
  IFS=$as_save_IFS
5489
 
  test -z "$as_dir" && as_dir=.
5490
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5491
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492
 
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5493
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494
 
    break 2
5495
 
  fi
5496
 
done
5497
 
done
5498
 
IFS=$as_save_IFS
5499
 
 
5500
 
fi
5501
 
fi
5502
 
DLLTOOL=$ac_cv_prog_DLLTOOL
5503
 
if test -n "$DLLTOOL"; then
5504
 
  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5505
 
$as_echo "$DLLTOOL" >&6; }
5506
 
else
5507
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5508
 
$as_echo "no" >&6; }
5509
 
fi
5510
 
 
5511
 
 
5512
 
fi
5513
 
if test -z "$ac_cv_prog_DLLTOOL"; then
5514
 
  ac_ct_DLLTOOL=$DLLTOOL
5515
 
  # Extract the first word of "dlltool", so it can be a program name with args.
5516
 
set dummy dlltool; ac_word=$2
5517
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5518
 
$as_echo_n "checking for $ac_word... " >&6; }
5519
 
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5520
 
  $as_echo_n "(cached) " >&6
5521
 
else
5522
 
  if test -n "$ac_ct_DLLTOOL"; then
5523
 
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5524
 
else
5525
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526
 
for as_dir in $PATH
5527
 
do
5528
 
  IFS=$as_save_IFS
5529
 
  test -z "$as_dir" && as_dir=.
5530
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5531
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532
 
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5533
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534
 
    break 2
5535
 
  fi
5536
 
done
5537
 
done
5538
 
IFS=$as_save_IFS
5539
 
 
5540
 
fi
5541
 
fi
5542
 
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5543
 
if test -n "$ac_ct_DLLTOOL"; then
5544
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5545
 
$as_echo "$ac_ct_DLLTOOL" >&6; }
5546
 
else
5547
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5548
 
$as_echo "no" >&6; }
5549
 
fi
5550
 
 
5551
 
  if test "x$ac_ct_DLLTOOL" = x; then
5552
 
    DLLTOOL="false"
5553
 
  else
5554
 
    case $cross_compiling:$ac_tool_warned in
5555
 
yes:)
5556
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5557
 
whose name does not start with the host triplet.  If you think this
5558
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5559
 
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5560
 
whose name does not start with the host triplet.  If you think this
5561
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5562
 
ac_tool_warned=yes ;;
5563
 
esac
5564
 
    DLLTOOL=$ac_ct_DLLTOOL
5565
 
  fi
5566
 
else
5567
 
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5568
 
fi
5569
 
 
5570
 
  if test -n "$ac_tool_prefix"; then
5571
6348
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5572
6349
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5573
6350
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5664
6441
fi
5665
6442
 
5666
6443
  ;;
5667
 
esac
5668
 
 
5669
 
test -z "$AS" && AS=as
5670
 
 
5671
 
 
5672
 
 
5673
 
 
5674
 
 
5675
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
5676
 
 
5677
 
 
5678
 
 
5679
 
 
5680
 
 
5681
 
test -z "$OBJDUMP" && OBJDUMP=objdump
5682
 
 
5683
 
 
5684
 
 
5685
 
 
5686
 
 
5687
 
 
5688
 
 
5689
 
case `pwd` in
5690
 
  *\ * | *\     *)
5691
 
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5692
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5693
 
esac
5694
 
 
5695
 
 
5696
 
 
5697
 
macro_version='2.2.2'
5698
 
macro_revision='1.2627'
5699
 
 
5700
 
 
5701
 
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
 
 
5712
 
ltmain="$ac_aux_dir/ltmain.sh"
5713
 
 
5714
 
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5715
 
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5716
 
if test "${ac_cv_path_SED+set}" = set; then
5717
 
  $as_echo_n "(cached) " >&6
5718
 
else
5719
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5720
 
     for ac_i in 1 2 3 4 5 6 7; do
5721
 
       ac_script="$ac_script$as_nl$ac_script"
5722
 
     done
5723
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5724
 
     $as_unset ac_script || ac_script=
5725
 
     if test -z "$SED"; then
5726
 
  ac_path_SED_found=false
5727
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5728
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729
 
for as_dir in $PATH
5730
 
do
5731
 
  IFS=$as_save_IFS
5732
 
  test -z "$as_dir" && as_dir=.
5733
 
  for ac_prog in sed gsed; do
5734
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5735
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5736
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5737
 
# Check for GNU ac_path_SED and select it if it is found.
5738
 
  # Check for GNU $ac_path_SED
5739
 
case `"$ac_path_SED" --version 2>&1` in
5740
 
*GNU*)
5741
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5742
 
*)
5743
 
  ac_count=0
5744
 
  $as_echo_n 0123456789 >"conftest.in"
5745
 
  while :
5746
 
  do
5747
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5748
 
    mv "conftest.tmp" "conftest.in"
5749
 
    cp "conftest.in" "conftest.nl"
5750
 
    $as_echo '' >> "conftest.nl"
5751
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5752
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5753
 
    ac_count=`expr $ac_count + 1`
5754
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
5755
 
      # Best one so far, save it but keep looking for a better one
5756
 
      ac_cv_path_SED="$ac_path_SED"
5757
 
      ac_path_SED_max=$ac_count
5758
 
    fi
5759
 
    # 10*(2^10) chars as input seems more than enough
5760
 
    test $ac_count -gt 10 && break
5761
 
  done
5762
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5763
 
esac
5764
 
 
5765
 
      $ac_path_SED_found && break 3
5766
 
    done
5767
 
  done
5768
 
done
5769
 
IFS=$as_save_IFS
5770
 
  if test -z "$ac_cv_path_SED"; then
5771
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5772
 
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5773
 
   { (exit 1); exit 1; }; }
5774
 
  fi
5775
 
else
5776
 
  ac_cv_path_SED=$SED
5777
 
fi
5778
 
 
5779
 
fi
5780
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5781
 
$as_echo "$ac_cv_path_SED" >&6; }
5782
 
 SED="$ac_cv_path_SED"
5783
 
  rm -f conftest.sed
5784
 
 
5785
 
test -z "$SED" && SED=sed
5786
 
Xsed="$SED -e 1s/^X//"
5787
 
 
5788
 
 
5789
 
 
5790
 
 
5791
 
 
5792
 
 
5793
 
 
5794
 
 
5795
 
 
5796
 
 
5797
 
 
5798
 
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5799
 
$as_echo_n "checking for fgrep... " >&6; }
5800
 
if test "${ac_cv_path_FGREP+set}" = set; then
5801
 
  $as_echo_n "(cached) " >&6
5802
 
else
5803
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5804
 
   then ac_cv_path_FGREP="$GREP -F"
5805
 
   else
5806
 
     if test -z "$FGREP"; then
5807
 
  ac_path_FGREP_found=false
5808
 
  # Loop through the user's path and test for each of PROGNAME-LIST
5809
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5811
 
do
5812
 
  IFS=$as_save_IFS
5813
 
  test -z "$as_dir" && as_dir=.
5814
 
  for ac_prog in fgrep; do
5815
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5816
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5817
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5818
 
# Check for GNU ac_path_FGREP and select it if it is found.
5819
 
  # Check for GNU $ac_path_FGREP
5820
 
case `"$ac_path_FGREP" --version 2>&1` in
5821
 
*GNU*)
5822
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5823
 
*)
5824
 
  ac_count=0
5825
 
  $as_echo_n 0123456789 >"conftest.in"
5826
 
  while :
5827
 
  do
5828
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
5829
 
    mv "conftest.tmp" "conftest.in"
5830
 
    cp "conftest.in" "conftest.nl"
5831
 
    $as_echo 'FGREP' >> "conftest.nl"
5832
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5833
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5834
 
    ac_count=`expr $ac_count + 1`
5835
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5836
 
      # Best one so far, save it but keep looking for a better one
5837
 
      ac_cv_path_FGREP="$ac_path_FGREP"
5838
 
      ac_path_FGREP_max=$ac_count
5839
 
    fi
5840
 
    # 10*(2^10) chars as input seems more than enough
5841
 
    test $ac_count -gt 10 && break
5842
 
  done
5843
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5844
 
esac
5845
 
 
5846
 
      $ac_path_FGREP_found && break 3
5847
 
    done
5848
 
  done
5849
 
done
5850
 
IFS=$as_save_IFS
5851
 
  if test -z "$ac_cv_path_FGREP"; then
5852
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5853
 
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5854
 
   { (exit 1); exit 1; }; }
5855
 
  fi
5856
 
else
5857
 
  ac_cv_path_FGREP=$FGREP
5858
 
fi
5859
 
 
5860
 
   fi
5861
 
fi
5862
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5863
 
$as_echo "$ac_cv_path_FGREP" >&6; }
5864
 
 FGREP="$ac_cv_path_FGREP"
5865
 
 
5866
 
 
5867
 
test -z "$GREP" && GREP=grep
5868
 
 
5869
 
 
5870
 
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
 
 
5883
 
 
5884
 
 
5885
 
 
5886
 
 
5887
 
# Check whether --with-gnu-ld was given.
5888
 
if test "${with_gnu_ld+set}" = set; then
5889
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5890
 
else
5891
 
  with_gnu_ld=no
5892
 
fi
5893
 
 
5894
 
ac_prog=ld
5895
 
if test "$GCC" = yes; then
5896
 
  # Check if gcc -print-prog-name=ld gives a path.
5897
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5898
 
$as_echo_n "checking for ld used by $CC... " >&6; }
5899
 
  case $host in
5900
 
  *-*-mingw*)
5901
 
    # gcc leaves a trailing carriage return which upsets mingw
5902
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5903
 
  *)
5904
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5905
 
  esac
5906
 
  case $ac_prog in
5907
 
    # Accept absolute paths.
5908
 
    [\\/]* | ?:[\\/]*)
5909
 
      re_direlt='/[^/][^/]*/\.\./'
5910
 
      # Canonicalize the pathname of ld
5911
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5912
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5913
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5914
 
      done
5915
 
      test -z "$LD" && LD="$ac_prog"
 
6444
 
 
6445
esac
 
6446
 
 
6447
need_locks="$enable_libtool_lock"
 
6448
 
 
6449
 
 
6450
 
 
6451
for ac_header in dlfcn.h
 
6452
do
 
6453
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6454
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6455
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6456
$as_echo_n "checking for $ac_header... " >&6; }
 
6457
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6458
  $as_echo_n "(cached) " >&6
 
6459
fi
 
6460
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6461
                 $as_echo "$as_val"'`
 
6462
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6463
$as_echo "$ac_res" >&6; }
 
6464
else
 
6465
  # Is the header compilable?
 
6466
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6467
$as_echo_n "checking $ac_header usability... " >&6; }
 
6468
cat >conftest.$ac_ext <<_ACEOF
 
6469
/* confdefs.h.  */
 
6470
_ACEOF
 
6471
cat confdefs.h >>conftest.$ac_ext
 
6472
cat >>conftest.$ac_ext <<_ACEOF
 
6473
/* end confdefs.h.  */
 
6474
$ac_includes_default
 
6475
#include <$ac_header>
 
6476
_ACEOF
 
6477
rm -f conftest.$ac_objext
 
6478
if { (ac_try="$ac_compile"
 
6479
case "(($ac_try" in
 
6480
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6481
  *) ac_try_echo=$ac_try;;
 
6482
esac
 
6483
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6484
$as_echo "$ac_try_echo") >&5
 
6485
  (eval "$ac_compile") 2>conftest.er1
 
6486
  ac_status=$?
 
6487
  grep -v '^ *+' conftest.er1 >conftest.err
 
6488
  rm -f conftest.er1
 
6489
  cat conftest.err >&5
 
6490
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6491
  (exit $ac_status); } && {
 
6492
         test -z "$ac_c_werror_flag" ||
 
6493
         test ! -s conftest.err
 
6494
       } && test -s conftest.$ac_objext; then
 
6495
  ac_header_compiler=yes
 
6496
else
 
6497
  $as_echo "$as_me: failed program was:" >&5
 
6498
sed 's/^/| /' conftest.$ac_ext >&5
 
6499
 
 
6500
        ac_header_compiler=no
 
6501
fi
 
6502
 
 
6503
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6504
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6505
$as_echo "$ac_header_compiler" >&6; }
 
6506
 
 
6507
# Is the header present?
 
6508
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6509
$as_echo_n "checking $ac_header presence... " >&6; }
 
6510
cat >conftest.$ac_ext <<_ACEOF
 
6511
/* confdefs.h.  */
 
6512
_ACEOF
 
6513
cat confdefs.h >>conftest.$ac_ext
 
6514
cat >>conftest.$ac_ext <<_ACEOF
 
6515
/* end confdefs.h.  */
 
6516
#include <$ac_header>
 
6517
_ACEOF
 
6518
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6519
case "(($ac_try" in
 
6520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6521
  *) ac_try_echo=$ac_try;;
 
6522
esac
 
6523
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6524
$as_echo "$ac_try_echo") >&5
 
6525
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6526
  ac_status=$?
 
6527
  grep -v '^ *+' conftest.er1 >conftest.err
 
6528
  rm -f conftest.er1
 
6529
  cat conftest.err >&5
 
6530
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6531
  (exit $ac_status); } >/dev/null && {
 
6532
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6533
         test ! -s conftest.err
 
6534
       }; then
 
6535
  ac_header_preproc=yes
 
6536
else
 
6537
  $as_echo "$as_me: failed program was:" >&5
 
6538
sed 's/^/| /' conftest.$ac_ext >&5
 
6539
 
 
6540
  ac_header_preproc=no
 
6541
fi
 
6542
 
 
6543
rm -f conftest.err conftest.$ac_ext
 
6544
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6545
$as_echo "$ac_header_preproc" >&6; }
 
6546
 
 
6547
# So?  What about this header?
 
6548
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6549
  yes:no: )
 
6550
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6551
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6552
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6553
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6554
    ac_header_preproc=yes
 
6555
    ;;
 
6556
  no:yes:* )
 
6557
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6558
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6559
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6560
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6561
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6562
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6563
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6564
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6565
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6566
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6567
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6568
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6569
    ( cat <<\_ASBOX
 
6570
## --------------------------------- ##
 
6571
## Report this to bug-gnutls@gnu.org ##
 
6572
## --------------------------------- ##
 
6573
_ASBOX
 
6574
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6575
    ;;
 
6576
esac
 
6577
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6578
$as_echo_n "checking for $ac_header... " >&6; }
 
6579
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6580
  $as_echo_n "(cached) " >&6
 
6581
else
 
6582
  eval "$as_ac_Header=\$ac_header_preproc"
 
6583
fi
 
6584
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6585
                 $as_echo "$as_val"'`
 
6586
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6587
$as_echo "$ac_res" >&6; }
 
6588
 
 
6589
fi
 
6590
if test `eval 'as_val=${'$as_ac_Header'}
 
6591
                 $as_echo "$as_val"'` = yes; then
 
6592
  cat >>confdefs.h <<_ACEOF
 
6593
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6594
_ACEOF
 
6595
 
 
6596
fi
 
6597
 
 
6598
done
 
6599
 
 
6600
ac_ext=cpp
 
6601
ac_cpp='$CXXCPP $CPPFLAGS'
 
6602
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6603
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6604
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6605
if test -z "$CXX"; then
 
6606
  if test -n "$CCC"; then
 
6607
    CXX=$CCC
 
6608
  else
 
6609
    if test -n "$ac_tool_prefix"; then
 
6610
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6611
  do
 
6612
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6613
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6614
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6615
$as_echo_n "checking for $ac_word... " >&6; }
 
6616
if test "${ac_cv_prog_CXX+set}" = set; then
 
6617
  $as_echo_n "(cached) " >&6
 
6618
else
 
6619
  if test -n "$CXX"; then
 
6620
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6621
else
 
6622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6623
for as_dir in $PATH
 
6624
do
 
6625
  IFS=$as_save_IFS
 
6626
  test -z "$as_dir" && as_dir=.
 
6627
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6628
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6629
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6630
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6631
    break 2
 
6632
  fi
 
6633
done
 
6634
done
 
6635
IFS=$as_save_IFS
 
6636
 
 
6637
fi
 
6638
fi
 
6639
CXX=$ac_cv_prog_CXX
 
6640
if test -n "$CXX"; then
 
6641
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
6642
$as_echo "$CXX" >&6; }
 
6643
else
 
6644
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6645
$as_echo "no" >&6; }
 
6646
fi
 
6647
 
 
6648
 
 
6649
    test -n "$CXX" && break
 
6650
  done
 
6651
fi
 
6652
if test -z "$CXX"; then
 
6653
  ac_ct_CXX=$CXX
 
6654
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
6655
do
 
6656
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6657
set dummy $ac_prog; ac_word=$2
 
6658
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6659
$as_echo_n "checking for $ac_word... " >&6; }
 
6660
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
6661
  $as_echo_n "(cached) " >&6
 
6662
else
 
6663
  if test -n "$ac_ct_CXX"; then
 
6664
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6665
else
 
6666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6667
for as_dir in $PATH
 
6668
do
 
6669
  IFS=$as_save_IFS
 
6670
  test -z "$as_dir" && as_dir=.
 
6671
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6672
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6673
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6674
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6675
    break 2
 
6676
  fi
 
6677
done
 
6678
done
 
6679
IFS=$as_save_IFS
 
6680
 
 
6681
fi
 
6682
fi
 
6683
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6684
if test -n "$ac_ct_CXX"; then
 
6685
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
6686
$as_echo "$ac_ct_CXX" >&6; }
 
6687
else
 
6688
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6689
$as_echo "no" >&6; }
 
6690
fi
 
6691
 
 
6692
 
 
6693
  test -n "$ac_ct_CXX" && break
 
6694
done
 
6695
 
 
6696
  if test "x$ac_ct_CXX" = x; then
 
6697
    CXX="g++"
 
6698
  else
 
6699
    case $cross_compiling:$ac_tool_warned in
 
6700
yes:)
 
6701
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6702
whose name does not start with the host triplet.  If you think this
 
6703
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6704
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6705
whose name does not start with the host triplet.  If you think this
 
6706
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6707
ac_tool_warned=yes ;;
 
6708
esac
 
6709
    CXX=$ac_ct_CXX
 
6710
  fi
 
6711
fi
 
6712
 
 
6713
  fi
 
6714
fi
 
6715
# Provide some information about the compiler.
 
6716
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
6717
set X $ac_compile
 
6718
ac_compiler=$2
 
6719
{ (ac_try="$ac_compiler --version >&5"
 
6720
case "(($ac_try" in
 
6721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6722
  *) ac_try_echo=$ac_try;;
 
6723
esac
 
6724
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6725
$as_echo "$ac_try_echo") >&5
 
6726
  (eval "$ac_compiler --version >&5") 2>&5
 
6727
  ac_status=$?
 
6728
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6729
  (exit $ac_status); }
 
6730
{ (ac_try="$ac_compiler -v >&5"
 
6731
case "(($ac_try" in
 
6732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6733
  *) ac_try_echo=$ac_try;;
 
6734
esac
 
6735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6736
$as_echo "$ac_try_echo") >&5
 
6737
  (eval "$ac_compiler -v >&5") 2>&5
 
6738
  ac_status=$?
 
6739
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6740
  (exit $ac_status); }
 
6741
{ (ac_try="$ac_compiler -V >&5"
 
6742
case "(($ac_try" in
 
6743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6744
  *) ac_try_echo=$ac_try;;
 
6745
esac
 
6746
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6747
$as_echo "$ac_try_echo") >&5
 
6748
  (eval "$ac_compiler -V >&5") 2>&5
 
6749
  ac_status=$?
 
6750
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6751
  (exit $ac_status); }
 
6752
 
 
6753
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
6754
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
6755
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
6756
  $as_echo_n "(cached) " >&6
 
6757
else
 
6758
  cat >conftest.$ac_ext <<_ACEOF
 
6759
/* confdefs.h.  */
 
6760
_ACEOF
 
6761
cat confdefs.h >>conftest.$ac_ext
 
6762
cat >>conftest.$ac_ext <<_ACEOF
 
6763
/* end confdefs.h.  */
 
6764
 
 
6765
int
 
6766
main ()
 
6767
{
 
6768
#ifndef __GNUC__
 
6769
       choke me
 
6770
#endif
 
6771
 
 
6772
  ;
 
6773
  return 0;
 
6774
}
 
6775
_ACEOF
 
6776
rm -f conftest.$ac_objext
 
6777
if { (ac_try="$ac_compile"
 
6778
case "(($ac_try" in
 
6779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6780
  *) ac_try_echo=$ac_try;;
 
6781
esac
 
6782
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6783
$as_echo "$ac_try_echo") >&5
 
6784
  (eval "$ac_compile") 2>conftest.er1
 
6785
  ac_status=$?
 
6786
  grep -v '^ *+' conftest.er1 >conftest.err
 
6787
  rm -f conftest.er1
 
6788
  cat conftest.err >&5
 
6789
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6790
  (exit $ac_status); } && {
 
6791
         test -z "$ac_cxx_werror_flag" ||
 
6792
         test ! -s conftest.err
 
6793
       } && test -s conftest.$ac_objext; then
 
6794
  ac_compiler_gnu=yes
 
6795
else
 
6796
  $as_echo "$as_me: failed program was:" >&5
 
6797
sed 's/^/| /' conftest.$ac_ext >&5
 
6798
 
 
6799
        ac_compiler_gnu=no
 
6800
fi
 
6801
 
 
6802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6803
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6804
 
 
6805
fi
 
6806
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
6807
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
6808
if test $ac_compiler_gnu = yes; then
 
6809
  GXX=yes
 
6810
else
 
6811
  GXX=
 
6812
fi
 
6813
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6814
ac_save_CXXFLAGS=$CXXFLAGS
 
6815
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
6816
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
6817
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
6818
  $as_echo_n "(cached) " >&6
 
6819
else
 
6820
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
6821
   ac_cxx_werror_flag=yes
 
6822
   ac_cv_prog_cxx_g=no
 
6823
   CXXFLAGS="-g"
 
6824
   cat >conftest.$ac_ext <<_ACEOF
 
6825
/* confdefs.h.  */
 
6826
_ACEOF
 
6827
cat confdefs.h >>conftest.$ac_ext
 
6828
cat >>conftest.$ac_ext <<_ACEOF
 
6829
/* end confdefs.h.  */
 
6830
 
 
6831
int
 
6832
main ()
 
6833
{
 
6834
 
 
6835
  ;
 
6836
  return 0;
 
6837
}
 
6838
_ACEOF
 
6839
rm -f conftest.$ac_objext
 
6840
if { (ac_try="$ac_compile"
 
6841
case "(($ac_try" in
 
6842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6843
  *) ac_try_echo=$ac_try;;
 
6844
esac
 
6845
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6846
$as_echo "$ac_try_echo") >&5
 
6847
  (eval "$ac_compile") 2>conftest.er1
 
6848
  ac_status=$?
 
6849
  grep -v '^ *+' conftest.er1 >conftest.err
 
6850
  rm -f conftest.er1
 
6851
  cat conftest.err >&5
 
6852
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6853
  (exit $ac_status); } && {
 
6854
         test -z "$ac_cxx_werror_flag" ||
 
6855
         test ! -s conftest.err
 
6856
       } && test -s conftest.$ac_objext; then
 
6857
  ac_cv_prog_cxx_g=yes
 
6858
else
 
6859
  $as_echo "$as_me: failed program was:" >&5
 
6860
sed 's/^/| /' conftest.$ac_ext >&5
 
6861
 
 
6862
        CXXFLAGS=""
 
6863
      cat >conftest.$ac_ext <<_ACEOF
 
6864
/* confdefs.h.  */
 
6865
_ACEOF
 
6866
cat confdefs.h >>conftest.$ac_ext
 
6867
cat >>conftest.$ac_ext <<_ACEOF
 
6868
/* end confdefs.h.  */
 
6869
 
 
6870
int
 
6871
main ()
 
6872
{
 
6873
 
 
6874
  ;
 
6875
  return 0;
 
6876
}
 
6877
_ACEOF
 
6878
rm -f conftest.$ac_objext
 
6879
if { (ac_try="$ac_compile"
 
6880
case "(($ac_try" in
 
6881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6882
  *) ac_try_echo=$ac_try;;
 
6883
esac
 
6884
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6885
$as_echo "$ac_try_echo") >&5
 
6886
  (eval "$ac_compile") 2>conftest.er1
 
6887
  ac_status=$?
 
6888
  grep -v '^ *+' conftest.er1 >conftest.err
 
6889
  rm -f conftest.er1
 
6890
  cat conftest.err >&5
 
6891
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6892
  (exit $ac_status); } && {
 
6893
         test -z "$ac_cxx_werror_flag" ||
 
6894
         test ! -s conftest.err
 
6895
       } && test -s conftest.$ac_objext; then
 
6896
  :
 
6897
else
 
6898
  $as_echo "$as_me: failed program was:" >&5
 
6899
sed 's/^/| /' conftest.$ac_ext >&5
 
6900
 
 
6901
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6902
         CXXFLAGS="-g"
 
6903
         cat >conftest.$ac_ext <<_ACEOF
 
6904
/* confdefs.h.  */
 
6905
_ACEOF
 
6906
cat confdefs.h >>conftest.$ac_ext
 
6907
cat >>conftest.$ac_ext <<_ACEOF
 
6908
/* end confdefs.h.  */
 
6909
 
 
6910
int
 
6911
main ()
 
6912
{
 
6913
 
 
6914
  ;
 
6915
  return 0;
 
6916
}
 
6917
_ACEOF
 
6918
rm -f conftest.$ac_objext
 
6919
if { (ac_try="$ac_compile"
 
6920
case "(($ac_try" in
 
6921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6922
  *) ac_try_echo=$ac_try;;
 
6923
esac
 
6924
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6925
$as_echo "$ac_try_echo") >&5
 
6926
  (eval "$ac_compile") 2>conftest.er1
 
6927
  ac_status=$?
 
6928
  grep -v '^ *+' conftest.er1 >conftest.err
 
6929
  rm -f conftest.er1
 
6930
  cat conftest.err >&5
 
6931
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6932
  (exit $ac_status); } && {
 
6933
         test -z "$ac_cxx_werror_flag" ||
 
6934
         test ! -s conftest.err
 
6935
       } && test -s conftest.$ac_objext; then
 
6936
  ac_cv_prog_cxx_g=yes
 
6937
else
 
6938
  $as_echo "$as_me: failed program was:" >&5
 
6939
sed 's/^/| /' conftest.$ac_ext >&5
 
6940
 
 
6941
 
 
6942
fi
 
6943
 
 
6944
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6945
fi
 
6946
 
 
6947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6948
fi
 
6949
 
 
6950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6951
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
6952
fi
 
6953
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6954
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
6955
if test "$ac_test_CXXFLAGS" = set; then
 
6956
  CXXFLAGS=$ac_save_CXXFLAGS
 
6957
elif test $ac_cv_prog_cxx_g = yes; then
 
6958
  if test "$GXX" = yes; then
 
6959
    CXXFLAGS="-g -O2"
 
6960
  else
 
6961
    CXXFLAGS="-g"
 
6962
  fi
 
6963
else
 
6964
  if test "$GXX" = yes; then
 
6965
    CXXFLAGS="-O2"
 
6966
  else
 
6967
    CXXFLAGS=
 
6968
  fi
 
6969
fi
 
6970
ac_ext=cpp
 
6971
ac_cpp='$CXXCPP $CPPFLAGS'
 
6972
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6973
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6974
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6975
 
 
6976
depcc="$CXX"  am_compiler_list=
 
6977
 
 
6978
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6979
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
6980
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6981
  $as_echo_n "(cached) " >&6
 
6982
else
 
6983
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6984
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6985
  # making bogus files that we don't know about and never remove.  For
 
6986
  # instance it was reported that on HP-UX the gcc test will end up
 
6987
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6988
  # in D'.
 
6989
  mkdir conftest.dir
 
6990
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6991
  # using a relative directory.
 
6992
  cp "$am_depcomp" conftest.dir
 
6993
  cd conftest.dir
 
6994
  # We will build objects and dependencies in a subdirectory because
 
6995
  # it helps to detect inapplicable dependency modes.  For instance
 
6996
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6997
  # side effect of compilation, but ICC will put the dependencies in
 
6998
  # the current directory while Tru64 will put them in the object
 
6999
  # directory.
 
7000
  mkdir sub
 
7001
 
 
7002
  am_cv_CXX_dependencies_compiler_type=none
 
7003
  if test "$am_compiler_list" = ""; then
 
7004
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7005
  fi
 
7006
  for depmode in $am_compiler_list; do
 
7007
    # Setup a source with many dependencies, because some compilers
 
7008
    # like to wrap large dependency lists on column 80 (with \), and
 
7009
    # we should not choose a depcomp mode which is confused by this.
 
7010
    #
 
7011
    # We need to recreate these files for each test, as the compiler may
 
7012
    # overwrite some of them when testing with obscure command lines.
 
7013
    # This happens at least with the AIX C compiler.
 
7014
    : > sub/conftest.c
 
7015
    for i in 1 2 3 4 5 6; do
 
7016
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7017
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7018
      # Solaris 8's {/usr,}/bin/sh.
 
7019
      touch sub/conftst$i.h
 
7020
    done
 
7021
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7022
 
 
7023
    case $depmode in
 
7024
    nosideeffect)
 
7025
      # after this tag, mechanisms are not by side-effect, so they'll
 
7026
      # only be used when explicitly requested
 
7027
      if test "x$enable_dependency_tracking" = xyes; then
 
7028
        continue
 
7029
      else
 
7030
        break
 
7031
      fi
5916
7032
      ;;
5917
 
  "")
5918
 
    # If it fails, then pretend we aren't using GCC.
5919
 
    ac_prog=ld
5920
 
    ;;
5921
 
  *)
5922
 
    # If it is relative, then search for the first ld in PATH.
5923
 
    with_gnu_ld=unknown
5924
 
    ;;
5925
 
  esac
5926
 
elif test "$with_gnu_ld" = yes; then
5927
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5928
 
$as_echo_n "checking for GNU ld... " >&6; }
5929
 
else
5930
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5931
 
$as_echo_n "checking for non-GNU ld... " >&6; }
5932
 
fi
5933
 
if test "${lt_cv_path_LD+set}" = set; then
5934
 
  $as_echo_n "(cached) " >&6
5935
 
else
5936
 
  if test -z "$LD"; then
5937
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5938
 
  for ac_dir in $PATH; do
5939
 
    IFS="$lt_save_ifs"
5940
 
    test -z "$ac_dir" && ac_dir=.
5941
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5942
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
5943
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5944
 
      # but apparently some variants of GNU ld only accept -v.
5945
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5946
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5947
 
      *GNU* | *'with BFD'*)
5948
 
        test "$with_gnu_ld" != no && break
5949
 
        ;;
5950
 
      *)
5951
 
        test "$with_gnu_ld" != yes && break
5952
 
        ;;
5953
 
      esac
 
7033
    none) break ;;
 
7034
    esac
 
7035
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7036
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7037
    # handle `-M -o', and we need to detect this.
 
7038
    if depmode=$depmode \
 
7039
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
7040
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7041
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
7042
         >/dev/null 2>conftest.err &&
 
7043
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
7044
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7045
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
7046
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7047
      # icc doesn't choke on unknown options, it will just issue warnings
 
7048
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7049
      # that says an option was ignored or not supported.
 
7050
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7051
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7052
      # The diagnosis changed in icc 8.0:
 
7053
      #   icc: Command line remark: option '-MP' not supported
 
7054
      if (grep 'ignoring option' conftest.err ||
 
7055
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7056
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7057
        break
 
7058
      fi
5954
7059
    fi
5955
7060
  done
5956
 
  IFS="$lt_save_ifs"
5957
 
else
5958
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5959
 
fi
5960
 
fi
5961
 
 
5962
 
LD="$lt_cv_path_LD"
5963
 
if test -n "$LD"; then
5964
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
5965
 
$as_echo "$LD" >&6; }
5966
 
else
5967
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5968
 
$as_echo "no" >&6; }
5969
 
fi
5970
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5971
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
7061
 
 
7062
  cd ..
 
7063
  rm -rf conftest.dir
 
7064
else
 
7065
  am_cv_CXX_dependencies_compiler_type=none
 
7066
fi
 
7067
 
 
7068
fi
 
7069
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7070
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
7071
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7072
 
 
7073
 if
 
7074
  test "x$enable_dependency_tracking" != xno \
 
7075
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7076
  am__fastdepCXX_TRUE=
 
7077
  am__fastdepCXX_FALSE='#'
 
7078
else
 
7079
  am__fastdepCXX_TRUE='#'
 
7080
  am__fastdepCXX_FALSE=
 
7081
fi
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
7087
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
7088
    (test "X$CXX" != "Xg++"))) ; then
 
7089
  ac_ext=cpp
 
7090
ac_cpp='$CXXCPP $CPPFLAGS'
 
7091
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7092
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7093
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7094
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
7095
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
7096
if test -z "$CXXCPP"; then
 
7097
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
7098
  $as_echo_n "(cached) " >&6
 
7099
else
 
7100
      # Double quotes because CXXCPP needs to be expanded
 
7101
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7102
    do
 
7103
      ac_preproc_ok=false
 
7104
for ac_cxx_preproc_warn_flag in '' yes
 
7105
do
 
7106
  # Use a header file that comes with gcc, so configuring glibc
 
7107
  # with a fresh cross-compiler works.
 
7108
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7109
  # <limits.h> exists even on freestanding compilers.
 
7110
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7111
  # not just through cpp. "Syntax error" is here to catch this case.
 
7112
  cat >conftest.$ac_ext <<_ACEOF
 
7113
/* confdefs.h.  */
 
7114
_ACEOF
 
7115
cat confdefs.h >>conftest.$ac_ext
 
7116
cat >>conftest.$ac_ext <<_ACEOF
 
7117
/* end confdefs.h.  */
 
7118
#ifdef __STDC__
 
7119
# include <limits.h>
 
7120
#else
 
7121
# include <assert.h>
 
7122
#endif
 
7123
                     Syntax error
 
7124
_ACEOF
 
7125
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7126
case "(($ac_try" in
 
7127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7128
  *) ac_try_echo=$ac_try;;
 
7129
esac
 
7130
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7131
$as_echo "$ac_try_echo") >&5
 
7132
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7133
  ac_status=$?
 
7134
  grep -v '^ *+' conftest.er1 >conftest.err
 
7135
  rm -f conftest.er1
 
7136
  cat conftest.err >&5
 
7137
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7138
  (exit $ac_status); } >/dev/null && {
 
7139
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7140
         test ! -s conftest.err
 
7141
       }; then
 
7142
  :
 
7143
else
 
7144
  $as_echo "$as_me: failed program was:" >&5
 
7145
sed 's/^/| /' conftest.$ac_ext >&5
 
7146
 
 
7147
  # Broken: fails on valid input.
 
7148
continue
 
7149
fi
 
7150
 
 
7151
rm -f conftest.err conftest.$ac_ext
 
7152
 
 
7153
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7154
  # can be detected and how.
 
7155
  cat >conftest.$ac_ext <<_ACEOF
 
7156
/* confdefs.h.  */
 
7157
_ACEOF
 
7158
cat confdefs.h >>conftest.$ac_ext
 
7159
cat >>conftest.$ac_ext <<_ACEOF
 
7160
/* end confdefs.h.  */
 
7161
#include <ac_nonexistent.h>
 
7162
_ACEOF
 
7163
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7164
case "(($ac_try" in
 
7165
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7166
  *) ac_try_echo=$ac_try;;
 
7167
esac
 
7168
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7169
$as_echo "$ac_try_echo") >&5
 
7170
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7171
  ac_status=$?
 
7172
  grep -v '^ *+' conftest.er1 >conftest.err
 
7173
  rm -f conftest.er1
 
7174
  cat conftest.err >&5
 
7175
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7176
  (exit $ac_status); } >/dev/null && {
 
7177
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7178
         test ! -s conftest.err
 
7179
       }; then
 
7180
  # Broken: success on invalid input.
 
7181
continue
 
7182
else
 
7183
  $as_echo "$as_me: failed program was:" >&5
 
7184
sed 's/^/| /' conftest.$ac_ext >&5
 
7185
 
 
7186
  # Passes both tests.
 
7187
ac_preproc_ok=:
 
7188
break
 
7189
fi
 
7190
 
 
7191
rm -f conftest.err conftest.$ac_ext
 
7192
 
 
7193
done
 
7194
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7195
rm -f conftest.err conftest.$ac_ext
 
7196
if $ac_preproc_ok; then
 
7197
  break
 
7198
fi
 
7199
 
 
7200
    done
 
7201
    ac_cv_prog_CXXCPP=$CXXCPP
 
7202
 
 
7203
fi
 
7204
  CXXCPP=$ac_cv_prog_CXXCPP
 
7205
else
 
7206
  ac_cv_prog_CXXCPP=$CXXCPP
 
7207
fi
 
7208
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
7209
$as_echo "$CXXCPP" >&6; }
 
7210
ac_preproc_ok=false
 
7211
for ac_cxx_preproc_warn_flag in '' yes
 
7212
do
 
7213
  # Use a header file that comes with gcc, so configuring glibc
 
7214
  # with a fresh cross-compiler works.
 
7215
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7216
  # <limits.h> exists even on freestanding compilers.
 
7217
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7218
  # not just through cpp. "Syntax error" is here to catch this case.
 
7219
  cat >conftest.$ac_ext <<_ACEOF
 
7220
/* confdefs.h.  */
 
7221
_ACEOF
 
7222
cat confdefs.h >>conftest.$ac_ext
 
7223
cat >>conftest.$ac_ext <<_ACEOF
 
7224
/* end confdefs.h.  */
 
7225
#ifdef __STDC__
 
7226
# include <limits.h>
 
7227
#else
 
7228
# include <assert.h>
 
7229
#endif
 
7230
                     Syntax error
 
7231
_ACEOF
 
7232
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7233
case "(($ac_try" in
 
7234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7235
  *) ac_try_echo=$ac_try;;
 
7236
esac
 
7237
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7238
$as_echo "$ac_try_echo") >&5
 
7239
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7240
  ac_status=$?
 
7241
  grep -v '^ *+' conftest.er1 >conftest.err
 
7242
  rm -f conftest.er1
 
7243
  cat conftest.err >&5
 
7244
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7245
  (exit $ac_status); } >/dev/null && {
 
7246
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7247
         test ! -s conftest.err
 
7248
       }; then
 
7249
  :
 
7250
else
 
7251
  $as_echo "$as_me: failed program was:" >&5
 
7252
sed 's/^/| /' conftest.$ac_ext >&5
 
7253
 
 
7254
  # Broken: fails on valid input.
 
7255
continue
 
7256
fi
 
7257
 
 
7258
rm -f conftest.err conftest.$ac_ext
 
7259
 
 
7260
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7261
  # can be detected and how.
 
7262
  cat >conftest.$ac_ext <<_ACEOF
 
7263
/* confdefs.h.  */
 
7264
_ACEOF
 
7265
cat confdefs.h >>conftest.$ac_ext
 
7266
cat >>conftest.$ac_ext <<_ACEOF
 
7267
/* end confdefs.h.  */
 
7268
#include <ac_nonexistent.h>
 
7269
_ACEOF
 
7270
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7271
case "(($ac_try" in
 
7272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7273
  *) ac_try_echo=$ac_try;;
 
7274
esac
 
7275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7276
$as_echo "$ac_try_echo") >&5
 
7277
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7278
  ac_status=$?
 
7279
  grep -v '^ *+' conftest.er1 >conftest.err
 
7280
  rm -f conftest.er1
 
7281
  cat conftest.err >&5
 
7282
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7283
  (exit $ac_status); } >/dev/null && {
 
7284
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
7285
         test ! -s conftest.err
 
7286
       }; then
 
7287
  # Broken: success on invalid input.
 
7288
continue
 
7289
else
 
7290
  $as_echo "$as_me: failed program was:" >&5
 
7291
sed 's/^/| /' conftest.$ac_ext >&5
 
7292
 
 
7293
  # Passes both tests.
 
7294
ac_preproc_ok=:
 
7295
break
 
7296
fi
 
7297
 
 
7298
rm -f conftest.err conftest.$ac_ext
 
7299
 
 
7300
done
 
7301
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7302
rm -f conftest.err conftest.$ac_ext
 
7303
if $ac_preproc_ok; then
 
7304
  :
 
7305
else
 
7306
  { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7307
See \`config.log' for more details." >&5
 
7308
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7309
See \`config.log' for more details." >&2;}
5972
7310
   { (exit 1); exit 1; }; }
5973
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5974
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5975
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5976
 
  $as_echo_n "(cached) " >&6
5977
 
else
5978
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5979
 
case `$LD -v 2>&1 </dev/null` in
5980
 
*GNU* | *'with BFD'*)
5981
 
  lt_cv_prog_gnu_ld=yes
5982
 
  ;;
5983
 
*)
5984
 
  lt_cv_prog_gnu_ld=no
5985
 
  ;;
5986
 
esac
5987
 
fi
5988
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5989
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5990
 
with_gnu_ld=$lt_cv_prog_gnu_ld
5991
 
 
5992
 
 
5993
 
 
5994
 
 
5995
 
 
5996
 
 
5997
 
 
5998
 
 
5999
 
 
6000
 
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6001
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6002
 
if test "${lt_cv_path_NM+set}" = set; then
6003
 
  $as_echo_n "(cached) " >&6
6004
 
else
6005
 
  if test -n "$NM"; then
6006
 
  # Let the user override the test.
6007
 
  lt_cv_path_NM="$NM"
6008
 
else
6009
 
  lt_nm_to_check="${ac_tool_prefix}nm"
6010
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6011
 
    lt_nm_to_check="$lt_nm_to_check nm"
6012
 
  fi
6013
 
  for lt_tmp_nm in $lt_nm_to_check; do
6014
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6015
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6016
 
      IFS="$lt_save_ifs"
6017
 
      test -z "$ac_dir" && ac_dir=.
6018
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
6019
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6020
 
        # Check to see if the nm accepts a BSD-compat flag.
6021
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6022
 
        #   nm: unknown option "B" ignored
6023
 
        # Tru64's nm complains that /dev/null is an invalid object file
6024
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6025
 
        */dev/null* | *'Invalid file or object type'*)
6026
 
          lt_cv_path_NM="$tmp_nm -B"
6027
 
          break
6028
 
          ;;
6029
 
        *)
6030
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6031
 
          */dev/null*)
6032
 
            lt_cv_path_NM="$tmp_nm -p"
6033
 
            break
6034
 
            ;;
6035
 
          *)
6036
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6037
 
            continue # so that we can try to find one that supports BSD flags
6038
 
            ;;
6039
 
          esac
6040
 
          ;;
6041
 
        esac
6042
 
      fi
6043
 
    done
6044
 
    IFS="$lt_save_ifs"
6045
 
  done
6046
 
  : ${lt_cv_path_NM=no}
6047
 
fi
6048
 
fi
6049
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6050
 
$as_echo "$lt_cv_path_NM" >&6; }
6051
 
if test "$lt_cv_path_NM" != "no"; then
6052
 
  NM="$lt_cv_path_NM"
6053
 
else
6054
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
6055
 
  if test -n "$ac_tool_prefix"; then
6056
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
7311
fi
 
7312
 
 
7313
ac_ext=cpp
 
7314
ac_cpp='$CXXCPP $CPPFLAGS'
 
7315
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7316
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7317
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7318
 
 
7319
fi
 
7320
 
 
7321
 
 
7322
ac_ext=f
 
7323
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7324
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7325
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7326
if test -n "$ac_tool_prefix"; then
 
7327
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6057
7328
  do
6058
7329
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6059
7330
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6060
7331
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6061
7332
$as_echo_n "checking for $ac_word... " >&6; }
6062
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
7333
if test "${ac_cv_prog_F77+set}" = set; then
6063
7334
  $as_echo_n "(cached) " >&6
6064
7335
else
6065
 
  if test -n "$DUMPBIN"; then
6066
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
7336
  if test -n "$F77"; then
 
7337
  ac_cv_prog_F77="$F77" # Let the user override the test.
6067
7338
else
6068
7339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069
7340
for as_dir in $PATH
6072
7343
  test -z "$as_dir" && as_dir=.
6073
7344
  for ac_exec_ext in '' $ac_executable_extensions; do
6074
7345
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
7346
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6076
7347
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077
7348
    break 2
6078
7349
  fi
6082
7353
 
6083
7354
fi
6084
7355
fi
6085
 
DUMPBIN=$ac_cv_prog_DUMPBIN
6086
 
if test -n "$DUMPBIN"; then
6087
 
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6088
 
$as_echo "$DUMPBIN" >&6; }
 
7356
F77=$ac_cv_prog_F77
 
7357
if test -n "$F77"; then
 
7358
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
7359
$as_echo "$F77" >&6; }
6089
7360
else
6090
7361
  { $as_echo "$as_me:$LINENO: result: no" >&5
6091
7362
$as_echo "no" >&6; }
6092
7363
fi
6093
7364
 
6094
7365
 
6095
 
    test -n "$DUMPBIN" && break
 
7366
    test -n "$F77" && break
6096
7367
  done
6097
7368
fi
6098
 
if test -z "$DUMPBIN"; then
6099
 
  ac_ct_DUMPBIN=$DUMPBIN
6100
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
7369
if test -z "$F77"; then
 
7370
  ac_ct_F77=$F77
 
7371
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6101
7372
do
6102
7373
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6103
7374
set dummy $ac_prog; ac_word=$2
6104
7375
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105
7376
$as_echo_n "checking for $ac_word... " >&6; }
6106
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
7377
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6107
7378
  $as_echo_n "(cached) " >&6
6108
7379
else
6109
 
  if test -n "$ac_ct_DUMPBIN"; then
6110
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
7380
  if test -n "$ac_ct_F77"; then
 
7381
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6111
7382
else
6112
7383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113
7384
for as_dir in $PATH
6116
7387
  test -z "$as_dir" && as_dir=.
6117
7388
  for ac_exec_ext in '' $ac_executable_extensions; do
6118
7389
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
7390
    ac_cv_prog_ac_ct_F77="$ac_prog"
6120
7391
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121
7392
    break 2
6122
7393
  fi
6126
7397
 
6127
7398
fi
6128
7399
fi
6129
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6130
 
if test -n "$ac_ct_DUMPBIN"; then
6131
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6132
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
7400
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7401
if test -n "$ac_ct_F77"; then
 
7402
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7403
$as_echo "$ac_ct_F77" >&6; }
6133
7404
else
6134
7405
  { $as_echo "$as_me:$LINENO: result: no" >&5
6135
7406
$as_echo "no" >&6; }
6136
7407
fi
6137
7408
 
6138
7409
 
6139
 
  test -n "$ac_ct_DUMPBIN" && break
 
7410
  test -n "$ac_ct_F77" && break
6140
7411
done
6141
7412
 
6142
 
  if test "x$ac_ct_DUMPBIN" = x; then
6143
 
    DUMPBIN=":"
 
7413
  if test "x$ac_ct_F77" = x; then
 
7414
    F77=""
6144
7415
  else
6145
7416
    case $cross_compiling:$ac_tool_warned in
6146
7417
yes:)
6152
7423
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153
7424
ac_tool_warned=yes ;;
6154
7425
esac
6155
 
    DUMPBIN=$ac_ct_DUMPBIN
6156
 
  fi
6157
 
fi
6158
 
 
6159
 
 
6160
 
  if test "$DUMPBIN" != ":"; then
6161
 
    NM="$DUMPBIN"
6162
 
  fi
6163
 
fi
6164
 
test -z "$NM" && NM=nm
6165
 
 
6166
 
 
6167
 
 
6168
 
 
6169
 
 
6170
 
 
6171
 
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6172
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6173
 
if test "${lt_cv_nm_interface+set}" = set; then
6174
 
  $as_echo_n "(cached) " >&6
6175
 
else
6176
 
  lt_cv_nm_interface="BSD nm"
6177
 
  echo "int some_variable = 0;" > conftest.$ac_ext
6178
 
  (eval echo "\"\$as_me:6178: $ac_compile\"" >&5)
6179
 
  (eval "$ac_compile" 2>conftest.err)
6180
 
  cat conftest.err >&5
6181
 
  (eval echo "\"\$as_me:6181: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6182
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6183
 
  cat conftest.err >&5
6184
 
  (eval echo "\"\$as_me:6184: output\"" >&5)
6185
 
  cat conftest.out >&5
6186
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6187
 
    lt_cv_nm_interface="MS dumpbin"
6188
 
  fi
6189
 
  rm -f conftest*
6190
 
fi
6191
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6192
 
$as_echo "$lt_cv_nm_interface" >&6; }
6193
 
 
 
7426
    F77=$ac_ct_F77
 
7427
  fi
 
7428
fi
 
7429
 
 
7430
 
 
7431
# Provide some information about the compiler.
 
7432
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
7433
set X $ac_compile
 
7434
ac_compiler=$2
 
7435
{ (ac_try="$ac_compiler --version >&5"
 
7436
case "(($ac_try" in
 
7437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7438
  *) ac_try_echo=$ac_try;;
 
7439
esac
 
7440
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7441
$as_echo "$ac_try_echo") >&5
 
7442
  (eval "$ac_compiler --version >&5") 2>&5
 
7443
  ac_status=$?
 
7444
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7445
  (exit $ac_status); }
 
7446
{ (ac_try="$ac_compiler -v >&5"
 
7447
case "(($ac_try" in
 
7448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7449
  *) ac_try_echo=$ac_try;;
 
7450
esac
 
7451
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7452
$as_echo "$ac_try_echo") >&5
 
7453
  (eval "$ac_compiler -v >&5") 2>&5
 
7454
  ac_status=$?
 
7455
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7456
  (exit $ac_status); }
 
7457
{ (ac_try="$ac_compiler -V >&5"
 
7458
case "(($ac_try" in
 
7459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7460
  *) ac_try_echo=$ac_try;;
 
7461
esac
 
7462
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7463
$as_echo "$ac_try_echo") >&5
 
7464
  (eval "$ac_compiler -V >&5") 2>&5
 
7465
  ac_status=$?
 
7466
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7467
  (exit $ac_status); }
 
7468
rm -f a.out
 
7469
 
 
7470
# If we don't use `.F' as extension, the preprocessor is not run on the
 
7471
# input file.  (Note that this only needs to work for GNU compilers.)
 
7472
ac_save_ext=$ac_ext
 
7473
ac_ext=F
 
7474
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
7475
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
7476
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
7477
  $as_echo_n "(cached) " >&6
 
7478
else
 
7479
  cat >conftest.$ac_ext <<_ACEOF
 
7480
      program main
 
7481
#ifndef __GNUC__
 
7482
       choke me
 
7483
#endif
 
7484
 
 
7485
      end
 
7486
_ACEOF
 
7487
rm -f conftest.$ac_objext
 
7488
if { (ac_try="$ac_compile"
 
7489
case "(($ac_try" in
 
7490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7491
  *) ac_try_echo=$ac_try;;
 
7492
esac
 
7493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7494
$as_echo "$ac_try_echo") >&5
 
7495
  (eval "$ac_compile") 2>conftest.er1
 
7496
  ac_status=$?
 
7497
  grep -v '^ *+' conftest.er1 >conftest.err
 
7498
  rm -f conftest.er1
 
7499
  cat conftest.err >&5
 
7500
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7501
  (exit $ac_status); } && {
 
7502
         test -z "$ac_f77_werror_flag" ||
 
7503
         test ! -s conftest.err
 
7504
       } && test -s conftest.$ac_objext; then
 
7505
  ac_compiler_gnu=yes
 
7506
else
 
7507
  $as_echo "$as_me: failed program was:" >&5
 
7508
sed 's/^/| /' conftest.$ac_ext >&5
 
7509
 
 
7510
        ac_compiler_gnu=no
 
7511
fi
 
7512
 
 
7513
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7514
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
7515
 
 
7516
fi
 
7517
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
7518
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
7519
ac_ext=$ac_save_ext
 
7520
ac_test_FFLAGS=${FFLAGS+set}
 
7521
ac_save_FFLAGS=$FFLAGS
 
7522
FFLAGS=
 
7523
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
7524
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
7525
if test "${ac_cv_prog_f77_g+set}" = set; then
 
7526
  $as_echo_n "(cached) " >&6
 
7527
else
 
7528
  FFLAGS=-g
 
7529
cat >conftest.$ac_ext <<_ACEOF
 
7530
      program main
 
7531
 
 
7532
      end
 
7533
_ACEOF
 
7534
rm -f conftest.$ac_objext
 
7535
if { (ac_try="$ac_compile"
 
7536
case "(($ac_try" in
 
7537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7538
  *) ac_try_echo=$ac_try;;
 
7539
esac
 
7540
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7541
$as_echo "$ac_try_echo") >&5
 
7542
  (eval "$ac_compile") 2>conftest.er1
 
7543
  ac_status=$?
 
7544
  grep -v '^ *+' conftest.er1 >conftest.err
 
7545
  rm -f conftest.er1
 
7546
  cat conftest.err >&5
 
7547
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7548
  (exit $ac_status); } && {
 
7549
         test -z "$ac_f77_werror_flag" ||
 
7550
         test ! -s conftest.err
 
7551
       } && test -s conftest.$ac_objext; then
 
7552
  ac_cv_prog_f77_g=yes
 
7553
else
 
7554
  $as_echo "$as_me: failed program was:" >&5
 
7555
sed 's/^/| /' conftest.$ac_ext >&5
 
7556
 
 
7557
        ac_cv_prog_f77_g=no
 
7558
fi
 
7559
 
 
7560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7561
 
 
7562
fi
 
7563
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
7564
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
7565
if test "$ac_test_FFLAGS" = set; then
 
7566
  FFLAGS=$ac_save_FFLAGS
 
7567
elif test $ac_cv_prog_f77_g = yes; then
 
7568
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7569
    FFLAGS="-g -O2"
 
7570
  else
 
7571
    FFLAGS="-g"
 
7572
  fi
 
7573
else
 
7574
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7575
    FFLAGS="-O2"
 
7576
  else
 
7577
    FFLAGS=
 
7578
  fi
 
7579
fi
 
7580
 
 
7581
if test $ac_compiler_gnu = yes; then
 
7582
  G77=yes
 
7583
else
 
7584
  G77=
 
7585
fi
 
7586
ac_ext=c
 
7587
ac_cpp='$CPP $CPPFLAGS'
 
7588
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7589
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7590
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7591
 
 
7592
 
 
7593
 
 
7594
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6194
7595
# find the maximum length of command line arguments
6195
7596
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6196
7597
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6271
7672
  sysv5* | sco5v6* | sysv4.2uw2*)
6272
7673
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6273
7674
    if test -n "$kargmax"; then
6274
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
7675
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6275
7676
    else
6276
7677
      lt_cv_sys_max_cmd_len=32768
6277
7678
    fi
6282
7683
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6283
7684
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6284
7685
    else
6285
 
      # Make teststring a little bigger before we do anything with it.
6286
 
      # a 1K string should be a reasonable start.
6287
 
      for i in 1 2 3 4 5 6 7 8 ; do
6288
 
        teststring=$teststring$teststring
6289
 
      done
6290
7686
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6291
 
      # If test is not a shell built-in, we'll probably end up computing a
6292
 
      # maximum length that is only half of the actual maximum length, but
6293
 
      # we can't tell.
6294
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6295
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
7687
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7688
               = "XX$teststring") >/dev/null 2>&1 &&
 
7689
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
7690
              lt_cv_sys_max_cmd_len=$new_result &&
6296
7691
              test $i != 17 # 1/2 MB should be enough
6297
7692
      do
6298
7693
        i=`expr $i + 1`
6299
7694
        teststring=$teststring$teststring
6300
7695
      done
6301
 
      # Only check the string length outside the loop.
6302
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6303
7696
      teststring=
6304
 
      # Add a significant safety factor because C++ compilers can tack on
6305
 
      # massive amounts of additional arguments before passing them to the
6306
 
      # linker.  It appears as though 1/2 is a usable value.
 
7697
      # Add a significant safety factor because C++ compilers can tack on massive
 
7698
      # amounts of additional arguments before passing them to the linker.
 
7699
      # It appears as though 1/2 is a usable value.
6307
7700
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6308
7701
    fi
6309
7702
    ;;
6318
7711
  { $as_echo "$as_me:$LINENO: result: none" >&5
6319
7712
$as_echo "none" >&6; }
6320
7713
fi
6321
 
max_cmd_len=$lt_cv_sys_max_cmd_len
6322
 
 
6323
 
 
6324
 
 
6325
 
 
6326
 
 
6327
 
 
6328
 
: ${CP="cp -f"}
6329
 
: ${MV="mv -f"}
6330
 
: ${RM="rm -f"}
6331
 
 
6332
 
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6333
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6334
 
# Try some XSI features
6335
 
xsi_shell=no
6336
 
( _lt_dummy="a/b/c"
6337
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6338
 
      = c,a/b,, ) >/dev/null 2>&1 \
6339
 
  && xsi_shell=yes
6340
 
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6341
 
$as_echo "$xsi_shell" >&6; }
6342
 
 
6343
 
 
6344
 
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6345
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6346
 
lt_shell_append=no
6347
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6348
 
    >/dev/null 2>&1 \
6349
 
  && lt_shell_append=yes
6350
 
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6351
 
$as_echo "$lt_shell_append" >&6; }
6352
 
 
6353
 
 
6354
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6355
 
  lt_unset=unset
6356
 
else
6357
 
  lt_unset=false
6358
 
fi
6359
 
 
6360
 
 
6361
 
 
6362
 
 
6363
 
 
6364
 
# test EBCDIC or ASCII
6365
 
case `echo X|tr X '\101'` in
6366
 
 A) # ASCII based system
6367
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6368
 
  lt_SP2NL='tr \040 \012'
6369
 
  lt_NL2SP='tr \015\012 \040\040'
6370
 
  ;;
6371
 
 *) # EBCDIC based system
6372
 
  lt_SP2NL='tr \100 \n'
6373
 
  lt_NL2SP='tr \r\n \100\100'
6374
 
  ;;
6375
 
esac
6376
 
 
6377
 
 
6378
 
 
6379
 
 
6380
 
 
6381
 
 
6382
 
 
6383
 
 
6384
 
 
6385
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6386
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6387
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
6388
 
  $as_echo_n "(cached) " >&6
6389
 
else
6390
 
  lt_cv_ld_reload_flag='-r'
6391
 
fi
6392
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6393
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6394
 
reload_flag=$lt_cv_ld_reload_flag
6395
 
case $reload_flag in
6396
 
"" | " "*) ;;
6397
 
*) reload_flag=" $reload_flag" ;;
6398
 
esac
6399
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6400
 
case $host_os in
6401
 
  darwin*)
6402
 
    if test "$GCC" = yes; then
6403
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6404
 
    else
6405
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6406
 
    fi
6407
 
    ;;
6408
 
esac
6409
 
 
6410
 
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
 
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6420
 
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6421
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
6422
 
  $as_echo_n "(cached) " >&6
6423
 
else
6424
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
6425
 
lt_cv_file_magic_test_file=
6426
 
lt_cv_deplibs_check_method='unknown'
6427
 
# Need to set the preceding variable on all platforms that support
6428
 
# interlibrary dependencies.
6429
 
# 'none' -- dependencies not supported.
6430
 
# `unknown' -- same as none, but documents that we really don't know.
6431
 
# 'pass_all' -- all dependencies passed with no checks.
6432
 
# 'test_compile' -- check by making test program.
6433
 
# 'file_magic [[regex]]' -- check by looking for files in library path
6434
 
# which responds to the $file_magic_cmd with a given extended regex.
6435
 
# If you have `file' or equivalent on your system and you're not sure
6436
 
# whether `pass_all' will *always* work, you probably want this one.
6437
 
 
6438
 
case $host_os in
6439
 
aix[4-9]*)
6440
 
  lt_cv_deplibs_check_method=pass_all
6441
 
  ;;
6442
 
 
6443
 
beos*)
6444
 
  lt_cv_deplibs_check_method=pass_all
6445
 
  ;;
6446
 
 
6447
 
bsdi[45]*)
6448
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6449
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
6450
 
  lt_cv_file_magic_test_file=/shlib/libc.so
6451
 
  ;;
6452
 
 
6453
 
cygwin*)
6454
 
  # func_win32_libid is a shell function defined in ltmain.sh
6455
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6456
 
  lt_cv_file_magic_cmd='func_win32_libid'
6457
 
  ;;
6458
 
 
6459
 
mingw* | pw32*)
6460
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
6461
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6462
 
  # unless we find 'file', for example because we are cross-compiling.
6463
 
  if ( file / ) >/dev/null 2>&1; then
6464
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6465
 
    lt_cv_file_magic_cmd='func_win32_libid'
6466
 
  else
6467
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6468
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
6469
 
  fi
6470
 
  ;;
6471
 
 
6472
 
darwin* | rhapsody*)
6473
 
  lt_cv_deplibs_check_method=pass_all
6474
 
  ;;
6475
 
 
6476
 
freebsd* | dragonfly*)
6477
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6478
 
    case $host_cpu in
6479
 
    i*86 )
6480
 
      # Not sure whether the presence of OpenBSD here was a mistake.
6481
 
      # Let's accept both of them until this is cleared up.
6482
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6483
 
      lt_cv_file_magic_cmd=/usr/bin/file
6484
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6485
 
      ;;
6486
 
    esac
6487
 
  else
6488
 
    lt_cv_deplibs_check_method=pass_all
6489
 
  fi
6490
 
  ;;
6491
 
 
6492
 
gnu*)
6493
 
  lt_cv_deplibs_check_method=pass_all
6494
 
  ;;
6495
 
 
6496
 
hpux10.20* | hpux11*)
6497
 
  lt_cv_file_magic_cmd=/usr/bin/file
6498
 
  case $host_cpu in
6499
 
  ia64*)
6500
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6501
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6502
 
    ;;
6503
 
  hppa*64*)
6504
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6505
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6506
 
    ;;
6507
 
  *)
6508
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6509
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6510
 
    ;;
6511
 
  esac
6512
 
  ;;
6513
 
 
6514
 
interix[3-9]*)
6515
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6516
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6517
 
  ;;
6518
 
 
6519
 
irix5* | irix6* | nonstopux*)
6520
 
  case $LD in
6521
 
  *-32|*"-32 ") libmagic=32-bit;;
6522
 
  *-n32|*"-n32 ") libmagic=N32;;
6523
 
  *-64|*"-64 ") libmagic=64-bit;;
6524
 
  *) libmagic=never-match;;
6525
 
  esac
6526
 
  lt_cv_deplibs_check_method=pass_all
6527
 
  ;;
6528
 
 
6529
 
# This must be Linux ELF.
6530
 
linux* | k*bsd*-gnu)
6531
 
  lt_cv_deplibs_check_method=pass_all
6532
 
  ;;
6533
 
 
6534
 
netbsd*)
6535
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6536
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6537
 
  else
6538
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6539
 
  fi
6540
 
  ;;
6541
 
 
6542
 
newos6*)
6543
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6544
 
  lt_cv_file_magic_cmd=/usr/bin/file
6545
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6546
 
  ;;
6547
 
 
6548
 
*nto* | *qnx*)
6549
 
  lt_cv_deplibs_check_method=pass_all
6550
 
  ;;
6551
 
 
6552
 
openbsd*)
6553
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6554
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6555
 
  else
6556
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6557
 
  fi
6558
 
  ;;
6559
 
 
6560
 
osf3* | osf4* | osf5*)
6561
 
  lt_cv_deplibs_check_method=pass_all
6562
 
  ;;
6563
 
 
6564
 
rdos*)
6565
 
  lt_cv_deplibs_check_method=pass_all
6566
 
  ;;
6567
 
 
6568
 
solaris*)
6569
 
  lt_cv_deplibs_check_method=pass_all
6570
 
  ;;
6571
 
 
6572
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6573
 
  lt_cv_deplibs_check_method=pass_all
6574
 
  ;;
6575
 
 
6576
 
sysv4 | sysv4.3*)
6577
 
  case $host_vendor in
6578
 
  motorola)
6579
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6580
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6581
 
    ;;
6582
 
  ncr)
6583
 
    lt_cv_deplibs_check_method=pass_all
6584
 
    ;;
6585
 
  sequent)
6586
 
    lt_cv_file_magic_cmd='/bin/file'
6587
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6588
 
    ;;
6589
 
  sni)
6590
 
    lt_cv_file_magic_cmd='/bin/file'
6591
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6592
 
    lt_cv_file_magic_test_file=/lib/libc.so
6593
 
    ;;
6594
 
  siemens)
6595
 
    lt_cv_deplibs_check_method=pass_all
6596
 
    ;;
6597
 
  pc)
6598
 
    lt_cv_deplibs_check_method=pass_all
6599
 
    ;;
6600
 
  esac
6601
 
  ;;
6602
 
 
6603
 
tpf*)
6604
 
  lt_cv_deplibs_check_method=pass_all
6605
 
  ;;
6606
 
esac
6607
 
 
6608
 
fi
6609
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6610
 
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6611
 
file_magic_cmd=$lt_cv_file_magic_cmd
6612
 
deplibs_check_method=$lt_cv_deplibs_check_method
6613
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6614
 
 
6615
 
 
6616
 
 
6617
 
 
6618
 
 
6619
 
 
6620
 
 
6621
 
 
6622
 
 
6623
 
 
6624
 
 
6625
 
 
6626
 
if test -n "$ac_tool_prefix"; then
6627
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6628
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6629
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6630
 
$as_echo_n "checking for $ac_word... " >&6; }
6631
 
if test "${ac_cv_prog_AR+set}" = set; then
6632
 
  $as_echo_n "(cached) " >&6
6633
 
else
6634
 
  if test -n "$AR"; then
6635
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6636
 
else
6637
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638
 
for as_dir in $PATH
6639
 
do
6640
 
  IFS=$as_save_IFS
6641
 
  test -z "$as_dir" && as_dir=.
6642
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6643
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6645
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646
 
    break 2
6647
 
  fi
6648
 
done
6649
 
done
6650
 
IFS=$as_save_IFS
6651
 
 
6652
 
fi
6653
 
fi
6654
 
AR=$ac_cv_prog_AR
6655
 
if test -n "$AR"; then
6656
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6657
 
$as_echo "$AR" >&6; }
6658
 
else
6659
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6660
 
$as_echo "no" >&6; }
6661
 
fi
6662
 
 
6663
 
 
6664
 
fi
6665
 
if test -z "$ac_cv_prog_AR"; then
6666
 
  ac_ct_AR=$AR
6667
 
  # Extract the first word of "ar", so it can be a program name with args.
6668
 
set dummy ar; ac_word=$2
6669
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6670
 
$as_echo_n "checking for $ac_word... " >&6; }
6671
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6672
 
  $as_echo_n "(cached) " >&6
6673
 
else
6674
 
  if test -n "$ac_ct_AR"; then
6675
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6676
 
else
6677
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678
 
for as_dir in $PATH
6679
 
do
6680
 
  IFS=$as_save_IFS
6681
 
  test -z "$as_dir" && as_dir=.
6682
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6683
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684
 
    ac_cv_prog_ac_ct_AR="ar"
6685
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686
 
    break 2
6687
 
  fi
6688
 
done
6689
 
done
6690
 
IFS=$as_save_IFS
6691
 
 
6692
 
fi
6693
 
fi
6694
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6695
 
if test -n "$ac_ct_AR"; then
6696
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6697
 
$as_echo "$ac_ct_AR" >&6; }
6698
 
else
6699
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6700
 
$as_echo "no" >&6; }
6701
 
fi
6702
 
 
6703
 
  if test "x$ac_ct_AR" = x; then
6704
 
    AR="false"
6705
 
  else
6706
 
    case $cross_compiling:$ac_tool_warned in
6707
 
yes:)
6708
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6709
 
whose name does not start with the host triplet.  If you think this
6710
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6711
 
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6712
 
whose name does not start with the host triplet.  If you think this
6713
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6714
 
ac_tool_warned=yes ;;
6715
 
esac
6716
 
    AR=$ac_ct_AR
6717
 
  fi
6718
 
else
6719
 
  AR="$ac_cv_prog_AR"
6720
 
fi
6721
 
 
6722
 
test -z "$AR" && AR=ar
6723
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6724
 
 
6725
 
 
6726
 
 
6727
 
 
6728
 
 
6729
 
 
6730
 
 
6731
 
 
6732
 
 
6733
 
 
6734
 
 
6735
 
if test -n "$ac_tool_prefix"; then
6736
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6737
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6738
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6739
 
$as_echo_n "checking for $ac_word... " >&6; }
6740
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6741
 
  $as_echo_n "(cached) " >&6
6742
 
else
6743
 
  if test -n "$STRIP"; then
6744
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6745
 
else
6746
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747
 
for as_dir in $PATH
6748
 
do
6749
 
  IFS=$as_save_IFS
6750
 
  test -z "$as_dir" && as_dir=.
6751
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6752
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6754
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755
 
    break 2
6756
 
  fi
6757
 
done
6758
 
done
6759
 
IFS=$as_save_IFS
6760
 
 
6761
 
fi
6762
 
fi
6763
 
STRIP=$ac_cv_prog_STRIP
6764
 
if test -n "$STRIP"; then
6765
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6766
 
$as_echo "$STRIP" >&6; }
6767
 
else
6768
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6769
 
$as_echo "no" >&6; }
6770
 
fi
6771
 
 
6772
 
 
6773
 
fi
6774
 
if test -z "$ac_cv_prog_STRIP"; then
6775
 
  ac_ct_STRIP=$STRIP
6776
 
  # Extract the first word of "strip", so it can be a program name with args.
6777
 
set dummy strip; ac_word=$2
6778
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6779
 
$as_echo_n "checking for $ac_word... " >&6; }
6780
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6781
 
  $as_echo_n "(cached) " >&6
6782
 
else
6783
 
  if test -n "$ac_ct_STRIP"; then
6784
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6785
 
else
6786
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787
 
for as_dir in $PATH
6788
 
do
6789
 
  IFS=$as_save_IFS
6790
 
  test -z "$as_dir" && as_dir=.
6791
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6792
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793
 
    ac_cv_prog_ac_ct_STRIP="strip"
6794
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795
 
    break 2
6796
 
  fi
6797
 
done
6798
 
done
6799
 
IFS=$as_save_IFS
6800
 
 
6801
 
fi
6802
 
fi
6803
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6804
 
if test -n "$ac_ct_STRIP"; then
6805
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6806
 
$as_echo "$ac_ct_STRIP" >&6; }
6807
 
else
6808
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6809
 
$as_echo "no" >&6; }
6810
 
fi
6811
 
 
6812
 
  if test "x$ac_ct_STRIP" = x; then
6813
 
    STRIP=":"
6814
 
  else
6815
 
    case $cross_compiling:$ac_tool_warned in
6816
 
yes:)
6817
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6818
 
whose name does not start with the host triplet.  If you think this
6819
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6820
 
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6821
 
whose name does not start with the host triplet.  If you think this
6822
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6823
 
ac_tool_warned=yes ;;
6824
 
esac
6825
 
    STRIP=$ac_ct_STRIP
6826
 
  fi
6827
 
else
6828
 
  STRIP="$ac_cv_prog_STRIP"
6829
 
fi
6830
 
 
6831
 
test -z "$STRIP" && STRIP=:
6832
 
 
6833
 
 
6834
 
 
6835
 
 
6836
 
 
6837
 
 
6838
 
if test -n "$ac_tool_prefix"; then
6839
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6840
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6841
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6842
 
$as_echo_n "checking for $ac_word... " >&6; }
6843
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6844
 
  $as_echo_n "(cached) " >&6
6845
 
else
6846
 
  if test -n "$RANLIB"; then
6847
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6848
 
else
6849
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850
 
for as_dir in $PATH
6851
 
do
6852
 
  IFS=$as_save_IFS
6853
 
  test -z "$as_dir" && as_dir=.
6854
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6855
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6857
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858
 
    break 2
6859
 
  fi
6860
 
done
6861
 
done
6862
 
IFS=$as_save_IFS
6863
 
 
6864
 
fi
6865
 
fi
6866
 
RANLIB=$ac_cv_prog_RANLIB
6867
 
if test -n "$RANLIB"; then
6868
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6869
 
$as_echo "$RANLIB" >&6; }
6870
 
else
6871
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6872
 
$as_echo "no" >&6; }
6873
 
fi
6874
 
 
6875
 
 
6876
 
fi
6877
 
if test -z "$ac_cv_prog_RANLIB"; then
6878
 
  ac_ct_RANLIB=$RANLIB
6879
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6880
 
set dummy ranlib; ac_word=$2
6881
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6882
 
$as_echo_n "checking for $ac_word... " >&6; }
6883
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6884
 
  $as_echo_n "(cached) " >&6
6885
 
else
6886
 
  if test -n "$ac_ct_RANLIB"; then
6887
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6888
 
else
6889
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890
 
for as_dir in $PATH
6891
 
do
6892
 
  IFS=$as_save_IFS
6893
 
  test -z "$as_dir" && as_dir=.
6894
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6895
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6897
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898
 
    break 2
6899
 
  fi
6900
 
done
6901
 
done
6902
 
IFS=$as_save_IFS
6903
 
 
6904
 
fi
6905
 
fi
6906
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6907
 
if test -n "$ac_ct_RANLIB"; then
6908
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6909
 
$as_echo "$ac_ct_RANLIB" >&6; }
6910
 
else
6911
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6912
 
$as_echo "no" >&6; }
6913
 
fi
6914
 
 
6915
 
  if test "x$ac_ct_RANLIB" = x; then
6916
 
    RANLIB=":"
6917
 
  else
6918
 
    case $cross_compiling:$ac_tool_warned in
6919
 
yes:)
6920
 
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6921
 
whose name does not start with the host triplet.  If you think this
6922
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6923
 
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6924
 
whose name does not start with the host triplet.  If you think this
6925
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6926
 
ac_tool_warned=yes ;;
6927
 
esac
6928
 
    RANLIB=$ac_ct_RANLIB
6929
 
  fi
6930
 
else
6931
 
  RANLIB="$ac_cv_prog_RANLIB"
6932
 
fi
6933
 
 
6934
 
test -z "$RANLIB" && RANLIB=:
6935
 
 
6936
 
 
6937
 
 
6938
 
 
6939
 
 
6940
 
 
6941
 
# Determine commands to create old-style static archives.
6942
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6943
 
old_postinstall_cmds='chmod 644 $oldlib'
6944
 
old_postuninstall_cmds=
6945
 
 
6946
 
if test -n "$RANLIB"; then
6947
 
  case $host_os in
6948
 
  openbsd*)
6949
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6950
 
    ;;
6951
 
  *)
6952
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6953
 
    ;;
6954
 
  esac
6955
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6956
 
fi
6957
 
 
6958
 
 
6959
 
 
6960
 
 
6961
 
 
6962
 
 
6963
 
 
6964
 
 
6965
 
 
6966
 
 
6967
 
 
6968
 
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
 
 
6974
 
 
6975
 
 
6976
 
 
6977
 
 
6978
 
 
6979
 
 
6980
 
 
6981
 
 
6982
 
 
6983
 
 
6984
 
 
6985
 
 
6986
 
 
6987
 
 
6988
 
 
6989
 
 
6990
 
 
6991
 
# If no C compiler was specified, use CC.
6992
 
LTCC=${LTCC-"$CC"}
6993
 
 
6994
 
# If no C compiler flags were specified, use CFLAGS.
6995
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6996
 
 
6997
 
# Allow CC to be a program name with arguments.
6998
 
compiler=$CC
 
7714
 
 
7715
 
 
7716
 
6999
7717
 
7000
7718
 
7001
7719
# Check for command to grab the raw symbol name followed by C symbol from nm.
7014
7732
# Regexp to match symbols that can be accessed directly from C.
7015
7733
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7016
7734
 
 
7735
# Transform an extracted symbol line into a proper C declaration
 
7736
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
7737
 
 
7738
# Transform an extracted symbol line into symbol name and symbol address
 
7739
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7740
 
7017
7741
# Define system-specific variables.
7018
7742
case $host_os in
7019
7743
aix*)
7022
7746
cygwin* | mingw* | pw32*)
7023
7747
  symcode='[ABCDGISTW]'
7024
7748
  ;;
7025
 
hpux*)
 
7749
hpux*) # Its linker distinguishes data from code symbols
7026
7750
  if test "$host_cpu" = ia64; then
7027
7751
    symcode='[ABCDEGRST]'
7028
7752
  fi
 
7753
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7754
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7755
  ;;
 
7756
linux* | k*bsd*-gnu)
 
7757
  if test "$host_cpu" = ia64; then
 
7758
    symcode='[ABCDGIRSTW]'
 
7759
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7760
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7761
  fi
7029
7762
  ;;
7030
7763
irix* | nonstopux*)
7031
7764
  symcode='[BCDEGRST]'
7050
7783
  ;;
7051
7784
esac
7052
7785
 
7053
 
# If we're using GNU nm, then use its standard symbol codes.
7054
 
case `$NM -V 2>&1` in
7055
 
*GNU* | *'with BFD'*)
7056
 
  symcode='[ABCDGIRSTW]' ;;
7057
 
esac
7058
 
 
7059
 
# Transform an extracted symbol line into a proper C declaration.
7060
 
# Some systems (esp. on ia64) link data and code symbols differently,
7061
 
# so use this general approach.
7062
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7063
 
 
7064
 
# Transform an extracted symbol line into symbol name and symbol address
7065
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7066
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7067
 
 
7068
7786
# Handle CRLF in mingw tool chain
7069
7787
opt_cr=
7070
7788
case $build_os in
7071
7789
mingw*)
7072
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7790
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7073
7791
  ;;
7074
7792
esac
7075
7793
 
7076
 
# Try without a prefix underscore, then with it.
 
7794
# If we're using GNU nm, then use its standard symbol codes.
 
7795
case `$NM -V 2>&1` in
 
7796
*GNU* | *'with BFD'*)
 
7797
  symcode='[ABCDGIRSTW]' ;;
 
7798
esac
 
7799
 
 
7800
# Try without a prefix undercore, then with it.
7077
7801
for ac_symprfx in "" "_"; do
7078
7802
 
7079
7803
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7080
7804
  symxfrm="\\1 $ac_symprfx\\2 \\2"
7081
7805
 
7082
7806
  # Write the raw and C identifiers.
7083
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7084
 
    # Fake it for dumpbin and say T for any non-static function
7085
 
    # and D for any global variable.
7086
 
    # Also find C++ and __fastcall symbols from MSVC++,
7087
 
    # which start with @ or ?.
7088
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
7089
 
"     {last_section=section; section=\$ 3};"\
7090
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7091
 
"     \$ 0!~/External *\|/{next};"\
7092
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7093
 
"     {if(hide[section]) next};"\
7094
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7095
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7096
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7097
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7098
 
"     ' prfx=^$ac_symprfx"
7099
 
  else
7100
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7101
 
  fi
 
7807
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7102
7808
 
7103
7809
  # Check to see that the pipe works correctly.
7104
7810
  pipe_works=no
7105
7811
 
7106
7812
  rm -f conftest*
7107
 
  cat > conftest.$ac_ext <<_LT_EOF
 
7813
  cat > conftest.$ac_ext <<EOF
7108
7814
#ifdef __cplusplus
7109
7815
extern "C" {
7110
7816
#endif
7111
7817
char nm_test_var;
7112
 
void nm_test_func(void);
7113
 
void nm_test_func(void){}
 
7818
void nm_test_func(){}
7114
7819
#ifdef __cplusplus
7115
7820
}
7116
7821
#endif
7117
7822
int main(){nm_test_var='a';nm_test_func();return(0);}
7118
 
_LT_EOF
 
7823
EOF
7119
7824
 
7120
7825
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121
7826
  (eval $ac_compile) 2>&5
7137
7842
      fi
7138
7843
 
7139
7844
      # Make sure that we snagged all the symbols we need.
7140
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7141
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7142
 
          cat <<_LT_EOF > conftest.$ac_ext
 
7845
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7846
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
7847
          cat <<EOF > conftest.$ac_ext
7143
7848
#ifdef __cplusplus
7144
7849
extern "C" {
7145
7850
#endif
7146
7851
 
7147
 
_LT_EOF
 
7852
EOF
7148
7853
          # Now generate the symbol file.
7149
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7150
 
 
7151
 
          cat <<_LT_EOF >> conftest.$ac_ext
7152
 
 
7153
 
/* The mapping between symbol names and symbols.  */
 
7854
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
7855
 
 
7856
          cat <<EOF >> conftest.$ac_ext
 
7857
#if defined (__STDC__) && __STDC__
 
7858
# define lt_ptr_t void *
 
7859
#else
 
7860
# define lt_ptr_t char *
 
7861
# define const
 
7862
#endif
 
7863
 
 
7864
/* The mapping between symbol names and symbols. */
7154
7865
const struct {
7155
7866
  const char *name;
7156
 
  void       *address;
 
7867
  lt_ptr_t address;
7157
7868
}
7158
 
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7869
lt_preloaded_symbols[] =
7159
7870
{
7160
 
  { "@PROGRAM@", (void *) 0 },
7161
 
_LT_EOF
7162
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7163
 
          cat <<\_LT_EOF >> conftest.$ac_ext
7164
 
  {0, (void *) 0}
 
7871
EOF
 
7872
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
7873
          cat <<\EOF >> conftest.$ac_ext
 
7874
  {0, (lt_ptr_t) 0}
7165
7875
};
7166
7876
 
7167
 
/* This works around a problem in FreeBSD linker */
7168
 
#ifdef FREEBSD_WORKAROUND
7169
 
static const void *lt_preloaded_setup() {
7170
 
  return lt__PROGRAM__LTX_preloaded_symbols;
7171
 
}
7172
 
#endif
7173
 
 
7174
7877
#ifdef __cplusplus
7175
7878
}
7176
7879
#endif
7177
 
_LT_EOF
 
7880
EOF
7178
7881
          # Now try linking the two files.
7179
7882
          mv conftest.$ac_objext conftstm.$ac_objext
7180
7883
          lt_save_LIBS="$LIBS"
7226
7929
$as_echo "ok" >&6; }
7227
7930
fi
7228
7931
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
 
 
7240
 
 
7241
 
 
7242
 
 
7243
 
 
7244
 
 
7245
 
 
7246
 
 
7247
 
 
7248
 
 
7249
 
 
7250
 
# Check whether --enable-libtool-lock was given.
7251
 
if test "${enable_libtool_lock+set}" = set; then
7252
 
  enableval=$enable_libtool_lock;
7253
 
fi
7254
 
 
7255
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7256
 
 
7257
 
# Some flags need to be propagated to the compiler or linker for good
7258
 
# libtool support.
7259
 
case $host in
7260
 
ia64-*-hpux*)
7261
 
  # Find out which ABI we are using.
7262
 
  echo 'int i;' > conftest.$ac_ext
7263
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264
 
  (eval $ac_compile) 2>&5
7265
 
  ac_status=$?
7266
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267
 
  (exit $ac_status); }; then
7268
 
    case `/usr/bin/file conftest.$ac_objext` in
7269
 
      *ELF-32*)
7270
 
        HPUX_IA64_MODE="32"
7271
 
        ;;
7272
 
      *ELF-64*)
7273
 
        HPUX_IA64_MODE="64"
7274
 
        ;;
7275
 
    esac
7276
 
  fi
7277
 
  rm -rf conftest*
7278
 
  ;;
7279
 
*-*-irix6*)
7280
 
  # Find out which ABI we are using.
7281
 
  echo '#line 7281 "configure"' > conftest.$ac_ext
7282
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283
 
  (eval $ac_compile) 2>&5
7284
 
  ac_status=$?
7285
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286
 
  (exit $ac_status); }; then
7287
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
7288
 
      case `/usr/bin/file conftest.$ac_objext` in
7289
 
        *32-bit*)
7290
 
          LD="${LD-ld} -melf32bsmip"
7291
 
          ;;
7292
 
        *N32*)
7293
 
          LD="${LD-ld} -melf32bmipn32"
7294
 
          ;;
7295
 
        *64-bit*)
7296
 
          LD="${LD-ld} -melf64bmip"
7297
 
        ;;
7298
 
      esac
7299
 
    else
7300
 
      case `/usr/bin/file conftest.$ac_objext` in
7301
 
        *32-bit*)
7302
 
          LD="${LD-ld} -32"
7303
 
          ;;
7304
 
        *N32*)
7305
 
          LD="${LD-ld} -n32"
7306
 
          ;;
7307
 
        *64-bit*)
7308
 
          LD="${LD-ld} -64"
7309
 
          ;;
7310
 
      esac
7311
 
    fi
7312
 
  fi
7313
 
  rm -rf conftest*
7314
 
  ;;
7315
 
 
7316
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7317
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7318
 
  # Find out which ABI we are using.
7319
 
  echo 'int i;' > conftest.$ac_ext
7320
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321
 
  (eval $ac_compile) 2>&5
7322
 
  ac_status=$?
7323
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324
 
  (exit $ac_status); }; then
7325
 
    case `/usr/bin/file conftest.o` in
7326
 
      *32-bit*)
7327
 
        case $host in
7328
 
          x86_64-*kfreebsd*-gnu)
7329
 
            LD="${LD-ld} -m elf_i386_fbsd"
7330
 
            ;;
7331
 
          x86_64-*linux*)
7332
 
            LD="${LD-ld} -m elf_i386"
7333
 
            ;;
7334
 
          ppc64-*linux*|powerpc64-*linux*)
7335
 
            LD="${LD-ld} -m elf32ppclinux"
7336
 
            ;;
7337
 
          s390x-*linux*)
7338
 
            LD="${LD-ld} -m elf_s390"
7339
 
            ;;
7340
 
          sparc64-*linux*)
7341
 
            LD="${LD-ld} -m elf32_sparc"
7342
 
            ;;
7343
 
        esac
7344
 
        ;;
7345
 
      *64-bit*)
7346
 
        case $host in
7347
 
          x86_64-*kfreebsd*-gnu)
7348
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
7349
 
            ;;
7350
 
          x86_64-*linux*)
7351
 
            LD="${LD-ld} -m elf_x86_64"
7352
 
            ;;
7353
 
          ppc*-*linux*|powerpc*-*linux*)
7354
 
            LD="${LD-ld} -m elf64ppc"
7355
 
            ;;
7356
 
          s390*-*linux*|s390*-*tpf*)
7357
 
            LD="${LD-ld} -m elf64_s390"
7358
 
            ;;
7359
 
          sparc*-*linux*)
7360
 
            LD="${LD-ld} -m elf64_sparc"
7361
 
            ;;
7362
 
        esac
7363
 
        ;;
7364
 
    esac
7365
 
  fi
7366
 
  rm -rf conftest*
7367
 
  ;;
7368
 
 
7369
 
*-*-sco3.2v5*)
7370
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7371
 
  SAVE_CFLAGS="$CFLAGS"
7372
 
  CFLAGS="$CFLAGS -belf"
7373
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7374
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7375
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
7376
 
  $as_echo_n "(cached) " >&6
7377
 
else
7378
 
  ac_ext=c
7379
 
ac_cpp='$CPP $CPPFLAGS'
7380
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
 
 
7384
 
     cat >conftest.$ac_ext <<_ACEOF
7385
 
/* confdefs.h.  */
7386
 
_ACEOF
7387
 
cat confdefs.h >>conftest.$ac_ext
7388
 
cat >>conftest.$ac_ext <<_ACEOF
7389
 
/* end confdefs.h.  */
7390
 
 
7391
 
int
7392
 
main ()
7393
 
{
7394
 
 
7395
 
  ;
7396
 
  return 0;
7397
 
}
7398
 
_ACEOF
7399
 
rm -f conftest.$ac_objext conftest$ac_exeext
7400
 
if { (ac_try="$ac_link"
7401
 
case "(($ac_try" in
7402
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403
 
  *) ac_try_echo=$ac_try;;
7404
 
esac
7405
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406
 
$as_echo "$ac_try_echo") >&5
7407
 
  (eval "$ac_link") 2>conftest.er1
7408
 
  ac_status=$?
7409
 
  grep -v '^ *+' conftest.er1 >conftest.err
7410
 
  rm -f conftest.er1
7411
 
  cat conftest.err >&5
7412
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413
 
  (exit $ac_status); } && {
7414
 
         test -z "$ac_c_werror_flag" ||
7415
 
         test ! -s conftest.err
7416
 
       } && test -s conftest$ac_exeext && {
7417
 
         test "$cross_compiling" = yes ||
7418
 
         $as_test_x conftest$ac_exeext
7419
 
       }; then
7420
 
  lt_cv_cc_needs_belf=yes
7421
 
else
7422
 
  $as_echo "$as_me: failed program was:" >&5
7423
 
sed 's/^/| /' conftest.$ac_ext >&5
7424
 
 
7425
 
        lt_cv_cc_needs_belf=no
7426
 
fi
7427
 
 
7428
 
rm -rf conftest.dSYM
7429
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430
 
      conftest$ac_exeext conftest.$ac_ext
7431
 
     ac_ext=c
7432
 
ac_cpp='$CPP $CPPFLAGS'
7433
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436
 
 
7437
 
fi
7438
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7439
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7440
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7441
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7442
 
    CFLAGS="$SAVE_CFLAGS"
7443
 
  fi
7444
 
  ;;
7445
 
sparc*-*solaris*)
7446
 
  # Find out which ABI we are using.
7447
 
  echo 'int i;' > conftest.$ac_ext
7448
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449
 
  (eval $ac_compile) 2>&5
7450
 
  ac_status=$?
7451
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452
 
  (exit $ac_status); }; then
7453
 
    case `/usr/bin/file conftest.o` in
7454
 
    *64-bit*)
7455
 
      case $lt_cv_prog_gnu_ld in
7456
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7457
 
      *)
7458
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7459
 
          LD="${LD-ld} -64"
7460
 
        fi
7461
 
        ;;
7462
 
      esac
7463
 
      ;;
7464
 
    esac
7465
 
  fi
7466
 
  rm -rf conftest*
7467
 
  ;;
7468
 
esac
7469
 
 
7470
 
need_locks="$enable_libtool_lock"
 
7932
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7933
$as_echo_n "checking for objdir... " >&6; }
 
7934
if test "${lt_cv_objdir+set}" = set; then
 
7935
  $as_echo_n "(cached) " >&6
 
7936
else
 
7937
  rm -f .libs 2>/dev/null
 
7938
mkdir .libs 2>/dev/null
 
7939
if test -d .libs; then
 
7940
  lt_cv_objdir=.libs
 
7941
else
 
7942
  # MS-DOS does not allow filenames that begin with a dot.
 
7943
  lt_cv_objdir=_libs
 
7944
fi
 
7945
rmdir .libs 2>/dev/null
 
7946
fi
 
7947
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7948
$as_echo "$lt_cv_objdir" >&6; }
 
7949
objdir=$lt_cv_objdir
 
7950
 
 
7951
 
 
7952
 
 
7953
 
 
7954
 
 
7955
case $host_os in
 
7956
aix3*)
 
7957
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7958
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7959
  # vanish in a puff of smoke.
 
7960
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7961
    COLLECT_NAMES=
 
7962
    export COLLECT_NAMES
 
7963
  fi
 
7964
  ;;
 
7965
esac
 
7966
 
 
7967
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7968
# metacharacters that are still active within double-quoted strings.
 
7969
Xsed='sed -e 1s/^X//'
 
7970
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7971
 
 
7972
# Same as above, but do not quote variable references.
 
7973
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7974
 
 
7975
# Sed substitution to delay expansion of an escaped shell variable in a
 
7976
# double_quote_subst'ed string.
 
7977
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7978
 
 
7979
# Sed substitution to avoid accidental globbing in evaled expressions
 
7980
no_glob_subst='s/\*/\\\*/g'
 
7981
 
 
7982
# Constants:
 
7983
rm="rm -f"
 
7984
 
 
7985
# Global variables:
 
7986
default_ofile=libtool
 
7987
can_build_shared=yes
 
7988
 
 
7989
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7990
# which needs '.lib').
 
7991
libext=a
 
7992
ltmain="$ac_aux_dir/ltmain.sh"
 
7993
ofile="$default_ofile"
 
7994
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7995
 
 
7996
if test -n "$ac_tool_prefix"; then
 
7997
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7998
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7999
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8000
$as_echo_n "checking for $ac_word... " >&6; }
 
8001
if test "${ac_cv_prog_AR+set}" = set; then
 
8002
  $as_echo_n "(cached) " >&6
 
8003
else
 
8004
  if test -n "$AR"; then
 
8005
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8006
else
 
8007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8008
for as_dir in $PATH
 
8009
do
 
8010
  IFS=$as_save_IFS
 
8011
  test -z "$as_dir" && as_dir=.
 
8012
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8013
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8014
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
8015
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8016
    break 2
 
8017
  fi
 
8018
done
 
8019
done
 
8020
IFS=$as_save_IFS
 
8021
 
 
8022
fi
 
8023
fi
 
8024
AR=$ac_cv_prog_AR
 
8025
if test -n "$AR"; then
 
8026
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
8027
$as_echo "$AR" >&6; }
 
8028
else
 
8029
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8030
$as_echo "no" >&6; }
 
8031
fi
 
8032
 
 
8033
 
 
8034
fi
 
8035
if test -z "$ac_cv_prog_AR"; then
 
8036
  ac_ct_AR=$AR
 
8037
  # Extract the first word of "ar", so it can be a program name with args.
 
8038
set dummy ar; ac_word=$2
 
8039
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8040
$as_echo_n "checking for $ac_word... " >&6; }
 
8041
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8042
  $as_echo_n "(cached) " >&6
 
8043
else
 
8044
  if test -n "$ac_ct_AR"; then
 
8045
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
8046
else
 
8047
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8048
for as_dir in $PATH
 
8049
do
 
8050
  IFS=$as_save_IFS
 
8051
  test -z "$as_dir" && as_dir=.
 
8052
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8053
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8054
    ac_cv_prog_ac_ct_AR="ar"
 
8055
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8056
    break 2
 
8057
  fi
 
8058
done
 
8059
done
 
8060
IFS=$as_save_IFS
 
8061
 
 
8062
fi
 
8063
fi
 
8064
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
8065
if test -n "$ac_ct_AR"; then
 
8066
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8067
$as_echo "$ac_ct_AR" >&6; }
 
8068
else
 
8069
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8070
$as_echo "no" >&6; }
 
8071
fi
 
8072
 
 
8073
  if test "x$ac_ct_AR" = x; then
 
8074
    AR="false"
 
8075
  else
 
8076
    case $cross_compiling:$ac_tool_warned in
 
8077
yes:)
 
8078
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8079
whose name does not start with the host triplet.  If you think this
 
8080
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8081
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8082
whose name does not start with the host triplet.  If you think this
 
8083
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8084
ac_tool_warned=yes ;;
 
8085
esac
 
8086
    AR=$ac_ct_AR
 
8087
  fi
 
8088
else
 
8089
  AR="$ac_cv_prog_AR"
 
8090
fi
 
8091
 
 
8092
if test -n "$ac_tool_prefix"; then
 
8093
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
8094
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
8095
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8096
$as_echo_n "checking for $ac_word... " >&6; }
 
8097
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8098
  $as_echo_n "(cached) " >&6
 
8099
else
 
8100
  if test -n "$RANLIB"; then
 
8101
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
8102
else
 
8103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8104
for as_dir in $PATH
 
8105
do
 
8106
  IFS=$as_save_IFS
 
8107
  test -z "$as_dir" && as_dir=.
 
8108
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8109
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8110
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
8111
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8112
    break 2
 
8113
  fi
 
8114
done
 
8115
done
 
8116
IFS=$as_save_IFS
 
8117
 
 
8118
fi
 
8119
fi
 
8120
RANLIB=$ac_cv_prog_RANLIB
 
8121
if test -n "$RANLIB"; then
 
8122
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8123
$as_echo "$RANLIB" >&6; }
 
8124
else
 
8125
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8126
$as_echo "no" >&6; }
 
8127
fi
 
8128
 
 
8129
 
 
8130
fi
 
8131
if test -z "$ac_cv_prog_RANLIB"; then
 
8132
  ac_ct_RANLIB=$RANLIB
 
8133
  # Extract the first word of "ranlib", so it can be a program name with args.
 
8134
set dummy ranlib; ac_word=$2
 
8135
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8136
$as_echo_n "checking for $ac_word... " >&6; }
 
8137
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8138
  $as_echo_n "(cached) " >&6
 
8139
else
 
8140
  if test -n "$ac_ct_RANLIB"; then
 
8141
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
8142
else
 
8143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8144
for as_dir in $PATH
 
8145
do
 
8146
  IFS=$as_save_IFS
 
8147
  test -z "$as_dir" && as_dir=.
 
8148
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8149
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8150
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
8151
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8152
    break 2
 
8153
  fi
 
8154
done
 
8155
done
 
8156
IFS=$as_save_IFS
 
8157
 
 
8158
fi
 
8159
fi
 
8160
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
8161
if test -n "$ac_ct_RANLIB"; then
 
8162
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8163
$as_echo "$ac_ct_RANLIB" >&6; }
 
8164
else
 
8165
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8166
$as_echo "no" >&6; }
 
8167
fi
 
8168
 
 
8169
  if test "x$ac_ct_RANLIB" = x; then
 
8170
    RANLIB=":"
 
8171
  else
 
8172
    case $cross_compiling:$ac_tool_warned in
 
8173
yes:)
 
8174
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8175
whose name does not start with the host triplet.  If you think this
 
8176
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8177
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8178
whose name does not start with the host triplet.  If you think this
 
8179
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8180
ac_tool_warned=yes ;;
 
8181
esac
 
8182
    RANLIB=$ac_ct_RANLIB
 
8183
  fi
 
8184
else
 
8185
  RANLIB="$ac_cv_prog_RANLIB"
 
8186
fi
 
8187
 
 
8188
if test -n "$ac_tool_prefix"; then
 
8189
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
8190
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
8191
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8192
$as_echo_n "checking for $ac_word... " >&6; }
 
8193
if test "${ac_cv_prog_STRIP+set}" = set; then
 
8194
  $as_echo_n "(cached) " >&6
 
8195
else
 
8196
  if test -n "$STRIP"; then
 
8197
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
8198
else
 
8199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8200
for as_dir in $PATH
 
8201
do
 
8202
  IFS=$as_save_IFS
 
8203
  test -z "$as_dir" && as_dir=.
 
8204
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8205
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8206
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
8207
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8208
    break 2
 
8209
  fi
 
8210
done
 
8211
done
 
8212
IFS=$as_save_IFS
 
8213
 
 
8214
fi
 
8215
fi
 
8216
STRIP=$ac_cv_prog_STRIP
 
8217
if test -n "$STRIP"; then
 
8218
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
8219
$as_echo "$STRIP" >&6; }
 
8220
else
 
8221
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8222
$as_echo "no" >&6; }
 
8223
fi
 
8224
 
 
8225
 
 
8226
fi
 
8227
if test -z "$ac_cv_prog_STRIP"; then
 
8228
  ac_ct_STRIP=$STRIP
 
8229
  # Extract the first word of "strip", so it can be a program name with args.
 
8230
set dummy strip; ac_word=$2
 
8231
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8232
$as_echo_n "checking for $ac_word... " >&6; }
 
8233
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
8234
  $as_echo_n "(cached) " >&6
 
8235
else
 
8236
  if test -n "$ac_ct_STRIP"; then
 
8237
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
8238
else
 
8239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8240
for as_dir in $PATH
 
8241
do
 
8242
  IFS=$as_save_IFS
 
8243
  test -z "$as_dir" && as_dir=.
 
8244
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8245
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8246
    ac_cv_prog_ac_ct_STRIP="strip"
 
8247
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8248
    break 2
 
8249
  fi
 
8250
done
 
8251
done
 
8252
IFS=$as_save_IFS
 
8253
 
 
8254
fi
 
8255
fi
 
8256
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
8257
if test -n "$ac_ct_STRIP"; then
 
8258
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
8259
$as_echo "$ac_ct_STRIP" >&6; }
 
8260
else
 
8261
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8262
$as_echo "no" >&6; }
 
8263
fi
 
8264
 
 
8265
  if test "x$ac_ct_STRIP" = x; then
 
8266
    STRIP=":"
 
8267
  else
 
8268
    case $cross_compiling:$ac_tool_warned in
 
8269
yes:)
 
8270
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8271
whose name does not start with the host triplet.  If you think this
 
8272
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8273
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8274
whose name does not start with the host triplet.  If you think this
 
8275
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8276
ac_tool_warned=yes ;;
 
8277
esac
 
8278
    STRIP=$ac_ct_STRIP
 
8279
  fi
 
8280
else
 
8281
  STRIP="$ac_cv_prog_STRIP"
 
8282
fi
 
8283
 
 
8284
 
 
8285
old_CC="$CC"
 
8286
old_CFLAGS="$CFLAGS"
 
8287
 
 
8288
# Set sane defaults for various variables
 
8289
test -z "$AR" && AR=ar
 
8290
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
8291
test -z "$AS" && AS=as
 
8292
test -z "$CC" && CC=cc
 
8293
test -z "$LTCC" && LTCC=$CC
 
8294
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
8295
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8296
test -z "$LD" && LD=ld
 
8297
test -z "$LN_S" && LN_S="ln -s"
 
8298
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8299
test -z "$NM" && NM=nm
 
8300
test -z "$SED" && SED=sed
 
8301
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8302
test -z "$RANLIB" && RANLIB=:
 
8303
test -z "$STRIP" && STRIP=:
 
8304
test -z "$ac_objext" && ac_objext=o
 
8305
 
 
8306
# Determine commands to create old-style static archives.
 
8307
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
8308
old_postinstall_cmds='chmod 644 $oldlib'
 
8309
old_postuninstall_cmds=
 
8310
 
 
8311
if test -n "$RANLIB"; then
 
8312
  case $host_os in
 
8313
  openbsd*)
 
8314
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
8315
    ;;
 
8316
  *)
 
8317
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
8318
    ;;
 
8319
  esac
 
8320
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
8321
fi
 
8322
 
 
8323
for cc_temp in $compiler""; do
 
8324
  case $cc_temp in
 
8325
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8326
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8327
    \-*) ;;
 
8328
    *) break;;
 
8329
  esac
 
8330
done
 
8331
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8332
 
 
8333
 
 
8334
# Only perform the check for file, if the check method requires it
 
8335
case $deplibs_check_method in
 
8336
file_magic*)
 
8337
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8338
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8339
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
8340
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8341
  $as_echo_n "(cached) " >&6
 
8342
else
 
8343
  case $MAGIC_CMD in
 
8344
[\\/*] |  ?:[\\/]*)
 
8345
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8346
  ;;
 
8347
*)
 
8348
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8349
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8350
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8351
  for ac_dir in $ac_dummy; do
 
8352
    IFS="$lt_save_ifs"
 
8353
    test -z "$ac_dir" && ac_dir=.
 
8354
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8355
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8356
      if test -n "$file_magic_test_file"; then
 
8357
        case $deplibs_check_method in
 
8358
        "file_magic "*)
 
8359
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8360
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8361
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8362
            $EGREP "$file_magic_regex" > /dev/null; then
 
8363
            :
 
8364
          else
 
8365
            cat <<EOF 1>&2
 
8366
 
 
8367
*** Warning: the command libtool uses to detect shared libraries,
 
8368
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8369
*** The result is that libtool may fail to recognize shared libraries
 
8370
*** as such.  This will affect the creation of libtool libraries that
 
8371
*** depend on shared libraries, but programs linked with such libtool
 
8372
*** libraries will work regardless of this problem.  Nevertheless, you
 
8373
*** may want to report the problem to your system manager and/or to
 
8374
*** bug-libtool@gnu.org
 
8375
 
 
8376
EOF
 
8377
          fi ;;
 
8378
        esac
 
8379
      fi
 
8380
      break
 
8381
    fi
 
8382
  done
 
8383
  IFS="$lt_save_ifs"
 
8384
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8385
  ;;
 
8386
esac
 
8387
fi
 
8388
 
 
8389
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8390
if test -n "$MAGIC_CMD"; then
 
8391
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8392
$as_echo "$MAGIC_CMD" >&6; }
 
8393
else
 
8394
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8395
$as_echo "no" >&6; }
 
8396
fi
 
8397
 
 
8398
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8399
  if test -n "$ac_tool_prefix"; then
 
8400
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
8401
$as_echo_n "checking for file... " >&6; }
 
8402
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8403
  $as_echo_n "(cached) " >&6
 
8404
else
 
8405
  case $MAGIC_CMD in
 
8406
[\\/*] |  ?:[\\/]*)
 
8407
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8408
  ;;
 
8409
*)
 
8410
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8411
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8412
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8413
  for ac_dir in $ac_dummy; do
 
8414
    IFS="$lt_save_ifs"
 
8415
    test -z "$ac_dir" && ac_dir=.
 
8416
    if test -f $ac_dir/file; then
 
8417
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8418
      if test -n "$file_magic_test_file"; then
 
8419
        case $deplibs_check_method in
 
8420
        "file_magic "*)
 
8421
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
8422
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8423
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8424
            $EGREP "$file_magic_regex" > /dev/null; then
 
8425
            :
 
8426
          else
 
8427
            cat <<EOF 1>&2
 
8428
 
 
8429
*** Warning: the command libtool uses to detect shared libraries,
 
8430
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8431
*** The result is that libtool may fail to recognize shared libraries
 
8432
*** as such.  This will affect the creation of libtool libraries that
 
8433
*** depend on shared libraries, but programs linked with such libtool
 
8434
*** libraries will work regardless of this problem.  Nevertheless, you
 
8435
*** may want to report the problem to your system manager and/or to
 
8436
*** bug-libtool@gnu.org
 
8437
 
 
8438
EOF
 
8439
          fi ;;
 
8440
        esac
 
8441
      fi
 
8442
      break
 
8443
    fi
 
8444
  done
 
8445
  IFS="$lt_save_ifs"
 
8446
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8447
  ;;
 
8448
esac
 
8449
fi
 
8450
 
 
8451
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8452
if test -n "$MAGIC_CMD"; then
 
8453
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8454
$as_echo "$MAGIC_CMD" >&6; }
 
8455
else
 
8456
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
8457
$as_echo "no" >&6; }
 
8458
fi
 
8459
 
 
8460
  else
 
8461
    MAGIC_CMD=:
 
8462
  fi
 
8463
fi
 
8464
 
 
8465
  fi
 
8466
  ;;
 
8467
esac
7471
8468
 
7472
8469
 
7473
8470
  case $host_os in
7665
8662
fi
7666
8663
 
7667
8664
 
7668
 
 
7669
 
 
7670
 
 
7671
 
 
7672
 
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
 
 
7678
8665
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7679
8666
$as_echo_n "checking for -single_module linker flag... " >&6; }
7680
8667
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7682
8669
else
7683
8670
  lt_cv_apple_cc_single_mod=no
7684
8671
      if test -z "${LT_MULTI_MODULE}"; then
7685
 
        # By default we will add the -single_module flag. You can override
7686
 
        # by either setting the environment variable LT_MULTI_MODULE
7687
 
        # non-empty at configure time, or by adding -multi_module to the
7688
 
        # link flags.
7689
 
        rm -rf libconftest.dylib*
7690
 
        echo "int foo(void){return 1;}" > conftest.c
7691
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7692
 
-dynamiclib -Wl,-single_module conftest.c" >&5
7693
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7694
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7695
 
        _lt_result=$?
7696
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7697
 
          lt_cv_apple_cc_single_mod=yes
7698
 
        else
7699
 
          cat conftest.err >&5
7700
 
        fi
7701
 
        rm -rf libconftest.dylib*
7702
 
        rm -f conftest.*
 
8672
   # By default we will add the -single_module flag. You can override
 
8673
   # by either setting the environment variable LT_MULTI_MODULE
 
8674
   # non-empty at configure time, or by adding -multi_module to the
 
8675
   # link flags.
 
8676
   echo "int foo(void){return 1;}" > conftest.c
 
8677
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8678
     -dynamiclib ${wl}-single_module conftest.c
 
8679
   if test -f libconftest.dylib; then
 
8680
     lt_cv_apple_cc_single_mod=yes
 
8681
     rm -rf libconftest.dylib*
 
8682
   fi
 
8683
   rm conftest.c
7703
8684
      fi
7704
8685
fi
7705
8686
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7760
8741
rm -rf conftest.dSYM
7761
8742
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7762
8743
      conftest$ac_exeext conftest.$ac_ext
7763
 
        LDFLAGS="$save_LDFLAGS"
 
8744
   LDFLAGS="$save_LDFLAGS"
7764
8745
 
7765
8746
fi
7766
8747
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7767
8748
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7768
8749
    case $host_os in
7769
 
    rhapsody* | darwin1.[012])
 
8750
    rhapsody* | darwin1.[0123])
7770
8751
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7771
8752
    darwin1.*)
7772
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7773
 
    darwin*) # darwin 5.x on
 
8753
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8754
    darwin*)
7774
8755
      # if running on 10.5 or later, the deployment target defaults
7775
8756
      # to the OS version, if on x86, and 10.4, the deployment
7776
8757
      # target defaults to 10.4. Don't you love it?
7777
8758
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7778
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7779
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7780
 
        10.[012]*)
7781
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7782
 
        10.*)
7783
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8759
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8760
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8761
   10.[012]*)
 
8762
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8763
   10.*)
 
8764
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7784
8765
      esac
7785
8766
    ;;
7786
8767
  esac
7790
8771
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7791
8772
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7792
8773
    else
7793
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8774
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7794
8775
    fi
7795
8776
    if test "$DSYMUTIL" != ":"; then
7796
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8777
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7797
8778
    else
7798
8779
      _lt_dsymutil=
7799
8780
    fi
7801
8782
  esac
7802
8783
 
7803
8784
 
7804
 
for ac_header in dlfcn.h
7805
 
do
7806
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7808
 
$as_echo_n "checking for $ac_header... " >&6; }
7809
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7810
 
  $as_echo_n "(cached) " >&6
7811
 
else
7812
 
  cat >conftest.$ac_ext <<_ACEOF
7813
 
/* confdefs.h.  */
7814
 
_ACEOF
7815
 
cat confdefs.h >>conftest.$ac_ext
7816
 
cat >>conftest.$ac_ext <<_ACEOF
7817
 
/* end confdefs.h.  */
7818
 
$ac_includes_default
7819
 
 
7820
 
#include <$ac_header>
7821
 
_ACEOF
7822
 
rm -f conftest.$ac_objext
7823
 
if { (ac_try="$ac_compile"
7824
 
case "(($ac_try" in
7825
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826
 
  *) ac_try_echo=$ac_try;;
7827
 
esac
7828
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829
 
$as_echo "$ac_try_echo") >&5
7830
 
  (eval "$ac_compile") 2>conftest.er1
7831
 
  ac_status=$?
7832
 
  grep -v '^ *+' conftest.er1 >conftest.err
7833
 
  rm -f conftest.er1
7834
 
  cat conftest.err >&5
7835
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836
 
  (exit $ac_status); } && {
7837
 
         test -z "$ac_c_werror_flag" ||
7838
 
         test ! -s conftest.err
7839
 
       } && test -s conftest.$ac_objext; then
7840
 
  eval "$as_ac_Header=yes"
7841
 
else
7842
 
  $as_echo "$as_me: failed program was:" >&5
7843
 
sed 's/^/| /' conftest.$ac_ext >&5
7844
 
 
7845
 
        eval "$as_ac_Header=no"
7846
 
fi
7847
 
 
7848
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849
 
fi
7850
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
7851
 
                 $as_echo "$as_val"'`
7852
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7853
 
$as_echo "$ac_res" >&6; }
7854
 
if test `eval 'as_val=${'$as_ac_Header'}
7855
 
                 $as_echo "$as_val"'` = yes; then
7856
 
  cat >>confdefs.h <<_ACEOF
7857
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858
 
_ACEOF
7859
 
 
7860
 
fi
7861
 
 
7862
 
done
7863
 
 
7864
 
 
7865
 
 
7866
 
# Set options
7867
 
 
7868
 
 
7869
 
 
7870
 
        enable_dlopen=no
7871
 
 
7872
 
 
7873
 
 
7874
 
            # Check whether --enable-shared was given.
7875
 
if test "${enable_shared+set}" = set; then
7876
 
  enableval=$enable_shared; p=${PACKAGE-default}
7877
 
    case $enableval in
7878
 
    yes) enable_shared=yes ;;
7879
 
    no) enable_shared=no ;;
7880
 
    *)
7881
 
      enable_shared=no
7882
 
      # Look at the argument we got.  We use all the common list separators.
7883
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7884
 
      for pkg in $enableval; do
7885
 
        IFS="$lt_save_ifs"
7886
 
        if test "X$pkg" = "X$p"; then
7887
 
          enable_shared=yes
7888
 
        fi
7889
 
      done
7890
 
      IFS="$lt_save_ifs"
7891
 
      ;;
7892
 
    esac
7893
 
else
7894
 
  enable_shared=yes
7895
 
fi
7896
 
 
7897
 
 
7898
 
 
7899
 
 
7900
 
 
7901
 
 
7902
 
 
7903
 
 
7904
 
 
7905
 
  # Check whether --enable-static was given.
7906
 
if test "${enable_static+set}" = set; then
7907
 
  enableval=$enable_static; p=${PACKAGE-default}
7908
 
    case $enableval in
7909
 
    yes) enable_static=yes ;;
7910
 
    no) enable_static=no ;;
7911
 
    *)
7912
 
     enable_static=no
7913
 
      # Look at the argument we got.  We use all the common list separators.
7914
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7915
 
      for pkg in $enableval; do
7916
 
        IFS="$lt_save_ifs"
7917
 
        if test "X$pkg" = "X$p"; then
7918
 
          enable_static=yes
7919
 
        fi
7920
 
      done
7921
 
      IFS="$lt_save_ifs"
7922
 
      ;;
7923
 
    esac
7924
 
else
7925
 
  enable_static=yes
7926
 
fi
7927
 
 
7928
 
 
7929
 
 
7930
 
 
7931
 
 
7932
 
 
7933
 
 
7934
 
 
 
8785
enable_dlopen=no
 
8786
enable_win32_dll=yes
 
8787
 
 
8788
# Check whether --enable-libtool-lock was given.
 
8789
if test "${enable_libtool_lock+set}" = set; then
 
8790
  enableval=$enable_libtool_lock;
 
8791
fi
 
8792
 
 
8793
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7935
8794
 
7936
8795
 
7937
8796
# Check whether --with-pic was given.
7941
8800
  pic_mode=default
7942
8801
fi
7943
8802
 
7944
 
 
7945
8803
test -z "$pic_mode" && pic_mode=default
7946
8804
 
7947
 
 
7948
 
 
7949
 
 
7950
 
 
7951
 
 
7952
 
 
7953
 
  # Check whether --enable-fast-install was given.
7954
 
if test "${enable_fast_install+set}" = set; then
7955
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
7956
 
    case $enableval in
7957
 
    yes) enable_fast_install=yes ;;
7958
 
    no) enable_fast_install=no ;;
7959
 
    *)
7960
 
      enable_fast_install=no
7961
 
      # Look at the argument we got.  We use all the common list separators.
7962
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963
 
      for pkg in $enableval; do
7964
 
        IFS="$lt_save_ifs"
7965
 
        if test "X$pkg" = "X$p"; then
7966
 
          enable_fast_install=yes
7967
 
        fi
7968
 
      done
7969
 
      IFS="$lt_save_ifs"
7970
 
      ;;
7971
 
    esac
7972
 
else
7973
 
  enable_fast_install=yes
7974
 
fi
7975
 
 
7976
 
 
7977
 
 
7978
 
 
7979
 
 
7980
 
 
7981
 
 
7982
 
 
7983
 
 
7984
 
 
7985
 
 
7986
 
# This can be used to rebuild libtool when needed
7987
 
LIBTOOL_DEPS="$ltmain"
7988
 
 
7989
 
# Always use our own libtool.
7990
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7991
 
 
7992
 
 
7993
 
 
7994
 
 
7995
 
 
7996
 
 
7997
 
 
7998
 
 
7999
 
 
8000
 
 
8001
 
 
8002
 
 
8003
 
 
8004
 
 
8005
 
 
8006
 
 
8007
 
 
8008
 
 
8009
 
 
8010
 
 
8011
 
 
8012
 
 
8013
 
 
8014
 
 
8015
 
 
8016
 
test -z "$LN_S" && LN_S="ln -s"
8017
 
 
8018
 
 
8019
 
 
8020
 
 
8021
 
 
8022
 
 
8023
 
 
8024
 
 
8025
 
 
8026
 
 
8027
 
 
8028
 
 
8029
 
 
8030
 
 
8031
 
if test -n "${ZSH_VERSION+set}" ; then
8032
 
   setopt NO_GLOB_SUBST
8033
 
fi
8034
 
 
8035
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8036
 
$as_echo_n "checking for objdir... " >&6; }
8037
 
if test "${lt_cv_objdir+set}" = set; then
8038
 
  $as_echo_n "(cached) " >&6
8039
 
else
8040
 
  rm -f .libs 2>/dev/null
8041
 
mkdir .libs 2>/dev/null
8042
 
if test -d .libs; then
8043
 
  lt_cv_objdir=.libs
8044
 
else
8045
 
  # MS-DOS does not allow filenames that begin with a dot.
8046
 
  lt_cv_objdir=_libs
8047
 
fi
8048
 
rmdir .libs 2>/dev/null
8049
 
fi
8050
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8051
 
$as_echo "$lt_cv_objdir" >&6; }
8052
 
objdir=$lt_cv_objdir
8053
 
 
8054
 
 
8055
 
 
8056
 
 
8057
 
 
8058
 
cat >>confdefs.h <<_ACEOF
8059
 
#define LT_OBJDIR "$lt_cv_objdir/"
8060
 
_ACEOF
8061
 
 
8062
 
 
8063
 
 
8064
 
 
8065
 
 
8066
 
 
8067
 
 
8068
 
 
8069
 
 
8070
 
 
8071
 
 
8072
 
 
8073
 
 
8074
 
 
8075
 
 
8076
 
 
8077
 
 
8078
 
case $host_os in
8079
 
aix3*)
8080
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
8081
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8082
 
  # vanish in a puff of smoke.
8083
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
8084
 
    COLLECT_NAMES=
8085
 
    export COLLECT_NAMES
8086
 
  fi
8087
 
  ;;
8088
 
esac
8089
 
 
8090
 
# Sed substitution that helps us do robust quoting.  It backslashifies
8091
 
# metacharacters that are still active within double-quoted strings.
8092
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8093
 
 
8094
 
# Same as above, but do not quote variable references.
8095
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8096
 
 
8097
 
# Sed substitution to delay expansion of an escaped shell variable in a
8098
 
# double_quote_subst'ed string.
8099
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8100
 
 
8101
 
# Sed substitution to delay expansion of an escaped single quote.
8102
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8103
 
 
8104
 
# Sed substitution to avoid accidental globbing in evaled expressions
8105
 
no_glob_subst='s/\*/\\\*/g'
8106
 
 
8107
 
# Global variables:
8108
 
ofile=libtool
8109
 
can_build_shared=yes
8110
 
 
8111
 
# All known linkers require a `.a' archive for static linking (except MSVC,
8112
 
# which needs '.lib').
8113
 
libext=a
8114
 
 
8115
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
8116
 
 
8117
 
old_CC="$CC"
8118
 
old_CFLAGS="$CFLAGS"
8119
 
 
8120
 
# Set sane defaults for various variables
8121
 
test -z "$CC" && CC=cc
8122
 
test -z "$LTCC" && LTCC=$CC
8123
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124
 
test -z "$LD" && LD=ld
8125
 
test -z "$ac_objext" && ac_objext=o
8126
 
 
8127
 
for cc_temp in $compiler""; do
8128
 
  case $cc_temp in
8129
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8130
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8131
 
    \-*) ;;
8132
 
    *) break;;
8133
 
  esac
8134
 
done
8135
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8136
 
 
8137
 
 
8138
 
# Only perform the check for file, if the check method requires it
8139
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140
 
case $deplibs_check_method in
8141
 
file_magic*)
8142
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8144
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8145
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8146
 
  $as_echo_n "(cached) " >&6
8147
 
else
8148
 
  case $MAGIC_CMD in
8149
 
[\\/*] |  ?:[\\/]*)
8150
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8151
 
  ;;
8152
 
*)
8153
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8154
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156
 
  for ac_dir in $ac_dummy; do
8157
 
    IFS="$lt_save_ifs"
8158
 
    test -z "$ac_dir" && ac_dir=.
8159
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
8160
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8161
 
      if test -n "$file_magic_test_file"; then
8162
 
        case $deplibs_check_method in
8163
 
        "file_magic "*)
8164
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167
 
            $EGREP "$file_magic_regex" > /dev/null; then
8168
 
            :
8169
 
          else
8170
 
            cat <<_LT_EOF 1>&2
8171
 
 
8172
 
*** Warning: the command libtool uses to detect shared libraries,
8173
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8174
 
*** The result is that libtool may fail to recognize shared libraries
8175
 
*** as such.  This will affect the creation of libtool libraries that
8176
 
*** depend on shared libraries, but programs linked with such libtool
8177
 
*** libraries will work regardless of this problem.  Nevertheless, you
8178
 
*** may want to report the problem to your system manager and/or to
8179
 
*** bug-libtool@gnu.org
8180
 
 
8181
 
_LT_EOF
8182
 
          fi ;;
8183
 
        esac
8184
 
      fi
8185
 
      break
8186
 
    fi
8187
 
  done
8188
 
  IFS="$lt_save_ifs"
8189
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8190
 
  ;;
8191
 
esac
8192
 
fi
8193
 
 
8194
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195
 
if test -n "$MAGIC_CMD"; then
8196
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8197
 
$as_echo "$MAGIC_CMD" >&6; }
8198
 
else
8199
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8200
 
$as_echo "no" >&6; }
8201
 
fi
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
8208
 
  if test -n "$ac_tool_prefix"; then
8209
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
8210
 
$as_echo_n "checking for file... " >&6; }
8211
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8212
 
  $as_echo_n "(cached) " >&6
8213
 
else
8214
 
  case $MAGIC_CMD in
8215
 
[\\/*] |  ?:[\\/]*)
8216
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217
 
  ;;
8218
 
*)
8219
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
8220
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222
 
  for ac_dir in $ac_dummy; do
8223
 
    IFS="$lt_save_ifs"
8224
 
    test -z "$ac_dir" && ac_dir=.
8225
 
    if test -f $ac_dir/file; then
8226
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227
 
      if test -n "$file_magic_test_file"; then
8228
 
        case $deplibs_check_method in
8229
 
        "file_magic "*)
8230
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233
 
            $EGREP "$file_magic_regex" > /dev/null; then
8234
 
            :
8235
 
          else
8236
 
            cat <<_LT_EOF 1>&2
8237
 
 
8238
 
*** Warning: the command libtool uses to detect shared libraries,
8239
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
8240
 
*** The result is that libtool may fail to recognize shared libraries
8241
 
*** as such.  This will affect the creation of libtool libraries that
8242
 
*** depend on shared libraries, but programs linked with such libtool
8243
 
*** libraries will work regardless of this problem.  Nevertheless, you
8244
 
*** may want to report the problem to your system manager and/or to
8245
 
*** bug-libtool@gnu.org
8246
 
 
8247
 
_LT_EOF
8248
 
          fi ;;
8249
 
        esac
8250
 
      fi
8251
 
      break
8252
 
    fi
8253
 
  done
8254
 
  IFS="$lt_save_ifs"
8255
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
8256
 
  ;;
8257
 
esac
8258
 
fi
8259
 
 
8260
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261
 
if test -n "$MAGIC_CMD"; then
8262
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8263
 
$as_echo "$MAGIC_CMD" >&6; }
8264
 
else
8265
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
8266
 
$as_echo "no" >&6; }
8267
 
fi
8268
 
 
8269
 
 
8270
 
  else
8271
 
    MAGIC_CMD=:
8272
 
  fi
8273
 
fi
8274
 
 
8275
 
  fi
8276
 
  ;;
8277
 
esac
8278
 
 
8279
8805
# Use C for the default configuration in the libtool script
8280
 
 
 
8806
tagname=
8281
8807
lt_save_CC="$CC"
8282
8808
ac_ext=c
8283
8809
ac_cpp='$CPP $CPPFLAGS'
8300
8826
lt_simple_link_test_code='int main(){return(0);}'
8301
8827
 
8302
8828
 
8303
 
 
8304
 
 
8305
 
 
8306
 
 
8307
 
 
8308
8829
# If no C compiler was specified, use CC.
8309
8830
LTCC=${LTCC-"$CC"}
8310
8831
 
8314
8835
# Allow CC to be a program name with arguments.
8315
8836
compiler=$CC
8316
8837
 
8317
 
# Save the default compiler, since it gets overwritten when the other
8318
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319
 
compiler_DEFAULT=$CC
8320
8838
 
8321
8839
# save warnings/boilerplate of simple test code
8322
8840
ac_outfile=conftest.$ac_objext
8323
8841
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8324
8842
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325
8843
_lt_compiler_boilerplate=`cat conftest.err`
8326
 
$RM conftest*
 
8844
$rm conftest*
8327
8845
 
8328
8846
ac_outfile=conftest.$ac_objext
8329
8847
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8330
8848
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331
8849
_lt_linker_boilerplate=`cat conftest.err`
8332
 
$RM -r conftest*
8333
 
 
8334
 
 
8335
 
## CAVEAT EMPTOR:
8336
 
## There is no encapsulation within the following macros, do not change
8337
 
## the running order or otherwise move them around unless you know exactly
8338
 
## what you are doing...
8339
 
if test -n "$compiler"; then
 
8850
$rm -r conftest*
 
8851
 
 
8852
 
8340
8853
 
8341
8854
lt_prog_compiler_no_builtin_flag=
8342
8855
 
8343
8856
if test "$GCC" = yes; then
8344
8857
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8345
8858
 
8346
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8859
 
 
8860
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8347
8861
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8348
8862
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8349
8863
  $as_echo_n "(cached) " >&6
8350
8864
else
8351
8865
  lt_cv_prog_compiler_rtti_exceptions=no
8352
 
   ac_outfile=conftest.$ac_objext
 
8866
  ac_outfile=conftest.$ac_objext
8353
8867
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8354
8868
   lt_compiler_flag="-fno-rtti -fno-exceptions"
8355
8869
   # Insert the option either (1) after the last *FLAGS variable, or
8361
8875
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8362
8876
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8363
8877
   -e 's:$: $lt_compiler_flag:'`
8364
 
   (eval echo "\"\$as_me:8364: $lt_compile\"" >&5)
 
8878
   (eval echo "\"\$as_me:8878: $lt_compile\"" >&5)
8365
8879
   (eval "$lt_compile" 2>conftest.err)
8366
8880
   ac_status=$?
8367
8881
   cat conftest.err >&5
8368
 
   echo "$as_me:8368: \$? = $ac_status" >&5
 
8882
   echo "$as_me:8882: \$? = $ac_status" >&5
8369
8883
   if (exit $ac_status) && test -s "$ac_outfile"; then
8370
8884
     # The compiler can only warn and ignore the option if not recognized
8371
8885
     # So say no if there are warnings other than the usual output.
8372
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8886
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8373
8887
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8374
8888
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8375
8889
       lt_cv_prog_compiler_rtti_exceptions=yes
8376
8890
     fi
8377
8891
   fi
8378
 
   $RM conftest*
 
8892
   $rm conftest*
8379
8893
 
8380
8894
fi
8381
8895
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8389
8903
 
8390
8904
fi
8391
8905
 
8392
 
 
8393
 
 
8394
 
 
8395
 
 
8396
 
 
8397
 
  lt_prog_compiler_wl=
 
8906
lt_prog_compiler_wl=
8398
8907
lt_prog_compiler_pic=
8399
8908
lt_prog_compiler_static=
8400
8909
 
8415
8924
      ;;
8416
8925
 
8417
8926
    amigaos*)
8418
 
      case $host_cpu in
8419
 
      powerpc)
8420
 
            # see comment about AmigaOS4 .so support
8421
 
            lt_prog_compiler_pic='-fPIC'
8422
 
        ;;
8423
 
      m68k)
8424
 
            # FIXME: we need at least 68020 code to build shared libraries, but
8425
 
            # adding the `-m68020' flag to GCC prevents building anything better,
8426
 
            # like `-m68040'.
8427
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8428
 
        ;;
8429
 
      esac
 
8927
      # FIXME: we need at least 68020 code to build shared libraries, but
 
8928
      # adding the `-m68020' flag to GCC prevents building anything better,
 
8929
      # like `-m68040'.
 
8930
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8430
8931
      ;;
8431
8932
 
8432
8933
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8447
8948
      lt_prog_compiler_pic='-fno-common'
8448
8949
      ;;
8449
8950
 
 
8951
    interix[3-9]*)
 
8952
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8953
      # Instead, we relocate shared libraries at runtime.
 
8954
      ;;
 
8955
 
 
8956
    msdosdjgpp*)
 
8957
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8958
      # on systems that don't support them.
 
8959
      lt_prog_compiler_can_build_shared=no
 
8960
      enable_shared=no
 
8961
      ;;
 
8962
 
 
8963
    sysv4*MP*)
 
8964
      if test -d /usr/nec; then
 
8965
        lt_prog_compiler_pic=-Kconform_pic
 
8966
      fi
 
8967
      ;;
 
8968
 
8450
8969
    hpux*)
8451
8970
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8452
8971
      # not for PA HP-UX.
8460
8979
      esac
8461
8980
      ;;
8462
8981
 
8463
 
    interix[3-9]*)
8464
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8465
 
      # Instead, we relocate shared libraries at runtime.
8466
 
      ;;
8467
 
 
8468
 
    msdosdjgpp*)
8469
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8470
 
      # on systems that don't support them.
8471
 
      lt_prog_compiler_can_build_shared=no
8472
 
      enable_shared=no
8473
 
      ;;
8474
 
 
8475
 
    *nto* | *qnx*)
8476
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8477
 
      # it will coredump.
8478
 
      lt_prog_compiler_pic='-fPIC -shared'
8479
 
      ;;
8480
 
 
8481
 
    sysv4*MP*)
8482
 
      if test -d /usr/nec; then
8483
 
        lt_prog_compiler_pic=-Kconform_pic
8484
 
      fi
8485
 
      ;;
8486
 
 
8487
8982
    *)
8488
8983
      lt_prog_compiler_pic='-fPIC'
8489
8984
      ;;
8500
8995
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8501
8996
      fi
8502
8997
      ;;
 
8998
      darwin*)
 
8999
        # PIC is the default on this platform
 
9000
        # Common symbols not allowed in MH_DYLIB files
 
9001
       case $cc_basename in
 
9002
         xlc*)
 
9003
         lt_prog_compiler_pic='-qnocommon'
 
9004
         lt_prog_compiler_wl='-Wl,'
 
9005
         ;;
 
9006
       esac
 
9007
       ;;
8503
9008
 
8504
9009
    mingw* | cygwin* | pw32* | os2*)
8505
9010
      # This hack is so that the source file can tell whether it is being
8529
9034
      lt_prog_compiler_static='-non_shared'
8530
9035
      ;;
8531
9036
 
 
9037
    newsos6)
 
9038
      lt_prog_compiler_pic='-KPIC'
 
9039
      lt_prog_compiler_static='-Bstatic'
 
9040
      ;;
 
9041
 
8532
9042
    linux* | k*bsd*-gnu)
8533
9043
      case $cc_basename in
8534
 
      icc* | ecc* | ifort*)
 
9044
      icc* | ecc*)
8535
9045
        lt_prog_compiler_wl='-Wl,'
8536
9046
        lt_prog_compiler_pic='-KPIC'
8537
9047
        lt_prog_compiler_static='-static'
8548
9058
        # All Alpha code is PIC.
8549
9059
        lt_prog_compiler_static='-non_shared'
8550
9060
        ;;
8551
 
      xl*)
8552
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
8553
 
        lt_prog_compiler_wl='-Wl,'
8554
 
        lt_prog_compiler_pic='-qpic'
8555
 
        lt_prog_compiler_static='-qstaticlink'
8556
 
        ;;
8557
9061
      *)
8558
 
        case `$CC -V 2>&1 | sed 5q` in
 
9062
        case `$CC -V 2>&1 | sed 5q` in
8559
9063
        *Sun\ C*)
8560
9064
          # Sun C 5.9
8561
9065
          lt_prog_compiler_pic='-KPIC'
8573
9077
      esac
8574
9078
      ;;
8575
9079
 
8576
 
    newsos6)
8577
 
      lt_prog_compiler_pic='-KPIC'
8578
 
      lt_prog_compiler_static='-Bstatic'
8579
 
      ;;
8580
 
 
8581
 
    *nto* | *qnx*)
8582
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8583
 
      # it will coredump.
8584
 
      lt_prog_compiler_pic='-fPIC -shared'
8585
 
      ;;
8586
 
 
8587
9080
    osf3* | osf4* | osf5*)
8588
9081
      lt_prog_compiler_wl='-Wl,'
8589
9082
      # All OSF/1 code is PIC.
8646
9139
    esac
8647
9140
  fi
8648
9141
 
8649
 
case $host_os in
8650
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8651
 
  *djgpp*)
8652
 
    lt_prog_compiler_pic=
8653
 
    ;;
8654
 
  *)
8655
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8656
 
    ;;
8657
 
esac
8658
9142
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8659
9143
$as_echo "$lt_prog_compiler_pic" >&6; }
8660
9144
 
8661
 
 
8662
 
 
8663
 
 
8664
 
 
8665
 
 
8666
9145
#
8667
9146
# Check to make sure the PIC flag actually works.
8668
9147
#
8669
9148
if test -n "$lt_prog_compiler_pic"; then
8670
 
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9149
 
 
9150
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8671
9151
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8672
9152
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8673
9153
  $as_echo_n "(cached) " >&6
8674
9154
else
8675
9155
  lt_cv_prog_compiler_pic_works=no
8676
 
   ac_outfile=conftest.$ac_objext
 
9156
  ac_outfile=conftest.$ac_objext
8677
9157
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678
9158
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8679
9159
   # Insert the option either (1) after the last *FLAGS variable, or
8685
9165
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686
9166
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687
9167
   -e 's:$: $lt_compiler_flag:'`
8688
 
   (eval echo "\"\$as_me:8688: $lt_compile\"" >&5)
 
9168
   (eval echo "\"\$as_me:9168: $lt_compile\"" >&5)
8689
9169
   (eval "$lt_compile" 2>conftest.err)
8690
9170
   ac_status=$?
8691
9171
   cat conftest.err >&5
8692
 
   echo "$as_me:8692: \$? = $ac_status" >&5
 
9172
   echo "$as_me:9172: \$? = $ac_status" >&5
8693
9173
   if (exit $ac_status) && test -s "$ac_outfile"; then
8694
9174
     # The compiler can only warn and ignore the option if not recognized
8695
9175
     # So say no if there are warnings other than the usual output.
8696
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9176
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8697
9177
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698
9178
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699
9179
       lt_cv_prog_compiler_pic_works=yes
8700
9180
     fi
8701
9181
   fi
8702
 
   $RM conftest*
 
9182
   $rm conftest*
8703
9183
 
8704
9184
fi
8705
9185
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8716
9196
fi
8717
9197
 
8718
9198
fi
8719
 
 
8720
 
 
8721
 
 
8722
 
 
8723
 
 
 
9199
case $host_os in
 
9200
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9201
  *djgpp*)
 
9202
    lt_prog_compiler_pic=
 
9203
    ;;
 
9204
  *)
 
9205
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9206
    ;;
 
9207
esac
8724
9208
 
8725
9209
#
8726
9210
# Check to make sure the static flag actually works.
8741
9225
     if test -s conftest.err; then
8742
9226
       # Append any errors to the config.log.
8743
9227
       cat conftest.err 1>&5
8744
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
9228
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8745
9229
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746
9230
       if diff conftest.exp conftest.er2 >/dev/null; then
8747
9231
         lt_cv_prog_compiler_static_works=yes
8750
9234
       lt_cv_prog_compiler_static_works=yes
8751
9235
     fi
8752
9236
   fi
8753
 
   $RM -r conftest*
 
9237
   $rm -r conftest*
8754
9238
   LDFLAGS="$save_LDFLAGS"
8755
9239
 
8756
9240
fi
8764
9248
fi
8765
9249
 
8766
9250
 
8767
 
 
8768
 
 
8769
 
 
8770
 
 
8771
 
 
8772
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8773
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8774
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8775
 
  $as_echo_n "(cached) " >&6
8776
 
else
8777
 
  lt_cv_prog_compiler_c_o=no
8778
 
   $RM -r conftest 2>/dev/null
8779
 
   mkdir conftest
8780
 
   cd conftest
8781
 
   mkdir out
8782
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8783
 
 
8784
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8785
 
   # Insert the option either (1) after the last *FLAGS variable, or
8786
 
   # (2) before a word containing "conftest.", or (3) at the end.
8787
 
   # Note that $ac_compile itself does not contain backslashes and begins
8788
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8789
 
   lt_compile=`echo "$ac_compile" | $SED \
8790
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8791
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8792
 
   -e 's:$: $lt_compiler_flag:'`
8793
 
   (eval echo "\"\$as_me:8793: $lt_compile\"" >&5)
8794
 
   (eval "$lt_compile" 2>out/conftest.err)
8795
 
   ac_status=$?
8796
 
   cat out/conftest.err >&5
8797
 
   echo "$as_me:8797: \$? = $ac_status" >&5
8798
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8799
 
   then
8800
 
     # The compiler can only warn and ignore the option if not recognized
8801
 
     # So say no if there are warnings
8802
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8803
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8804
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8805
 
       lt_cv_prog_compiler_c_o=yes
8806
 
     fi
8807
 
   fi
8808
 
   chmod u+w . 2>&5
8809
 
   $RM conftest*
8810
 
   # SGI C++ compiler will create directory out/ii_files/ for
8811
 
   # template instantiation
8812
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8813
 
   $RM out/* && rmdir out
8814
 
   cd ..
8815
 
   $RM -r conftest
8816
 
   $RM conftest*
8817
 
 
8818
 
fi
8819
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8820
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8821
 
 
8822
 
 
8823
 
 
8824
 
 
8825
 
 
8826
 
 
8827
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8828
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8829
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8830
 
  $as_echo_n "(cached) " >&6
8831
 
else
8832
 
  lt_cv_prog_compiler_c_o=no
8833
 
   $RM -r conftest 2>/dev/null
8834
 
   mkdir conftest
8835
 
   cd conftest
8836
 
   mkdir out
8837
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8838
 
 
8839
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8840
 
   # Insert the option either (1) after the last *FLAGS variable, or
8841
 
   # (2) before a word containing "conftest.", or (3) at the end.
8842
 
   # Note that $ac_compile itself does not contain backslashes and begins
8843
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8844
 
   lt_compile=`echo "$ac_compile" | $SED \
8845
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847
 
   -e 's:$: $lt_compiler_flag:'`
8848
 
   (eval echo "\"\$as_me:8848: $lt_compile\"" >&5)
8849
 
   (eval "$lt_compile" 2>out/conftest.err)
8850
 
   ac_status=$?
8851
 
   cat out/conftest.err >&5
8852
 
   echo "$as_me:8852: \$? = $ac_status" >&5
8853
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8854
 
   then
8855
 
     # The compiler can only warn and ignore the option if not recognized
8856
 
     # So say no if there are warnings
8857
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8858
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8859
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8860
 
       lt_cv_prog_compiler_c_o=yes
8861
 
     fi
8862
 
   fi
8863
 
   chmod u+w . 2>&5
8864
 
   $RM conftest*
8865
 
   # SGI C++ compiler will create directory out/ii_files/ for
8866
 
   # template instantiation
8867
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8868
 
   $RM out/* && rmdir out
8869
 
   cd ..
8870
 
   $RM -r conftest
8871
 
   $RM conftest*
8872
 
 
8873
 
fi
8874
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8875
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8876
 
 
8877
 
 
 
9251
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9252
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9253
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9254
  $as_echo_n "(cached) " >&6
 
9255
else
 
9256
  lt_cv_prog_compiler_c_o=no
 
9257
   $rm -r conftest 2>/dev/null
 
9258
   mkdir conftest
 
9259
   cd conftest
 
9260
   mkdir out
 
9261
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9262
 
 
9263
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9264
   # Insert the option either (1) after the last *FLAGS variable, or
 
9265
   # (2) before a word containing "conftest.", or (3) at the end.
 
9266
   # Note that $ac_compile itself does not contain backslashes and begins
 
9267
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9268
   lt_compile=`echo "$ac_compile" | $SED \
 
9269
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9270
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9271
   -e 's:$: $lt_compiler_flag:'`
 
9272
   (eval echo "\"\$as_me:9272: $lt_compile\"" >&5)
 
9273
   (eval "$lt_compile" 2>out/conftest.err)
 
9274
   ac_status=$?
 
9275
   cat out/conftest.err >&5
 
9276
   echo "$as_me:9276: \$? = $ac_status" >&5
 
9277
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9278
   then
 
9279
     # The compiler can only warn and ignore the option if not recognized
 
9280
     # So say no if there are warnings
 
9281
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9282
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9283
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9284
       lt_cv_prog_compiler_c_o=yes
 
9285
     fi
 
9286
   fi
 
9287
   chmod u+w . 2>&5
 
9288
   $rm conftest*
 
9289
   # SGI C++ compiler will create directory out/ii_files/ for
 
9290
   # template instantiation
 
9291
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
9292
   $rm out/* && rmdir out
 
9293
   cd ..
 
9294
   rmdir conftest
 
9295
   $rm conftest*
 
9296
 
 
9297
fi
 
9298
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9299
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8878
9300
 
8879
9301
 
8880
9302
hard_links="nottested"
8883
9305
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8884
9306
$as_echo_n "checking if we can lock with hard links... " >&6; }
8885
9307
  hard_links=yes
8886
 
  $RM conftest*
 
9308
  $rm conftest*
8887
9309
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8888
9310
  touch conftest.a
8889
9311
  ln conftest.a conftest.b 2>&5 || hard_links=no
8899
9321
  need_locks=no
8900
9322
fi
8901
9323
 
8902
 
 
8903
 
 
8904
 
 
8905
 
 
8906
 
 
8907
 
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9324
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8908
9325
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8909
9326
 
8910
9327
  runpath_var=
8911
9328
  allow_undefined_flag=
8912
 
  always_export_symbols=no
 
9329
  enable_shared_with_static_runtimes=no
8913
9330
  archive_cmds=
8914
9331
  archive_expsym_cmds=
8915
 
  compiler_needs_object=no
8916
 
  enable_shared_with_static_runtimes=no
 
9332
  old_archive_From_new_cmds=
 
9333
  old_archive_from_expsyms_cmds=
8917
9334
  export_dynamic_flag_spec=
8918
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8919
 
  hardcode_automatic=no
8920
 
  hardcode_direct=no
8921
 
  hardcode_direct_absolute=no
 
9335
  whole_archive_flag_spec=
 
9336
  thread_safe_flag_spec=
8922
9337
  hardcode_libdir_flag_spec=
8923
9338
  hardcode_libdir_flag_spec_ld=
8924
9339
  hardcode_libdir_separator=
 
9340
  hardcode_direct=no
8925
9341
  hardcode_minus_L=no
8926
9342
  hardcode_shlibpath_var=unsupported
8927
 
  inherit_rpath=no
8928
9343
  link_all_deplibs=unknown
 
9344
  hardcode_automatic=no
8929
9345
  module_cmds=
8930
9346
  module_expsym_cmds=
8931
 
  old_archive_from_new_cmds=
8932
 
  old_archive_from_expsyms_cmds=
8933
 
  thread_safe_flag_spec=
8934
 
  whole_archive_flag_spec=
 
9347
  always_export_symbols=no
 
9348
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8935
9349
  # include_expsyms should be a list of space-separated symbols to be *always*
8936
9350
  # included in the symbol list
8937
9351
  include_expsyms=
8947
9361
  # preloaded symbol tables.
8948
9362
  # Exclude shared library initialization/finalization symbols.
8949
9363
  extract_expsyms_cmds=
 
9364
  # Just being paranoid about ensuring that cc_basename is set.
 
9365
  for cc_temp in $compiler""; do
 
9366
  case $cc_temp in
 
9367
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9368
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9369
    \-*) ;;
 
9370
    *) break;;
 
9371
  esac
 
9372
done
 
9373
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8950
9374
 
8951
9375
  case $host_os in
8952
9376
  cygwin* | mingw* | pw32*)
8975
9399
    # are reset later if shared libraries are not supported. Putting them
8976
9400
    # here allows them to be overridden if necessary.
8977
9401
    runpath_var=LD_RUN_PATH
8978
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9402
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8979
9403
    export_dynamic_flag_spec='${wl}--export-dynamic'
8980
9404
    # ancient GNU ld didn't support --whole-archive et. al.
8981
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8982
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8983
 
    else
8984
 
      whole_archive_flag_spec=
 
9405
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9406
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9407
      else
 
9408
        whole_archive_flag_spec=
8985
9409
    fi
8986
9410
    supports_anon_versioning=no
8987
 
    case `$LD -v 2>&1` in
 
9411
    case `$LD -v 2>/dev/null` in
8988
9412
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8989
9413
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8990
9414
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998
9422
      # On AIX/PPC, the GNU linker is very broken
8999
9423
      if test "$host_cpu" != ia64; then
9000
9424
        ld_shlibs=no
9001
 
        cat <<_LT_EOF 1>&2
 
9425
        cat <<EOF 1>&2
9002
9426
 
9003
9427
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9004
9428
*** to be unable to reliably create shared libraries on AIX.
9006
9430
*** really care for shared libraries, you may want to modify your PATH
9007
9431
*** so that a non-GNU linker is found, and then restart.
9008
9432
 
9009
 
_LT_EOF
 
9433
EOF
9010
9434
      fi
9011
9435
      ;;
9012
9436
 
9013
9437
    amigaos*)
9014
 
      case $host_cpu in
9015
 
      powerpc)
9016
 
            # see comment about AmigaOS4 .so support
9017
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018
 
            archive_expsym_cmds=''
9019
 
        ;;
9020
 
      m68k)
9021
 
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9022
 
            hardcode_libdir_flag_spec='-L$libdir'
9023
 
            hardcode_minus_L=yes
9024
 
        ;;
9025
 
      esac
 
9438
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9439
      hardcode_libdir_flag_spec='-L$libdir'
 
9440
      hardcode_minus_L=yes
 
9441
 
 
9442
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
9443
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
9444
      # to version 4, is to share data among multiple programs linked
 
9445
      # with the same dynamic library.  Since this doesn't match the
 
9446
      # behavior of shared libraries on other platforms, we can't use
 
9447
      # them.
 
9448
      ld_shlibs=no
9026
9449
      ;;
9027
9450
 
9028
9451
    beos*)
9029
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9452
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9030
9453
        allow_undefined_flag=unsupported
9031
9454
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9032
9455
        # support --undefined.  This deserves some investigation.  FIXME
9037
9460
      ;;
9038
9461
 
9039
9462
    cygwin* | mingw* | pw32*)
9040
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9463
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9041
9464
      # as there is no search path for DLLs.
9042
9465
      hardcode_libdir_flag_spec='-L$libdir'
9043
9466
      allow_undefined_flag=unsupported
9044
9467
      always_export_symbols=no
9045
9468
      enable_shared_with_static_runtimes=yes
9046
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9469
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9047
9470
 
9048
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
9471
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9049
9472
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9050
9473
        # If the export-symbols file already is a .def file (1st line
9051
9474
        # is EXPORTS), use it as is; otherwise, prepend...
9076
9499
      archive_expsym_cmds='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'
9077
9500
      ;;
9078
9501
 
9079
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
9080
 
      tmp_diet=no
9081
 
      if test "$host_os" = linux-dietlibc; then
9082
 
        case $cc_basename in
9083
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9084
 
        esac
9085
 
      fi
9086
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9087
 
         && test "$tmp_diet" = no
9088
 
      then
 
9502
    gnu* | linux* | k*bsd*-gnu)
 
9503
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9089
9504
        tmp_addflag=
9090
 
        tmp_sharedflag='-shared'
9091
9505
        case $cc_basename,$host_cpu in
9092
 
        pgcc*)                          # Portland Group C compiler
9093
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
9506
        pgcc*)                          # Portland Group C compiler
 
9507
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9094
9508
          tmp_addflag=' $pic_flag'
9095
9509
          ;;
9096
9510
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9097
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
9511
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9098
9512
          tmp_addflag=' $pic_flag -Mnomain' ;;
9099
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
9513
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9100
9514
          tmp_addflag=' -i_dynamic' ;;
9101
9515
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9102
9516
          tmp_addflag=' -i_dynamic -nofor_main' ;;
9103
9517
        ifc* | ifort*)                  # Intel Fortran compiler
9104
9518
          tmp_addflag=' -nofor_main' ;;
9105
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9106
 
          tmp_sharedflag='-qmkshrobj'
9107
 
          tmp_addflag= ;;
9108
9519
        esac
9109
9520
        case `$CC -V 2>&1 | sed 5q` in
9110
9521
        *Sun\ C*)                       # Sun C 5.9
9111
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9112
 
          compiler_needs_object=yes
 
9522
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9113
9523
          tmp_sharedflag='-G' ;;
9114
9524
        *Sun\ F*)                       # Sun Fortran 8.3
9115
9525
          tmp_sharedflag='-G' ;;
 
9526
        *)
 
9527
          tmp_sharedflag='-shared' ;;
9116
9528
        esac
9117
9529
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9118
9530
 
9119
 
        if test "x$supports_anon_versioning" = xyes; then
9120
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9121
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9122
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
9123
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9124
 
        fi
9125
 
 
9126
 
        case $cc_basename in
9127
 
        xlf*)
9128
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9129
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9130
 
          hardcode_libdir_flag_spec=
9131
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
9132
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9133
 
          if test "x$supports_anon_versioning" = xyes; then
9134
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9135
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9136
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
9137
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9138
 
          fi
9139
 
          ;;
9140
 
        esac
 
9531
        if test $supports_anon_versioning = yes; then
 
9532
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
9533
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9534
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
9535
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9536
        fi
 
9537
        link_all_deplibs=no
9141
9538
      else
9142
 
        ld_shlibs=no
 
9539
        ld_shlibs=no
9143
9540
      fi
9144
9541
      ;;
9145
9542
 
9146
 
    netbsd*)
9147
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9543
    netbsd* | netbsdelf*-gnu)
 
9544
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9148
9545
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9149
9546
        wlarc=
9150
9547
      else
9154
9551
      ;;
9155
9552
 
9156
9553
    solaris*)
9157
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
9554
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9158
9555
        ld_shlibs=no
9159
 
        cat <<_LT_EOF 1>&2
 
9556
        cat <<EOF 1>&2
9160
9557
 
9161
9558
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9162
9559
*** create shared libraries on Solaris systems.  Therefore, libtool
9165
9562
*** your PATH or compiler configuration so that the native linker is
9166
9563
*** used, and then restart.
9167
9564
 
9168
 
_LT_EOF
9169
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9565
EOF
 
9566
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9170
9567
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171
9568
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9172
9569
      else
9190
9587
_LT_EOF
9191
9588
        ;;
9192
9589
        *)
9193
 
          # For security reasons, it is highly recommended that you always
9194
 
          # use absolute paths for naming shared libraries, and exclude the
9195
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
9196
 
          # requires that you compile everything twice, which is a pain.
9197
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9198
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9199
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9590
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9591
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
9592
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
9593
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9201
9594
          else
9202
9595
            ld_shlibs=no
9203
9596
          fi
9213
9606
      ;;
9214
9607
 
9215
9608
    *)
9216
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9609
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9217
9610
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218
9611
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219
9612
      else
9255
9648
      else
9256
9649
        # If we're using GNU nm, then we don't want the "-C" option.
9257
9650
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9258
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9259
 
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9651
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
9652
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9260
9653
        else
9261
 
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9654
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9262
9655
        fi
9263
9656
        aix_use_runtimelinking=no
9264
9657
 
9267
9660
        # need to do runtime linking.
9268
9661
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9269
9662
          for ld_flag in $LDFLAGS; do
9270
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9271
 
            aix_use_runtimelinking=yes
9272
 
            break
9273
 
          fi
 
9663
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9664
            aix_use_runtimelinking=yes
 
9665
            break
 
9666
          fi
9274
9667
          done
9275
9668
          ;;
9276
9669
        esac
9287
9680
 
9288
9681
      archive_cmds=''
9289
9682
      hardcode_direct=yes
9290
 
      hardcode_direct_absolute=yes
9291
9683
      hardcode_libdir_separator=':'
9292
9684
      link_all_deplibs=yes
9293
 
      file_list_spec='${wl}-f,'
9294
9685
 
9295
9686
      if test "$GCC" = yes; then
9296
9687
        case $host_os in aix4.[012]|aix4.[012].*)
9297
9688
        # We only want to do this on AIX 4.2 and lower, the check
9298
9689
        # below for broken collect2 doesn't work under 4.3+
9299
9690
          collect2name=`${CC} -print-prog-name=collect2`
9300
 
          if test -f "$collect2name" &&
9301
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9691
          if test -f "$collect2name" && \
 
9692
           strings "$collect2name" | grep resolve_lib_name >/dev/null
9302
9693
          then
9303
 
          # We have reworked collect2
9304
 
          :
 
9694
          # We have reworked collect2
 
9695
          :
9305
9696
          else
9306
 
          # We have old collect2
9307
 
          hardcode_direct=unsupported
9308
 
          # It fails to find uninstalled libraries when the uninstalled
9309
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
9310
 
          # to unsupported forces relinking
9311
 
          hardcode_minus_L=yes
9312
 
          hardcode_libdir_flag_spec='-L$libdir'
9313
 
          hardcode_libdir_separator=
 
9697
          # We have old collect2
 
9698
          hardcode_direct=unsupported
 
9699
          # It fails to find uninstalled libraries when the uninstalled
 
9700
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9701
          # to unsupported forces relinking
 
9702
          hardcode_minus_L=yes
 
9703
          hardcode_libdir_flag_spec='-L$libdir'
 
9704
          hardcode_libdir_separator=
9314
9705
          fi
9315
9706
          ;;
9316
9707
        esac
9321
9712
      else
9322
9713
        # not using gcc
9323
9714
        if test "$host_cpu" = ia64; then
9324
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9325
 
        # chokes on -Wl,-G. The following line is correct:
 
9715
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9716
        # chokes on -Wl,-G. The following line is correct:
9326
9717
          shared_flag='-G'
9327
9718
        else
9328
9719
          if test "$aix_use_runtimelinking" = yes; then
9340
9731
        # Warning - without using the other runtime loading flags (-brtl),
9341
9732
        # -berok will link without error, but may produce a broken library.
9342
9733
        allow_undefined_flag='-berok'
9343
 
        # Determine the default libpath from the value encoded in an
9344
 
        # empty executable.
9345
 
        cat >conftest.$ac_ext <<_ACEOF
 
9734
       # Determine the default libpath from the value encoded in an empty executable.
 
9735
       cat >conftest.$ac_ext <<_ACEOF
9346
9736
/* confdefs.h.  */
9347
9737
_ACEOF
9348
9738
cat confdefs.h >>conftest.$ac_ext
9403
9793
      conftest$ac_exeext conftest.$ac_ext
9404
9794
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9405
9795
 
9406
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9407
 
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9408
 
      else
 
9796
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9797
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9798
       else
9409
9799
        if test "$host_cpu" = ia64; then
9410
9800
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9411
9801
          allow_undefined_flag="-z nodefs"
9412
9802
          archive_expsym_cmds="\$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"
9413
9803
        else
9414
 
         # Determine the default libpath from the value encoded in an
9415
 
         # empty executable.
 
9804
         # Determine the default libpath from the value encoded in an empty executable.
9416
9805
         cat >conftest.$ac_ext <<_ACEOF
9417
9806
/* confdefs.h.  */
9418
9807
_ACEOF
9489
9878
      ;;
9490
9879
 
9491
9880
    amigaos*)
9492
 
      case $host_cpu in
9493
 
      powerpc)
9494
 
            # see comment about AmigaOS4 .so support
9495
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496
 
            archive_expsym_cmds=''
9497
 
        ;;
9498
 
      m68k)
9499
 
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9500
 
            hardcode_libdir_flag_spec='-L$libdir'
9501
 
            hardcode_minus_L=yes
9502
 
        ;;
9503
 
      esac
 
9881
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
9882
      hardcode_libdir_flag_spec='-L$libdir'
 
9883
      hardcode_minus_L=yes
 
9884
      # see comment about different semantics on the GNU ld section
 
9885
      ld_shlibs=no
9504
9886
      ;;
9505
9887
 
9506
9888
    bsdi[45]*)
9519
9901
      # Tell ltmain to make .dll files, not .so files.
9520
9902
      shrext_cmds=".dll"
9521
9903
      # FIXME: Setting linknames here is a bad hack.
9522
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9904
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9523
9905
      # The linker will automatically build a .lib file if we build a DLL.
9524
 
      old_archive_from_new_cmds='true'
 
9906
      old_archive_From_new_cmds='true'
9525
9907
      # FIXME: Should let the user specify the lib program.
9526
9908
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9527
9909
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9529
9911
      ;;
9530
9912
 
9531
9913
    darwin* | rhapsody*)
9532
 
 
9533
 
 
9534
 
  archive_cmds_need_lc=no
9535
 
  hardcode_direct=no
9536
 
  hardcode_automatic=yes
9537
 
  hardcode_shlibpath_var=unsupported
9538
 
  whole_archive_flag_spec=''
9539
 
  link_all_deplibs=yes
9540
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
9541
 
  if test "$GCC" = "yes"; then
9542
 
    output_verbose_link_cmd=echo
9543
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9544
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9545
 
    archive_expsym_cmds="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}"
9546
 
    module_expsym_cmds="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}"
9547
 
 
9548
 
  else
9549
 
  ld_shlibs=no
9550
 
  fi
9551
 
 
 
9914
      case $host_os in
 
9915
        rhapsody* | darwin1.[012])
 
9916
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
9917
         ;;
 
9918
       *) # Darwin 1.3 on
 
9919
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9920
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9921
         else
 
9922
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9923
             10.[012])
 
9924
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9925
               ;;
 
9926
             10.*)
 
9927
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
9928
               ;;
 
9929
           esac
 
9930
         fi
 
9931
         ;;
 
9932
      esac
 
9933
      archive_cmds_need_lc=no
 
9934
      hardcode_direct=no
 
9935
      hardcode_automatic=yes
 
9936
      hardcode_shlibpath_var=unsupported
 
9937
      whole_archive_flag_spec=''
 
9938
      link_all_deplibs=yes
 
9939
    if test "$GCC" = yes ; then
 
9940
        output_verbose_link_cmd='echo'
 
9941
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9942
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9943
        archive_expsym_cmds="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}"
 
9944
        module_expsym_cmds="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}"
 
9945
    else
 
9946
      case $cc_basename in
 
9947
        xlc*)
 
9948
         output_verbose_link_cmd='echo'
 
9949
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
9950
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9951
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9952
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9953
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9954
          ;;
 
9955
       *)
 
9956
         ld_shlibs=no
 
9957
          ;;
 
9958
      esac
 
9959
    fi
9552
9960
      ;;
9553
9961
 
9554
9962
    dgux*)
9590
9998
 
9591
9999
    hpux9*)
9592
10000
      if test "$GCC" = yes; then
9593
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10001
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9594
10002
      else
9595
 
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10003
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9596
10004
      fi
9597
10005
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9598
10006
      hardcode_libdir_separator=:
9612
10020
      fi
9613
10021
      if test "$with_gnu_ld" = no; then
9614
10022
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
9616
10023
        hardcode_libdir_separator=:
 
10024
 
9617
10025
        hardcode_direct=yes
9618
 
        hardcode_direct_absolute=yes
9619
10026
        export_dynamic_flag_spec='${wl}-E'
 
10027
 
9620
10028
        # hardcode_minus_L: Not really in the search PATH,
9621
10029
        # but as the default location of the library.
9622
10030
        hardcode_minus_L=yes
9655
10063
 
9656
10064
        case $host_cpu in
9657
10065
        hppa*64*|ia64*)
 
10066
          hardcode_libdir_flag_spec_ld='+b $libdir'
9658
10067
          hardcode_direct=no
9659
10068
          hardcode_shlibpath_var=no
9660
10069
          ;;
9661
10070
        *)
9662
10071
          hardcode_direct=yes
9663
 
          hardcode_direct_absolute=yes
9664
10072
          export_dynamic_flag_spec='${wl}-E'
9665
10073
 
9666
10074
          # hardcode_minus_L: Not really in the search PATH,
9673
10081
 
9674
10082
    irix5* | irix6* | nonstopux*)
9675
10083
      if test "$GCC" = yes; then
9676
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9677
 
        # Try to use the -exported_symbol ld option, if it does not
9678
 
        # work, assume that -exports_file does not work either and
9679
 
        # implicitly export all symbols.
9680
 
        save_LDFLAGS="$LDFLAGS"
9681
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9682
 
        cat >conftest.$ac_ext <<_ACEOF
9683
 
int foo(void) {}
9684
 
_ACEOF
9685
 
rm -f conftest.$ac_objext conftest$ac_exeext
9686
 
if { (ac_try="$ac_link"
9687
 
case "(($ac_try" in
9688
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689
 
  *) ac_try_echo=$ac_try;;
9690
 
esac
9691
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9692
 
$as_echo "$ac_try_echo") >&5
9693
 
  (eval "$ac_link") 2>conftest.er1
9694
 
  ac_status=$?
9695
 
  grep -v '^ *+' conftest.er1 >conftest.err
9696
 
  rm -f conftest.er1
9697
 
  cat conftest.err >&5
9698
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699
 
  (exit $ac_status); } && {
9700
 
         test -z "$ac_c_werror_flag" ||
9701
 
         test ! -s conftest.err
9702
 
       } && test -s conftest$ac_exeext && {
9703
 
         test "$cross_compiling" = yes ||
9704
 
         $as_test_x conftest$ac_exeext
9705
 
       }; then
9706
 
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9707
 
 
9708
 
else
9709
 
  $as_echo "$as_me: failed program was:" >&5
9710
 
sed 's/^/| /' conftest.$ac_ext >&5
9711
 
 
9712
 
 
9713
 
fi
9714
 
 
9715
 
rm -rf conftest.dSYM
9716
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717
 
      conftest$ac_exeext conftest.$ac_ext
9718
 
        LDFLAGS="$save_LDFLAGS"
 
10084
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9719
10085
      else
9720
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9721
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10086
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10087
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9722
10088
      fi
9723
 
      archive_cmds_need_lc='no'
9724
10089
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725
10090
      hardcode_libdir_separator=:
9726
 
      inherit_rpath=yes
9727
10091
      link_all_deplibs=yes
9728
10092
      ;;
9729
10093
 
9730
 
    netbsd*)
9731
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10094
    netbsd* | netbsdelf*-gnu)
 
10095
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9732
10096
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9733
10097
      else
9734
10098
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9746
10110
      hardcode_shlibpath_var=no
9747
10111
      ;;
9748
10112
 
9749
 
    *nto* | *qnx*)
9750
 
      ;;
9751
 
 
9752
10113
    openbsd*)
9753
10114
      if test -f /usr/libexec/ld.so; then
9754
10115
        hardcode_direct=yes
9755
10116
        hardcode_shlibpath_var=no
9756
 
        hardcode_direct_absolute=yes
9757
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10117
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9758
10118
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9759
10119
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9760
10120
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9770
10130
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9771
10131
             ;;
9772
10132
          esac
9773
 
        fi
 
10133
        fi
9774
10134
      else
9775
10135
        ld_shlibs=no
9776
10136
      fi
9780
10140
      hardcode_libdir_flag_spec='-L$libdir'
9781
10141
      hardcode_minus_L=yes
9782
10142
      allow_undefined_flag=unsupported
9783
 
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9784
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10143
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
10144
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9785
10145
      ;;
9786
10146
 
9787
10147
    osf3*)
9788
10148
      if test "$GCC" = yes; then
9789
10149
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9790
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10150
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9791
10151
      else
9792
10152
        allow_undefined_flag=' -expect_unresolved \*'
9793
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
10153
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9794
10154
      fi
9795
 
      archive_cmds_need_lc='no'
9796
10155
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9797
10156
      hardcode_libdir_separator=:
9798
10157
      ;;
9800
10159
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9801
10160
      if test "$GCC" = yes; then
9802
10161
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9803
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10162
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9804
10163
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9805
10164
      else
9806
10165
        allow_undefined_flag=' -expect_unresolved \*'
9807
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9808
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9809
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10166
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10167
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
10168
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9810
10169
 
9811
10170
        # Both c and cxx compiler support -rpath directly
9812
10171
        hardcode_libdir_flag_spec='-rpath $libdir'
9813
10172
      fi
9814
 
      archive_cmds_need_lc='no'
9815
10173
      hardcode_libdir_separator=:
9816
10174
      ;;
9817
10175
 
9818
10176
    solaris*)
9819
 
      no_undefined_flag=' -z defs'
 
10177
      no_undefined_flag=' -z text'
9820
10178
      if test "$GCC" = yes; then
9821
10179
        wlarc='${wl}'
9822
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9823
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9824
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10180
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10181
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10182
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9825
10183
      else
9826
 
        case `$CC -V 2>&1` in
9827
 
        *"Compilers 5.0"*)
9828
 
          wlarc=''
9829
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9830
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9831
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9832
 
          ;;
9833
 
        *)
9834
 
          wlarc='${wl}'
9835
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9836
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9837
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9838
 
          ;;
9839
 
        esac
 
10184
        wlarc=''
 
10185
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10186
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10187
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9840
10188
      fi
9841
10189
      hardcode_libdir_flag_spec='-R$libdir'
9842
10190
      hardcode_shlibpath_var=no
9846
10194
        # The compiler driver will combine and reorder linker options,
9847
10195
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9848
10196
        # but is careful enough not to reorder.
9849
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10197
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9850
10198
        if test "$GCC" = yes; then
9851
10199
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9852
10200
        else
9935
10283
      allow_undefined_flag='${wl}-z,nodefs'
9936
10284
      archive_cmds_need_lc=no
9937
10285
      hardcode_shlibpath_var=no
9938
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10286
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9939
10287
      hardcode_libdir_separator=':'
9940
10288
      link_all_deplibs=yes
9941
10289
      export_dynamic_flag_spec='${wl}-Bexport'
9942
10290
      runpath_var='LD_RUN_PATH'
9943
10291
 
9944
10292
      if test "$GCC" = yes; then
9945
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10293
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10294
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947
10295
      else
9948
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10296
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10297
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9950
10298
      fi
9951
10299
      ;;
9952
10300
 
9960
10308
      ld_shlibs=no
9961
10309
      ;;
9962
10310
    esac
9963
 
 
9964
 
    if test x$host_vendor = xsni; then
9965
 
      case $host in
9966
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9967
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9968
 
        ;;
9969
 
      esac
9970
 
    fi
9971
10311
  fi
9972
10312
 
9973
10313
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9974
10314
$as_echo "$ld_shlibs" >&6; }
9975
10315
test "$ld_shlibs" = no && can_build_shared=no
9976
10316
 
9977
 
with_gnu_ld=$with_gnu_ld
9978
 
 
9979
 
 
9980
 
 
9981
 
 
9982
 
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
10317
#
9994
10318
# Do we need to explicitly link libc?
9995
10319
#
10009
10333
      # to ld, don't add -lc before -lgcc.
10010
10334
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10011
10335
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10012
 
      $RM conftest*
 
10336
      $rm conftest*
10013
10337
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10014
10338
 
10015
10339
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10030
10354
        libname=conftest
10031
10355
        lt_save_allow_undefined_flag=$allow_undefined_flag
10032
10356
        allow_undefined_flag=
10033
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10034
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10357
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10358
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10035
10359
  ac_status=$?
10036
10360
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037
10361
  (exit $ac_status); }
10044
10368
      else
10045
10369
        cat conftest.err 1>&5
10046
10370
      fi
10047
 
      $RM conftest*
 
10371
      $rm conftest*
10048
10372
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10049
10373
$as_echo "$archive_cmds_need_lc" >&6; }
10050
10374
      ;;
10053
10377
  ;;
10054
10378
esac
10055
10379
 
10056
 
 
10057
 
 
10058
 
 
10059
 
 
10060
 
 
10061
 
 
10062
 
 
10063
 
 
10064
 
 
10065
 
 
10066
 
 
10067
 
 
10068
 
 
10069
 
 
10070
 
 
10071
 
 
10072
 
 
10073
 
 
10074
 
 
10075
 
 
10076
 
 
10077
 
 
10078
 
 
10079
 
 
10080
 
 
10081
 
 
10082
 
 
10083
 
 
10084
 
 
10085
 
 
10086
 
 
10087
 
 
10088
 
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
 
10094
 
 
10095
 
 
10096
 
 
10097
 
 
10098
 
 
10099
 
 
10100
 
 
10101
 
 
10102
 
 
10103
 
 
10104
 
 
10105
 
 
10106
 
 
10107
 
 
10108
 
 
10109
 
 
10110
 
 
10111
 
 
10112
 
 
10113
 
 
10114
 
 
10115
 
 
10116
 
 
10117
 
 
10118
 
 
10119
 
 
10120
 
 
10121
 
 
10122
 
 
10123
 
 
10124
 
 
10125
 
 
10126
 
 
10127
 
 
10128
 
 
10129
 
 
10130
 
 
10131
 
 
10132
 
 
10133
 
 
10134
 
 
10135
 
 
10136
 
 
10137
 
 
10138
 
 
10139
 
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
 
 
10145
 
 
10146
 
 
10147
 
 
10148
 
 
10149
 
 
10150
 
 
10151
 
 
10152
 
 
10153
 
 
10154
 
 
10155
 
 
10156
 
 
10157
 
 
10158
 
 
10159
 
 
10160
 
 
10161
 
 
10162
 
 
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
 
10169
 
 
10170
 
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
 
 
10185
 
 
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
 
10192
 
 
10193
 
 
10194
 
 
10195
 
 
10196
 
 
10197
 
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
 
 
10206
 
 
10207
 
 
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10380
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10213
10381
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10382
library_names_spec=
 
10383
libname_spec='lib$name'
 
10384
soname_spec=
 
10385
shrext_cmds=".so"
 
10386
postinstall_cmds=
 
10387
postuninstall_cmds=
 
10388
finish_cmds=
 
10389
finish_eval=
 
10390
shlibpath_var=
 
10391
shlibpath_overrides_runpath=unknown
 
10392
version_type=none
 
10393
dynamic_linker="$host_os ld.so"
 
10394
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10214
10395
 
10215
10396
if test "$GCC" = yes; then
10216
10397
  case $host_os in
10218
10399
    *) lt_awk_arg="/^libraries:/" ;;
10219
10400
  esac
10220
10401
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10221
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
10402
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10222
10403
    # if the path contains ";" then we assume it to be the separator
10223
10404
    # otherwise default to the standard path separator (i.e. ":") - it is
10224
10405
    # assumed that no part of a normal pathname contains ";" but that should
10225
10406
    # okay in the real world where ";" in dirpaths is itself problematic.
10226
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10407
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10227
10408
  else
10228
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10409
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10229
10410
  fi
10230
10411
  # Ok, now we have the path, separated by spaces, we can step through it
10231
10412
  # and add multilib dir if necessary.
10239
10420
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10240
10421
    fi
10241
10422
  done
10242
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
10423
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10243
10424
BEGIN {RS=" "; FS="/|\n";} {
10244
10425
  lt_foo="";
10245
10426
  lt_count=0;
10259
10440
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10260
10441
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10261
10442
}'`
10262
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
10443
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
10263
10444
else
10264
10445
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10265
10446
fi
10266
 
library_names_spec=
10267
 
libname_spec='lib$name'
10268
 
soname_spec=
10269
 
shrext_cmds=".so"
10270
 
postinstall_cmds=
10271
 
postuninstall_cmds=
10272
 
finish_cmds=
10273
 
finish_eval=
10274
 
shlibpath_var=
10275
 
shlibpath_overrides_runpath=unknown
10276
 
version_type=none
10277
 
dynamic_linker="$host_os ld.so"
10278
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10279
10447
need_lib_prefix=unknown
10280
10448
hardcode_into_libs=no
10281
10449
 
10312
10480
      aix4 | aix4.[01] | aix4.[01].*)
10313
10481
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10314
10482
           echo ' yes '
10315
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10483
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10316
10484
        :
10317
10485
      else
10318
10486
        can_build_shared=no
10338
10506
  ;;
10339
10507
 
10340
10508
amigaos*)
10341
 
  case $host_cpu in
10342
 
  powerpc)
10343
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10344
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10345
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346
 
    ;;
10347
 
  m68k)
10348
 
    library_names_spec='$libname.ixlibrary $libname.a'
10349
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10350
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10351
 
    ;;
10352
 
  esac
 
10509
  library_names_spec='$libname.ixlibrary $libname.a'
 
10510
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10511
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
10353
10512
  ;;
10354
10513
 
10355
10514
beos*)
10383
10542
    library_names_spec='$libname.dll.a'
10384
10543
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10385
10544
    postinstall_cmds='base_file=`basename \${file}`~
10386
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10545
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10387
10546
      dldir=$destdir/`dirname \$dlpath`~
10388
10547
      test -d \$dldir || mkdir -p \$dldir~
10389
10548
      $install_prog $dir/$dlname \$dldir/$dlname~
10390
 
      chmod a+x \$dldir/$dlname~
10391
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10392
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10393
 
      fi'
 
10549
      chmod a+x \$dldir/$dlname'
10394
10550
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10395
10551
      dlpath=$dir/\$dldll~
10396
 
       $RM \$dlpath'
 
10552
       $rm \$dlpath'
10397
10553
    shlibpath_overrides_runpath=yes
10398
10554
 
10399
10555
    case $host_os in
10405
10561
    mingw*)
10406
10562
      # MinGW DLLs use traditional 'lib' prefix
10407
10563
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10408
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10409
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10564
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10565
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10410
10566
        # It is most probably a Windows format PATH printed by
10411
10567
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10412
10568
        # path with ; separators, and with drive letters. We can handle the
10413
10569
        # drive letters (cygwin fileutils understands them), so leave them,
10414
10570
        # especially as we might pass files found there to a mingw objdump,
10415
10571
        # which wouldn't understand a cygwinified path. Ahh.
10416
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10572
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10417
10573
      else
10418
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10574
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10419
10575
      fi
10420
10576
      ;;
10421
10577
    pw32*)
10439
10595
  version_type=darwin
10440
10596
  need_lib_prefix=no
10441
10597
  need_version=no
10442
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10598
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10443
10599
  soname_spec='${libname}${release}${major}$shared_ext'
10444
10600
  shlibpath_overrides_runpath=yes
10445
10601
  shlibpath_var=DYLD_LIBRARY_PATH
10538
10694
    fi
10539
10695
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10540
10696
    ;;
10541
 
  hppa*64*)
10542
 
    shrext_cmds='.sl'
10543
 
    hardcode_into_libs=yes
10544
 
    dynamic_linker="$host_os dld.sl"
10545
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10546
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10547
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548
 
    soname_spec='${libname}${release}${shared_ext}$major'
10549
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10550
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10551
 
    ;;
10552
 
  *)
 
10697
   hppa*64*)
 
10698
     shrext_cmds='.sl'
 
10699
     hardcode_into_libs=yes
 
10700
     dynamic_linker="$host_os dld.sl"
 
10701
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10702
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10703
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10704
     soname_spec='${libname}${release}${shared_ext}$major'
 
10705
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10706
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10707
     ;;
 
10708
   *)
10553
10709
    shrext_cmds='.sl'
10554
10710
    dynamic_linker="$host_os dld.sl"
10555
10711
    shlibpath_var=SHLIB_PATH
10626
10782
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10627
10783
  shlibpath_var=LD_LIBRARY_PATH
10628
10784
  shlibpath_overrides_runpath=no
10629
 
  # Some binutils ld are patched to set DT_RUNPATH
10630
 
  save_LDFLAGS=$LDFLAGS
10631
 
  save_libdir=$libdir
10632
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10633
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10634
 
  cat >conftest.$ac_ext <<_ACEOF
10635
 
/* confdefs.h.  */
10636
 
_ACEOF
10637
 
cat confdefs.h >>conftest.$ac_ext
10638
 
cat >>conftest.$ac_ext <<_ACEOF
10639
 
/* end confdefs.h.  */
10640
 
 
10641
 
int
10642
 
main ()
10643
 
{
10644
 
 
10645
 
  ;
10646
 
  return 0;
10647
 
}
10648
 
_ACEOF
10649
 
rm -f conftest.$ac_objext conftest$ac_exeext
10650
 
if { (ac_try="$ac_link"
10651
 
case "(($ac_try" in
10652
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653
 
  *) ac_try_echo=$ac_try;;
10654
 
esac
10655
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656
 
$as_echo "$ac_try_echo") >&5
10657
 
  (eval "$ac_link") 2>conftest.er1
10658
 
  ac_status=$?
10659
 
  grep -v '^ *+' conftest.er1 >conftest.err
10660
 
  rm -f conftest.er1
10661
 
  cat conftest.err >&5
10662
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663
 
  (exit $ac_status); } && {
10664
 
         test -z "$ac_c_werror_flag" ||
10665
 
         test ! -s conftest.err
10666
 
       } && test -s conftest$ac_exeext && {
10667
 
         test "$cross_compiling" = yes ||
10668
 
         $as_test_x conftest$ac_exeext
10669
 
       }; then
10670
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10671
 
  shlibpath_overrides_runpath=yes
10672
 
fi
10673
 
 
10674
 
else
10675
 
  $as_echo "$as_me: failed program was:" >&5
10676
 
sed 's/^/| /' conftest.$ac_ext >&5
10677
 
 
10678
 
 
10679
 
fi
10680
 
 
10681
 
rm -rf conftest.dSYM
10682
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10683
 
      conftest$ac_exeext conftest.$ac_ext
10684
 
  LDFLAGS=$save_LDFLAGS
10685
 
  libdir=$save_libdir
10686
 
 
10687
10785
  # This implies no fast_install, which is unacceptable.
10688
10786
  # Some rework will be needed to allow for fast_install
10689
10787
  # before this can be enabled.
10691
10789
 
10692
10790
  # Append ld.so.conf contents to the search path
10693
10791
  if test -f /etc/ld.so.conf; then
10694
 
    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;/^$/d' | tr '\n' ' '`
 
10792
    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;/^$/d' | tr '\n' ' '`
10695
10793
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10696
10794
  fi
10697
10795
 
10704
10802
  dynamic_linker='GNU/Linux ld.so'
10705
10803
  ;;
10706
10804
 
 
10805
netbsdelf*-gnu)
 
10806
  version_type=linux
 
10807
  need_lib_prefix=no
 
10808
  need_version=no
 
10809
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10810
  soname_spec='${libname}${release}${shared_ext}$major'
 
10811
  shlibpath_var=LD_LIBRARY_PATH
 
10812
  shlibpath_overrides_runpath=no
 
10813
  hardcode_into_libs=yes
 
10814
  dynamic_linker='NetBSD ld.elf_so'
 
10815
  ;;
 
10816
 
10707
10817
netbsd*)
10708
10818
  version_type=sunos
10709
10819
  need_lib_prefix=no
10710
10820
  need_version=no
10711
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10821
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10712
10822
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10713
10823
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10714
10824
    dynamic_linker='NetBSD (a.out) ld.so'
10729
10839
  shlibpath_overrides_runpath=yes
10730
10840
  ;;
10731
10841
 
10732
 
*nto* | *qnx*)
10733
 
  version_type=qnx
 
10842
nto-qnx*)
 
10843
  version_type=linux
10734
10844
  need_lib_prefix=no
10735
10845
  need_version=no
10736
10846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737
10847
  soname_spec='${libname}${release}${shared_ext}$major'
10738
10848
  shlibpath_var=LD_LIBRARY_PATH
10739
 
  shlibpath_overrides_runpath=no
10740
 
  hardcode_into_libs=yes
10741
 
  dynamic_linker='ldqnx.so'
 
10849
  shlibpath_overrides_runpath=yes
10742
10850
  ;;
10743
10851
 
10744
10852
openbsd*)
10747
10855
  need_lib_prefix=no
10748
10856
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10749
10857
  case $host_os in
10750
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10751
 
    *)                          need_version=no  ;;
 
10858
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
10859
    *)                         need_version=no  ;;
10752
10860
  esac
10753
10861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10754
10862
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10755
10863
  shlibpath_var=LD_LIBRARY_PATH
10756
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10864
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10757
10865
    case $host_os in
10758
10866
      openbsd2.[89] | openbsd2.[89].*)
10759
10867
        shlibpath_overrides_runpath=no
10825
10933
    sni)
10826
10934
      shlibpath_overrides_runpath=no
10827
10935
      need_lib_prefix=no
 
10936
      export_dynamic_flag_spec='${wl}-Blargedynsym'
10828
10937
      runpath_var=LD_RUN_PATH
10829
10938
      ;;
10830
10939
    siemens)
10855
10964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10856
10965
  soname_spec='${libname}${release}${shared_ext}$major'
10857
10966
  shlibpath_var=LD_LIBRARY_PATH
10858
 
  shlibpath_overrides_runpath=yes
10859
10967
  hardcode_into_libs=yes
10860
10968
  if test "$with_gnu_ld" = yes; then
10861
10969
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10970
    shlibpath_overrides_runpath=no
10862
10971
  else
10863
10972
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10973
    shlibpath_overrides_runpath=yes
10864
10974
    case $host_os in
10865
10975
      sco3.2v5*)
10866
10976
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10870
10980
  sys_lib_dlsearch_path_spec='/usr/lib'
10871
10981
  ;;
10872
10982
 
10873
 
tpf*)
10874
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10875
 
  version_type=linux
10876
 
  need_lib_prefix=no
10877
 
  need_version=no
10878
 
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879
 
  shlibpath_var=LD_LIBRARY_PATH
10880
 
  shlibpath_overrides_runpath=no
10881
 
  hardcode_into_libs=yes
10882
 
  ;;
10883
 
 
10884
10983
uts4*)
10885
10984
  version_type=linux
10886
10985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896
10995
$as_echo "$dynamic_linker" >&6; }
10897
10996
test "$dynamic_linker" = no && can_build_shared=no
10898
10997
 
 
10998
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10999
  $as_echo_n "(cached) " >&6
 
11000
else
 
11001
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
11002
fi
 
11003
 
 
11004
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11005
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11006
  $as_echo_n "(cached) " >&6
 
11007
else
 
11008
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
11009
fi
 
11010
 
 
11011
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11012
 
10899
11013
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10900
11014
if test "$GCC" = yes; then
10901
11015
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10902
11016
fi
10903
11017
 
10904
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10905
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10906
 
fi
10907
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10908
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10909
 
fi
10910
 
 
10911
 
 
10912
 
 
10913
 
 
10914
 
 
10915
 
 
10916
 
 
10917
 
 
10918
 
 
10919
 
 
10920
 
 
10921
 
 
10922
 
 
10923
 
 
10924
 
 
10925
 
 
10926
 
 
10927
 
 
10928
 
 
10929
 
 
10930
 
 
10931
 
 
10932
 
 
10933
 
 
10934
 
 
10935
 
 
10936
 
 
10937
 
 
10938
 
 
10939
 
 
10940
 
 
10941
 
 
10942
 
 
10943
 
 
10944
 
 
10945
 
 
10946
 
 
10947
 
 
10948
 
 
10949
 
 
10950
 
 
10951
 
 
10952
 
 
10953
 
 
10954
 
 
10955
 
 
10956
 
 
10957
 
 
10958
 
 
10959
 
 
10960
 
 
10961
 
 
10962
 
 
10963
 
 
10964
 
 
10965
 
 
10966
 
 
10967
 
 
10968
 
 
10969
 
 
10970
 
 
10971
 
 
10972
 
 
10973
 
 
10974
 
 
10975
 
 
10976
 
 
10977
 
 
10978
 
 
10979
 
 
10980
 
 
10981
 
 
10982
 
 
10983
 
 
10984
 
 
10985
 
 
10986
 
 
10987
 
 
10988
 
 
10989
 
 
10990
 
 
10991
 
 
10992
 
 
10993
 
 
10994
 
 
10995
 
 
10996
 
 
10997
 
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11018
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10998
11019
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10999
11020
hardcode_action=
11000
 
if test -n "$hardcode_libdir_flag_spec" ||
11001
 
   test -n "$runpath_var" ||
 
11021
if test -n "$hardcode_libdir_flag_spec" || \
 
11022
   test -n "$runpath_var" || \
11002
11023
   test "X$hardcode_automatic" = "Xyes" ; then
11003
11024
 
11004
 
  # We can hardcode non-existent directories.
 
11025
  # We can hardcode non-existant directories.
11005
11026
  if test "$hardcode_direct" != no &&
11006
11027
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11007
11028
     # have to relink, otherwise we might link with an installed library
11008
11029
     # when we should be linking with a yet-to-be-installed one
11009
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11030
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11010
11031
     test "$hardcode_minus_L" != no; then
11011
11032
    # Linking always hardcodes the temporary library directory.
11012
11033
    hardcode_action=relink
11022
11043
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11023
11044
$as_echo "$hardcode_action" >&6; }
11024
11045
 
11025
 
if test "$hardcode_action" = relink ||
11026
 
   test "$inherit_rpath" = yes; then
 
11046
if test "$hardcode_action" = relink; then
11027
11047
  # Fast installation is not supported
11028
11048
  enable_fast_install=no
11029
11049
elif test "$shlibpath_overrides_runpath" = yes ||
11032
11052
  enable_fast_install=needless
11033
11053
fi
11034
11054
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
  if test "x$enable_dlopen" != xyes; then
 
11055
striplib=
 
11056
old_striplib=
 
11057
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11058
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11059
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11060
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11061
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11062
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11063
$as_echo "yes" >&6; }
 
11064
else
 
11065
# FIXME - insert some real tests, host_os isn't really good enough
 
11066
  case $host_os in
 
11067
   darwin*)
 
11068
       if test -n "$STRIP" ; then
 
11069
         striplib="$STRIP -x"
 
11070
         old_striplib="$STRIP -S"
 
11071
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11072
$as_echo "yes" >&6; }
 
11073
       else
 
11074
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11075
$as_echo "no" >&6; }
 
11076
fi
 
11077
       ;;
 
11078
   *)
 
11079
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11080
$as_echo "no" >&6; }
 
11081
    ;;
 
11082
  esac
 
11083
fi
 
11084
 
 
11085
if test "x$enable_dlopen" != xyes; then
11041
11086
  enable_dlopen=unknown
11042
11087
  enable_dlopen_self=unknown
11043
11088
  enable_dlopen_self_static=unknown
11055
11100
  mingw* | pw32*)
11056
11101
    lt_cv_dlopen="LoadLibrary"
11057
11102
    lt_cv_dlopen_libs=
11058
 
    ;;
 
11103
   ;;
11059
11104
 
11060
11105
  cygwin*)
11061
11106
    lt_cv_dlopen="dlopen"
11062
11107
    lt_cv_dlopen_libs=
11063
 
    ;;
 
11108
   ;;
11064
11109
 
11065
11110
  darwin*)
11066
11111
  # if libdl is installed we need to link against it
11139
11184
 
11140
11185
fi
11141
11186
 
11142
 
    ;;
 
11187
   ;;
11143
11188
 
11144
11189
  *)
11145
11190
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11636
11681
else
11637
11682
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11638
11683
  lt_status=$lt_dlunknown
11639
 
  cat > conftest.$ac_ext <<_LT_EOF
11640
 
#line 11640 "configure"
 
11684
  cat > conftest.$ac_ext <<EOF
 
11685
#line 11685 "configure"
11641
11686
#include "confdefs.h"
11642
11687
 
11643
11688
#if HAVE_DLFCN_H
11699
11744
 
11700
11745
    exit (status);
11701
11746
}
11702
 
_LT_EOF
 
11747
EOF
11703
11748
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704
11749
  (eval $ac_link) 2>&5
11705
11750
  ac_status=$?
11736
11781
else
11737
11782
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11738
11783
  lt_status=$lt_dlunknown
11739
 
  cat > conftest.$ac_ext <<_LT_EOF
11740
 
#line 11740 "configure"
 
11784
  cat > conftest.$ac_ext <<EOF
 
11785
#line 11785 "configure"
11741
11786
#include "confdefs.h"
11742
11787
 
11743
11788
#if HAVE_DLFCN_H
11799
11844
 
11800
11845
    exit (status);
11801
11846
}
11802
 
_LT_EOF
 
11847
EOF
11803
11848
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804
11849
  (eval $ac_link) 2>&5
11805
11850
  ac_status=$?
11843
11888
fi
11844
11889
 
11845
11890
 
11846
 
 
11847
 
 
11848
 
 
11849
 
 
11850
 
 
11851
 
 
11852
 
 
11853
 
 
11854
 
 
11855
 
 
11856
 
 
11857
 
 
11858
 
 
11859
 
 
11860
 
 
11861
 
striplib=
11862
 
old_striplib=
11863
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11864
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11865
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11866
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11867
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11868
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
11869
 
$as_echo "yes" >&6; }
11870
 
else
11871
 
# FIXME - insert some real tests, host_os isn't really good enough
11872
 
  case $host_os in
11873
 
  darwin*)
11874
 
    if test -n "$STRIP" ; then
11875
 
      striplib="$STRIP -x"
11876
 
      old_striplib="$STRIP -S"
11877
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
11878
 
$as_echo "yes" >&6; }
11879
 
    else
11880
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
11881
 
$as_echo "no" >&6; }
11882
 
    fi
11883
 
    ;;
11884
 
  *)
11885
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
11886
 
$as_echo "no" >&6; }
11887
 
    ;;
11888
 
  esac
11889
 
fi
11890
 
 
11891
 
 
11892
 
 
11893
 
 
11894
 
 
11895
 
 
11896
 
 
11897
 
 
11898
 
 
11899
 
 
11900
 
 
11901
 
 
11902
 
  # Report which library types will actually be built
11903
 
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11904
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11905
 
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11906
 
$as_echo "$can_build_shared" >&6; }
11907
 
 
11908
 
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11909
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11910
 
  test "$can_build_shared" = "no" && enable_shared=no
11911
 
 
11912
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11913
 
  # are all built from PIC.
11914
 
  case $host_os in
11915
 
  aix3*)
11916
 
    test "$enable_shared" = yes && enable_static=no
11917
 
    if test -n "$RANLIB"; then
11918
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11919
 
      postinstall_cmds='$RANLIB $lib'
11920
 
    fi
11921
 
    ;;
11922
 
 
11923
 
  aix[4-9]*)
11924
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11925
 
      test "$enable_shared" = yes && enable_static=no
11926
 
    fi
11927
 
    ;;
11928
 
  esac
11929
 
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11930
 
$as_echo "$enable_shared" >&6; }
11931
 
 
11932
 
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11933
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11934
 
  # Make sure either enable_shared or enable_static is yes.
11935
 
  test "$enable_shared" = yes || enable_static=yes
11936
 
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11937
 
$as_echo "$enable_static" >&6; }
11938
 
 
11939
 
 
11940
 
 
11941
 
 
11942
 
fi
11943
 
ac_ext=c
11944
 
ac_cpp='$CPP $CPPFLAGS'
11945
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11946
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11947
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11948
 
 
11949
 
CC="$lt_save_CC"
11950
 
 
11951
 
 
11952
 
 
11953
 
 
11954
 
 
11955
 
 
11956
 
 
11957
 
 
11958
 
 
11959
 
 
11960
 
 
11961
 
 
11962
 
 
11963
 
        ac_config_commands="$ac_config_commands libtool"
11964
 
 
11965
 
 
11966
 
 
11967
 
 
11968
 
# Only expand once:
 
11891
# Report which library types will actually be built
 
11892
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11893
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11894
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11895
$as_echo "$can_build_shared" >&6; }
 
11896
 
 
11897
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11898
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11899
test "$can_build_shared" = "no" && enable_shared=no
 
11900
 
 
11901
# On AIX, shared libraries and static libraries use the same namespace, and
 
11902
# are all built from PIC.
 
11903
case $host_os in
 
11904
aix3*)
 
11905
  test "$enable_shared" = yes && enable_static=no
 
11906
  if test -n "$RANLIB"; then
 
11907
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11908
    postinstall_cmds='$RANLIB $lib'
 
11909
  fi
 
11910
  ;;
 
11911
 
 
11912
aix[4-9]*)
 
11913
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11914
    test "$enable_shared" = yes && enable_static=no
 
11915
  fi
 
11916
    ;;
 
11917
esac
 
11918
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11919
$as_echo "$enable_shared" >&6; }
 
11920
 
 
11921
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11922
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11923
# Make sure either enable_shared or enable_static is yes.
 
11924
test "$enable_shared" = yes || enable_static=yes
 
11925
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11926
$as_echo "$enable_static" >&6; }
 
11927
 
 
11928
# The else clause should only fire when bootstrapping the
 
11929
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11930
# with your package, and you will get complaints that there are
 
11931
# no rules to generate ltmain.sh.
 
11932
if test -f "$ltmain"; then
 
11933
  # See if we are running on zsh, and set the options which allow our commands through
 
11934
  # without removal of \ escapes.
 
11935
  if test -n "${ZSH_VERSION+set}" ; then
 
11936
    setopt NO_GLOB_SUBST
 
11937
  fi
 
11938
  # Now quote all the things that may contain metacharacters while being
 
11939
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11940
  # variables and quote the copies for generation of the libtool script.
 
11941
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
11942
    SED SHELL STRIP \
 
11943
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11944
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11945
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11946
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11947
    lt_cv_sys_global_symbol_to_c_name_address \
 
11948
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11949
    old_postinstall_cmds old_postuninstall_cmds \
 
11950
    compiler \
 
11951
    CC \
 
11952
    LD \
 
11953
    lt_prog_compiler_wl \
 
11954
    lt_prog_compiler_pic \
 
11955
    lt_prog_compiler_static \
 
11956
    lt_prog_compiler_no_builtin_flag \
 
11957
    export_dynamic_flag_spec \
 
11958
    thread_safe_flag_spec \
 
11959
    whole_archive_flag_spec \
 
11960
    enable_shared_with_static_runtimes \
 
11961
    old_archive_cmds \
 
11962
    old_archive_from_new_cmds \
 
11963
    predep_objects \
 
11964
    postdep_objects \
 
11965
    predeps \
 
11966
    postdeps \
 
11967
    compiler_lib_search_path \
 
11968
    compiler_lib_search_dirs \
 
11969
    archive_cmds \
 
11970
    archive_expsym_cmds \
 
11971
    postinstall_cmds \
 
11972
    postuninstall_cmds \
 
11973
    old_archive_from_expsyms_cmds \
 
11974
    allow_undefined_flag \
 
11975
    no_undefined_flag \
 
11976
    export_symbols_cmds \
 
11977
    hardcode_libdir_flag_spec \
 
11978
    hardcode_libdir_flag_spec_ld \
 
11979
    hardcode_libdir_separator \
 
11980
    hardcode_automatic \
 
11981
    module_cmds \
 
11982
    module_expsym_cmds \
 
11983
    lt_cv_prog_compiler_c_o \
 
11984
    fix_srcfile_path \
 
11985
    exclude_expsyms \
 
11986
    include_expsyms; do
 
11987
 
 
11988
    case $var in
 
11989
    old_archive_cmds | \
 
11990
    old_archive_from_new_cmds | \
 
11991
    archive_cmds | \
 
11992
    archive_expsym_cmds | \
 
11993
    module_cmds | \
 
11994
    module_expsym_cmds | \
 
11995
    old_archive_from_expsyms_cmds | \
 
11996
    export_symbols_cmds | \
 
11997
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11998
    postinstall_cmds | postuninstall_cmds | \
 
11999
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12000
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12001
      # Double-quote double-evaled strings.
 
12002
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12003
      ;;
 
12004
    *)
 
12005
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12006
      ;;
 
12007
    esac
 
12008
  done
 
12009
 
 
12010
  case $lt_echo in
 
12011
  *'\$0 --fallback-echo"')
 
12012
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12013
    ;;
 
12014
  esac
 
12015
 
 
12016
cfgfile="${ofile}T"
 
12017
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
12018
  $rm -f "$cfgfile"
 
12019
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
12020
$as_echo "$as_me: creating $ofile" >&6;}
 
12021
 
 
12022
  cat <<__EOF__ >> "$cfgfile"
 
12023
#! $SHELL
 
12024
 
 
12025
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
12026
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
12027
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
12028
#
 
12029
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
12030
# Free Software Foundation, Inc.
 
12031
#
 
12032
# This file is part of GNU Libtool:
 
12033
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
12034
#
 
12035
# This program is free software; you can redistribute it and/or modify
 
12036
# it under the terms of the GNU General Public License as published by
 
12037
# the Free Software Foundation; either version 2 of the License, or
 
12038
# (at your option) any later version.
 
12039
#
 
12040
# This program is distributed in the hope that it will be useful, but
 
12041
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
12042
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12043
# General Public License for more details.
 
12044
#
 
12045
# You should have received a copy of the GNU General Public License
 
12046
# along with this program; if not, write to the Free Software
 
12047
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
12048
#
 
12049
# As a special exception to the GNU General Public License, if you
 
12050
# distribute this file as part of a program that contains a
 
12051
# configuration script generated by Autoconf, you may include it under
 
12052
# the same distribution terms that you use for the rest of that program.
 
12053
 
 
12054
# A sed program that does not truncate output.
 
12055
SED=$lt_SED
 
12056
 
 
12057
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
12058
Xsed="$SED -e 1s/^X//"
 
12059
 
 
12060
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
12061
# if CDPATH is set.
 
12062
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
12063
 
 
12064
# The names of the tagged configurations supported by this script.
 
12065
available_tags=
 
12066
 
 
12067
# ### BEGIN LIBTOOL CONFIG
 
12068
 
 
12069
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12070
 
 
12071
# Shell to use when invoking shell scripts.
 
12072
SHELL=$lt_SHELL
 
12073
 
 
12074
# Whether or not to build shared libraries.
 
12075
build_libtool_libs=$enable_shared
 
12076
 
 
12077
# Whether or not to build static libraries.
 
12078
build_old_libs=$enable_static
 
12079
 
 
12080
# Whether or not to add -lc for building shared libraries.
 
12081
build_libtool_need_lc=$archive_cmds_need_lc
 
12082
 
 
12083
# Whether or not to disallow shared libs when runtime libs are static
 
12084
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
12085
 
 
12086
# Whether or not to optimize for fast installation.
 
12087
fast_install=$enable_fast_install
 
12088
 
 
12089
# The host system.
 
12090
host_alias=$host_alias
 
12091
host=$host
 
12092
host_os=$host_os
 
12093
 
 
12094
# The build system.
 
12095
build_alias=$build_alias
 
12096
build=$build
 
12097
build_os=$build_os
 
12098
 
 
12099
# An echo program that does not interpret backslashes.
 
12100
echo=$lt_echo
 
12101
 
 
12102
# The archiver.
 
12103
AR=$lt_AR
 
12104
AR_FLAGS=$lt_AR_FLAGS
 
12105
 
 
12106
# A C compiler.
 
12107
LTCC=$lt_LTCC
 
12108
 
 
12109
# LTCC compiler flags.
 
12110
LTCFLAGS=$lt_LTCFLAGS
 
12111
 
 
12112
# A language-specific compiler.
 
12113
CC=$lt_compiler
 
12114
 
 
12115
# Is the compiler the GNU C compiler?
 
12116
with_gcc=$GCC
 
12117
 
 
12118
# An ERE matcher.
 
12119
EGREP=$lt_EGREP
 
12120
 
 
12121
# The linker used to build libraries.
 
12122
LD=$lt_LD
 
12123
 
 
12124
# Whether we need hard or soft links.
 
12125
LN_S=$lt_LN_S
 
12126
 
 
12127
# A BSD-compatible nm program.
 
12128
NM=$lt_NM
 
12129
 
 
12130
# A symbol stripping program
 
12131
STRIP=$lt_STRIP
 
12132
 
 
12133
# Used to examine libraries when file_magic_cmd begins "file"
 
12134
MAGIC_CMD=$MAGIC_CMD
 
12135
 
 
12136
# Used on cygwin: DLL creation program.
 
12137
DLLTOOL="$DLLTOOL"
 
12138
 
 
12139
# Used on cygwin: object dumper.
 
12140
OBJDUMP="$OBJDUMP"
 
12141
 
 
12142
# Used on cygwin: assembler.
 
12143
AS="$AS"
 
12144
 
 
12145
# The name of the directory that contains temporary libtool files.
 
12146
objdir=$objdir
 
12147
 
 
12148
# How to create reloadable object files.
 
12149
reload_flag=$lt_reload_flag
 
12150
reload_cmds=$lt_reload_cmds
 
12151
 
 
12152
# How to pass a linker flag through the compiler.
 
12153
wl=$lt_lt_prog_compiler_wl
 
12154
 
 
12155
# Object file suffix (normally "o").
 
12156
objext="$ac_objext"
 
12157
 
 
12158
# Old archive suffix (normally "a").
 
12159
libext="$libext"
 
12160
 
 
12161
# Shared library suffix (normally ".so").
 
12162
shrext_cmds='$shrext_cmds'
 
12163
 
 
12164
# Executable file suffix (normally "").
 
12165
exeext="$exeext"
 
12166
 
 
12167
# Additional compiler flags for building library objects.
 
12168
pic_flag=$lt_lt_prog_compiler_pic
 
12169
pic_mode=$pic_mode
 
12170
 
 
12171
# What is the maximum length of a command?
 
12172
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12173
 
 
12174
# Does compiler simultaneously support -c and -o options?
 
12175
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
12176
 
 
12177
# Must we lock files when doing compilation?
 
12178
need_locks=$lt_need_locks
 
12179
 
 
12180
# Do we need the lib prefix for modules?
 
12181
need_lib_prefix=$need_lib_prefix
 
12182
 
 
12183
# Do we need a version for libraries?
 
12184
need_version=$need_version
 
12185
 
 
12186
# Whether dlopen is supported.
 
12187
dlopen_support=$enable_dlopen
 
12188
 
 
12189
# Whether dlopen of programs is supported.
 
12190
dlopen_self=$enable_dlopen_self
 
12191
 
 
12192
# Whether dlopen of statically linked programs is supported.
 
12193
dlopen_self_static=$enable_dlopen_self_static
 
12194
 
 
12195
# Compiler flag to prevent dynamic linking.
 
12196
link_static_flag=$lt_lt_prog_compiler_static
 
12197
 
 
12198
# Compiler flag to turn off builtin functions.
 
12199
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
12200
 
 
12201
# Compiler flag to allow reflexive dlopens.
 
12202
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
12203
 
 
12204
# Compiler flag to generate shared objects directly from archives.
 
12205
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
12206
 
 
12207
# Compiler flag to generate thread-safe objects.
 
12208
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
12209
 
 
12210
# Library versioning type.
 
12211
version_type=$version_type
 
12212
 
 
12213
# Format of library name prefix.
 
12214
libname_spec=$lt_libname_spec
 
12215
 
 
12216
# List of archive names.  First name is the real one, the rest are links.
 
12217
# The last name is the one that the linker finds with -lNAME.
 
12218
library_names_spec=$lt_library_names_spec
 
12219
 
 
12220
# The coded name of the library, if different from the real name.
 
12221
soname_spec=$lt_soname_spec
 
12222
 
 
12223
# Commands used to build and install an old-style archive.
 
12224
RANLIB=$lt_RANLIB
 
12225
old_archive_cmds=$lt_old_archive_cmds
 
12226
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12227
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12228
 
 
12229
# Create an old-style archive from a shared archive.
 
12230
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
12231
 
 
12232
# Create a temporary old-style archive to link instead of a shared archive.
 
12233
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
12234
 
 
12235
# Commands used to build and install a shared archive.
 
12236
archive_cmds=$lt_archive_cmds
 
12237
archive_expsym_cmds=$lt_archive_expsym_cmds
 
12238
postinstall_cmds=$lt_postinstall_cmds
 
12239
postuninstall_cmds=$lt_postuninstall_cmds
 
12240
 
 
12241
# Commands used to build a loadable module (assumed same as above if empty)
 
12242
module_cmds=$lt_module_cmds
 
12243
module_expsym_cmds=$lt_module_expsym_cmds
 
12244
 
 
12245
# Commands to strip libraries.
 
12246
old_striplib=$lt_old_striplib
 
12247
striplib=$lt_striplib
 
12248
 
 
12249
# Dependencies to place before the objects being linked to create a
 
12250
# shared library.
 
12251
predep_objects=$lt_predep_objects
 
12252
 
 
12253
# Dependencies to place after the objects being linked to create a
 
12254
# shared library.
 
12255
postdep_objects=$lt_postdep_objects
 
12256
 
 
12257
# Dependencies to place before the objects being linked to create a
 
12258
# shared library.
 
12259
predeps=$lt_predeps
 
12260
 
 
12261
# Dependencies to place after the objects being linked to create a
 
12262
# shared library.
 
12263
postdeps=$lt_postdeps
 
12264
 
 
12265
# The directories searched by this compiler when creating a shared
 
12266
# library
 
12267
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
12268
 
 
12269
# The library search path used internally by the compiler when linking
 
12270
# a shared library.
 
12271
compiler_lib_search_path=$lt_compiler_lib_search_path
 
12272
 
 
12273
# Method to check whether dependent libraries are shared objects.
 
12274
deplibs_check_method=$lt_deplibs_check_method
 
12275
 
 
12276
# Command to use when deplibs_check_method == file_magic.
 
12277
file_magic_cmd=$lt_file_magic_cmd
 
12278
 
 
12279
# Flag that allows shared libraries with undefined symbols to be built.
 
12280
allow_undefined_flag=$lt_allow_undefined_flag
 
12281
 
 
12282
# Flag that forces no undefined symbols.
 
12283
no_undefined_flag=$lt_no_undefined_flag
 
12284
 
 
12285
# Commands used to finish a libtool library installation in a directory.
 
12286
finish_cmds=$lt_finish_cmds
 
12287
 
 
12288
# Same as above, but a single script fragment to be evaled but not shown.
 
12289
finish_eval=$lt_finish_eval
 
12290
 
 
12291
# Take the output of nm and produce a listing of raw symbols and C names.
 
12292
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12293
 
 
12294
# Transform the output of nm in a proper C declaration
 
12295
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12296
 
 
12297
# Transform the output of nm in a C name address pair
 
12298
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12299
 
 
12300
# This is the shared library runtime path variable.
 
12301
runpath_var=$runpath_var
 
12302
 
 
12303
# This is the shared library path variable.
 
12304
shlibpath_var=$shlibpath_var
 
12305
 
 
12306
# Is shlibpath searched before the hard-coded library search path?
 
12307
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12308
 
 
12309
# How to hardcode a shared library path into an executable.
 
12310
hardcode_action=$hardcode_action
 
12311
 
 
12312
# Whether we should hardcode library paths into libraries.
 
12313
hardcode_into_libs=$hardcode_into_libs
 
12314
 
 
12315
# Flag to hardcode \$libdir into a binary during linking.
 
12316
# This must work even if \$libdir does not exist.
 
12317
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
12318
 
 
12319
# If ld is used when linking, flag to hardcode \$libdir into
 
12320
# a binary during linking. This must work even if \$libdir does
 
12321
# not exist.
 
12322
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
12323
 
 
12324
# Whether we need a single -rpath flag with a separated argument.
 
12325
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
12326
 
 
12327
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12328
# resulting binary.
 
12329
hardcode_direct=$hardcode_direct
 
12330
 
 
12331
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12332
# resulting binary.
 
12333
hardcode_minus_L=$hardcode_minus_L
 
12334
 
 
12335
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12336
# the resulting binary.
 
12337
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
12338
 
 
12339
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12340
# and all subsequent libraries and executables linked against it.
 
12341
hardcode_automatic=$hardcode_automatic
 
12342
 
 
12343
# Variables whose values should be saved in libtool wrapper scripts and
 
12344
# restored at relink time.
 
12345
variables_saved_for_relink="$variables_saved_for_relink"
 
12346
 
 
12347
# Whether libtool must link a program against all its dependency libraries.
 
12348
link_all_deplibs=$link_all_deplibs
 
12349
 
 
12350
# Compile-time system search path for libraries
 
12351
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12352
 
 
12353
# Run-time system search path for libraries
 
12354
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12355
 
 
12356
# Fix the shell variable \$srcfile for the compiler.
 
12357
fix_srcfile_path=$lt_fix_srcfile_path
 
12358
 
 
12359
# Set to yes if exported symbols are required.
 
12360
always_export_symbols=$always_export_symbols
 
12361
 
 
12362
# The commands to list exported symbols.
 
12363
export_symbols_cmds=$lt_export_symbols_cmds
 
12364
 
 
12365
# The commands to extract the exported symbol list from a shared archive.
 
12366
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12367
 
 
12368
# Symbols that should not be listed in the preloaded symbols.
 
12369
exclude_expsyms=$lt_exclude_expsyms
 
12370
 
 
12371
# Symbols that must always be exported.
 
12372
include_expsyms=$lt_include_expsyms
 
12373
 
 
12374
# ### END LIBTOOL CONFIG
 
12375
 
 
12376
__EOF__
 
12377
 
 
12378
 
 
12379
  case $host_os in
 
12380
  aix3*)
 
12381
    cat <<\EOF >> "$cfgfile"
 
12382
 
 
12383
# AIX sometimes has problems with the GCC collect2 program.  For some
 
12384
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
12385
# vanish in a puff of smoke.
 
12386
if test "X${COLLECT_NAMES+set}" != Xset; then
 
12387
  COLLECT_NAMES=
 
12388
  export COLLECT_NAMES
 
12389
fi
 
12390
EOF
 
12391
    ;;
 
12392
  esac
 
12393
 
 
12394
  # We use sed instead of cat because bash on DJGPP gets confused if
 
12395
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
12396
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
12397
  # is reportedly fixed, but why not run on old versions too?
 
12398
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
12399
 
 
12400
  mv -f "$cfgfile" "$ofile" || \
 
12401
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
12402
  chmod +x "$ofile"
 
12403
 
 
12404
else
 
12405
  # If there is no Makefile yet, we rely on a make rule to execute
 
12406
  # `config.status --recheck' to rerun these tests and create the
 
12407
  # libtool script then.
 
12408
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12409
  if test -f "$ltmain_in"; then
 
12410
    test -f Makefile && make "$ltmain"
 
12411
  fi
 
12412
fi
 
12413
 
 
12414
 
 
12415
ac_ext=c
 
12416
ac_cpp='$CPP $CPPFLAGS'
 
12417
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12418
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12419
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12420
 
 
12421
CC="$lt_save_CC"
 
12422
 
 
12423
 
 
12424
# Check whether --with-tags was given.
 
12425
if test "${with_tags+set}" = set; then
 
12426
  withval=$with_tags; tagnames="$withval"
 
12427
fi
 
12428
 
 
12429
 
 
12430
if test -f "$ltmain" && test -n "$tagnames"; then
 
12431
  if test ! -f "${ofile}"; then
 
12432
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
12433
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
12434
  fi
 
12435
 
 
12436
  if test -z "$LTCC"; then
 
12437
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
12438
    if test -z "$LTCC"; then
 
12439
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
12440
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
12441
    else
 
12442
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
12443
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
12444
    fi
 
12445
  fi
 
12446
  if test -z "$LTCFLAGS"; then
 
12447
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
12448
  fi
 
12449
 
 
12450
  # Extract list of available tagged configurations in $ofile.
 
12451
  # Note that this assumes the entire list is on one line.
 
12452
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
12453
 
 
12454
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
12455
  for tagname in $tagnames; do
 
12456
    IFS="$lt_save_ifs"
 
12457
    # Check whether tagname contains only valid characters
 
12458
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
12459
    "") ;;
 
12460
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
12461
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
12462
   { (exit 1); exit 1; }; }
 
12463
        ;;
 
12464
    esac
 
12465
 
 
12466
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
12467
    then
 
12468
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
12469
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
12470
   { (exit 1); exit 1; }; }
 
12471
    fi
 
12472
 
 
12473
    # Update the list of available tags.
 
12474
    if test -n "$tagname"; then
 
12475
      echo appending configuration tag \"$tagname\" to $ofile
 
12476
 
 
12477
      case $tagname in
 
12478
      CXX)
 
12479
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
12480
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
12481
            (test "X$CXX" != "Xg++"))) ; then
 
12482
          ac_ext=cpp
 
12483
ac_cpp='$CXXCPP $CPPFLAGS'
 
12484
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12485
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12486
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12487
 
 
12488
 
 
12489
 
 
12490
 
 
12491
archive_cmds_need_lc_CXX=no
 
12492
allow_undefined_flag_CXX=
 
12493
always_export_symbols_CXX=no
 
12494
archive_expsym_cmds_CXX=
 
12495
export_dynamic_flag_spec_CXX=
 
12496
hardcode_direct_CXX=no
 
12497
hardcode_libdir_flag_spec_CXX=
 
12498
hardcode_libdir_flag_spec_ld_CXX=
 
12499
hardcode_libdir_separator_CXX=
 
12500
hardcode_minus_L_CXX=no
 
12501
hardcode_shlibpath_var_CXX=unsupported
 
12502
hardcode_automatic_CXX=no
 
12503
module_cmds_CXX=
 
12504
module_expsym_cmds_CXX=
 
12505
link_all_deplibs_CXX=unknown
 
12506
old_archive_cmds_CXX=$old_archive_cmds
 
12507
no_undefined_flag_CXX=
 
12508
whole_archive_flag_spec_CXX=
 
12509
enable_shared_with_static_runtimes_CXX=no
 
12510
 
 
12511
# Dependencies to place before and after the object being linked:
 
12512
predep_objects_CXX=
 
12513
postdep_objects_CXX=
 
12514
predeps_CXX=
 
12515
postdeps_CXX=
 
12516
compiler_lib_search_path_CXX=
 
12517
compiler_lib_search_dirs_CXX=
 
12518
 
 
12519
# Source file extension for C++ test sources.
 
12520
ac_ext=cpp
 
12521
 
 
12522
# Object file extension for compiled C++ test sources.
 
12523
objext=o
 
12524
objext_CXX=$objext
 
12525
 
 
12526
# Code to be used in simple compile tests
 
12527
lt_simple_compile_test_code="int some_variable = 0;"
 
12528
 
 
12529
# Code to be used in simple link tests
 
12530
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12531
 
 
12532
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12533
 
 
12534
# If no C compiler was specified, use CC.
 
12535
LTCC=${LTCC-"$CC"}
 
12536
 
 
12537
# If no C compiler flags were specified, use CFLAGS.
 
12538
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12539
 
 
12540
# Allow CC to be a program name with arguments.
 
12541
compiler=$CC
 
12542
 
 
12543
 
 
12544
# save warnings/boilerplate of simple test code
 
12545
ac_outfile=conftest.$ac_objext
 
12546
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12547
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12548
_lt_compiler_boilerplate=`cat conftest.err`
 
12549
$rm conftest*
 
12550
 
 
12551
ac_outfile=conftest.$ac_objext
 
12552
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12553
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12554
_lt_linker_boilerplate=`cat conftest.err`
 
12555
$rm -r conftest*
 
12556
 
 
12557
 
 
12558
# Allow CC to be a program name with arguments.
 
12559
lt_save_CC=$CC
 
12560
lt_save_LD=$LD
 
12561
lt_save_GCC=$GCC
 
12562
GCC=$GXX
 
12563
lt_save_with_gnu_ld=$with_gnu_ld
 
12564
lt_save_path_LD=$lt_cv_path_LD
 
12565
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12566
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12567
else
 
12568
  $as_unset lt_cv_prog_gnu_ld
 
12569
fi
 
12570
if test -n "${lt_cv_path_LDCXX+set}"; then
 
12571
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
12572
else
 
12573
  $as_unset lt_cv_path_LD
 
12574
fi
 
12575
test -z "${LDCXX+set}" || LD=$LDCXX
 
12576
CC=${CXX-"c++"}
 
12577
compiler=$CC
 
12578
compiler_CXX=$CC
 
12579
for cc_temp in $compiler""; do
 
12580
  case $cc_temp in
 
12581
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12582
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12583
    \-*) ;;
 
12584
    *) break;;
 
12585
  esac
 
12586
done
 
12587
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12588
 
 
12589
 
 
12590
# We don't want -fno-exception wen compiling C++ code, so set the
 
12591
# no_builtin_flag separately
 
12592
if test "$GXX" = yes; then
 
12593
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12594
else
 
12595
  lt_prog_compiler_no_builtin_flag_CXX=
 
12596
fi
 
12597
 
 
12598
if test "$GXX" = yes; then
 
12599
  # Set up default GNU C++ configuration
 
12600
 
 
12601
 
 
12602
# Check whether --with-gnu-ld was given.
 
12603
if test "${with_gnu_ld+set}" = set; then
 
12604
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12605
else
 
12606
  with_gnu_ld=no
 
12607
fi
 
12608
 
 
12609
ac_prog=ld
 
12610
if test "$GCC" = yes; then
 
12611
  # Check if gcc -print-prog-name=ld gives a path.
 
12612
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
12613
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12614
  case $host in
 
12615
  *-*-mingw*)
 
12616
    # gcc leaves a trailing carriage return which upsets mingw
 
12617
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12618
  *)
 
12619
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12620
  esac
 
12621
  case $ac_prog in
 
12622
    # Accept absolute paths.
 
12623
    [\\/]* | ?:[\\/]*)
 
12624
      re_direlt='/[^/][^/]*/\.\./'
 
12625
      # Canonicalize the pathname of ld
 
12626
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
12627
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12628
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12629
      done
 
12630
      test -z "$LD" && LD="$ac_prog"
 
12631
      ;;
 
12632
  "")
 
12633
    # If it fails, then pretend we aren't using GCC.
 
12634
    ac_prog=ld
 
12635
    ;;
 
12636
  *)
 
12637
    # If it is relative, then search for the first ld in PATH.
 
12638
    with_gnu_ld=unknown
 
12639
    ;;
 
12640
  esac
 
12641
elif test "$with_gnu_ld" = yes; then
 
12642
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
12643
$as_echo_n "checking for GNU ld... " >&6; }
 
12644
else
 
12645
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
12646
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12647
fi
 
12648
if test "${lt_cv_path_LD+set}" = set; then
 
12649
  $as_echo_n "(cached) " >&6
 
12650
else
 
12651
  if test -z "$LD"; then
 
12652
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12653
  for ac_dir in $PATH; do
 
12654
    IFS="$lt_save_ifs"
 
12655
    test -z "$ac_dir" && ac_dir=.
 
12656
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12657
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12658
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12659
      # but apparently some variants of GNU ld only accept -v.
 
12660
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12661
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12662
      *GNU* | *'with BFD'*)
 
12663
        test "$with_gnu_ld" != no && break
 
12664
        ;;
 
12665
      *)
 
12666
        test "$with_gnu_ld" != yes && break
 
12667
        ;;
 
12668
      esac
 
12669
    fi
 
12670
  done
 
12671
  IFS="$lt_save_ifs"
 
12672
else
 
12673
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12674
fi
 
12675
fi
 
12676
 
 
12677
LD="$lt_cv_path_LD"
 
12678
if test -n "$LD"; then
 
12679
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
12680
$as_echo "$LD" >&6; }
 
12681
else
 
12682
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12683
$as_echo "no" >&6; }
 
12684
fi
 
12685
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
12686
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
12687
   { (exit 1); exit 1; }; }
 
12688
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
12689
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12690
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
12691
  $as_echo_n "(cached) " >&6
 
12692
else
 
12693
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12694
case `$LD -v 2>&1 </dev/null` in
 
12695
*GNU* | *'with BFD'*)
 
12696
  lt_cv_prog_gnu_ld=yes
 
12697
  ;;
 
12698
*)
 
12699
  lt_cv_prog_gnu_ld=no
 
12700
  ;;
 
12701
esac
 
12702
fi
 
12703
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
12704
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12705
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12706
 
 
12707
 
 
12708
 
 
12709
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12710
  # archiving commands below assume that GNU ld is being used.
 
12711
  if test "$with_gnu_ld" = yes; then
 
12712
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12713
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12714
 
 
12715
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12716
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12717
 
 
12718
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12719
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12720
    #     investigate it a little bit more. (MM)
 
12721
    wlarc='${wl}'
 
12722
 
 
12723
    # ancient GNU ld didn't support --whole-archive et. al.
 
12724
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
12725
        grep 'no-whole-archive' > /dev/null; then
 
12726
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12727
    else
 
12728
      whole_archive_flag_spec_CXX=
 
12729
    fi
 
12730
  else
 
12731
    with_gnu_ld=no
 
12732
    wlarc=
 
12733
 
 
12734
    # A generic and very simple default shared library creation
 
12735
    # command for GNU C++ for the case where it uses the native
 
12736
    # linker, instead of GNU ld.  If possible, this setting should
 
12737
    # overridden to take advantage of the native linker features on
 
12738
    # the platform it is being used on.
 
12739
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12740
  fi
 
12741
 
 
12742
  # Commands to make compiler produce verbose output that lists
 
12743
  # what "hidden" libraries, object files and flags are used when
 
12744
  # linking a shared library.
 
12745
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12746
 
 
12747
else
 
12748
  GXX=no
 
12749
  with_gnu_ld=no
 
12750
  wlarc=
 
12751
fi
 
12752
 
 
12753
# PORTME: fill in a description of your system's C++ link characteristics
 
12754
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12755
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12756
ld_shlibs_CXX=yes
 
12757
case $host_os in
 
12758
  aix3*)
 
12759
    # FIXME: insert proper C++ library support
 
12760
    ld_shlibs_CXX=no
 
12761
    ;;
 
12762
  aix[4-9]*)
 
12763
    if test "$host_cpu" = ia64; then
 
12764
      # On IA64, the linker does run time linking by default, so we don't
 
12765
      # have to do anything special.
 
12766
      aix_use_runtimelinking=no
 
12767
      exp_sym_flag='-Bexport'
 
12768
      no_entry_flag=""
 
12769
    else
 
12770
      aix_use_runtimelinking=no
 
12771
 
 
12772
      # Test if we are trying to use run time linking or normal
 
12773
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12774
      # need to do runtime linking.
 
12775
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12776
        for ld_flag in $LDFLAGS; do
 
12777
          case $ld_flag in
 
12778
          *-brtl*)
 
12779
            aix_use_runtimelinking=yes
 
12780
            break
 
12781
            ;;
 
12782
          esac
 
12783
        done
 
12784
        ;;
 
12785
      esac
 
12786
 
 
12787
      exp_sym_flag='-bexport'
 
12788
      no_entry_flag='-bnoentry'
 
12789
    fi
 
12790
 
 
12791
    # When large executables or shared objects are built, AIX ld can
 
12792
    # have problems creating the table of contents.  If linking a library
 
12793
    # or program results in "error TOC overflow" add -mminimal-toc to
 
12794
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12795
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12796
 
 
12797
    archive_cmds_CXX=''
 
12798
    hardcode_direct_CXX=yes
 
12799
    hardcode_libdir_separator_CXX=':'
 
12800
    link_all_deplibs_CXX=yes
 
12801
 
 
12802
    if test "$GXX" = yes; then
 
12803
      case $host_os in aix4.[012]|aix4.[012].*)
 
12804
      # We only want to do this on AIX 4.2 and lower, the check
 
12805
      # below for broken collect2 doesn't work under 4.3+
 
12806
        collect2name=`${CC} -print-prog-name=collect2`
 
12807
        if test -f "$collect2name" && \
 
12808
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12809
        then
 
12810
          # We have reworked collect2
 
12811
          :
 
12812
        else
 
12813
          # We have old collect2
 
12814
          hardcode_direct_CXX=unsupported
 
12815
          # It fails to find uninstalled libraries when the uninstalled
 
12816
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12817
          # to unsupported forces relinking
 
12818
          hardcode_minus_L_CXX=yes
 
12819
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12820
          hardcode_libdir_separator_CXX=
 
12821
        fi
 
12822
        ;;
 
12823
      esac
 
12824
      shared_flag='-shared'
 
12825
      if test "$aix_use_runtimelinking" = yes; then
 
12826
        shared_flag="$shared_flag "'${wl}-G'
 
12827
      fi
 
12828
    else
 
12829
      # not using gcc
 
12830
      if test "$host_cpu" = ia64; then
 
12831
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12832
        # chokes on -Wl,-G. The following line is correct:
 
12833
        shared_flag='-G'
 
12834
      else
 
12835
        if test "$aix_use_runtimelinking" = yes; then
 
12836
          shared_flag='${wl}-G'
 
12837
        else
 
12838
          shared_flag='${wl}-bM:SRE'
 
12839
        fi
 
12840
      fi
 
12841
    fi
 
12842
 
 
12843
    # It seems that -bexpall does not export symbols beginning with
 
12844
    # underscore (_), so it is better to generate a list of symbols to export.
 
12845
    always_export_symbols_CXX=yes
 
12846
    if test "$aix_use_runtimelinking" = yes; then
 
12847
      # Warning - without using the other runtime loading flags (-brtl),
 
12848
      # -berok will link without error, but may produce a broken library.
 
12849
      allow_undefined_flag_CXX='-berok'
 
12850
      # Determine the default libpath from the value encoded in an empty executable.
 
12851
      cat >conftest.$ac_ext <<_ACEOF
 
12852
/* confdefs.h.  */
 
12853
_ACEOF
 
12854
cat confdefs.h >>conftest.$ac_ext
 
12855
cat >>conftest.$ac_ext <<_ACEOF
 
12856
/* end confdefs.h.  */
 
12857
 
 
12858
int
 
12859
main ()
 
12860
{
 
12861
 
 
12862
  ;
 
12863
  return 0;
 
12864
}
 
12865
_ACEOF
 
12866
rm -f conftest.$ac_objext conftest$ac_exeext
 
12867
if { (ac_try="$ac_link"
 
12868
case "(($ac_try" in
 
12869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12870
  *) ac_try_echo=$ac_try;;
 
12871
esac
 
12872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12873
$as_echo "$ac_try_echo") >&5
 
12874
  (eval "$ac_link") 2>conftest.er1
 
12875
  ac_status=$?
 
12876
  grep -v '^ *+' conftest.er1 >conftest.err
 
12877
  rm -f conftest.er1
 
12878
  cat conftest.err >&5
 
12879
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12880
  (exit $ac_status); } && {
 
12881
         test -z "$ac_cxx_werror_flag" ||
 
12882
         test ! -s conftest.err
 
12883
       } && test -s conftest$ac_exeext && {
 
12884
         test "$cross_compiling" = yes ||
 
12885
         $as_test_x conftest$ac_exeext
 
12886
       }; then
 
12887
 
 
12888
lt_aix_libpath_sed='
 
12889
    /Import File Strings/,/^$/ {
 
12890
        /^0/ {
 
12891
            s/^0  *\(.*\)$/\1/
 
12892
            p
 
12893
        }
 
12894
    }'
 
12895
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12896
# Check for a 64-bit object if we didn't find anything.
 
12897
if test -z "$aix_libpath"; then
 
12898
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12899
fi
 
12900
else
 
12901
  $as_echo "$as_me: failed program was:" >&5
 
12902
sed 's/^/| /' conftest.$ac_ext >&5
 
12903
 
 
12904
 
 
12905
fi
 
12906
 
 
12907
rm -rf conftest.dSYM
 
12908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12909
      conftest$ac_exeext conftest.$ac_ext
 
12910
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12911
 
 
12912
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12913
 
 
12914
      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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12915
     else
 
12916
      if test "$host_cpu" = ia64; then
 
12917
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12918
        allow_undefined_flag_CXX="-z nodefs"
 
12919
        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"
 
12920
      else
 
12921
        # Determine the default libpath from the value encoded in an empty executable.
 
12922
        cat >conftest.$ac_ext <<_ACEOF
 
12923
/* confdefs.h.  */
 
12924
_ACEOF
 
12925
cat confdefs.h >>conftest.$ac_ext
 
12926
cat >>conftest.$ac_ext <<_ACEOF
 
12927
/* end confdefs.h.  */
 
12928
 
 
12929
int
 
12930
main ()
 
12931
{
 
12932
 
 
12933
  ;
 
12934
  return 0;
 
12935
}
 
12936
_ACEOF
 
12937
rm -f conftest.$ac_objext conftest$ac_exeext
 
12938
if { (ac_try="$ac_link"
 
12939
case "(($ac_try" in
 
12940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12941
  *) ac_try_echo=$ac_try;;
 
12942
esac
 
12943
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12944
$as_echo "$ac_try_echo") >&5
 
12945
  (eval "$ac_link") 2>conftest.er1
 
12946
  ac_status=$?
 
12947
  grep -v '^ *+' conftest.er1 >conftest.err
 
12948
  rm -f conftest.er1
 
12949
  cat conftest.err >&5
 
12950
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12951
  (exit $ac_status); } && {
 
12952
         test -z "$ac_cxx_werror_flag" ||
 
12953
         test ! -s conftest.err
 
12954
       } && test -s conftest$ac_exeext && {
 
12955
         test "$cross_compiling" = yes ||
 
12956
         $as_test_x conftest$ac_exeext
 
12957
       }; then
 
12958
 
 
12959
lt_aix_libpath_sed='
 
12960
    /Import File Strings/,/^$/ {
 
12961
        /^0/ {
 
12962
            s/^0  *\(.*\)$/\1/
 
12963
            p
 
12964
        }
 
12965
    }'
 
12966
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12967
# Check for a 64-bit object if we didn't find anything.
 
12968
if test -z "$aix_libpath"; then
 
12969
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12970
fi
 
12971
else
 
12972
  $as_echo "$as_me: failed program was:" >&5
 
12973
sed 's/^/| /' conftest.$ac_ext >&5
 
12974
 
 
12975
 
 
12976
fi
 
12977
 
 
12978
rm -rf conftest.dSYM
 
12979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12980
      conftest$ac_exeext conftest.$ac_ext
 
12981
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12982
 
 
12983
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12984
        # Warning - without using the other run time loading flags,
 
12985
        # -berok will link without error, but may produce a broken library.
 
12986
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12987
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12988
        # Exported symbols can be pulled into shared objects from archives
 
12989
        whole_archive_flag_spec_CXX='$convenience'
 
12990
        archive_cmds_need_lc_CXX=yes
 
12991
        # This is similar to how AIX traditionally builds its shared libraries.
 
12992
        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'
 
12993
      fi
 
12994
    fi
 
12995
    ;;
 
12996
 
 
12997
  beos*)
 
12998
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12999
      allow_undefined_flag_CXX=unsupported
 
13000
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13001
      # support --undefined.  This deserves some investigation.  FIXME
 
13002
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13003
    else
 
13004
      ld_shlibs_CXX=no
 
13005
    fi
 
13006
    ;;
 
13007
 
 
13008
  chorus*)
 
13009
    case $cc_basename in
 
13010
      *)
 
13011
        # FIXME: insert proper C++ library support
 
13012
        ld_shlibs_CXX=no
 
13013
        ;;
 
13014
    esac
 
13015
    ;;
 
13016
 
 
13017
  cygwin* | mingw* | pw32*)
 
13018
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13019
    # as there is no search path for DLLs.
 
13020
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13021
    allow_undefined_flag_CXX=unsupported
 
13022
    always_export_symbols_CXX=no
 
13023
    enable_shared_with_static_runtimes_CXX=yes
 
13024
 
 
13025
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13026
      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'
 
13027
      # If the export-symbols file already is a .def file (1st line
 
13028
      # is EXPORTS), use it as is; otherwise, prepend...
 
13029
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13030
        cp $export_symbols $output_objdir/$soname.def;
 
13031
      else
 
13032
        echo EXPORTS > $output_objdir/$soname.def;
 
13033
        cat $export_symbols >> $output_objdir/$soname.def;
 
13034
      fi~
 
13035
      $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'
 
13036
    else
 
13037
      ld_shlibs_CXX=no
 
13038
    fi
 
13039
  ;;
 
13040
      darwin* | rhapsody*)
 
13041
      archive_cmds_need_lc_CXX=no
 
13042
      hardcode_direct_CXX=no
 
13043
      hardcode_automatic_CXX=yes
 
13044
      hardcode_shlibpath_var_CXX=unsupported
 
13045
      whole_archive_flag_spec_CXX=''
 
13046
      link_all_deplibs_CXX=yes
 
13047
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
13048
      if test "$GXX" = yes ; then
 
13049
      output_verbose_link_cmd='echo'
 
13050
      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}"
 
13051
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13052
      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}"
 
13053
      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}"
 
13054
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13055
        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}"
 
13056
        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}"
 
13057
      fi
 
13058
      else
 
13059
      case $cc_basename in
 
13060
        xlc*)
 
13061
         output_verbose_link_cmd='echo'
 
13062
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
13063
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13064
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13065
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13066
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13067
          ;;
 
13068
       *)
 
13069
         ld_shlibs_CXX=no
 
13070
          ;;
 
13071
      esac
 
13072
      fi
 
13073
        ;;
 
13074
 
 
13075
  dgux*)
 
13076
    case $cc_basename in
 
13077
      ec++*)
 
13078
        # FIXME: insert proper C++ library support
 
13079
        ld_shlibs_CXX=no
 
13080
        ;;
 
13081
      ghcx*)
 
13082
        # Green Hills C++ Compiler
 
13083
        # FIXME: insert proper C++ library support
 
13084
        ld_shlibs_CXX=no
 
13085
        ;;
 
13086
      *)
 
13087
        # FIXME: insert proper C++ library support
 
13088
        ld_shlibs_CXX=no
 
13089
        ;;
 
13090
    esac
 
13091
    ;;
 
13092
  freebsd[12]*)
 
13093
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
13094
    ld_shlibs_CXX=no
 
13095
    ;;
 
13096
  freebsd-elf*)
 
13097
    archive_cmds_need_lc_CXX=no
 
13098
    ;;
 
13099
  freebsd* | dragonfly*)
 
13100
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13101
    # conventions
 
13102
    ld_shlibs_CXX=yes
 
13103
    ;;
 
13104
  gnu*)
 
13105
    ;;
 
13106
  hpux9*)
 
13107
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13108
    hardcode_libdir_separator_CXX=:
 
13109
    export_dynamic_flag_spec_CXX='${wl}-E'
 
13110
    hardcode_direct_CXX=yes
 
13111
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13112
                                # but as the default
 
13113
                                # location of the library.
 
13114
 
 
13115
    case $cc_basename in
 
13116
    CC*)
 
13117
      # FIXME: insert proper C++ library support
 
13118
      ld_shlibs_CXX=no
 
13119
      ;;
 
13120
    aCC*)
 
13121
      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'
 
13122
      # Commands to make compiler produce verbose output that lists
 
13123
      # what "hidden" libraries, object files and flags are used when
 
13124
      # linking a shared library.
 
13125
      #
 
13126
      # There doesn't appear to be a way to prevent this compiler from
 
13127
      # explicitly linking system object files so we need to strip them
 
13128
      # from the output so that they don't get included in the library
 
13129
      # dependencies.
 
13130
      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; echo $list'
 
13131
      ;;
 
13132
    *)
 
13133
      if test "$GXX" = yes; then
 
13134
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
 
13135
      else
 
13136
        # FIXME: insert proper C++ library support
 
13137
        ld_shlibs_CXX=no
 
13138
      fi
 
13139
      ;;
 
13140
    esac
 
13141
    ;;
 
13142
  hpux10*|hpux11*)
 
13143
    if test $with_gnu_ld = no; then
 
13144
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13145
      hardcode_libdir_separator_CXX=:
 
13146
 
 
13147
      case $host_cpu in
 
13148
      hppa*64*|ia64*) ;;
 
13149
      *)
 
13150
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13151
        ;;
 
13152
      esac
 
13153
    fi
 
13154
    case $host_cpu in
 
13155
    hppa*64*|ia64*)
 
13156
      hardcode_direct_CXX=no
 
13157
      hardcode_shlibpath_var_CXX=no
 
13158
      ;;
 
13159
    *)
 
13160
      hardcode_direct_CXX=yes
 
13161
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13162
                                              # but as the default
 
13163
                                              # location of the library.
 
13164
      ;;
 
13165
    esac
 
13166
 
 
13167
    case $cc_basename in
 
13168
      CC*)
 
13169
        # FIXME: insert proper C++ library support
 
13170
        ld_shlibs_CXX=no
 
13171
        ;;
 
13172
      aCC*)
 
13173
        case $host_cpu in
 
13174
        hppa*64*)
 
13175
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13176
          ;;
 
13177
        ia64*)
 
13178
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13179
          ;;
 
13180
        *)
 
13181
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13182
          ;;
 
13183
        esac
 
13184
        # Commands to make compiler produce verbose output that lists
 
13185
        # what "hidden" libraries, object files and flags are used when
 
13186
        # linking a shared library.
 
13187
        #
 
13188
        # There doesn't appear to be a way to prevent this compiler from
 
13189
        # explicitly linking system object files so we need to strip them
 
13190
        # from the output so that they don't get included in the library
 
13191
        # dependencies.
 
13192
        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; echo $list'
 
13193
        ;;
 
13194
      *)
 
13195
        if test "$GXX" = yes; then
 
13196
          if test $with_gnu_ld = no; then
 
13197
            case $host_cpu in
 
13198
            hppa*64*)
 
13199
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13200
              ;;
 
13201
            ia64*)
 
13202
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13203
              ;;
 
13204
            *)
 
13205
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13206
              ;;
 
13207
            esac
 
13208
          fi
 
13209
        else
 
13210
          # FIXME: insert proper C++ library support
 
13211
          ld_shlibs_CXX=no
 
13212
        fi
 
13213
        ;;
 
13214
    esac
 
13215
    ;;
 
13216
  interix[3-9]*)
 
13217
    hardcode_direct_CXX=no
 
13218
    hardcode_shlibpath_var_CXX=no
 
13219
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13220
    export_dynamic_flag_spec_CXX='${wl}-E'
 
13221
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13222
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13223
    # default) and relocated if they conflict, which is a slow very memory
 
13224
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
13225
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13226
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13227
    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'
 
13228
    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'
 
13229
    ;;
 
13230
  irix5* | irix6*)
 
13231
    case $cc_basename in
 
13232
      CC*)
 
13233
        # SGI C++
 
13234
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
13235
 
 
13236
        # Archives containing C++ object files must be created using
 
13237
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13238
        # necessary to make sure instantiated templates are included
 
13239
        # in the archive.
 
13240
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13241
        ;;
 
13242
      *)
 
13243
        if test "$GXX" = yes; then
 
13244
          if test "$with_gnu_ld" = no; then
 
13245
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13246
          else
 
13247
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
13248
          fi
 
13249
        fi
 
13250
        link_all_deplibs_CXX=yes
 
13251
        ;;
 
13252
    esac
 
13253
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13254
    hardcode_libdir_separator_CXX=:
 
13255
    ;;
 
13256
  linux* | k*bsd*-gnu)
 
13257
    case $cc_basename in
 
13258
      KCC*)
 
13259
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13260
 
 
13261
        # KCC will only create a shared library if the output file
 
13262
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13263
        # to its proper name (with version) after linking.
 
13264
        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'
 
13265
        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'
 
13266
        # Commands to make compiler produce verbose output that lists
 
13267
        # what "hidden" libraries, object files and flags are used when
 
13268
        # linking a shared library.
 
13269
        #
 
13270
        # There doesn't appear to be a way to prevent this compiler from
 
13271
        # explicitly linking system object files so we need to strip them
 
13272
        # from the output so that they don't get included in the library
 
13273
        # dependencies.
 
13274
        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; echo $list'
 
13275
 
 
13276
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
13277
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13278
 
 
13279
        # Archives containing C++ object files must be created using
 
13280
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13281
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13282
        ;;
 
13283
      icpc*)
 
13284
        # Intel C++
 
13285
        with_gnu_ld=yes
 
13286
        # version 8.0 and above of icpc choke on multiply defined symbols
 
13287
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13288
        # earlier do not add the objects themselves.
 
13289
        case `$CC -V 2>&1` in
 
13290
        *"Version 7."*)
 
13291
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13292
          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'
 
13293
          ;;
 
13294
        *)  # Version 8.0 or newer
 
13295
          tmp_idyn=
 
13296
          case $host_cpu in
 
13297
            ia64*) tmp_idyn=' -i_dynamic';;
 
13298
          esac
 
13299
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13300
          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'
 
13301
          ;;
 
13302
        esac
 
13303
        archive_cmds_need_lc_CXX=no
 
13304
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13305
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13306
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13307
        ;;
 
13308
      pgCC* | pgcpp*)
 
13309
        # Portland Group C++ compiler
 
13310
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13311
        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'
 
13312
 
 
13313
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13314
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13315
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13316
        ;;
 
13317
      cxx*)
 
13318
        # Compaq C++
 
13319
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13320
        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'
 
13321
 
 
13322
        runpath_var=LD_RUN_PATH
 
13323
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13324
        hardcode_libdir_separator_CXX=:
 
13325
 
 
13326
        # Commands to make compiler produce verbose output that lists
 
13327
        # what "hidden" libraries, object files and flags are used when
 
13328
        # linking a shared library.
 
13329
        #
 
13330
        # There doesn't appear to be a way to prevent this compiler from
 
13331
        # explicitly linking system object files so we need to strip them
 
13332
        # from the output so that they don't get included in the library
 
13333
        # dependencies.
 
13334
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
 
13335
        ;;
 
13336
      *)
 
13337
        case `$CC -V 2>&1 | sed 5q` in
 
13338
        *Sun\ C*)
 
13339
          # Sun C++ 5.9
 
13340
          no_undefined_flag_CXX=' -zdefs'
 
13341
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13342
          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'
 
13343
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13344
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13345
 
 
13346
          # Not sure whether something based on
 
13347
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13348
          # would be better.
 
13349
          output_verbose_link_cmd='echo'
 
13350
 
 
13351
          # Archives containing C++ object files must be created using
 
13352
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13353
          # necessary to make sure instantiated templates are included
 
13354
          # in the archive.
 
13355
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13356
          ;;
 
13357
        esac
 
13358
        ;;
 
13359
    esac
 
13360
    ;;
 
13361
  lynxos*)
 
13362
    # FIXME: insert proper C++ library support
 
13363
    ld_shlibs_CXX=no
 
13364
    ;;
 
13365
  m88k*)
 
13366
    # FIXME: insert proper C++ library support
 
13367
    ld_shlibs_CXX=no
 
13368
    ;;
 
13369
  mvs*)
 
13370
    case $cc_basename in
 
13371
      cxx*)
 
13372
        # FIXME: insert proper C++ library support
 
13373
        ld_shlibs_CXX=no
 
13374
        ;;
 
13375
      *)
 
13376
        # FIXME: insert proper C++ library support
 
13377
        ld_shlibs_CXX=no
 
13378
        ;;
 
13379
    esac
 
13380
    ;;
 
13381
  netbsd* | netbsdelf*-gnu)
 
13382
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13383
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13384
      wlarc=
 
13385
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13386
      hardcode_direct_CXX=yes
 
13387
      hardcode_shlibpath_var_CXX=no
 
13388
    fi
 
13389
    # Workaround some broken pre-1.5 toolchains
 
13390
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13391
    ;;
 
13392
  openbsd2*)
 
13393
    # C++ shared libraries are fairly broken
 
13394
    ld_shlibs_CXX=no
 
13395
    ;;
 
13396
  openbsd*)
 
13397
    if test -f /usr/libexec/ld.so; then
 
13398
      hardcode_direct_CXX=yes
 
13399
      hardcode_shlibpath_var_CXX=no
 
13400
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13401
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13402
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13403
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13404
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13405
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13406
      fi
 
13407
      output_verbose_link_cmd='echo'
 
13408
    else
 
13409
      ld_shlibs_CXX=no
 
13410
    fi
 
13411
    ;;
 
13412
  osf3*)
 
13413
    case $cc_basename in
 
13414
      KCC*)
 
13415
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13416
 
 
13417
        # KCC will only create a shared library if the output file
 
13418
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13419
        # to its proper name (with version) after linking.
 
13420
        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'
 
13421
 
 
13422
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13423
        hardcode_libdir_separator_CXX=:
 
13424
 
 
13425
        # Archives containing C++ object files must be created using
 
13426
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13427
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13428
 
 
13429
        ;;
 
13430
      RCC*)
 
13431
        # Rational C++ 2.4.1
 
13432
        # FIXME: insert proper C++ library support
 
13433
        ld_shlibs_CXX=no
 
13434
        ;;
 
13435
      cxx*)
 
13436
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13437
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
13438
 
 
13439
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13440
        hardcode_libdir_separator_CXX=:
 
13441
 
 
13442
        # Commands to make compiler produce verbose output that lists
 
13443
        # what "hidden" libraries, object files and flags are used when
 
13444
        # linking a shared library.
 
13445
        #
 
13446
        # There doesn't appear to be a way to prevent this compiler from
 
13447
        # explicitly linking system object files so we need to strip them
 
13448
        # from the output so that they don't get included in the library
 
13449
        # dependencies.
 
13450
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
 
13451
        ;;
 
13452
      *)
 
13453
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13454
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13455
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13456
 
 
13457
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13458
          hardcode_libdir_separator_CXX=:
 
13459
 
 
13460
          # Commands to make compiler produce verbose output that lists
 
13461
          # what "hidden" libraries, object files and flags are used when
 
13462
          # linking a shared library.
 
13463
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13464
 
 
13465
        else
 
13466
          # FIXME: insert proper C++ library support
 
13467
          ld_shlibs_CXX=no
 
13468
        fi
 
13469
        ;;
 
13470
    esac
 
13471
    ;;
 
13472
  osf4* | osf5*)
 
13473
    case $cc_basename in
 
13474
      KCC*)
 
13475
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13476
 
 
13477
        # KCC will only create a shared library if the output file
 
13478
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13479
        # to its proper name (with version) after linking.
 
13480
        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'
 
13481
 
 
13482
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13483
        hardcode_libdir_separator_CXX=:
 
13484
 
 
13485
        # Archives containing C++ object files must be created using
 
13486
        # the KAI C++ compiler.
 
13487
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
13488
        ;;
 
13489
      RCC*)
 
13490
        # Rational C++ 2.4.1
 
13491
        # FIXME: insert proper C++ library support
 
13492
        ld_shlibs_CXX=no
 
13493
        ;;
 
13494
      cxx*)
 
13495
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13496
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
13497
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13498
          echo "-hidden">> $lib.exp~
 
13499
          $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~
 
13500
          $rm $lib.exp'
 
13501
 
 
13502
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13503
        hardcode_libdir_separator_CXX=:
 
13504
 
 
13505
        # Commands to make compiler produce verbose output that lists
 
13506
        # what "hidden" libraries, object files and flags are used when
 
13507
        # linking a shared library.
 
13508
        #
 
13509
        # There doesn't appear to be a way to prevent this compiler from
 
13510
        # explicitly linking system object files so we need to strip them
 
13511
        # from the output so that they don't get included in the library
 
13512
        # dependencies.
 
13513
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
 
13514
        ;;
 
13515
      *)
 
13516
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13517
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13518
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13519
 
 
13520
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13521
          hardcode_libdir_separator_CXX=:
 
13522
 
 
13523
          # Commands to make compiler produce verbose output that lists
 
13524
          # what "hidden" libraries, object files and flags are used when
 
13525
          # linking a shared library.
 
13526
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13527
 
 
13528
        else
 
13529
          # FIXME: insert proper C++ library support
 
13530
          ld_shlibs_CXX=no
 
13531
        fi
 
13532
        ;;
 
13533
    esac
 
13534
    ;;
 
13535
  psos*)
 
13536
    # FIXME: insert proper C++ library support
 
13537
    ld_shlibs_CXX=no
 
13538
    ;;
 
13539
  sunos4*)
 
13540
    case $cc_basename in
 
13541
      CC*)
 
13542
        # Sun C++ 4.x
 
13543
        # FIXME: insert proper C++ library support
 
13544
        ld_shlibs_CXX=no
 
13545
        ;;
 
13546
      lcc*)
 
13547
        # Lucid
 
13548
        # FIXME: insert proper C++ library support
 
13549
        ld_shlibs_CXX=no
 
13550
        ;;
 
13551
      *)
 
13552
        # FIXME: insert proper C++ library support
 
13553
        ld_shlibs_CXX=no
 
13554
        ;;
 
13555
    esac
 
13556
    ;;
 
13557
  solaris*)
 
13558
    case $cc_basename in
 
13559
      CC*)
 
13560
        # Sun C++ 4.2, 5.x and Centerline C++
 
13561
        archive_cmds_need_lc_CXX=yes
 
13562
        no_undefined_flag_CXX=' -zdefs'
 
13563
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13564
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13565
        $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'
 
13566
 
 
13567
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13568
        hardcode_shlibpath_var_CXX=no
 
13569
        case $host_os in
 
13570
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13571
          *)
 
13572
            # The compiler driver will combine and reorder linker options,
 
13573
            # but understands `-z linker_flag'.
 
13574
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13575
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13576
            ;;
 
13577
        esac
 
13578
        link_all_deplibs_CXX=yes
 
13579
 
 
13580
        output_verbose_link_cmd='echo'
 
13581
 
 
13582
        # Archives containing C++ object files must be created using
 
13583
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13584
        # necessary to make sure instantiated templates are included
 
13585
        # in the archive.
 
13586
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13587
        ;;
 
13588
      gcx*)
 
13589
        # Green Hills C++ Compiler
 
13590
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13591
 
 
13592
        # The C++ compiler must be used to create the archive.
 
13593
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13594
        ;;
 
13595
      *)
 
13596
        # GNU C++ compiler with Solaris linker
 
13597
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13598
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13599
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
13600
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13601
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13602
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13603
 
 
13604
            # Commands to make compiler produce verbose output that lists
 
13605
            # what "hidden" libraries, object files and flags are used when
 
13606
            # linking a shared library.
 
13607
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13608
          else
 
13609
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13610
            # platform.
 
13611
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13612
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13613
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13614
 
 
13615
            # Commands to make compiler produce verbose output that lists
 
13616
            # what "hidden" libraries, object files and flags are used when
 
13617
            # linking a shared library.
 
13618
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13619
          fi
 
13620
 
 
13621
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13622
          case $host_os in
 
13623
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13624
          *)
 
13625
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13626
            ;;
 
13627
          esac
 
13628
        fi
 
13629
        ;;
 
13630
    esac
 
13631
    ;;
 
13632
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13633
    no_undefined_flag_CXX='${wl}-z,text'
 
13634
    archive_cmds_need_lc_CXX=no
 
13635
    hardcode_shlibpath_var_CXX=no
 
13636
    runpath_var='LD_RUN_PATH'
 
13637
 
 
13638
    case $cc_basename in
 
13639
      CC*)
 
13640
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13641
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13642
        ;;
 
13643
      *)
 
13644
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13645
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13646
        ;;
 
13647
    esac
 
13648
    ;;
 
13649
  sysv5* | sco3.2v5* | sco5v6*)
 
13650
    # Note: We can NOT use -z defs as we might desire, because we do not
 
13651
    # link with -lc, and that would cause any symbols used from libc to
 
13652
    # always be unresolved, which means just about no library would
 
13653
    # ever link correctly.  If we're not using GNU ld we use -z text
 
13654
    # though, which does catch some bad symbols but isn't as heavy-handed
 
13655
    # as -z defs.
 
13656
    # For security reasons, it is highly recommended that you always
 
13657
    # use absolute paths for naming shared libraries, and exclude the
 
13658
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
13659
    # requires that you compile everything twice, which is a pain.
 
13660
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
13661
    # non-empty value in the environment.  Most likely only useful for
 
13662
    # creating official distributions of packages.
 
13663
    # This is a hack until libtool officially supports absolute path
 
13664
    # names for shared libraries.
 
13665
    no_undefined_flag_CXX='${wl}-z,text'
 
13666
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13667
    archive_cmds_need_lc_CXX=no
 
13668
    hardcode_shlibpath_var_CXX=no
 
13669
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
13670
    hardcode_libdir_separator_CXX=':'
 
13671
    link_all_deplibs_CXX=yes
 
13672
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13673
    runpath_var='LD_RUN_PATH'
 
13674
 
 
13675
    case $cc_basename in
 
13676
      CC*)
 
13677
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13678
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13679
        ;;
 
13680
      *)
 
13681
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13682
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13683
        ;;
 
13684
    esac
 
13685
    ;;
 
13686
  tandem*)
 
13687
    case $cc_basename in
 
13688
      NCC*)
 
13689
        # NonStop-UX NCC 3.20
 
13690
        # FIXME: insert proper C++ library support
 
13691
        ld_shlibs_CXX=no
 
13692
        ;;
 
13693
      *)
 
13694
        # FIXME: insert proper C++ library support
 
13695
        ld_shlibs_CXX=no
 
13696
        ;;
 
13697
    esac
 
13698
    ;;
 
13699
  vxworks*)
 
13700
    # FIXME: insert proper C++ library support
 
13701
    ld_shlibs_CXX=no
 
13702
    ;;
 
13703
  *)
 
13704
    # FIXME: insert proper C++ library support
 
13705
    ld_shlibs_CXX=no
 
13706
    ;;
 
13707
esac
 
13708
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13709
$as_echo "$ld_shlibs_CXX" >&6; }
 
13710
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13711
 
 
13712
GCC_CXX="$GXX"
 
13713
LD_CXX="$LD"
 
13714
 
 
13715
cat > conftest.$ac_ext <<EOF
 
13716
class Foo
 
13717
{
 
13718
public:
 
13719
  Foo (void) { a = 0; }
 
13720
private:
 
13721
  int a;
 
13722
};
 
13723
EOF
 
13724
 
 
13725
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13726
  (eval $ac_compile) 2>&5
 
13727
  ac_status=$?
 
13728
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13729
  (exit $ac_status); }; then
 
13730
  # Parse the compiler output and extract the necessary
 
13731
  # objects, libraries and library flags.
 
13732
 
 
13733
  # Sentinel used to keep track of whether or not we are before
 
13734
  # the conftest object file.
 
13735
  pre_test_object_deps_done=no
 
13736
 
 
13737
  # The `*' in the case matches for architectures that use `case' in
 
13738
  # $output_verbose_cmd can trigger glob expansion during the loop
 
13739
  # eval without this substitution.
 
13740
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
13741
 
 
13742
  for p in `eval $output_verbose_link_cmd`; do
 
13743
    case $p in
 
13744
 
 
13745
    -L* | -R* | -l*)
 
13746
       # Some compilers place space between "-{L,R}" and the path.
 
13747
       # Remove the space.
 
13748
       if test $p = "-L" \
 
13749
          || test $p = "-R"; then
 
13750
         prev=$p
 
13751
         continue
 
13752
       else
 
13753
         prev=
 
13754
       fi
 
13755
 
 
13756
       if test "$pre_test_object_deps_done" = no; then
 
13757
         case $p in
 
13758
         -L* | -R*)
 
13759
           # Internal compiler library paths should come after those
 
13760
           # provided the user.  The postdeps already come after the
 
13761
           # user supplied libs so there is no need to process them.
 
13762
           if test -z "$compiler_lib_search_path_CXX"; then
 
13763
             compiler_lib_search_path_CXX="${prev}${p}"
 
13764
           else
 
13765
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13766
           fi
 
13767
           ;;
 
13768
         # The "-l" case would never come before the object being
 
13769
         # linked, so don't bother handling this case.
 
13770
         esac
 
13771
       else
 
13772
         if test -z "$postdeps_CXX"; then
 
13773
           postdeps_CXX="${prev}${p}"
 
13774
         else
 
13775
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13776
         fi
 
13777
       fi
 
13778
       ;;
 
13779
 
 
13780
    *.$objext)
 
13781
       # This assumes that the test object file only shows up
 
13782
       # once in the compiler output.
 
13783
       if test "$p" = "conftest.$objext"; then
 
13784
         pre_test_object_deps_done=yes
 
13785
         continue
 
13786
       fi
 
13787
 
 
13788
       if test "$pre_test_object_deps_done" = no; then
 
13789
         if test -z "$predep_objects_CXX"; then
 
13790
           predep_objects_CXX="$p"
 
13791
         else
 
13792
           predep_objects_CXX="$predep_objects_CXX $p"
 
13793
         fi
 
13794
       else
 
13795
         if test -z "$postdep_objects_CXX"; then
 
13796
           postdep_objects_CXX="$p"
 
13797
         else
 
13798
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13799
         fi
 
13800
       fi
 
13801
       ;;
 
13802
 
 
13803
    *) ;; # Ignore the rest.
 
13804
 
 
13805
    esac
 
13806
  done
 
13807
 
 
13808
  # Clean up.
 
13809
  rm -f a.out a.exe
 
13810
else
 
13811
  echo "libtool.m4: error: problem compiling CXX test program"
 
13812
fi
 
13813
 
 
13814
$rm -f confest.$objext
 
13815
 
 
13816
compiler_lib_search_dirs_CXX=
 
13817
if test -n "$compiler_lib_search_path_CXX"; then
 
13818
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13819
fi
 
13820
 
 
13821
# PORTME: override above test on systems where it is broken
 
13822
case $host_os in
 
13823
interix[3-9]*)
 
13824
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
13825
  # hack all around it, let's just trust "g++" to DTRT.
 
13826
  predep_objects_CXX=
 
13827
  postdep_objects_CXX=
 
13828
  postdeps_CXX=
 
13829
  ;;
 
13830
 
 
13831
linux*)
 
13832
  case `$CC -V 2>&1 | sed 5q` in
 
13833
  *Sun\ C*)
 
13834
    # Sun C++ 5.9
 
13835
    #
 
13836
    # The more standards-conforming stlport4 library is
 
13837
    # incompatible with the Cstd library. Avoid specifying
 
13838
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13839
    # -library=stlport4 depends on it.
 
13840
    case " $CXX $CXXFLAGS " in
 
13841
    *" -library=stlport4 "*)
 
13842
      solaris_use_stlport4=yes
 
13843
      ;;
 
13844
    esac
 
13845
    if test "$solaris_use_stlport4" != yes; then
 
13846
      postdeps_CXX='-library=Cstd -library=Crun'
 
13847
    fi
 
13848
    ;;
 
13849
  esac
 
13850
  ;;
 
13851
 
 
13852
solaris*)
 
13853
  case $cc_basename in
 
13854
  CC*)
 
13855
    # The more standards-conforming stlport4 library is
 
13856
    # incompatible with the Cstd library. Avoid specifying
 
13857
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13858
    # -library=stlport4 depends on it.
 
13859
    case " $CXX $CXXFLAGS " in
 
13860
    *" -library=stlport4 "*)
 
13861
      solaris_use_stlport4=yes
 
13862
      ;;
 
13863
    esac
 
13864
 
 
13865
    # Adding this requires a known-good setup of shared libraries for
 
13866
    # Sun compiler versions before 5.6, else PIC objects from an old
 
13867
    # archive will be linked into the output, leading to subtle bugs.
 
13868
    if test "$solaris_use_stlport4" != yes; then
 
13869
      postdeps_CXX='-library=Cstd -library=Crun'
 
13870
    fi
 
13871
    ;;
 
13872
  esac
 
13873
  ;;
 
13874
esac
 
13875
 
 
13876
case " $postdeps_CXX " in
 
13877
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13878
esac
 
13879
 
 
13880
lt_prog_compiler_wl_CXX=
 
13881
lt_prog_compiler_pic_CXX=
 
13882
lt_prog_compiler_static_CXX=
 
13883
 
 
13884
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13885
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
13886
 
 
13887
  # C++ specific cases for pic, static, wl, etc.
 
13888
  if test "$GXX" = yes; then
 
13889
    lt_prog_compiler_wl_CXX='-Wl,'
 
13890
    lt_prog_compiler_static_CXX='-static'
 
13891
 
 
13892
    case $host_os in
 
13893
    aix*)
 
13894
      # All AIX code is PIC.
 
13895
      if test "$host_cpu" = ia64; then
 
13896
        # AIX 5 now supports IA64 processor
 
13897
        lt_prog_compiler_static_CXX='-Bstatic'
 
13898
      fi
 
13899
      ;;
 
13900
    amigaos*)
 
13901
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13902
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13903
      # like `-m68040'.
 
13904
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13905
      ;;
 
13906
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13907
      # PIC is the default for these OSes.
 
13908
      ;;
 
13909
    mingw* | cygwin* | os2* | pw32*)
 
13910
      # This hack is so that the source file can tell whether it is being
 
13911
      # built for inclusion in a dll (and should export symbols for example).
 
13912
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13913
      # (--disable-auto-import) libraries
 
13914
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13915
      ;;
 
13916
    darwin* | rhapsody*)
 
13917
      # PIC is the default on this platform
 
13918
      # Common symbols not allowed in MH_DYLIB files
 
13919
      lt_prog_compiler_pic_CXX='-fno-common'
 
13920
      ;;
 
13921
    *djgpp*)
 
13922
      # DJGPP does not support shared libraries at all
 
13923
      lt_prog_compiler_pic_CXX=
 
13924
      ;;
 
13925
    interix[3-9]*)
 
13926
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13927
      # Instead, we relocate shared libraries at runtime.
 
13928
      ;;
 
13929
    sysv4*MP*)
 
13930
      if test -d /usr/nec; then
 
13931
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13932
      fi
 
13933
      ;;
 
13934
    hpux*)
 
13935
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13936
      # not for PA HP-UX.
 
13937
      case $host_cpu in
 
13938
      hppa*64*|ia64*)
 
13939
        ;;
 
13940
      *)
 
13941
        lt_prog_compiler_pic_CXX='-fPIC'
 
13942
        ;;
 
13943
      esac
 
13944
      ;;
 
13945
    *)
 
13946
      lt_prog_compiler_pic_CXX='-fPIC'
 
13947
      ;;
 
13948
    esac
 
13949
  else
 
13950
    case $host_os in
 
13951
      aix[4-9]*)
 
13952
        # All AIX code is PIC.
 
13953
        if test "$host_cpu" = ia64; then
 
13954
          # AIX 5 now supports IA64 processor
 
13955
          lt_prog_compiler_static_CXX='-Bstatic'
 
13956
        else
 
13957
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13958
        fi
 
13959
        ;;
 
13960
      chorus*)
 
13961
        case $cc_basename in
 
13962
        cxch68*)
 
13963
          # Green Hills C++ Compiler
 
13964
          # _LT_AC_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"
 
13965
          ;;
 
13966
        esac
 
13967
        ;;
 
13968
       darwin*)
 
13969
         # PIC is the default on this platform
 
13970
         # Common symbols not allowed in MH_DYLIB files
 
13971
         case $cc_basename in
 
13972
           xlc*)
 
13973
           lt_prog_compiler_pic_CXX='-qnocommon'
 
13974
           lt_prog_compiler_wl_CXX='-Wl,'
 
13975
           ;;
 
13976
         esac
 
13977
       ;;
 
13978
      dgux*)
 
13979
        case $cc_basename in
 
13980
          ec++*)
 
13981
            lt_prog_compiler_pic_CXX='-KPIC'
 
13982
            ;;
 
13983
          ghcx*)
 
13984
            # Green Hills C++ Compiler
 
13985
            lt_prog_compiler_pic_CXX='-pic'
 
13986
            ;;
 
13987
          *)
 
13988
            ;;
 
13989
        esac
 
13990
        ;;
 
13991
      freebsd* | dragonfly*)
 
13992
        # FreeBSD uses GNU C++
 
13993
        ;;
 
13994
      hpux9* | hpux10* | hpux11*)
 
13995
        case $cc_basename in
 
13996
          CC*)
 
13997
            lt_prog_compiler_wl_CXX='-Wl,'
 
13998
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13999
            if test "$host_cpu" != ia64; then
 
14000
              lt_prog_compiler_pic_CXX='+Z'
 
14001
            fi
 
14002
            ;;
 
14003
          aCC*)
 
14004
            lt_prog_compiler_wl_CXX='-Wl,'
 
14005
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14006
            case $host_cpu in
 
14007
            hppa*64*|ia64*)
 
14008
              # +Z the default
 
14009
              ;;
 
14010
            *)
 
14011
              lt_prog_compiler_pic_CXX='+Z'
 
14012
              ;;
 
14013
            esac
 
14014
            ;;
 
14015
          *)
 
14016
            ;;
 
14017
        esac
 
14018
        ;;
 
14019
      interix*)
 
14020
        # This is c89, which is MS Visual C++ (no shared libs)
 
14021
        # Anyone wants to do a port?
 
14022
        ;;
 
14023
      irix5* | irix6* | nonstopux*)
 
14024
        case $cc_basename in
 
14025
          CC*)
 
14026
            lt_prog_compiler_wl_CXX='-Wl,'
 
14027
            lt_prog_compiler_static_CXX='-non_shared'
 
14028
            # CC pic flag -KPIC is the default.
 
14029
            ;;
 
14030
          *)
 
14031
            ;;
 
14032
        esac
 
14033
        ;;
 
14034
      linux* | k*bsd*-gnu)
 
14035
        case $cc_basename in
 
14036
          KCC*)
 
14037
            # KAI C++ Compiler
 
14038
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14039
            lt_prog_compiler_pic_CXX='-fPIC'
 
14040
            ;;
 
14041
          icpc* | ecpc*)
 
14042
            # Intel C++
 
14043
            lt_prog_compiler_wl_CXX='-Wl,'
 
14044
            lt_prog_compiler_pic_CXX='-KPIC'
 
14045
            lt_prog_compiler_static_CXX='-static'
 
14046
            ;;
 
14047
          pgCC* | pgcpp*)
 
14048
            # Portland Group C++ compiler.
 
14049
            lt_prog_compiler_wl_CXX='-Wl,'
 
14050
            lt_prog_compiler_pic_CXX='-fpic'
 
14051
            lt_prog_compiler_static_CXX='-Bstatic'
 
14052
            ;;
 
14053
          cxx*)
 
14054
            # Compaq C++
 
14055
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14056
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14057
            lt_prog_compiler_pic_CXX=
 
14058
            lt_prog_compiler_static_CXX='-non_shared'
 
14059
            ;;
 
14060
          *)
 
14061
            case `$CC -V 2>&1 | sed 5q` in
 
14062
            *Sun\ C*)
 
14063
              # Sun C++ 5.9
 
14064
              lt_prog_compiler_pic_CXX='-KPIC'
 
14065
              lt_prog_compiler_static_CXX='-Bstatic'
 
14066
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
14067
              ;;
 
14068
            esac
 
14069
            ;;
 
14070
        esac
 
14071
        ;;
 
14072
      lynxos*)
 
14073
        ;;
 
14074
      m88k*)
 
14075
        ;;
 
14076
      mvs*)
 
14077
        case $cc_basename in
 
14078
          cxx*)
 
14079
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14080
            ;;
 
14081
          *)
 
14082
            ;;
 
14083
        esac
 
14084
        ;;
 
14085
      netbsd* | netbsdelf*-gnu)
 
14086
        ;;
 
14087
      osf3* | osf4* | osf5*)
 
14088
        case $cc_basename in
 
14089
          KCC*)
 
14090
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14091
            ;;
 
14092
          RCC*)
 
14093
            # Rational C++ 2.4.1
 
14094
            lt_prog_compiler_pic_CXX='-pic'
 
14095
            ;;
 
14096
          cxx*)
 
14097
            # Digital/Compaq C++
 
14098
            lt_prog_compiler_wl_CXX='-Wl,'
 
14099
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14100
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14101
            lt_prog_compiler_pic_CXX=
 
14102
            lt_prog_compiler_static_CXX='-non_shared'
 
14103
            ;;
 
14104
          *)
 
14105
            ;;
 
14106
        esac
 
14107
        ;;
 
14108
      psos*)
 
14109
        ;;
 
14110
      solaris*)
 
14111
        case $cc_basename in
 
14112
          CC*)
 
14113
            # Sun C++ 4.2, 5.x and Centerline C++
 
14114
            lt_prog_compiler_pic_CXX='-KPIC'
 
14115
            lt_prog_compiler_static_CXX='-Bstatic'
 
14116
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14117
            ;;
 
14118
          gcx*)
 
14119
            # Green Hills C++ Compiler
 
14120
            lt_prog_compiler_pic_CXX='-PIC'
 
14121
            ;;
 
14122
          *)
 
14123
            ;;
 
14124
        esac
 
14125
        ;;
 
14126
      sunos4*)
 
14127
        case $cc_basename in
 
14128
          CC*)
 
14129
            # Sun C++ 4.x
 
14130
            lt_prog_compiler_pic_CXX='-pic'
 
14131
            lt_prog_compiler_static_CXX='-Bstatic'
 
14132
            ;;
 
14133
          lcc*)
 
14134
            # Lucid
 
14135
            lt_prog_compiler_pic_CXX='-pic'
 
14136
            ;;
 
14137
          *)
 
14138
            ;;
 
14139
        esac
 
14140
        ;;
 
14141
      tandem*)
 
14142
        case $cc_basename in
 
14143
          NCC*)
 
14144
            # NonStop-UX NCC 3.20
 
14145
            lt_prog_compiler_pic_CXX='-KPIC'
 
14146
            ;;
 
14147
          *)
 
14148
            ;;
 
14149
        esac
 
14150
        ;;
 
14151
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14152
        case $cc_basename in
 
14153
          CC*)
 
14154
            lt_prog_compiler_wl_CXX='-Wl,'
 
14155
            lt_prog_compiler_pic_CXX='-KPIC'
 
14156
            lt_prog_compiler_static_CXX='-Bstatic'
 
14157
            ;;
 
14158
        esac
 
14159
        ;;
 
14160
      vxworks*)
 
14161
        ;;
 
14162
      *)
 
14163
        lt_prog_compiler_can_build_shared_CXX=no
 
14164
        ;;
 
14165
    esac
 
14166
  fi
 
14167
 
 
14168
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
14169
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
14170
 
 
14171
#
 
14172
# Check to make sure the PIC flag actually works.
 
14173
#
 
14174
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14175
 
 
14176
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14177
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
14178
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
14179
  $as_echo_n "(cached) " >&6
 
14180
else
 
14181
  lt_cv_prog_compiler_pic_works_CXX=no
 
14182
  ac_outfile=conftest.$ac_objext
 
14183
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14184
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14185
   # Insert the option either (1) after the last *FLAGS variable, or
 
14186
   # (2) before a word containing "conftest.", or (3) at the end.
 
14187
   # Note that $ac_compile itself does not contain backslashes and begins
 
14188
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14189
   # The option is referenced via a variable to avoid confusing sed.
 
14190
   lt_compile=`echo "$ac_compile" | $SED \
 
14191
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14192
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14193
   -e 's:$: $lt_compiler_flag:'`
 
14194
   (eval echo "\"\$as_me:14194: $lt_compile\"" >&5)
 
14195
   (eval "$lt_compile" 2>conftest.err)
 
14196
   ac_status=$?
 
14197
   cat conftest.err >&5
 
14198
   echo "$as_me:14198: \$? = $ac_status" >&5
 
14199
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14200
     # The compiler can only warn and ignore the option if not recognized
 
14201
     # So say no if there are warnings other than the usual output.
 
14202
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14203
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14204
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14205
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14206
     fi
 
14207
   fi
 
14208
   $rm conftest*
 
14209
 
 
14210
fi
 
14211
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14212
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14213
 
 
14214
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14215
    case $lt_prog_compiler_pic_CXX in
 
14216
     "" | " "*) ;;
 
14217
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14218
     esac
 
14219
else
 
14220
    lt_prog_compiler_pic_CXX=
 
14221
     lt_prog_compiler_can_build_shared_CXX=no
 
14222
fi
 
14223
 
 
14224
fi
 
14225
case $host_os in
 
14226
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14227
  *djgpp*)
 
14228
    lt_prog_compiler_pic_CXX=
 
14229
    ;;
 
14230
  *)
 
14231
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14232
    ;;
 
14233
esac
 
14234
 
 
14235
#
 
14236
# Check to make sure the static flag actually works.
 
14237
#
 
14238
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14239
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14240
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14241
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
14242
  $as_echo_n "(cached) " >&6
 
14243
else
 
14244
  lt_cv_prog_compiler_static_works_CXX=no
 
14245
   save_LDFLAGS="$LDFLAGS"
 
14246
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14247
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14248
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14249
     # The linker can only warn and ignore the option if not recognized
 
14250
     # So say no if there are warnings
 
14251
     if test -s conftest.err; then
 
14252
       # Append any errors to the config.log.
 
14253
       cat conftest.err 1>&5
 
14254
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14255
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14256
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14257
         lt_cv_prog_compiler_static_works_CXX=yes
 
14258
       fi
 
14259
     else
 
14260
       lt_cv_prog_compiler_static_works_CXX=yes
 
14261
     fi
 
14262
   fi
 
14263
   $rm -r conftest*
 
14264
   LDFLAGS="$save_LDFLAGS"
 
14265
 
 
14266
fi
 
14267
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14268
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14269
 
 
14270
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14271
    :
 
14272
else
 
14273
    lt_prog_compiler_static_CXX=
 
14274
fi
 
14275
 
 
14276
 
 
14277
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14278
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14279
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
14280
  $as_echo_n "(cached) " >&6
 
14281
else
 
14282
  lt_cv_prog_compiler_c_o_CXX=no
 
14283
   $rm -r conftest 2>/dev/null
 
14284
   mkdir conftest
 
14285
   cd conftest
 
14286
   mkdir out
 
14287
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14288
 
 
14289
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14290
   # Insert the option either (1) after the last *FLAGS variable, or
 
14291
   # (2) before a word containing "conftest.", or (3) at the end.
 
14292
   # Note that $ac_compile itself does not contain backslashes and begins
 
14293
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14294
   lt_compile=`echo "$ac_compile" | $SED \
 
14295
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14296
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14297
   -e 's:$: $lt_compiler_flag:'`
 
14298
   (eval echo "\"\$as_me:14298: $lt_compile\"" >&5)
 
14299
   (eval "$lt_compile" 2>out/conftest.err)
 
14300
   ac_status=$?
 
14301
   cat out/conftest.err >&5
 
14302
   echo "$as_me:14302: \$? = $ac_status" >&5
 
14303
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14304
   then
 
14305
     # The compiler can only warn and ignore the option if not recognized
 
14306
     # So say no if there are warnings
 
14307
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14308
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14309
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14310
       lt_cv_prog_compiler_c_o_CXX=yes
 
14311
     fi
 
14312
   fi
 
14313
   chmod u+w . 2>&5
 
14314
   $rm conftest*
 
14315
   # SGI C++ compiler will create directory out/ii_files/ for
 
14316
   # template instantiation
 
14317
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14318
   $rm out/* && rmdir out
 
14319
   cd ..
 
14320
   rmdir conftest
 
14321
   $rm conftest*
 
14322
 
 
14323
fi
 
14324
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14325
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14326
 
 
14327
 
 
14328
hard_links="nottested"
 
14329
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14330
  # do not overwrite the value of need_locks provided by the user
 
14331
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14332
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14333
  hard_links=yes
 
14334
  $rm conftest*
 
14335
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14336
  touch conftest.a
 
14337
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14338
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14339
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
14340
$as_echo "$hard_links" >&6; }
 
14341
  if test "$hard_links" = no; then
 
14342
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14343
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14344
    need_locks=warn
 
14345
  fi
 
14346
else
 
14347
  need_locks=no
 
14348
fi
 
14349
 
 
14350
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14351
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14352
 
 
14353
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14354
  case $host_os in
 
14355
  aix[4-9]*)
 
14356
    # If we're using GNU nm, then we don't want the "-C" option.
 
14357
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14358
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14359
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14360
    else
 
14361
      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'
 
14362
    fi
 
14363
    ;;
 
14364
  pw32*)
 
14365
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14366
  ;;
 
14367
  cygwin* | mingw*)
 
14368
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14369
  ;;
 
14370
  linux* | k*bsd*-gnu)
 
14371
    link_all_deplibs_CXX=no
 
14372
  ;;
 
14373
  *)
 
14374
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14375
  ;;
 
14376
  esac
 
14377
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14378
 
 
14379
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
14380
$as_echo "$ld_shlibs_CXX" >&6; }
 
14381
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14382
 
 
14383
#
 
14384
# Do we need to explicitly link libc?
 
14385
#
 
14386
case "x$archive_cmds_need_lc_CXX" in
 
14387
x|xyes)
 
14388
  # Assume -lc should be added
 
14389
  archive_cmds_need_lc_CXX=yes
 
14390
 
 
14391
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14392
    case $archive_cmds_CXX in
 
14393
    *'~'*)
 
14394
      # FIXME: we may have to deal with multi-command sequences.
 
14395
      ;;
 
14396
    '$CC '*)
 
14397
      # Test whether the compiler implicitly links with -lc since on some
 
14398
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14399
      # to ld, don't add -lc before -lgcc.
 
14400
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14401
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14402
      $rm conftest*
 
14403
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14404
 
 
14405
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14406
  (eval $ac_compile) 2>&5
 
14407
  ac_status=$?
 
14408
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14409
  (exit $ac_status); } 2>conftest.err; then
 
14410
        soname=conftest
 
14411
        lib=conftest
 
14412
        libobjs=conftest.$ac_objext
 
14413
        deplibs=
 
14414
        wl=$lt_prog_compiler_wl_CXX
 
14415
        pic_flag=$lt_prog_compiler_pic_CXX
 
14416
        compiler_flags=-v
 
14417
        linker_flags=-v
 
14418
        verstring=
 
14419
        output_objdir=.
 
14420
        libname=conftest
 
14421
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14422
        allow_undefined_flag_CXX=
 
14423
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14424
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14425
  ac_status=$?
 
14426
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14427
  (exit $ac_status); }
 
14428
        then
 
14429
          archive_cmds_need_lc_CXX=no
 
14430
        else
 
14431
          archive_cmds_need_lc_CXX=yes
 
14432
        fi
 
14433
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14434
      else
 
14435
        cat conftest.err 1>&5
 
14436
      fi
 
14437
      $rm conftest*
 
14438
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
14439
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
14440
      ;;
 
14441
    esac
 
14442
  fi
 
14443
  ;;
 
14444
esac
 
14445
 
 
14446
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14447
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14448
library_names_spec=
 
14449
libname_spec='lib$name'
 
14450
soname_spec=
 
14451
shrext_cmds=".so"
 
14452
postinstall_cmds=
 
14453
postuninstall_cmds=
 
14454
finish_cmds=
 
14455
finish_eval=
 
14456
shlibpath_var=
 
14457
shlibpath_overrides_runpath=unknown
 
14458
version_type=none
 
14459
dynamic_linker="$host_os ld.so"
 
14460
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14461
 
 
14462
need_lib_prefix=unknown
 
14463
hardcode_into_libs=no
 
14464
 
 
14465
# when you set need_version to no, make sure it does not cause -set_version
 
14466
# flags to be left without arguments
 
14467
need_version=unknown
 
14468
 
 
14469
case $host_os in
 
14470
aix3*)
 
14471
  version_type=linux
 
14472
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14473
  shlibpath_var=LIBPATH
 
14474
 
 
14475
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14476
  soname_spec='${libname}${release}${shared_ext}$major'
 
14477
  ;;
 
14478
 
 
14479
aix[4-9]*)
 
14480
  version_type=linux
 
14481
  need_lib_prefix=no
 
14482
  need_version=no
 
14483
  hardcode_into_libs=yes
 
14484
  if test "$host_cpu" = ia64; then
 
14485
    # AIX 5 supports IA64
 
14486
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14487
    shlibpath_var=LD_LIBRARY_PATH
 
14488
  else
 
14489
    # With GCC up to 2.95.x, collect2 would create an import file
 
14490
    # for dependence libraries.  The import file would start with
 
14491
    # the line `#! .'.  This would cause the generated library to
 
14492
    # depend on `.', always an invalid library.  This was fixed in
 
14493
    # development snapshots of GCC prior to 3.0.
 
14494
    case $host_os in
 
14495
      aix4 | aix4.[01] | aix4.[01].*)
 
14496
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14497
           echo ' yes '
 
14498
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14499
        :
 
14500
      else
 
14501
        can_build_shared=no
 
14502
      fi
 
14503
      ;;
 
14504
    esac
 
14505
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14506
    # soname into executable. Probably we can add versioning support to
 
14507
    # collect2, so additional links can be useful in future.
 
14508
    if test "$aix_use_runtimelinking" = yes; then
 
14509
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14510
      # instead of lib<name>.a to let people know that these are not
 
14511
      # typical AIX shared libraries.
 
14512
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14513
    else
 
14514
      # We preserve .a as extension for shared libraries through AIX4.2
 
14515
      # and later when we are not doing run time linking.
 
14516
      library_names_spec='${libname}${release}.a $libname.a'
 
14517
      soname_spec='${libname}${release}${shared_ext}$major'
 
14518
    fi
 
14519
    shlibpath_var=LIBPATH
 
14520
  fi
 
14521
  ;;
 
14522
 
 
14523
amigaos*)
 
14524
  library_names_spec='$libname.ixlibrary $libname.a'
 
14525
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14526
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
 
14527
  ;;
 
14528
 
 
14529
beos*)
 
14530
  library_names_spec='${libname}${shared_ext}'
 
14531
  dynamic_linker="$host_os ld.so"
 
14532
  shlibpath_var=LIBRARY_PATH
 
14533
  ;;
 
14534
 
 
14535
bsdi[45]*)
 
14536
  version_type=linux
 
14537
  need_version=no
 
14538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14539
  soname_spec='${libname}${release}${shared_ext}$major'
 
14540
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14541
  shlibpath_var=LD_LIBRARY_PATH
 
14542
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14543
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14544
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14545
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14546
  # libtool to hard-code these into programs
 
14547
  ;;
 
14548
 
 
14549
cygwin* | mingw* | pw32*)
 
14550
  version_type=windows
 
14551
  shrext_cmds=".dll"
 
14552
  need_version=no
 
14553
  need_lib_prefix=no
 
14554
 
 
14555
  case $GCC,$host_os in
 
14556
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14557
    library_names_spec='$libname.dll.a'
 
14558
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14559
    postinstall_cmds='base_file=`basename \${file}`~
 
14560
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14561
      dldir=$destdir/`dirname \$dlpath`~
 
14562
      test -d \$dldir || mkdir -p \$dldir~
 
14563
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14564
      chmod a+x \$dldir/$dlname'
 
14565
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14566
      dlpath=$dir/\$dldll~
 
14567
       $rm \$dlpath'
 
14568
    shlibpath_overrides_runpath=yes
 
14569
 
 
14570
    case $host_os in
 
14571
    cygwin*)
 
14572
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14573
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14574
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14575
      ;;
 
14576
    mingw*)
 
14577
      # MinGW DLLs use traditional 'lib' prefix
 
14578
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14579
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14580
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14581
        # It is most probably a Windows format PATH printed by
 
14582
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14583
        # path with ; separators, and with drive letters. We can handle the
 
14584
        # drive letters (cygwin fileutils understands them), so leave them,
 
14585
        # especially as we might pass files found there to a mingw objdump,
 
14586
        # which wouldn't understand a cygwinified path. Ahh.
 
14587
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14588
      else
 
14589
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14590
      fi
 
14591
      ;;
 
14592
    pw32*)
 
14593
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14594
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14595
      ;;
 
14596
    esac
 
14597
    ;;
 
14598
 
 
14599
  *)
 
14600
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14601
    ;;
 
14602
  esac
 
14603
  dynamic_linker='Win32 ld.exe'
 
14604
  # FIXME: first we should search . and the directory the executable is in
 
14605
  shlibpath_var=PATH
 
14606
  ;;
 
14607
 
 
14608
darwin* | rhapsody*)
 
14609
  dynamic_linker="$host_os dyld"
 
14610
  version_type=darwin
 
14611
  need_lib_prefix=no
 
14612
  need_version=no
 
14613
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14614
  soname_spec='${libname}${release}${major}$shared_ext'
 
14615
  shlibpath_overrides_runpath=yes
 
14616
  shlibpath_var=DYLD_LIBRARY_PATH
 
14617
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14618
 
 
14619
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14620
  ;;
 
14621
 
 
14622
dgux*)
 
14623
  version_type=linux
 
14624
  need_lib_prefix=no
 
14625
  need_version=no
 
14626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14627
  soname_spec='${libname}${release}${shared_ext}$major'
 
14628
  shlibpath_var=LD_LIBRARY_PATH
 
14629
  ;;
 
14630
 
 
14631
freebsd1*)
 
14632
  dynamic_linker=no
 
14633
  ;;
 
14634
 
 
14635
freebsd* | dragonfly*)
 
14636
  # DragonFly does not have aout.  When/if they implement a new
 
14637
  # versioning mechanism, adjust this.
 
14638
  if test -x /usr/bin/objformat; then
 
14639
    objformat=`/usr/bin/objformat`
 
14640
  else
 
14641
    case $host_os in
 
14642
    freebsd[123]*) objformat=aout ;;
 
14643
    *) objformat=elf ;;
 
14644
    esac
 
14645
  fi
 
14646
  version_type=freebsd-$objformat
 
14647
  case $version_type in
 
14648
    freebsd-elf*)
 
14649
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14650
      need_version=no
 
14651
      need_lib_prefix=no
 
14652
      ;;
 
14653
    freebsd-*)
 
14654
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14655
      need_version=yes
 
14656
      ;;
 
14657
  esac
 
14658
  shlibpath_var=LD_LIBRARY_PATH
 
14659
  case $host_os in
 
14660
  freebsd2*)
 
14661
    shlibpath_overrides_runpath=yes
 
14662
    ;;
 
14663
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14664
    shlibpath_overrides_runpath=yes
 
14665
    hardcode_into_libs=yes
 
14666
    ;;
 
14667
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14668
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14669
    shlibpath_overrides_runpath=no
 
14670
    hardcode_into_libs=yes
 
14671
    ;;
 
14672
  *) # from 4.6 on, and DragonFly
 
14673
    shlibpath_overrides_runpath=yes
 
14674
    hardcode_into_libs=yes
 
14675
    ;;
 
14676
  esac
 
14677
  ;;
 
14678
 
 
14679
gnu*)
 
14680
  version_type=linux
 
14681
  need_lib_prefix=no
 
14682
  need_version=no
 
14683
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14684
  soname_spec='${libname}${release}${shared_ext}$major'
 
14685
  shlibpath_var=LD_LIBRARY_PATH
 
14686
  hardcode_into_libs=yes
 
14687
  ;;
 
14688
 
 
14689
hpux9* | hpux10* | hpux11*)
 
14690
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14691
  # link against other versions.
 
14692
  version_type=sunos
 
14693
  need_lib_prefix=no
 
14694
  need_version=no
 
14695
  case $host_cpu in
 
14696
  ia64*)
 
14697
    shrext_cmds='.so'
 
14698
    hardcode_into_libs=yes
 
14699
    dynamic_linker="$host_os dld.so"
 
14700
    shlibpath_var=LD_LIBRARY_PATH
 
14701
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14702
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14703
    soname_spec='${libname}${release}${shared_ext}$major'
 
14704
    if test "X$HPUX_IA64_MODE" = X32; then
 
14705
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14706
    else
 
14707
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14708
    fi
 
14709
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14710
    ;;
 
14711
   hppa*64*)
 
14712
     shrext_cmds='.sl'
 
14713
     hardcode_into_libs=yes
 
14714
     dynamic_linker="$host_os dld.sl"
 
14715
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14716
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14717
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14718
     soname_spec='${libname}${release}${shared_ext}$major'
 
14719
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14720
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14721
     ;;
 
14722
   *)
 
14723
    shrext_cmds='.sl'
 
14724
    dynamic_linker="$host_os dld.sl"
 
14725
    shlibpath_var=SHLIB_PATH
 
14726
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14727
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14728
    soname_spec='${libname}${release}${shared_ext}$major'
 
14729
    ;;
 
14730
  esac
 
14731
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14732
  postinstall_cmds='chmod 555 $lib'
 
14733
  ;;
 
14734
 
 
14735
interix[3-9]*)
 
14736
  version_type=linux
 
14737
  need_lib_prefix=no
 
14738
  need_version=no
 
14739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14740
  soname_spec='${libname}${release}${shared_ext}$major'
 
14741
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14742
  shlibpath_var=LD_LIBRARY_PATH
 
14743
  shlibpath_overrides_runpath=no
 
14744
  hardcode_into_libs=yes
 
14745
  ;;
 
14746
 
 
14747
irix5* | irix6* | nonstopux*)
 
14748
  case $host_os in
 
14749
    nonstopux*) version_type=nonstopux ;;
 
14750
    *)
 
14751
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14752
                version_type=linux
 
14753
        else
 
14754
                version_type=irix
 
14755
        fi ;;
 
14756
  esac
 
14757
  need_lib_prefix=no
 
14758
  need_version=no
 
14759
  soname_spec='${libname}${release}${shared_ext}$major'
 
14760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14761
  case $host_os in
 
14762
  irix5* | nonstopux*)
 
14763
    libsuff= shlibsuff=
 
14764
    ;;
 
14765
  *)
 
14766
    case $LD in # libtool.m4 will add one of these switches to LD
 
14767
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14768
      libsuff= shlibsuff= libmagic=32-bit;;
 
14769
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14770
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14771
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14772
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14773
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14774
    esac
 
14775
    ;;
 
14776
  esac
 
14777
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14778
  shlibpath_overrides_runpath=no
 
14779
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14780
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14781
  hardcode_into_libs=yes
 
14782
  ;;
 
14783
 
 
14784
# No shared lib support for Linux oldld, aout, or coff.
 
14785
linux*oldld* | linux*aout* | linux*coff*)
 
14786
  dynamic_linker=no
 
14787
  ;;
 
14788
 
 
14789
# This must be Linux ELF.
 
14790
linux* | k*bsd*-gnu)
 
14791
  version_type=linux
 
14792
  need_lib_prefix=no
 
14793
  need_version=no
 
14794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14795
  soname_spec='${libname}${release}${shared_ext}$major'
 
14796
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14797
  shlibpath_var=LD_LIBRARY_PATH
 
14798
  shlibpath_overrides_runpath=no
 
14799
  # This implies no fast_install, which is unacceptable.
 
14800
  # Some rework will be needed to allow for fast_install
 
14801
  # before this can be enabled.
 
14802
  hardcode_into_libs=yes
 
14803
 
 
14804
  # Append ld.so.conf contents to the search path
 
14805
  if test -f /etc/ld.so.conf; then
 
14806
    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;/^$/d' | tr '\n' ' '`
 
14807
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14808
  fi
 
14809
 
 
14810
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14811
  # powerpc, because MkLinux only supported shared libraries with the
 
14812
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14813
  # most powerpc-linux boxes support dynamic linking these days and
 
14814
  # people can always --disable-shared, the test was removed, and we
 
14815
  # assume the GNU/Linux dynamic linker is in use.
 
14816
  dynamic_linker='GNU/Linux ld.so'
 
14817
  ;;
 
14818
 
 
14819
netbsdelf*-gnu)
 
14820
  version_type=linux
 
14821
  need_lib_prefix=no
 
14822
  need_version=no
 
14823
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14824
  soname_spec='${libname}${release}${shared_ext}$major'
 
14825
  shlibpath_var=LD_LIBRARY_PATH
 
14826
  shlibpath_overrides_runpath=no
 
14827
  hardcode_into_libs=yes
 
14828
  dynamic_linker='NetBSD ld.elf_so'
 
14829
  ;;
 
14830
 
 
14831
netbsd*)
 
14832
  version_type=sunos
 
14833
  need_lib_prefix=no
 
14834
  need_version=no
 
14835
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14836
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14837
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14838
    dynamic_linker='NetBSD (a.out) ld.so'
 
14839
  else
 
14840
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14841
    soname_spec='${libname}${release}${shared_ext}$major'
 
14842
    dynamic_linker='NetBSD ld.elf_so'
 
14843
  fi
 
14844
  shlibpath_var=LD_LIBRARY_PATH
 
14845
  shlibpath_overrides_runpath=yes
 
14846
  hardcode_into_libs=yes
 
14847
  ;;
 
14848
 
 
14849
newsos6)
 
14850
  version_type=linux
 
14851
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14852
  shlibpath_var=LD_LIBRARY_PATH
 
14853
  shlibpath_overrides_runpath=yes
 
14854
  ;;
 
14855
 
 
14856
nto-qnx*)
 
14857
  version_type=linux
 
14858
  need_lib_prefix=no
 
14859
  need_version=no
 
14860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14861
  soname_spec='${libname}${release}${shared_ext}$major'
 
14862
  shlibpath_var=LD_LIBRARY_PATH
 
14863
  shlibpath_overrides_runpath=yes
 
14864
  ;;
 
14865
 
 
14866
openbsd*)
 
14867
  version_type=sunos
 
14868
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14869
  need_lib_prefix=no
 
14870
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14871
  case $host_os in
 
14872
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14873
    *)                         need_version=no  ;;
 
14874
  esac
 
14875
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14876
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14877
  shlibpath_var=LD_LIBRARY_PATH
 
14878
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14879
    case $host_os in
 
14880
      openbsd2.[89] | openbsd2.[89].*)
 
14881
        shlibpath_overrides_runpath=no
 
14882
        ;;
 
14883
      *)
 
14884
        shlibpath_overrides_runpath=yes
 
14885
        ;;
 
14886
      esac
 
14887
  else
 
14888
    shlibpath_overrides_runpath=yes
 
14889
  fi
 
14890
  ;;
 
14891
 
 
14892
os2*)
 
14893
  libname_spec='$name'
 
14894
  shrext_cmds=".dll"
 
14895
  need_lib_prefix=no
 
14896
  library_names_spec='$libname${shared_ext} $libname.a'
 
14897
  dynamic_linker='OS/2 ld.exe'
 
14898
  shlibpath_var=LIBPATH
 
14899
  ;;
 
14900
 
 
14901
osf3* | osf4* | osf5*)
 
14902
  version_type=osf
 
14903
  need_lib_prefix=no
 
14904
  need_version=no
 
14905
  soname_spec='${libname}${release}${shared_ext}$major'
 
14906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14907
  shlibpath_var=LD_LIBRARY_PATH
 
14908
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14909
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14910
  ;;
 
14911
 
 
14912
rdos*)
 
14913
  dynamic_linker=no
 
14914
  ;;
 
14915
 
 
14916
solaris*)
 
14917
  version_type=linux
 
14918
  need_lib_prefix=no
 
14919
  need_version=no
 
14920
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14921
  soname_spec='${libname}${release}${shared_ext}$major'
 
14922
  shlibpath_var=LD_LIBRARY_PATH
 
14923
  shlibpath_overrides_runpath=yes
 
14924
  hardcode_into_libs=yes
 
14925
  # ldd complains unless libraries are executable
 
14926
  postinstall_cmds='chmod +x $lib'
 
14927
  ;;
 
14928
 
 
14929
sunos4*)
 
14930
  version_type=sunos
 
14931
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14932
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14933
  shlibpath_var=LD_LIBRARY_PATH
 
14934
  shlibpath_overrides_runpath=yes
 
14935
  if test "$with_gnu_ld" = yes; then
 
14936
    need_lib_prefix=no
 
14937
  fi
 
14938
  need_version=yes
 
14939
  ;;
 
14940
 
 
14941
sysv4 | sysv4.3*)
 
14942
  version_type=linux
 
14943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14944
  soname_spec='${libname}${release}${shared_ext}$major'
 
14945
  shlibpath_var=LD_LIBRARY_PATH
 
14946
  case $host_vendor in
 
14947
    sni)
 
14948
      shlibpath_overrides_runpath=no
 
14949
      need_lib_prefix=no
 
14950
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14951
      runpath_var=LD_RUN_PATH
 
14952
      ;;
 
14953
    siemens)
 
14954
      need_lib_prefix=no
 
14955
      ;;
 
14956
    motorola)
 
14957
      need_lib_prefix=no
 
14958
      need_version=no
 
14959
      shlibpath_overrides_runpath=no
 
14960
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14961
      ;;
 
14962
  esac
 
14963
  ;;
 
14964
 
 
14965
sysv4*MP*)
 
14966
  if test -d /usr/nec ;then
 
14967
    version_type=linux
 
14968
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14969
    soname_spec='$libname${shared_ext}.$major'
 
14970
    shlibpath_var=LD_LIBRARY_PATH
 
14971
  fi
 
14972
  ;;
 
14973
 
 
14974
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14975
  version_type=freebsd-elf
 
14976
  need_lib_prefix=no
 
14977
  need_version=no
 
14978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14979
  soname_spec='${libname}${release}${shared_ext}$major'
 
14980
  shlibpath_var=LD_LIBRARY_PATH
 
14981
  hardcode_into_libs=yes
 
14982
  if test "$with_gnu_ld" = yes; then
 
14983
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14984
    shlibpath_overrides_runpath=no
 
14985
  else
 
14986
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14987
    shlibpath_overrides_runpath=yes
 
14988
    case $host_os in
 
14989
      sco3.2v5*)
 
14990
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14991
        ;;
 
14992
    esac
 
14993
  fi
 
14994
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14995
  ;;
 
14996
 
 
14997
uts4*)
 
14998
  version_type=linux
 
14999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15000
  soname_spec='${libname}${release}${shared_ext}$major'
 
15001
  shlibpath_var=LD_LIBRARY_PATH
 
15002
  ;;
 
15003
 
 
15004
*)
 
15005
  dynamic_linker=no
 
15006
  ;;
 
15007
esac
 
15008
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15009
$as_echo "$dynamic_linker" >&6; }
 
15010
test "$dynamic_linker" = no && can_build_shared=no
 
15011
 
 
15012
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15013
  $as_echo_n "(cached) " >&6
 
15014
else
 
15015
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
15016
fi
 
15017
 
 
15018
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15019
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15020
  $as_echo_n "(cached) " >&6
 
15021
else
 
15022
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
15023
fi
 
15024
 
 
15025
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15026
 
 
15027
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15028
if test "$GCC" = yes; then
 
15029
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15030
fi
 
15031
 
 
15032
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15033
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15034
hardcode_action_CXX=
 
15035
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
15036
   test -n "$runpath_var_CXX" || \
 
15037
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15038
 
 
15039
  # We can hardcode non-existant directories.
 
15040
  if test "$hardcode_direct_CXX" != no &&
 
15041
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15042
     # have to relink, otherwise we might link with an installed library
 
15043
     # when we should be linking with a yet-to-be-installed one
 
15044
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15045
     test "$hardcode_minus_L_CXX" != no; then
 
15046
    # Linking always hardcodes the temporary library directory.
 
15047
    hardcode_action_CXX=relink
 
15048
  else
 
15049
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15050
    hardcode_action_CXX=immediate
 
15051
  fi
 
15052
else
 
15053
  # We cannot hardcode anything, or else we can only hardcode existing
 
15054
  # directories.
 
15055
  hardcode_action_CXX=unsupported
 
15056
fi
 
15057
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
15058
$as_echo "$hardcode_action_CXX" >&6; }
 
15059
 
 
15060
if test "$hardcode_action_CXX" = relink; then
 
15061
  # Fast installation is not supported
 
15062
  enable_fast_install=no
 
15063
elif test "$shlibpath_overrides_runpath" = yes ||
 
15064
     test "$enable_shared" = no; then
 
15065
  # Fast installation is not necessary
 
15066
  enable_fast_install=needless
 
15067
fi
 
15068
 
 
15069
 
 
15070
# The else clause should only fire when bootstrapping the
 
15071
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15072
# with your package, and you will get complaints that there are
 
15073
# no rules to generate ltmain.sh.
 
15074
if test -f "$ltmain"; then
 
15075
  # See if we are running on zsh, and set the options which allow our commands through
 
15076
  # without removal of \ escapes.
 
15077
  if test -n "${ZSH_VERSION+set}" ; then
 
15078
    setopt NO_GLOB_SUBST
 
15079
  fi
 
15080
  # Now quote all the things that may contain metacharacters while being
 
15081
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15082
  # variables and quote the copies for generation of the libtool script.
 
15083
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15084
    SED SHELL STRIP \
 
15085
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15086
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15087
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15088
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15089
    lt_cv_sys_global_symbol_to_c_name_address \
 
15090
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15091
    old_postinstall_cmds old_postuninstall_cmds \
 
15092
    compiler_CXX \
 
15093
    CC_CXX \
 
15094
    LD_CXX \
 
15095
    lt_prog_compiler_wl_CXX \
 
15096
    lt_prog_compiler_pic_CXX \
 
15097
    lt_prog_compiler_static_CXX \
 
15098
    lt_prog_compiler_no_builtin_flag_CXX \
 
15099
    export_dynamic_flag_spec_CXX \
 
15100
    thread_safe_flag_spec_CXX \
 
15101
    whole_archive_flag_spec_CXX \
 
15102
    enable_shared_with_static_runtimes_CXX \
 
15103
    old_archive_cmds_CXX \
 
15104
    old_archive_from_new_cmds_CXX \
 
15105
    predep_objects_CXX \
 
15106
    postdep_objects_CXX \
 
15107
    predeps_CXX \
 
15108
    postdeps_CXX \
 
15109
    compiler_lib_search_path_CXX \
 
15110
    compiler_lib_search_dirs_CXX \
 
15111
    archive_cmds_CXX \
 
15112
    archive_expsym_cmds_CXX \
 
15113
    postinstall_cmds_CXX \
 
15114
    postuninstall_cmds_CXX \
 
15115
    old_archive_from_expsyms_cmds_CXX \
 
15116
    allow_undefined_flag_CXX \
 
15117
    no_undefined_flag_CXX \
 
15118
    export_symbols_cmds_CXX \
 
15119
    hardcode_libdir_flag_spec_CXX \
 
15120
    hardcode_libdir_flag_spec_ld_CXX \
 
15121
    hardcode_libdir_separator_CXX \
 
15122
    hardcode_automatic_CXX \
 
15123
    module_cmds_CXX \
 
15124
    module_expsym_cmds_CXX \
 
15125
    lt_cv_prog_compiler_c_o_CXX \
 
15126
    fix_srcfile_path_CXX \
 
15127
    exclude_expsyms_CXX \
 
15128
    include_expsyms_CXX; do
 
15129
 
 
15130
    case $var in
 
15131
    old_archive_cmds_CXX | \
 
15132
    old_archive_from_new_cmds_CXX | \
 
15133
    archive_cmds_CXX | \
 
15134
    archive_expsym_cmds_CXX | \
 
15135
    module_cmds_CXX | \
 
15136
    module_expsym_cmds_CXX | \
 
15137
    old_archive_from_expsyms_cmds_CXX | \
 
15138
    export_symbols_cmds_CXX | \
 
15139
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15140
    postinstall_cmds | postuninstall_cmds | \
 
15141
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15142
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15143
      # Double-quote double-evaled strings.
 
15144
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15145
      ;;
 
15146
    *)
 
15147
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15148
      ;;
 
15149
    esac
 
15150
  done
 
15151
 
 
15152
  case $lt_echo in
 
15153
  *'\$0 --fallback-echo"')
 
15154
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15155
    ;;
 
15156
  esac
 
15157
 
 
15158
cfgfile="$ofile"
 
15159
 
 
15160
  cat <<__EOF__ >> "$cfgfile"
 
15161
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15162
 
 
15163
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15164
 
 
15165
# Shell to use when invoking shell scripts.
 
15166
SHELL=$lt_SHELL
 
15167
 
 
15168
# Whether or not to build shared libraries.
 
15169
build_libtool_libs=$enable_shared
 
15170
 
 
15171
# Whether or not to build static libraries.
 
15172
build_old_libs=$enable_static
 
15173
 
 
15174
# Whether or not to add -lc for building shared libraries.
 
15175
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
15176
 
 
15177
# Whether or not to disallow shared libs when runtime libs are static
 
15178
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
15179
 
 
15180
# Whether or not to optimize for fast installation.
 
15181
fast_install=$enable_fast_install
 
15182
 
 
15183
# The host system.
 
15184
host_alias=$host_alias
 
15185
host=$host
 
15186
host_os=$host_os
 
15187
 
 
15188
# The build system.
 
15189
build_alias=$build_alias
 
15190
build=$build
 
15191
build_os=$build_os
 
15192
 
 
15193
# An echo program that does not interpret backslashes.
 
15194
echo=$lt_echo
 
15195
 
 
15196
# The archiver.
 
15197
AR=$lt_AR
 
15198
AR_FLAGS=$lt_AR_FLAGS
 
15199
 
 
15200
# A C compiler.
 
15201
LTCC=$lt_LTCC
 
15202
 
 
15203
# LTCC compiler flags.
 
15204
LTCFLAGS=$lt_LTCFLAGS
 
15205
 
 
15206
# A language-specific compiler.
 
15207
CC=$lt_compiler_CXX
 
15208
 
 
15209
# Is the compiler the GNU C compiler?
 
15210
with_gcc=$GCC_CXX
 
15211
 
 
15212
# An ERE matcher.
 
15213
EGREP=$lt_EGREP
 
15214
 
 
15215
# The linker used to build libraries.
 
15216
LD=$lt_LD_CXX
 
15217
 
 
15218
# Whether we need hard or soft links.
 
15219
LN_S=$lt_LN_S
 
15220
 
 
15221
# A BSD-compatible nm program.
 
15222
NM=$lt_NM
 
15223
 
 
15224
# A symbol stripping program
 
15225
STRIP=$lt_STRIP
 
15226
 
 
15227
# Used to examine libraries when file_magic_cmd begins "file"
 
15228
MAGIC_CMD=$MAGIC_CMD
 
15229
 
 
15230
# Used on cygwin: DLL creation program.
 
15231
DLLTOOL="$DLLTOOL"
 
15232
 
 
15233
# Used on cygwin: object dumper.
 
15234
OBJDUMP="$OBJDUMP"
 
15235
 
 
15236
# Used on cygwin: assembler.
 
15237
AS="$AS"
 
15238
 
 
15239
# The name of the directory that contains temporary libtool files.
 
15240
objdir=$objdir
 
15241
 
 
15242
# How to create reloadable object files.
 
15243
reload_flag=$lt_reload_flag
 
15244
reload_cmds=$lt_reload_cmds
 
15245
 
 
15246
# How to pass a linker flag through the compiler.
 
15247
wl=$lt_lt_prog_compiler_wl_CXX
 
15248
 
 
15249
# Object file suffix (normally "o").
 
15250
objext="$ac_objext"
 
15251
 
 
15252
# Old archive suffix (normally "a").
 
15253
libext="$libext"
 
15254
 
 
15255
# Shared library suffix (normally ".so").
 
15256
shrext_cmds='$shrext_cmds'
 
15257
 
 
15258
# Executable file suffix (normally "").
 
15259
exeext="$exeext"
 
15260
 
 
15261
# Additional compiler flags for building library objects.
 
15262
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
15263
pic_mode=$pic_mode
 
15264
 
 
15265
# What is the maximum length of a command?
 
15266
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15267
 
 
15268
# Does compiler simultaneously support -c and -o options?
 
15269
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
15270
 
 
15271
# Must we lock files when doing compilation?
 
15272
need_locks=$lt_need_locks
 
15273
 
 
15274
# Do we need the lib prefix for modules?
 
15275
need_lib_prefix=$need_lib_prefix
 
15276
 
 
15277
# Do we need a version for libraries?
 
15278
need_version=$need_version
 
15279
 
 
15280
# Whether dlopen is supported.
 
15281
dlopen_support=$enable_dlopen
 
15282
 
 
15283
# Whether dlopen of programs is supported.
 
15284
dlopen_self=$enable_dlopen_self
 
15285
 
 
15286
# Whether dlopen of statically linked programs is supported.
 
15287
dlopen_self_static=$enable_dlopen_self_static
 
15288
 
 
15289
# Compiler flag to prevent dynamic linking.
 
15290
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
15291
 
 
15292
# Compiler flag to turn off builtin functions.
 
15293
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
15294
 
 
15295
# Compiler flag to allow reflexive dlopens.
 
15296
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
15297
 
 
15298
# Compiler flag to generate shared objects directly from archives.
 
15299
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
15300
 
 
15301
# Compiler flag to generate thread-safe objects.
 
15302
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
15303
 
 
15304
# Library versioning type.
 
15305
version_type=$version_type
 
15306
 
 
15307
# Format of library name prefix.
 
15308
libname_spec=$lt_libname_spec
 
15309
 
 
15310
# List of archive names.  First name is the real one, the rest are links.
 
15311
# The last name is the one that the linker finds with -lNAME.
 
15312
library_names_spec=$lt_library_names_spec
 
15313
 
 
15314
# The coded name of the library, if different from the real name.
 
15315
soname_spec=$lt_soname_spec
 
15316
 
 
15317
# Commands used to build and install an old-style archive.
 
15318
RANLIB=$lt_RANLIB
 
15319
old_archive_cmds=$lt_old_archive_cmds_CXX
 
15320
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15321
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15322
 
 
15323
# Create an old-style archive from a shared archive.
 
15324
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
15325
 
 
15326
# Create a temporary old-style archive to link instead of a shared archive.
 
15327
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
15328
 
 
15329
# Commands used to build and install a shared archive.
 
15330
archive_cmds=$lt_archive_cmds_CXX
 
15331
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
15332
postinstall_cmds=$lt_postinstall_cmds
 
15333
postuninstall_cmds=$lt_postuninstall_cmds
 
15334
 
 
15335
# Commands used to build a loadable module (assumed same as above if empty)
 
15336
module_cmds=$lt_module_cmds_CXX
 
15337
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
15338
 
 
15339
# Commands to strip libraries.
 
15340
old_striplib=$lt_old_striplib
 
15341
striplib=$lt_striplib
 
15342
 
 
15343
# Dependencies to place before the objects being linked to create a
 
15344
# shared library.
 
15345
predep_objects=$lt_predep_objects_CXX
 
15346
 
 
15347
# Dependencies to place after the objects being linked to create a
 
15348
# shared library.
 
15349
postdep_objects=$lt_postdep_objects_CXX
 
15350
 
 
15351
# Dependencies to place before the objects being linked to create a
 
15352
# shared library.
 
15353
predeps=$lt_predeps_CXX
 
15354
 
 
15355
# Dependencies to place after the objects being linked to create a
 
15356
# shared library.
 
15357
postdeps=$lt_postdeps_CXX
 
15358
 
 
15359
# The directories searched by this compiler when creating a shared
 
15360
# library
 
15361
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
15362
 
 
15363
# The library search path used internally by the compiler when linking
 
15364
# a shared library.
 
15365
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
15366
 
 
15367
# Method to check whether dependent libraries are shared objects.
 
15368
deplibs_check_method=$lt_deplibs_check_method
 
15369
 
 
15370
# Command to use when deplibs_check_method == file_magic.
 
15371
file_magic_cmd=$lt_file_magic_cmd
 
15372
 
 
15373
# Flag that allows shared libraries with undefined symbols to be built.
 
15374
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
15375
 
 
15376
# Flag that forces no undefined symbols.
 
15377
no_undefined_flag=$lt_no_undefined_flag_CXX
 
15378
 
 
15379
# Commands used to finish a libtool library installation in a directory.
 
15380
finish_cmds=$lt_finish_cmds
 
15381
 
 
15382
# Same as above, but a single script fragment to be evaled but not shown.
 
15383
finish_eval=$lt_finish_eval
 
15384
 
 
15385
# Take the output of nm and produce a listing of raw symbols and C names.
 
15386
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15387
 
 
15388
# Transform the output of nm in a proper C declaration
 
15389
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15390
 
 
15391
# Transform the output of nm in a C name address pair
 
15392
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15393
 
 
15394
# This is the shared library runtime path variable.
 
15395
runpath_var=$runpath_var
 
15396
 
 
15397
# This is the shared library path variable.
 
15398
shlibpath_var=$shlibpath_var
 
15399
 
 
15400
# Is shlibpath searched before the hard-coded library search path?
 
15401
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15402
 
 
15403
# How to hardcode a shared library path into an executable.
 
15404
hardcode_action=$hardcode_action_CXX
 
15405
 
 
15406
# Whether we should hardcode library paths into libraries.
 
15407
hardcode_into_libs=$hardcode_into_libs
 
15408
 
 
15409
# Flag to hardcode \$libdir into a binary during linking.
 
15410
# This must work even if \$libdir does not exist.
 
15411
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
15412
 
 
15413
# If ld is used when linking, flag to hardcode \$libdir into
 
15414
# a binary during linking. This must work even if \$libdir does
 
15415
# not exist.
 
15416
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15417
 
 
15418
# Whether we need a single -rpath flag with a separated argument.
 
15419
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
15420
 
 
15421
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15422
# resulting binary.
 
15423
hardcode_direct=$hardcode_direct_CXX
 
15424
 
 
15425
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15426
# resulting binary.
 
15427
hardcode_minus_L=$hardcode_minus_L_CXX
 
15428
 
 
15429
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15430
# the resulting binary.
 
15431
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
15432
 
 
15433
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15434
# and all subsequent libraries and executables linked against it.
 
15435
hardcode_automatic=$hardcode_automatic_CXX
 
15436
 
 
15437
# Variables whose values should be saved in libtool wrapper scripts and
 
15438
# restored at relink time.
 
15439
variables_saved_for_relink="$variables_saved_for_relink"
 
15440
 
 
15441
# Whether libtool must link a program against all its dependency libraries.
 
15442
link_all_deplibs=$link_all_deplibs_CXX
 
15443
 
 
15444
# Compile-time system search path for libraries
 
15445
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15446
 
 
15447
# Run-time system search path for libraries
 
15448
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15449
 
 
15450
# Fix the shell variable \$srcfile for the compiler.
 
15451
fix_srcfile_path=$lt_fix_srcfile_path
 
15452
 
 
15453
# Set to yes if exported symbols are required.
 
15454
always_export_symbols=$always_export_symbols_CXX
 
15455
 
 
15456
# The commands to list exported symbols.
 
15457
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
15458
 
 
15459
# The commands to extract the exported symbol list from a shared archive.
 
15460
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15461
 
 
15462
# Symbols that should not be listed in the preloaded symbols.
 
15463
exclude_expsyms=$lt_exclude_expsyms_CXX
 
15464
 
 
15465
# Symbols that must always be exported.
 
15466
include_expsyms=$lt_include_expsyms_CXX
 
15467
 
 
15468
# ### END LIBTOOL TAG CONFIG: $tagname
 
15469
 
 
15470
__EOF__
 
15471
 
 
15472
 
 
15473
else
 
15474
  # If there is no Makefile yet, we rely on a make rule to execute
 
15475
  # `config.status --recheck' to rerun these tests and create the
 
15476
  # libtool script then.
 
15477
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15478
  if test -f "$ltmain_in"; then
 
15479
    test -f Makefile && make "$ltmain"
 
15480
  fi
 
15481
fi
 
15482
 
 
15483
 
 
15484
ac_ext=c
 
15485
ac_cpp='$CPP $CPPFLAGS'
 
15486
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15489
 
 
15490
CC=$lt_save_CC
 
15491
LDCXX=$LD
 
15492
LD=$lt_save_LD
 
15493
GCC=$lt_save_GCC
 
15494
with_gnu_ldcxx=$with_gnu_ld
 
15495
with_gnu_ld=$lt_save_with_gnu_ld
 
15496
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15497
lt_cv_path_LD=$lt_save_path_LD
 
15498
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15499
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15500
 
 
15501
        else
 
15502
          tagname=""
 
15503
        fi
 
15504
        ;;
 
15505
 
 
15506
      F77)
 
15507
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15508
 
 
15509
ac_ext=f
 
15510
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15511
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15512
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15513
 
 
15514
 
 
15515
archive_cmds_need_lc_F77=no
 
15516
allow_undefined_flag_F77=
 
15517
always_export_symbols_F77=no
 
15518
archive_expsym_cmds_F77=
 
15519
export_dynamic_flag_spec_F77=
 
15520
hardcode_direct_F77=no
 
15521
hardcode_libdir_flag_spec_F77=
 
15522
hardcode_libdir_flag_spec_ld_F77=
 
15523
hardcode_libdir_separator_F77=
 
15524
hardcode_minus_L_F77=no
 
15525
hardcode_automatic_F77=no
 
15526
module_cmds_F77=
 
15527
module_expsym_cmds_F77=
 
15528
link_all_deplibs_F77=unknown
 
15529
old_archive_cmds_F77=$old_archive_cmds
 
15530
no_undefined_flag_F77=
 
15531
whole_archive_flag_spec_F77=
 
15532
enable_shared_with_static_runtimes_F77=no
 
15533
 
 
15534
# Source file extension for f77 test sources.
 
15535
ac_ext=f
 
15536
 
 
15537
# Object file extension for compiled f77 test sources.
 
15538
objext=o
 
15539
objext_F77=$objext
 
15540
 
 
15541
# Code to be used in simple compile tests
 
15542
lt_simple_compile_test_code="\
 
15543
      subroutine t
 
15544
      return
 
15545
      end
 
15546
"
 
15547
 
 
15548
# Code to be used in simple link tests
 
15549
lt_simple_link_test_code="\
 
15550
      program t
 
15551
      end
 
15552
"
 
15553
 
 
15554
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15555
 
 
15556
# If no C compiler was specified, use CC.
 
15557
LTCC=${LTCC-"$CC"}
 
15558
 
 
15559
# If no C compiler flags were specified, use CFLAGS.
 
15560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15561
 
 
15562
# Allow CC to be a program name with arguments.
 
15563
compiler=$CC
 
15564
 
 
15565
 
 
15566
# save warnings/boilerplate of simple test code
 
15567
ac_outfile=conftest.$ac_objext
 
15568
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15569
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15570
_lt_compiler_boilerplate=`cat conftest.err`
 
15571
$rm conftest*
 
15572
 
 
15573
ac_outfile=conftest.$ac_objext
 
15574
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
15575
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15576
_lt_linker_boilerplate=`cat conftest.err`
 
15577
$rm -r conftest*
 
15578
 
 
15579
 
 
15580
# Allow CC to be a program name with arguments.
 
15581
lt_save_CC="$CC"
 
15582
CC=${F77-"f77"}
 
15583
compiler=$CC
 
15584
compiler_F77=$CC
 
15585
for cc_temp in $compiler""; do
 
15586
  case $cc_temp in
 
15587
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15588
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15589
    \-*) ;;
 
15590
    *) break;;
 
15591
  esac
 
15592
done
 
15593
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15594
 
 
15595
 
 
15596
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15597
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
15598
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15599
$as_echo "$can_build_shared" >&6; }
 
15600
 
 
15601
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15602
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
15603
test "$can_build_shared" = "no" && enable_shared=no
 
15604
 
 
15605
# On AIX, shared libraries and static libraries use the same namespace, and
 
15606
# are all built from PIC.
 
15607
case $host_os in
 
15608
aix3*)
 
15609
  test "$enable_shared" = yes && enable_static=no
 
15610
  if test -n "$RANLIB"; then
 
15611
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15612
    postinstall_cmds='$RANLIB $lib'
 
15613
  fi
 
15614
  ;;
 
15615
aix[4-9]*)
 
15616
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
15617
    test "$enable_shared" = yes && enable_static=no
 
15618
  fi
 
15619
  ;;
 
15620
esac
 
15621
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15622
$as_echo "$enable_shared" >&6; }
 
15623
 
 
15624
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15625
$as_echo_n "checking whether to build static libraries... " >&6; }
 
15626
# Make sure either enable_shared or enable_static is yes.
 
15627
test "$enable_shared" = yes || enable_static=yes
 
15628
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
15629
$as_echo "$enable_static" >&6; }
 
15630
 
 
15631
GCC_F77="$G77"
 
15632
LD_F77="$LD"
 
15633
 
 
15634
lt_prog_compiler_wl_F77=
 
15635
lt_prog_compiler_pic_F77=
 
15636
lt_prog_compiler_static_F77=
 
15637
 
 
15638
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15639
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
15640
 
 
15641
  if test "$GCC" = yes; then
 
15642
    lt_prog_compiler_wl_F77='-Wl,'
 
15643
    lt_prog_compiler_static_F77='-static'
 
15644
 
 
15645
    case $host_os in
 
15646
      aix*)
 
15647
      # All AIX code is PIC.
 
15648
      if test "$host_cpu" = ia64; then
 
15649
        # AIX 5 now supports IA64 processor
 
15650
        lt_prog_compiler_static_F77='-Bstatic'
 
15651
      fi
 
15652
      ;;
 
15653
 
 
15654
    amigaos*)
 
15655
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15656
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15657
      # like `-m68040'.
 
15658
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15659
      ;;
 
15660
 
 
15661
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15662
      # PIC is the default for these OSes.
 
15663
      ;;
 
15664
 
 
15665
    mingw* | cygwin* | pw32* | os2*)
 
15666
      # This hack is so that the source file can tell whether it is being
 
15667
      # built for inclusion in a dll (and should export symbols for example).
 
15668
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
15669
      # (--disable-auto-import) libraries
 
15670
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15671
      ;;
 
15672
 
 
15673
    darwin* | rhapsody*)
 
15674
      # PIC is the default on this platform
 
15675
      # Common symbols not allowed in MH_DYLIB files
 
15676
      lt_prog_compiler_pic_F77='-fno-common'
 
15677
      ;;
 
15678
 
 
15679
    interix[3-9]*)
 
15680
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15681
      # Instead, we relocate shared libraries at runtime.
 
15682
      ;;
 
15683
 
 
15684
    msdosdjgpp*)
 
15685
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15686
      # on systems that don't support them.
 
15687
      lt_prog_compiler_can_build_shared_F77=no
 
15688
      enable_shared=no
 
15689
      ;;
 
15690
 
 
15691
    sysv4*MP*)
 
15692
      if test -d /usr/nec; then
 
15693
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15694
      fi
 
15695
      ;;
 
15696
 
 
15697
    hpux*)
 
15698
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15699
      # not for PA HP-UX.
 
15700
      case $host_cpu in
 
15701
      hppa*64*|ia64*)
 
15702
        # +Z the default
 
15703
        ;;
 
15704
      *)
 
15705
        lt_prog_compiler_pic_F77='-fPIC'
 
15706
        ;;
 
15707
      esac
 
15708
      ;;
 
15709
 
 
15710
    *)
 
15711
      lt_prog_compiler_pic_F77='-fPIC'
 
15712
      ;;
 
15713
    esac
 
15714
  else
 
15715
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15716
    case $host_os in
 
15717
    aix*)
 
15718
      lt_prog_compiler_wl_F77='-Wl,'
 
15719
      if test "$host_cpu" = ia64; then
 
15720
        # AIX 5 now supports IA64 processor
 
15721
        lt_prog_compiler_static_F77='-Bstatic'
 
15722
      else
 
15723
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
15724
      fi
 
15725
      ;;
 
15726
      darwin*)
 
15727
        # PIC is the default on this platform
 
15728
        # Common symbols not allowed in MH_DYLIB files
 
15729
       case $cc_basename in
 
15730
         xlc*)
 
15731
         lt_prog_compiler_pic_F77='-qnocommon'
 
15732
         lt_prog_compiler_wl_F77='-Wl,'
 
15733
         ;;
 
15734
       esac
 
15735
       ;;
 
15736
 
 
15737
    mingw* | cygwin* | pw32* | os2*)
 
15738
      # This hack is so that the source file can tell whether it is being
 
15739
      # built for inclusion in a dll (and should export symbols for example).
 
15740
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15741
      ;;
 
15742
 
 
15743
    hpux9* | hpux10* | hpux11*)
 
15744
      lt_prog_compiler_wl_F77='-Wl,'
 
15745
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15746
      # not for PA HP-UX.
 
15747
      case $host_cpu in
 
15748
      hppa*64*|ia64*)
 
15749
        # +Z the default
 
15750
        ;;
 
15751
      *)
 
15752
        lt_prog_compiler_pic_F77='+Z'
 
15753
        ;;
 
15754
      esac
 
15755
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15756
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
15757
      ;;
 
15758
 
 
15759
    irix5* | irix6* | nonstopux*)
 
15760
      lt_prog_compiler_wl_F77='-Wl,'
 
15761
      # PIC (with -KPIC) is the default.
 
15762
      lt_prog_compiler_static_F77='-non_shared'
 
15763
      ;;
 
15764
 
 
15765
    newsos6)
 
15766
      lt_prog_compiler_pic_F77='-KPIC'
 
15767
      lt_prog_compiler_static_F77='-Bstatic'
 
15768
      ;;
 
15769
 
 
15770
    linux* | k*bsd*-gnu)
 
15771
      case $cc_basename in
 
15772
      icc* | ecc*)
 
15773
        lt_prog_compiler_wl_F77='-Wl,'
 
15774
        lt_prog_compiler_pic_F77='-KPIC'
 
15775
        lt_prog_compiler_static_F77='-static'
 
15776
        ;;
 
15777
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15778
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15779
        # which looks to be a dead project)
 
15780
        lt_prog_compiler_wl_F77='-Wl,'
 
15781
        lt_prog_compiler_pic_F77='-fpic'
 
15782
        lt_prog_compiler_static_F77='-Bstatic'
 
15783
        ;;
 
15784
      ccc*)
 
15785
        lt_prog_compiler_wl_F77='-Wl,'
 
15786
        # All Alpha code is PIC.
 
15787
        lt_prog_compiler_static_F77='-non_shared'
 
15788
        ;;
 
15789
      *)
 
15790
        case `$CC -V 2>&1 | sed 5q` in
 
15791
        *Sun\ C*)
 
15792
          # Sun C 5.9
 
15793
          lt_prog_compiler_pic_F77='-KPIC'
 
15794
          lt_prog_compiler_static_F77='-Bstatic'
 
15795
          lt_prog_compiler_wl_F77='-Wl,'
 
15796
          ;;
 
15797
        *Sun\ F*)
 
15798
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
15799
          lt_prog_compiler_pic_F77='-KPIC'
 
15800
          lt_prog_compiler_static_F77='-Bstatic'
 
15801
          lt_prog_compiler_wl_F77=''
 
15802
          ;;
 
15803
        esac
 
15804
        ;;
 
15805
      esac
 
15806
      ;;
 
15807
 
 
15808
    osf3* | osf4* | osf5*)
 
15809
      lt_prog_compiler_wl_F77='-Wl,'
 
15810
      # All OSF/1 code is PIC.
 
15811
      lt_prog_compiler_static_F77='-non_shared'
 
15812
      ;;
 
15813
 
 
15814
    rdos*)
 
15815
      lt_prog_compiler_static_F77='-non_shared'
 
15816
      ;;
 
15817
 
 
15818
    solaris*)
 
15819
      lt_prog_compiler_pic_F77='-KPIC'
 
15820
      lt_prog_compiler_static_F77='-Bstatic'
 
15821
      case $cc_basename in
 
15822
      f77* | f90* | f95*)
 
15823
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
15824
      *)
 
15825
        lt_prog_compiler_wl_F77='-Wl,';;
 
15826
      esac
 
15827
      ;;
 
15828
 
 
15829
    sunos4*)
 
15830
      lt_prog_compiler_wl_F77='-Qoption ld '
 
15831
      lt_prog_compiler_pic_F77='-PIC'
 
15832
      lt_prog_compiler_static_F77='-Bstatic'
 
15833
      ;;
 
15834
 
 
15835
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
15836
      lt_prog_compiler_wl_F77='-Wl,'
 
15837
      lt_prog_compiler_pic_F77='-KPIC'
 
15838
      lt_prog_compiler_static_F77='-Bstatic'
 
15839
      ;;
 
15840
 
 
15841
    sysv4*MP*)
 
15842
      if test -d /usr/nec ;then
 
15843
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
15844
        lt_prog_compiler_static_F77='-Bstatic'
 
15845
      fi
 
15846
      ;;
 
15847
 
 
15848
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15849
      lt_prog_compiler_wl_F77='-Wl,'
 
15850
      lt_prog_compiler_pic_F77='-KPIC'
 
15851
      lt_prog_compiler_static_F77='-Bstatic'
 
15852
      ;;
 
15853
 
 
15854
    unicos*)
 
15855
      lt_prog_compiler_wl_F77='-Wl,'
 
15856
      lt_prog_compiler_can_build_shared_F77=no
 
15857
      ;;
 
15858
 
 
15859
    uts4*)
 
15860
      lt_prog_compiler_pic_F77='-pic'
 
15861
      lt_prog_compiler_static_F77='-Bstatic'
 
15862
      ;;
 
15863
 
 
15864
    *)
 
15865
      lt_prog_compiler_can_build_shared_F77=no
 
15866
      ;;
 
15867
    esac
 
15868
  fi
 
15869
 
 
15870
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15871
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
15872
 
 
15873
#
 
15874
# Check to make sure the PIC flag actually works.
 
15875
#
 
15876
if test -n "$lt_prog_compiler_pic_F77"; then
 
15877
 
 
15878
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15879
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
15880
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
15881
  $as_echo_n "(cached) " >&6
 
15882
else
 
15883
  lt_cv_prog_compiler_pic_works_F77=no
 
15884
  ac_outfile=conftest.$ac_objext
 
15885
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15886
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15887
   # Insert the option either (1) after the last *FLAGS variable, or
 
15888
   # (2) before a word containing "conftest.", or (3) at the end.
 
15889
   # Note that $ac_compile itself does not contain backslashes and begins
 
15890
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15891
   # The option is referenced via a variable to avoid confusing sed.
 
15892
   lt_compile=`echo "$ac_compile" | $SED \
 
15893
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15894
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15895
   -e 's:$: $lt_compiler_flag:'`
 
15896
   (eval echo "\"\$as_me:15896: $lt_compile\"" >&5)
 
15897
   (eval "$lt_compile" 2>conftest.err)
 
15898
   ac_status=$?
 
15899
   cat conftest.err >&5
 
15900
   echo "$as_me:15900: \$? = $ac_status" >&5
 
15901
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15902
     # The compiler can only warn and ignore the option if not recognized
 
15903
     # So say no if there are warnings other than the usual output.
 
15904
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15905
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15906
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15907
       lt_cv_prog_compiler_pic_works_F77=yes
 
15908
     fi
 
15909
   fi
 
15910
   $rm conftest*
 
15911
 
 
15912
fi
 
15913
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
15914
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
15915
 
 
15916
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
15917
    case $lt_prog_compiler_pic_F77 in
 
15918
     "" | " "*) ;;
 
15919
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15920
     esac
 
15921
else
 
15922
    lt_prog_compiler_pic_F77=
 
15923
     lt_prog_compiler_can_build_shared_F77=no
 
15924
fi
 
15925
 
 
15926
fi
 
15927
case $host_os in
 
15928
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15929
  *djgpp*)
 
15930
    lt_prog_compiler_pic_F77=
 
15931
    ;;
 
15932
  *)
 
15933
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15934
    ;;
 
15935
esac
 
15936
 
 
15937
#
 
15938
# Check to make sure the static flag actually works.
 
15939
#
 
15940
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
15941
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15942
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
15943
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
15944
  $as_echo_n "(cached) " >&6
 
15945
else
 
15946
  lt_cv_prog_compiler_static_works_F77=no
 
15947
   save_LDFLAGS="$LDFLAGS"
 
15948
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15949
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
15950
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15951
     # The linker can only warn and ignore the option if not recognized
 
15952
     # So say no if there are warnings
 
15953
     if test -s conftest.err; then
 
15954
       # Append any errors to the config.log.
 
15955
       cat conftest.err 1>&5
 
15956
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15957
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15958
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15959
         lt_cv_prog_compiler_static_works_F77=yes
 
15960
       fi
 
15961
     else
 
15962
       lt_cv_prog_compiler_static_works_F77=yes
 
15963
     fi
 
15964
   fi
 
15965
   $rm -r conftest*
 
15966
   LDFLAGS="$save_LDFLAGS"
 
15967
 
 
15968
fi
 
15969
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
15970
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
15971
 
 
15972
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
15973
    :
 
15974
else
 
15975
    lt_prog_compiler_static_F77=
 
15976
fi
 
15977
 
 
15978
 
 
15979
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15980
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
15981
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15982
  $as_echo_n "(cached) " >&6
 
15983
else
 
15984
  lt_cv_prog_compiler_c_o_F77=no
 
15985
   $rm -r conftest 2>/dev/null
 
15986
   mkdir conftest
 
15987
   cd conftest
 
15988
   mkdir out
 
15989
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15990
 
 
15991
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15992
   # Insert the option either (1) after the last *FLAGS variable, or
 
15993
   # (2) before a word containing "conftest.", or (3) at the end.
 
15994
   # Note that $ac_compile itself does not contain backslashes and begins
 
15995
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15996
   lt_compile=`echo "$ac_compile" | $SED \
 
15997
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15998
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15999
   -e 's:$: $lt_compiler_flag:'`
 
16000
   (eval echo "\"\$as_me:16000: $lt_compile\"" >&5)
 
16001
   (eval "$lt_compile" 2>out/conftest.err)
 
16002
   ac_status=$?
 
16003
   cat out/conftest.err >&5
 
16004
   echo "$as_me:16004: \$? = $ac_status" >&5
 
16005
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16006
   then
 
16007
     # The compiler can only warn and ignore the option if not recognized
 
16008
     # So say no if there are warnings
 
16009
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16010
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16011
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16012
       lt_cv_prog_compiler_c_o_F77=yes
 
16013
     fi
 
16014
   fi
 
16015
   chmod u+w . 2>&5
 
16016
   $rm conftest*
 
16017
   # SGI C++ compiler will create directory out/ii_files/ for
 
16018
   # template instantiation
 
16019
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16020
   $rm out/* && rmdir out
 
16021
   cd ..
 
16022
   rmdir conftest
 
16023
   $rm conftest*
 
16024
 
 
16025
fi
 
16026
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16027
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
16028
 
 
16029
 
 
16030
hard_links="nottested"
 
16031
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
16032
  # do not overwrite the value of need_locks provided by the user
 
16033
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16034
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
16035
  hard_links=yes
 
16036
  $rm conftest*
 
16037
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16038
  touch conftest.a
 
16039
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16040
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16041
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
16042
$as_echo "$hard_links" >&6; }
 
16043
  if test "$hard_links" = no; then
 
16044
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16045
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16046
    need_locks=warn
 
16047
  fi
 
16048
else
 
16049
  need_locks=no
 
16050
fi
 
16051
 
 
16052
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16053
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
16054
 
 
16055
  runpath_var=
 
16056
  allow_undefined_flag_F77=
 
16057
  enable_shared_with_static_runtimes_F77=no
 
16058
  archive_cmds_F77=
 
16059
  archive_expsym_cmds_F77=
 
16060
  old_archive_From_new_cmds_F77=
 
16061
  old_archive_from_expsyms_cmds_F77=
 
16062
  export_dynamic_flag_spec_F77=
 
16063
  whole_archive_flag_spec_F77=
 
16064
  thread_safe_flag_spec_F77=
 
16065
  hardcode_libdir_flag_spec_F77=
 
16066
  hardcode_libdir_flag_spec_ld_F77=
 
16067
  hardcode_libdir_separator_F77=
 
16068
  hardcode_direct_F77=no
 
16069
  hardcode_minus_L_F77=no
 
16070
  hardcode_shlibpath_var_F77=unsupported
 
16071
  link_all_deplibs_F77=unknown
 
16072
  hardcode_automatic_F77=no
 
16073
  module_cmds_F77=
 
16074
  module_expsym_cmds_F77=
 
16075
  always_export_symbols_F77=no
 
16076
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16077
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16078
  # included in the symbol list
 
16079
  include_expsyms_F77=
 
16080
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16081
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16082
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16083
  # as well as any symbol that contains `d'.
 
16084
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
16085
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16086
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16087
  # the symbol is explicitly referenced.  Since portable code cannot
 
16088
  # rely on this symbol name, it's probably fine to never include it in
 
16089
  # preloaded symbol tables.
 
16090
  # Exclude shared library initialization/finalization symbols.
 
16091
  extract_expsyms_cmds=
 
16092
  # Just being paranoid about ensuring that cc_basename is set.
 
16093
  for cc_temp in $compiler""; do
 
16094
  case $cc_temp in
 
16095
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16096
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16097
    \-*) ;;
 
16098
    *) break;;
 
16099
  esac
 
16100
done
 
16101
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16102
 
 
16103
  case $host_os in
 
16104
  cygwin* | mingw* | pw32*)
 
16105
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16106
    # When not using gcc, we currently assume that we are using
 
16107
    # Microsoft Visual C++.
 
16108
    if test "$GCC" != yes; then
 
16109
      with_gnu_ld=no
 
16110
    fi
 
16111
    ;;
 
16112
  interix*)
 
16113
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16114
    with_gnu_ld=yes
 
16115
    ;;
 
16116
  openbsd*)
 
16117
    with_gnu_ld=no
 
16118
    ;;
 
16119
  esac
 
16120
 
 
16121
  ld_shlibs_F77=yes
 
16122
  if test "$with_gnu_ld" = yes; then
 
16123
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16124
    wlarc='${wl}'
 
16125
 
 
16126
    # Set some defaults for GNU ld with shared library support. These
 
16127
    # are reset later if shared libraries are not supported. Putting them
 
16128
    # here allows them to be overridden if necessary.
 
16129
    runpath_var=LD_RUN_PATH
 
16130
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
16131
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16132
    # ancient GNU ld didn't support --whole-archive et. al.
 
16133
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16134
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16135
      else
 
16136
        whole_archive_flag_spec_F77=
 
16137
    fi
 
16138
    supports_anon_versioning=no
 
16139
    case `$LD -v 2>/dev/null` in
 
16140
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16141
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16142
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16143
      *\ 2.11.*) ;; # other 2.11 versions
 
16144
      *) supports_anon_versioning=yes ;;
 
16145
    esac
 
16146
 
 
16147
    # See if GNU ld supports shared libraries.
 
16148
    case $host_os in
 
16149
    aix[3-9]*)
 
16150
      # On AIX/PPC, the GNU linker is very broken
 
16151
      if test "$host_cpu" != ia64; then
 
16152
        ld_shlibs_F77=no
 
16153
        cat <<EOF 1>&2
 
16154
 
 
16155
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16156
*** to be unable to reliably create shared libraries on AIX.
 
16157
*** Therefore, libtool is disabling shared libraries support.  If you
 
16158
*** really care for shared libraries, you may want to modify your PATH
 
16159
*** so that a non-GNU linker is found, and then restart.
 
16160
 
 
16161
EOF
 
16162
      fi
 
16163
      ;;
 
16164
 
 
16165
    amigaos*)
 
16166
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
16167
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16168
      hardcode_minus_L_F77=yes
 
16169
 
 
16170
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16171
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16172
      # to version 4, is to share data among multiple programs linked
 
16173
      # with the same dynamic library.  Since this doesn't match the
 
16174
      # behavior of shared libraries on other platforms, we can't use
 
16175
      # them.
 
16176
      ld_shlibs_F77=no
 
16177
      ;;
 
16178
 
 
16179
    beos*)
 
16180
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16181
        allow_undefined_flag_F77=unsupported
 
16182
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16183
        # support --undefined.  This deserves some investigation.  FIXME
 
16184
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16185
      else
 
16186
        ld_shlibs_F77=no
 
16187
      fi
 
16188
      ;;
 
16189
 
 
16190
    cygwin* | mingw* | pw32*)
 
16191
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
16192
      # as there is no search path for DLLs.
 
16193
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16194
      allow_undefined_flag_F77=unsupported
 
16195
      always_export_symbols_F77=no
 
16196
      enable_shared_with_static_runtimes_F77=yes
 
16197
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
16198
 
 
16199
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16200
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16201
        # If the export-symbols file already is a .def file (1st line
 
16202
        # is EXPORTS), use it as is; otherwise, prepend...
 
16203
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16204
          cp $export_symbols $output_objdir/$soname.def;
 
16205
        else
 
16206
          echo EXPORTS > $output_objdir/$soname.def;
 
16207
          cat $export_symbols >> $output_objdir/$soname.def;
 
16208
        fi~
 
16209
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16210
      else
 
16211
        ld_shlibs_F77=no
 
16212
      fi
 
16213
      ;;
 
16214
 
 
16215
    interix[3-9]*)
 
16216
      hardcode_direct_F77=no
 
16217
      hardcode_shlibpath_var_F77=no
 
16218
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16219
      export_dynamic_flag_spec_F77='${wl}-E'
 
16220
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16221
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16222
      # default) and relocated if they conflict, which is a slow very memory
 
16223
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16224
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16225
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16226
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16227
      archive_expsym_cmds_F77='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'
 
16228
      ;;
 
16229
 
 
16230
    gnu* | linux* | k*bsd*-gnu)
 
16231
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16232
        tmp_addflag=
 
16233
        case $cc_basename,$host_cpu in
 
16234
        pgcc*)                          # Portland Group C compiler
 
16235
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16236
          tmp_addflag=' $pic_flag'
 
16237
          ;;
 
16238
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16239
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16240
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16241
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16242
          tmp_addflag=' -i_dynamic' ;;
 
16243
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16244
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16245
        ifc* | ifort*)                  # Intel Fortran compiler
 
16246
          tmp_addflag=' -nofor_main' ;;
 
16247
        esac
 
16248
        case `$CC -V 2>&1 | sed 5q` in
 
16249
        *Sun\ C*)                       # Sun C 5.9
 
16250
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16251
          tmp_sharedflag='-G' ;;
 
16252
        *Sun\ F*)                       # Sun Fortran 8.3
 
16253
          tmp_sharedflag='-G' ;;
 
16254
        *)
 
16255
          tmp_sharedflag='-shared' ;;
 
16256
        esac
 
16257
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16258
 
 
16259
        if test $supports_anon_versioning = yes; then
 
16260
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
16261
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16262
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16263
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16264
        fi
 
16265
        link_all_deplibs_F77=no
 
16266
      else
 
16267
        ld_shlibs_F77=no
 
16268
      fi
 
16269
      ;;
 
16270
 
 
16271
    netbsd* | netbsdelf*-gnu)
 
16272
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16273
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16274
        wlarc=
 
16275
      else
 
16276
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16277
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16278
      fi
 
16279
      ;;
 
16280
 
 
16281
    solaris*)
 
16282
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16283
        ld_shlibs_F77=no
 
16284
        cat <<EOF 1>&2
 
16285
 
 
16286
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16287
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16288
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16289
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16290
*** your PATH or compiler configuration so that the native linker is
 
16291
*** used, and then restart.
 
16292
 
 
16293
EOF
 
16294
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16295
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16296
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16297
      else
 
16298
        ld_shlibs_F77=no
 
16299
      fi
 
16300
      ;;
 
16301
 
 
16302
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16303
      case `$LD -v 2>&1` in
 
16304
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16305
        ld_shlibs_F77=no
 
16306
        cat <<_LT_EOF 1>&2
 
16307
 
 
16308
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16309
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16310
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16311
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16312
*** your PATH or compiler configuration so that the native linker is
 
16313
*** used, and then restart.
 
16314
 
 
16315
_LT_EOF
 
16316
        ;;
 
16317
        *)
 
16318
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16319
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16320
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16321
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16322
          else
 
16323
            ld_shlibs_F77=no
 
16324
          fi
 
16325
        ;;
 
16326
      esac
 
16327
      ;;
 
16328
 
 
16329
    sunos4*)
 
16330
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16331
      wlarc=
 
16332
      hardcode_direct_F77=yes
 
16333
      hardcode_shlibpath_var_F77=no
 
16334
      ;;
 
16335
 
 
16336
    *)
 
16337
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16338
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16339
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16340
      else
 
16341
        ld_shlibs_F77=no
 
16342
      fi
 
16343
      ;;
 
16344
    esac
 
16345
 
 
16346
    if test "$ld_shlibs_F77" = no; then
 
16347
      runpath_var=
 
16348
      hardcode_libdir_flag_spec_F77=
 
16349
      export_dynamic_flag_spec_F77=
 
16350
      whole_archive_flag_spec_F77=
 
16351
    fi
 
16352
  else
 
16353
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16354
    case $host_os in
 
16355
    aix3*)
 
16356
      allow_undefined_flag_F77=unsupported
 
16357
      always_export_symbols_F77=yes
 
16358
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
16359
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16360
      # are no directories specified by -L.
 
16361
      hardcode_minus_L_F77=yes
 
16362
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16363
        # Neither direct hardcoding nor static linking is supported with a
 
16364
        # broken collect2.
 
16365
        hardcode_direct_F77=unsupported
 
16366
      fi
 
16367
      ;;
 
16368
 
 
16369
    aix[4-9]*)
 
16370
      if test "$host_cpu" = ia64; then
 
16371
        # On IA64, the linker does run time linking by default, so we don't
 
16372
        # have to do anything special.
 
16373
        aix_use_runtimelinking=no
 
16374
        exp_sym_flag='-Bexport'
 
16375
        no_entry_flag=""
 
16376
      else
 
16377
        # If we're using GNU nm, then we don't want the "-C" option.
 
16378
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16379
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16380
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16381
        else
 
16382
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16383
        fi
 
16384
        aix_use_runtimelinking=no
 
16385
 
 
16386
        # Test if we are trying to use run time linking or normal
 
16387
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16388
        # need to do runtime linking.
 
16389
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
16390
          for ld_flag in $LDFLAGS; do
 
16391
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16392
            aix_use_runtimelinking=yes
 
16393
            break
 
16394
          fi
 
16395
          done
 
16396
          ;;
 
16397
        esac
 
16398
 
 
16399
        exp_sym_flag='-bexport'
 
16400
        no_entry_flag='-bnoentry'
 
16401
      fi
 
16402
 
 
16403
      # When large executables or shared objects are built, AIX ld can
 
16404
      # have problems creating the table of contents.  If linking a library
 
16405
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16406
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16407
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16408
 
 
16409
      archive_cmds_F77=''
 
16410
      hardcode_direct_F77=yes
 
16411
      hardcode_libdir_separator_F77=':'
 
16412
      link_all_deplibs_F77=yes
 
16413
 
 
16414
      if test "$GCC" = yes; then
 
16415
        case $host_os in aix4.[012]|aix4.[012].*)
 
16416
        # We only want to do this on AIX 4.2 and lower, the check
 
16417
        # below for broken collect2 doesn't work under 4.3+
 
16418
          collect2name=`${CC} -print-prog-name=collect2`
 
16419
          if test -f "$collect2name" && \
 
16420
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16421
          then
 
16422
          # We have reworked collect2
 
16423
          :
 
16424
          else
 
16425
          # We have old collect2
 
16426
          hardcode_direct_F77=unsupported
 
16427
          # It fails to find uninstalled libraries when the uninstalled
 
16428
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16429
          # to unsupported forces relinking
 
16430
          hardcode_minus_L_F77=yes
 
16431
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16432
          hardcode_libdir_separator_F77=
 
16433
          fi
 
16434
          ;;
 
16435
        esac
 
16436
        shared_flag='-shared'
 
16437
        if test "$aix_use_runtimelinking" = yes; then
 
16438
          shared_flag="$shared_flag "'${wl}-G'
 
16439
        fi
 
16440
      else
 
16441
        # not using gcc
 
16442
        if test "$host_cpu" = ia64; then
 
16443
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16444
        # chokes on -Wl,-G. The following line is correct:
 
16445
          shared_flag='-G'
 
16446
        else
 
16447
          if test "$aix_use_runtimelinking" = yes; then
 
16448
            shared_flag='${wl}-G'
 
16449
          else
 
16450
            shared_flag='${wl}-bM:SRE'
 
16451
          fi
 
16452
        fi
 
16453
      fi
 
16454
 
 
16455
      # It seems that -bexpall does not export symbols beginning with
 
16456
      # underscore (_), so it is better to generate a list of symbols to export.
 
16457
      always_export_symbols_F77=yes
 
16458
      if test "$aix_use_runtimelinking" = yes; then
 
16459
        # Warning - without using the other runtime loading flags (-brtl),
 
16460
        # -berok will link without error, but may produce a broken library.
 
16461
        allow_undefined_flag_F77='-berok'
 
16462
       # Determine the default libpath from the value encoded in an empty executable.
 
16463
       cat >conftest.$ac_ext <<_ACEOF
 
16464
      program main
 
16465
 
 
16466
      end
 
16467
_ACEOF
 
16468
rm -f conftest.$ac_objext conftest$ac_exeext
 
16469
if { (ac_try="$ac_link"
 
16470
case "(($ac_try" in
 
16471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16472
  *) ac_try_echo=$ac_try;;
 
16473
esac
 
16474
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16475
$as_echo "$ac_try_echo") >&5
 
16476
  (eval "$ac_link") 2>conftest.er1
 
16477
  ac_status=$?
 
16478
  grep -v '^ *+' conftest.er1 >conftest.err
 
16479
  rm -f conftest.er1
 
16480
  cat conftest.err >&5
 
16481
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16482
  (exit $ac_status); } && {
 
16483
         test -z "$ac_f77_werror_flag" ||
 
16484
         test ! -s conftest.err
 
16485
       } && test -s conftest$ac_exeext && {
 
16486
         test "$cross_compiling" = yes ||
 
16487
         $as_test_x conftest$ac_exeext
 
16488
       }; then
 
16489
 
 
16490
lt_aix_libpath_sed='
 
16491
    /Import File Strings/,/^$/ {
 
16492
        /^0/ {
 
16493
            s/^0  *\(.*\)$/\1/
 
16494
            p
 
16495
        }
 
16496
    }'
 
16497
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16498
# Check for a 64-bit object if we didn't find anything.
 
16499
if test -z "$aix_libpath"; then
 
16500
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16501
fi
 
16502
else
 
16503
  $as_echo "$as_me: failed program was:" >&5
 
16504
sed 's/^/| /' conftest.$ac_ext >&5
 
16505
 
 
16506
 
 
16507
fi
 
16508
 
 
16509
rm -rf conftest.dSYM
 
16510
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16511
      conftest$ac_exeext conftest.$ac_ext
 
16512
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16513
 
 
16514
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16515
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16516
       else
 
16517
        if test "$host_cpu" = ia64; then
 
16518
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
16519
          allow_undefined_flag_F77="-z nodefs"
 
16520
          archive_expsym_cmds_F77="\$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"
 
16521
        else
 
16522
         # Determine the default libpath from the value encoded in an empty executable.
 
16523
         cat >conftest.$ac_ext <<_ACEOF
 
16524
      program main
 
16525
 
 
16526
      end
 
16527
_ACEOF
 
16528
rm -f conftest.$ac_objext conftest$ac_exeext
 
16529
if { (ac_try="$ac_link"
 
16530
case "(($ac_try" in
 
16531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16532
  *) ac_try_echo=$ac_try;;
 
16533
esac
 
16534
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
16535
$as_echo "$ac_try_echo") >&5
 
16536
  (eval "$ac_link") 2>conftest.er1
 
16537
  ac_status=$?
 
16538
  grep -v '^ *+' conftest.er1 >conftest.err
 
16539
  rm -f conftest.er1
 
16540
  cat conftest.err >&5
 
16541
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16542
  (exit $ac_status); } && {
 
16543
         test -z "$ac_f77_werror_flag" ||
 
16544
         test ! -s conftest.err
 
16545
       } && test -s conftest$ac_exeext && {
 
16546
         test "$cross_compiling" = yes ||
 
16547
         $as_test_x conftest$ac_exeext
 
16548
       }; then
 
16549
 
 
16550
lt_aix_libpath_sed='
 
16551
    /Import File Strings/,/^$/ {
 
16552
        /^0/ {
 
16553
            s/^0  *\(.*\)$/\1/
 
16554
            p
 
16555
        }
 
16556
    }'
 
16557
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16558
# Check for a 64-bit object if we didn't find anything.
 
16559
if test -z "$aix_libpath"; then
 
16560
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
16561
fi
 
16562
else
 
16563
  $as_echo "$as_me: failed program was:" >&5
 
16564
sed 's/^/| /' conftest.$ac_ext >&5
 
16565
 
 
16566
 
 
16567
fi
 
16568
 
 
16569
rm -rf conftest.dSYM
 
16570
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16571
      conftest$ac_exeext conftest.$ac_ext
 
16572
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16573
 
 
16574
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16575
          # Warning - without using the other run time loading flags,
 
16576
          # -berok will link without error, but may produce a broken library.
 
16577
          no_undefined_flag_F77=' ${wl}-bernotok'
 
16578
          allow_undefined_flag_F77=' ${wl}-berok'
 
16579
          # Exported symbols can be pulled into shared objects from archives
 
16580
          whole_archive_flag_spec_F77='$convenience'
 
16581
          archive_cmds_need_lc_F77=yes
 
16582
          # This is similar to how AIX traditionally builds its shared libraries.
 
16583
          archive_expsym_cmds_F77="\$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'
 
16584
        fi
 
16585
      fi
 
16586
      ;;
 
16587
 
 
16588
    amigaos*)
 
16589
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
16590
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16591
      hardcode_minus_L_F77=yes
 
16592
      # see comment about different semantics on the GNU ld section
 
16593
      ld_shlibs_F77=no
 
16594
      ;;
 
16595
 
 
16596
    bsdi[45]*)
 
16597
      export_dynamic_flag_spec_F77=-rdynamic
 
16598
      ;;
 
16599
 
 
16600
    cygwin* | mingw* | pw32*)
 
16601
      # When not using gcc, we currently assume that we are using
 
16602
      # Microsoft Visual C++.
 
16603
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16604
      # no search path for DLLs.
 
16605
      hardcode_libdir_flag_spec_F77=' '
 
16606
      allow_undefined_flag_F77=unsupported
 
16607
      # Tell ltmain to make .lib files, not .a files.
 
16608
      libext=lib
 
16609
      # Tell ltmain to make .dll files, not .so files.
 
16610
      shrext_cmds=".dll"
 
16611
      # FIXME: Setting linknames here is a bad hack.
 
16612
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16613
      # The linker will automatically build a .lib file if we build a DLL.
 
16614
      old_archive_From_new_cmds_F77='true'
 
16615
      # FIXME: Should let the user specify the lib program.
 
16616
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
16617
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
16618
      enable_shared_with_static_runtimes_F77=yes
 
16619
      ;;
 
16620
 
 
16621
    darwin* | rhapsody*)
 
16622
      case $host_os in
 
16623
        rhapsody* | darwin1.[012])
 
16624
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
16625
         ;;
 
16626
       *) # Darwin 1.3 on
 
16627
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16628
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16629
         else
 
16630
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16631
             10.[012])
 
16632
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16633
               ;;
 
16634
             10.*)
 
16635
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
16636
               ;;
 
16637
           esac
 
16638
         fi
 
16639
         ;;
 
16640
      esac
 
16641
      archive_cmds_need_lc_F77=no
 
16642
      hardcode_direct_F77=no
 
16643
      hardcode_automatic_F77=yes
 
16644
      hardcode_shlibpath_var_F77=unsupported
 
16645
      whole_archive_flag_spec_F77=''
 
16646
      link_all_deplibs_F77=yes
 
16647
    if test "$GCC" = yes ; then
 
16648
        output_verbose_link_cmd='echo'
 
16649
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
16650
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
16651
        archive_expsym_cmds_F77="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}"
 
16652
        module_expsym_cmds_F77="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}"
 
16653
    else
 
16654
      case $cc_basename in
 
16655
        xlc*)
 
16656
         output_verbose_link_cmd='echo'
 
16657
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
16658
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16659
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16660
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16661
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16662
          ;;
 
16663
       *)
 
16664
         ld_shlibs_F77=no
 
16665
          ;;
 
16666
      esac
 
16667
    fi
 
16668
      ;;
 
16669
 
 
16670
    dgux*)
 
16671
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16672
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16673
      hardcode_shlibpath_var_F77=no
 
16674
      ;;
 
16675
 
 
16676
    freebsd1*)
 
16677
      ld_shlibs_F77=no
 
16678
      ;;
 
16679
 
 
16680
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16681
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16682
    # does not break anything, and helps significantly (at the cost of a little
 
16683
    # extra space).
 
16684
    freebsd2.2*)
 
16685
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16686
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16687
      hardcode_direct_F77=yes
 
16688
      hardcode_shlibpath_var_F77=no
 
16689
      ;;
 
16690
 
 
16691
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16692
    freebsd2*)
 
16693
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16694
      hardcode_direct_F77=yes
 
16695
      hardcode_minus_L_F77=yes
 
16696
      hardcode_shlibpath_var_F77=no
 
16697
      ;;
 
16698
 
 
16699
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16700
    freebsd* | dragonfly*)
 
16701
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16702
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16703
      hardcode_direct_F77=yes
 
16704
      hardcode_shlibpath_var_F77=no
 
16705
      ;;
 
16706
 
 
16707
    hpux9*)
 
16708
      if test "$GCC" = yes; then
 
16709
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16710
      else
 
16711
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16712
      fi
 
16713
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16714
      hardcode_libdir_separator_F77=:
 
16715
      hardcode_direct_F77=yes
 
16716
 
 
16717
      # hardcode_minus_L: Not really in the search PATH,
 
16718
      # but as the default location of the library.
 
16719
      hardcode_minus_L_F77=yes
 
16720
      export_dynamic_flag_spec_F77='${wl}-E'
 
16721
      ;;
 
16722
 
 
16723
    hpux10*)
 
16724
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16725
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16726
      else
 
16727
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16728
      fi
 
16729
      if test "$with_gnu_ld" = no; then
 
16730
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16731
        hardcode_libdir_separator_F77=:
 
16732
 
 
16733
        hardcode_direct_F77=yes
 
16734
        export_dynamic_flag_spec_F77='${wl}-E'
 
16735
 
 
16736
        # hardcode_minus_L: Not really in the search PATH,
 
16737
        # but as the default location of the library.
 
16738
        hardcode_minus_L_F77=yes
 
16739
      fi
 
16740
      ;;
 
16741
 
 
16742
    hpux11*)
 
16743
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16744
        case $host_cpu in
 
16745
        hppa*64*)
 
16746
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16747
          ;;
 
16748
        ia64*)
 
16749
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16750
          ;;
 
16751
        *)
 
16752
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16753
          ;;
 
16754
        esac
 
16755
      else
 
16756
        case $host_cpu in
 
16757
        hppa*64*)
 
16758
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16759
          ;;
 
16760
        ia64*)
 
16761
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16762
          ;;
 
16763
        *)
 
16764
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16765
          ;;
 
16766
        esac
 
16767
      fi
 
16768
      if test "$with_gnu_ld" = no; then
 
16769
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16770
        hardcode_libdir_separator_F77=:
 
16771
 
 
16772
        case $host_cpu in
 
16773
        hppa*64*|ia64*)
 
16774
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16775
          hardcode_direct_F77=no
 
16776
          hardcode_shlibpath_var_F77=no
 
16777
          ;;
 
16778
        *)
 
16779
          hardcode_direct_F77=yes
 
16780
          export_dynamic_flag_spec_F77='${wl}-E'
 
16781
 
 
16782
          # hardcode_minus_L: Not really in the search PATH,
 
16783
          # but as the default location of the library.
 
16784
          hardcode_minus_L_F77=yes
 
16785
          ;;
 
16786
        esac
 
16787
      fi
 
16788
      ;;
 
16789
 
 
16790
    irix5* | irix6* | nonstopux*)
 
16791
      if test "$GCC" = yes; then
 
16792
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16793
      else
 
16794
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16795
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16796
      fi
 
16797
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16798
      hardcode_libdir_separator_F77=:
 
16799
      link_all_deplibs_F77=yes
 
16800
      ;;
 
16801
 
 
16802
    netbsd* | netbsdelf*-gnu)
 
16803
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16804
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16805
      else
 
16806
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16807
      fi
 
16808
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16809
      hardcode_direct_F77=yes
 
16810
      hardcode_shlibpath_var_F77=no
 
16811
      ;;
 
16812
 
 
16813
    newsos6)
 
16814
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16815
      hardcode_direct_F77=yes
 
16816
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16817
      hardcode_libdir_separator_F77=:
 
16818
      hardcode_shlibpath_var_F77=no
 
16819
      ;;
 
16820
 
 
16821
    openbsd*)
 
16822
      if test -f /usr/libexec/ld.so; then
 
16823
        hardcode_direct_F77=yes
 
16824
        hardcode_shlibpath_var_F77=no
 
16825
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16826
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16827
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16828
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16829
          export_dynamic_flag_spec_F77='${wl}-E'
 
16830
        else
 
16831
          case $host_os in
 
16832
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16833
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16834
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
16835
             ;;
 
16836
           *)
 
16837
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16838
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16839
             ;;
 
16840
          esac
 
16841
        fi
 
16842
      else
 
16843
        ld_shlibs_F77=no
 
16844
      fi
 
16845
      ;;
 
16846
 
 
16847
    os2*)
 
16848
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16849
      hardcode_minus_L_F77=yes
 
16850
      allow_undefined_flag_F77=unsupported
 
16851
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
16852
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16853
      ;;
 
16854
 
 
16855
    osf3*)
 
16856
      if test "$GCC" = yes; then
 
16857
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16858
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16859
      else
 
16860
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16861
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16862
      fi
 
16863
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16864
      hardcode_libdir_separator_F77=:
 
16865
      ;;
 
16866
 
 
16867
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16868
      if test "$GCC" = yes; then
 
16869
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16870
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16871
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16872
      else
 
16873
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16874
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16875
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
16876
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
16877
 
 
16878
        # Both c and cxx compiler support -rpath directly
 
16879
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16880
      fi
 
16881
      hardcode_libdir_separator_F77=:
 
16882
      ;;
 
16883
 
 
16884
    solaris*)
 
16885
      no_undefined_flag_F77=' -z text'
 
16886
      if test "$GCC" = yes; then
 
16887
        wlarc='${wl}'
 
16888
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16889
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16890
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16891
      else
 
16892
        wlarc=''
 
16893
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16894
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16895
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16896
      fi
 
16897
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16898
      hardcode_shlibpath_var_F77=no
 
16899
      case $host_os in
 
16900
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16901
      *)
 
16902
        # The compiler driver will combine and reorder linker options,
 
16903
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
16904
        # but is careful enough not to reorder.
 
16905
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16906
        if test "$GCC" = yes; then
 
16907
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
16908
        else
 
16909
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
16910
        fi
 
16911
        ;;
 
16912
      esac
 
16913
      link_all_deplibs_F77=yes
 
16914
      ;;
 
16915
 
 
16916
    sunos4*)
 
16917
      if test "x$host_vendor" = xsequent; then
 
16918
        # Use $CC to link under sequent, because it throws in some extra .o
 
16919
        # files that make .init and .fini sections work.
 
16920
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16921
      else
 
16922
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16923
      fi
 
16924
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16925
      hardcode_direct_F77=yes
 
16926
      hardcode_minus_L_F77=yes
 
16927
      hardcode_shlibpath_var_F77=no
 
16928
      ;;
 
16929
 
 
16930
    sysv4)
 
16931
      case $host_vendor in
 
16932
        sni)
 
16933
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16934
          hardcode_direct_F77=yes # is this really true???
 
16935
        ;;
 
16936
        siemens)
 
16937
          ## LD is ld it makes a PLAMLIB
 
16938
          ## CC just makes a GrossModule.
 
16939
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16940
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16941
          hardcode_direct_F77=no
 
16942
        ;;
 
16943
        motorola)
 
16944
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16945
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16946
        ;;
 
16947
      esac
 
16948
      runpath_var='LD_RUN_PATH'
 
16949
      hardcode_shlibpath_var_F77=no
 
16950
      ;;
 
16951
 
 
16952
    sysv4.3*)
 
16953
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16954
      hardcode_shlibpath_var_F77=no
 
16955
      export_dynamic_flag_spec_F77='-Bexport'
 
16956
      ;;
 
16957
 
 
16958
    sysv4*MP*)
 
16959
      if test -d /usr/nec; then
 
16960
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16961
        hardcode_shlibpath_var_F77=no
 
16962
        runpath_var=LD_RUN_PATH
 
16963
        hardcode_runpath_var=yes
 
16964
        ld_shlibs_F77=yes
 
16965
      fi
 
16966
      ;;
 
16967
 
 
16968
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
16969
      no_undefined_flag_F77='${wl}-z,text'
 
16970
      archive_cmds_need_lc_F77=no
 
16971
      hardcode_shlibpath_var_F77=no
 
16972
      runpath_var='LD_RUN_PATH'
 
16973
 
 
16974
      if test "$GCC" = yes; then
 
16975
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16976
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16977
      else
 
16978
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16979
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16980
      fi
 
16981
      ;;
 
16982
 
 
16983
    sysv5* | sco3.2v5* | sco5v6*)
 
16984
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16985
      # link with -lc, and that would cause any symbols used from libc to
 
16986
      # always be unresolved, which means just about no library would
 
16987
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16988
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16989
      # as -z defs.
 
16990
      no_undefined_flag_F77='${wl}-z,text'
 
16991
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
16992
      archive_cmds_need_lc_F77=no
 
16993
      hardcode_shlibpath_var_F77=no
 
16994
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16995
      hardcode_libdir_separator_F77=':'
 
16996
      link_all_deplibs_F77=yes
 
16997
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16998
      runpath_var='LD_RUN_PATH'
 
16999
 
 
17000
      if test "$GCC" = yes; then
 
17001
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17002
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17003
      else
 
17004
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17005
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17006
      fi
 
17007
      ;;
 
17008
 
 
17009
    uts4*)
 
17010
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17011
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17012
      hardcode_shlibpath_var_F77=no
 
17013
      ;;
 
17014
 
 
17015
    *)
 
17016
      ld_shlibs_F77=no
 
17017
      ;;
 
17018
    esac
 
17019
  fi
 
17020
 
 
17021
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
17022
$as_echo "$ld_shlibs_F77" >&6; }
 
17023
test "$ld_shlibs_F77" = no && can_build_shared=no
 
17024
 
 
17025
#
 
17026
# Do we need to explicitly link libc?
 
17027
#
 
17028
case "x$archive_cmds_need_lc_F77" in
 
17029
x|xyes)
 
17030
  # Assume -lc should be added
 
17031
  archive_cmds_need_lc_F77=yes
 
17032
 
 
17033
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17034
    case $archive_cmds_F77 in
 
17035
    *'~'*)
 
17036
      # FIXME: we may have to deal with multi-command sequences.
 
17037
      ;;
 
17038
    '$CC '*)
 
17039
      # Test whether the compiler implicitly links with -lc since on some
 
17040
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17041
      # to ld, don't add -lc before -lgcc.
 
17042
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17043
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
17044
      $rm conftest*
 
17045
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17046
 
 
17047
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17048
  (eval $ac_compile) 2>&5
 
17049
  ac_status=$?
 
17050
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17051
  (exit $ac_status); } 2>conftest.err; then
 
17052
        soname=conftest
 
17053
        lib=conftest
 
17054
        libobjs=conftest.$ac_objext
 
17055
        deplibs=
 
17056
        wl=$lt_prog_compiler_wl_F77
 
17057
        pic_flag=$lt_prog_compiler_pic_F77
 
17058
        compiler_flags=-v
 
17059
        linker_flags=-v
 
17060
        verstring=
 
17061
        output_objdir=.
 
17062
        libname=conftest
 
17063
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
17064
        allow_undefined_flag_F77=
 
17065
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17066
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17067
  ac_status=$?
 
17068
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17069
  (exit $ac_status); }
 
17070
        then
 
17071
          archive_cmds_need_lc_F77=no
 
17072
        else
 
17073
          archive_cmds_need_lc_F77=yes
 
17074
        fi
 
17075
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
17076
      else
 
17077
        cat conftest.err 1>&5
 
17078
      fi
 
17079
      $rm conftest*
 
17080
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
17081
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
17082
      ;;
 
17083
    esac
 
17084
  fi
 
17085
  ;;
 
17086
esac
 
17087
 
 
17088
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17089
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
17090
library_names_spec=
 
17091
libname_spec='lib$name'
 
17092
soname_spec=
 
17093
shrext_cmds=".so"
 
17094
postinstall_cmds=
 
17095
postuninstall_cmds=
 
17096
finish_cmds=
 
17097
finish_eval=
 
17098
shlibpath_var=
 
17099
shlibpath_overrides_runpath=unknown
 
17100
version_type=none
 
17101
dynamic_linker="$host_os ld.so"
 
17102
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17103
 
 
17104
need_lib_prefix=unknown
 
17105
hardcode_into_libs=no
 
17106
 
 
17107
# when you set need_version to no, make sure it does not cause -set_version
 
17108
# flags to be left without arguments
 
17109
need_version=unknown
 
17110
 
 
17111
case $host_os in
 
17112
aix3*)
 
17113
  version_type=linux
 
17114
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17115
  shlibpath_var=LIBPATH
 
17116
 
 
17117
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17118
  soname_spec='${libname}${release}${shared_ext}$major'
 
17119
  ;;
 
17120
 
 
17121
aix[4-9]*)
 
17122
  version_type=linux
 
17123
  need_lib_prefix=no
 
17124
  need_version=no
 
17125
  hardcode_into_libs=yes
 
17126
  if test "$host_cpu" = ia64; then
 
17127
    # AIX 5 supports IA64
 
17128
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17129
    shlibpath_var=LD_LIBRARY_PATH
 
17130
  else
 
17131
    # With GCC up to 2.95.x, collect2 would create an import file
 
17132
    # for dependence libraries.  The import file would start with
 
17133
    # the line `#! .'.  This would cause the generated library to
 
17134
    # depend on `.', always an invalid library.  This was fixed in
 
17135
    # development snapshots of GCC prior to 3.0.
 
17136
    case $host_os in
 
17137
      aix4 | aix4.[01] | aix4.[01].*)
 
17138
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17139
           echo ' yes '
 
17140
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17141
        :
 
17142
      else
 
17143
        can_build_shared=no
 
17144
      fi
 
17145
      ;;
 
17146
    esac
 
17147
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17148
    # soname into executable. Probably we can add versioning support to
 
17149
    # collect2, so additional links can be useful in future.
 
17150
    if test "$aix_use_runtimelinking" = yes; then
 
17151
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17152
      # instead of lib<name>.a to let people know that these are not
 
17153
      # typical AIX shared libraries.
 
17154
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17155
    else
 
17156
      # We preserve .a as extension for shared libraries through AIX4.2
 
17157
      # and later when we are not doing run time linking.
 
17158
      library_names_spec='${libname}${release}.a $libname.a'
 
17159
      soname_spec='${libname}${release}${shared_ext}$major'
 
17160
    fi
 
17161
    shlibpath_var=LIBPATH
 
17162
  fi
 
17163
  ;;
 
17164
 
 
17165
amigaos*)
 
17166
  library_names_spec='$libname.ixlibrary $libname.a'
 
17167
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17168
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
 
17169
  ;;
 
17170
 
 
17171
beos*)
 
17172
  library_names_spec='${libname}${shared_ext}'
 
17173
  dynamic_linker="$host_os ld.so"
 
17174
  shlibpath_var=LIBRARY_PATH
 
17175
  ;;
 
17176
 
 
17177
bsdi[45]*)
 
17178
  version_type=linux
 
17179
  need_version=no
 
17180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17181
  soname_spec='${libname}${release}${shared_ext}$major'
 
17182
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17183
  shlibpath_var=LD_LIBRARY_PATH
 
17184
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17185
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17186
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17187
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17188
  # libtool to hard-code these into programs
 
17189
  ;;
 
17190
 
 
17191
cygwin* | mingw* | pw32*)
 
17192
  version_type=windows
 
17193
  shrext_cmds=".dll"
 
17194
  need_version=no
 
17195
  need_lib_prefix=no
 
17196
 
 
17197
  case $GCC,$host_os in
 
17198
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17199
    library_names_spec='$libname.dll.a'
 
17200
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17201
    postinstall_cmds='base_file=`basename \${file}`~
 
17202
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17203
      dldir=$destdir/`dirname \$dlpath`~
 
17204
      test -d \$dldir || mkdir -p \$dldir~
 
17205
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17206
      chmod a+x \$dldir/$dlname'
 
17207
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17208
      dlpath=$dir/\$dldll~
 
17209
       $rm \$dlpath'
 
17210
    shlibpath_overrides_runpath=yes
 
17211
 
 
17212
    case $host_os in
 
17213
    cygwin*)
 
17214
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17215
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17216
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17217
      ;;
 
17218
    mingw*)
 
17219
      # MinGW DLLs use traditional 'lib' prefix
 
17220
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17221
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17222
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17223
        # It is most probably a Windows format PATH printed by
 
17224
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17225
        # path with ; separators, and with drive letters. We can handle the
 
17226
        # drive letters (cygwin fileutils understands them), so leave them,
 
17227
        # especially as we might pass files found there to a mingw objdump,
 
17228
        # which wouldn't understand a cygwinified path. Ahh.
 
17229
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17230
      else
 
17231
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17232
      fi
 
17233
      ;;
 
17234
    pw32*)
 
17235
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17236
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17237
      ;;
 
17238
    esac
 
17239
    ;;
 
17240
 
 
17241
  *)
 
17242
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17243
    ;;
 
17244
  esac
 
17245
  dynamic_linker='Win32 ld.exe'
 
17246
  # FIXME: first we should search . and the directory the executable is in
 
17247
  shlibpath_var=PATH
 
17248
  ;;
 
17249
 
 
17250
darwin* | rhapsody*)
 
17251
  dynamic_linker="$host_os dyld"
 
17252
  version_type=darwin
 
17253
  need_lib_prefix=no
 
17254
  need_version=no
 
17255
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17256
  soname_spec='${libname}${release}${major}$shared_ext'
 
17257
  shlibpath_overrides_runpath=yes
 
17258
  shlibpath_var=DYLD_LIBRARY_PATH
 
17259
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17260
 
 
17261
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17262
  ;;
 
17263
 
 
17264
dgux*)
 
17265
  version_type=linux
 
17266
  need_lib_prefix=no
 
17267
  need_version=no
 
17268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17269
  soname_spec='${libname}${release}${shared_ext}$major'
 
17270
  shlibpath_var=LD_LIBRARY_PATH
 
17271
  ;;
 
17272
 
 
17273
freebsd1*)
 
17274
  dynamic_linker=no
 
17275
  ;;
 
17276
 
 
17277
freebsd* | dragonfly*)
 
17278
  # DragonFly does not have aout.  When/if they implement a new
 
17279
  # versioning mechanism, adjust this.
 
17280
  if test -x /usr/bin/objformat; then
 
17281
    objformat=`/usr/bin/objformat`
 
17282
  else
 
17283
    case $host_os in
 
17284
    freebsd[123]*) objformat=aout ;;
 
17285
    *) objformat=elf ;;
 
17286
    esac
 
17287
  fi
 
17288
  version_type=freebsd-$objformat
 
17289
  case $version_type in
 
17290
    freebsd-elf*)
 
17291
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17292
      need_version=no
 
17293
      need_lib_prefix=no
 
17294
      ;;
 
17295
    freebsd-*)
 
17296
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17297
      need_version=yes
 
17298
      ;;
 
17299
  esac
 
17300
  shlibpath_var=LD_LIBRARY_PATH
 
17301
  case $host_os in
 
17302
  freebsd2*)
 
17303
    shlibpath_overrides_runpath=yes
 
17304
    ;;
 
17305
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17306
    shlibpath_overrides_runpath=yes
 
17307
    hardcode_into_libs=yes
 
17308
    ;;
 
17309
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17310
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17311
    shlibpath_overrides_runpath=no
 
17312
    hardcode_into_libs=yes
 
17313
    ;;
 
17314
  *) # from 4.6 on, and DragonFly
 
17315
    shlibpath_overrides_runpath=yes
 
17316
    hardcode_into_libs=yes
 
17317
    ;;
 
17318
  esac
 
17319
  ;;
 
17320
 
 
17321
gnu*)
 
17322
  version_type=linux
 
17323
  need_lib_prefix=no
 
17324
  need_version=no
 
17325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17326
  soname_spec='${libname}${release}${shared_ext}$major'
 
17327
  shlibpath_var=LD_LIBRARY_PATH
 
17328
  hardcode_into_libs=yes
 
17329
  ;;
 
17330
 
 
17331
hpux9* | hpux10* | hpux11*)
 
17332
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17333
  # link against other versions.
 
17334
  version_type=sunos
 
17335
  need_lib_prefix=no
 
17336
  need_version=no
 
17337
  case $host_cpu in
 
17338
  ia64*)
 
17339
    shrext_cmds='.so'
 
17340
    hardcode_into_libs=yes
 
17341
    dynamic_linker="$host_os dld.so"
 
17342
    shlibpath_var=LD_LIBRARY_PATH
 
17343
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17344
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17345
    soname_spec='${libname}${release}${shared_ext}$major'
 
17346
    if test "X$HPUX_IA64_MODE" = X32; then
 
17347
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17348
    else
 
17349
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17350
    fi
 
17351
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17352
    ;;
 
17353
   hppa*64*)
 
17354
     shrext_cmds='.sl'
 
17355
     hardcode_into_libs=yes
 
17356
     dynamic_linker="$host_os dld.sl"
 
17357
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17358
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17359
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17360
     soname_spec='${libname}${release}${shared_ext}$major'
 
17361
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17362
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17363
     ;;
 
17364
   *)
 
17365
    shrext_cmds='.sl'
 
17366
    dynamic_linker="$host_os dld.sl"
 
17367
    shlibpath_var=SHLIB_PATH
 
17368
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17369
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17370
    soname_spec='${libname}${release}${shared_ext}$major'
 
17371
    ;;
 
17372
  esac
 
17373
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17374
  postinstall_cmds='chmod 555 $lib'
 
17375
  ;;
 
17376
 
 
17377
interix[3-9]*)
 
17378
  version_type=linux
 
17379
  need_lib_prefix=no
 
17380
  need_version=no
 
17381
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17382
  soname_spec='${libname}${release}${shared_ext}$major'
 
17383
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17384
  shlibpath_var=LD_LIBRARY_PATH
 
17385
  shlibpath_overrides_runpath=no
 
17386
  hardcode_into_libs=yes
 
17387
  ;;
 
17388
 
 
17389
irix5* | irix6* | nonstopux*)
 
17390
  case $host_os in
 
17391
    nonstopux*) version_type=nonstopux ;;
 
17392
    *)
 
17393
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17394
                version_type=linux
 
17395
        else
 
17396
                version_type=irix
 
17397
        fi ;;
 
17398
  esac
 
17399
  need_lib_prefix=no
 
17400
  need_version=no
 
17401
  soname_spec='${libname}${release}${shared_ext}$major'
 
17402
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17403
  case $host_os in
 
17404
  irix5* | nonstopux*)
 
17405
    libsuff= shlibsuff=
 
17406
    ;;
 
17407
  *)
 
17408
    case $LD in # libtool.m4 will add one of these switches to LD
 
17409
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17410
      libsuff= shlibsuff= libmagic=32-bit;;
 
17411
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17412
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17413
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17414
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17415
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17416
    esac
 
17417
    ;;
 
17418
  esac
 
17419
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17420
  shlibpath_overrides_runpath=no
 
17421
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17422
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17423
  hardcode_into_libs=yes
 
17424
  ;;
 
17425
 
 
17426
# No shared lib support for Linux oldld, aout, or coff.
 
17427
linux*oldld* | linux*aout* | linux*coff*)
 
17428
  dynamic_linker=no
 
17429
  ;;
 
17430
 
 
17431
# This must be Linux ELF.
 
17432
linux* | k*bsd*-gnu)
 
17433
  version_type=linux
 
17434
  need_lib_prefix=no
 
17435
  need_version=no
 
17436
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17437
  soname_spec='${libname}${release}${shared_ext}$major'
 
17438
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17439
  shlibpath_var=LD_LIBRARY_PATH
 
17440
  shlibpath_overrides_runpath=no
 
17441
  # This implies no fast_install, which is unacceptable.
 
17442
  # Some rework will be needed to allow for fast_install
 
17443
  # before this can be enabled.
 
17444
  hardcode_into_libs=yes
 
17445
 
 
17446
  # Append ld.so.conf contents to the search path
 
17447
  if test -f /etc/ld.so.conf; then
 
17448
    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;/^$/d' | tr '\n' ' '`
 
17449
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17450
  fi
 
17451
 
 
17452
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17453
  # powerpc, because MkLinux only supported shared libraries with the
 
17454
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17455
  # most powerpc-linux boxes support dynamic linking these days and
 
17456
  # people can always --disable-shared, the test was removed, and we
 
17457
  # assume the GNU/Linux dynamic linker is in use.
 
17458
  dynamic_linker='GNU/Linux ld.so'
 
17459
  ;;
 
17460
 
 
17461
netbsdelf*-gnu)
 
17462
  version_type=linux
 
17463
  need_lib_prefix=no
 
17464
  need_version=no
 
17465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17466
  soname_spec='${libname}${release}${shared_ext}$major'
 
17467
  shlibpath_var=LD_LIBRARY_PATH
 
17468
  shlibpath_overrides_runpath=no
 
17469
  hardcode_into_libs=yes
 
17470
  dynamic_linker='NetBSD ld.elf_so'
 
17471
  ;;
 
17472
 
 
17473
netbsd*)
 
17474
  version_type=sunos
 
17475
  need_lib_prefix=no
 
17476
  need_version=no
 
17477
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17478
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17479
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17480
    dynamic_linker='NetBSD (a.out) ld.so'
 
17481
  else
 
17482
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17483
    soname_spec='${libname}${release}${shared_ext}$major'
 
17484
    dynamic_linker='NetBSD ld.elf_so'
 
17485
  fi
 
17486
  shlibpath_var=LD_LIBRARY_PATH
 
17487
  shlibpath_overrides_runpath=yes
 
17488
  hardcode_into_libs=yes
 
17489
  ;;
 
17490
 
 
17491
newsos6)
 
17492
  version_type=linux
 
17493
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17494
  shlibpath_var=LD_LIBRARY_PATH
 
17495
  shlibpath_overrides_runpath=yes
 
17496
  ;;
 
17497
 
 
17498
nto-qnx*)
 
17499
  version_type=linux
 
17500
  need_lib_prefix=no
 
17501
  need_version=no
 
17502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17503
  soname_spec='${libname}${release}${shared_ext}$major'
 
17504
  shlibpath_var=LD_LIBRARY_PATH
 
17505
  shlibpath_overrides_runpath=yes
 
17506
  ;;
 
17507
 
 
17508
openbsd*)
 
17509
  version_type=sunos
 
17510
  sys_lib_dlsearch_path_spec="/usr/lib"
 
17511
  need_lib_prefix=no
 
17512
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17513
  case $host_os in
 
17514
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17515
    *)                         need_version=no  ;;
 
17516
  esac
 
17517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17518
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17519
  shlibpath_var=LD_LIBRARY_PATH
 
17520
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17521
    case $host_os in
 
17522
      openbsd2.[89] | openbsd2.[89].*)
 
17523
        shlibpath_overrides_runpath=no
 
17524
        ;;
 
17525
      *)
 
17526
        shlibpath_overrides_runpath=yes
 
17527
        ;;
 
17528
      esac
 
17529
  else
 
17530
    shlibpath_overrides_runpath=yes
 
17531
  fi
 
17532
  ;;
 
17533
 
 
17534
os2*)
 
17535
  libname_spec='$name'
 
17536
  shrext_cmds=".dll"
 
17537
  need_lib_prefix=no
 
17538
  library_names_spec='$libname${shared_ext} $libname.a'
 
17539
  dynamic_linker='OS/2 ld.exe'
 
17540
  shlibpath_var=LIBPATH
 
17541
  ;;
 
17542
 
 
17543
osf3* | osf4* | osf5*)
 
17544
  version_type=osf
 
17545
  need_lib_prefix=no
 
17546
  need_version=no
 
17547
  soname_spec='${libname}${release}${shared_ext}$major'
 
17548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17549
  shlibpath_var=LD_LIBRARY_PATH
 
17550
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17551
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17552
  ;;
 
17553
 
 
17554
rdos*)
 
17555
  dynamic_linker=no
 
17556
  ;;
 
17557
 
 
17558
solaris*)
 
17559
  version_type=linux
 
17560
  need_lib_prefix=no
 
17561
  need_version=no
 
17562
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17563
  soname_spec='${libname}${release}${shared_ext}$major'
 
17564
  shlibpath_var=LD_LIBRARY_PATH
 
17565
  shlibpath_overrides_runpath=yes
 
17566
  hardcode_into_libs=yes
 
17567
  # ldd complains unless libraries are executable
 
17568
  postinstall_cmds='chmod +x $lib'
 
17569
  ;;
 
17570
 
 
17571
sunos4*)
 
17572
  version_type=sunos
 
17573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17574
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17575
  shlibpath_var=LD_LIBRARY_PATH
 
17576
  shlibpath_overrides_runpath=yes
 
17577
  if test "$with_gnu_ld" = yes; then
 
17578
    need_lib_prefix=no
 
17579
  fi
 
17580
  need_version=yes
 
17581
  ;;
 
17582
 
 
17583
sysv4 | sysv4.3*)
 
17584
  version_type=linux
 
17585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17586
  soname_spec='${libname}${release}${shared_ext}$major'
 
17587
  shlibpath_var=LD_LIBRARY_PATH
 
17588
  case $host_vendor in
 
17589
    sni)
 
17590
      shlibpath_overrides_runpath=no
 
17591
      need_lib_prefix=no
 
17592
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17593
      runpath_var=LD_RUN_PATH
 
17594
      ;;
 
17595
    siemens)
 
17596
      need_lib_prefix=no
 
17597
      ;;
 
17598
    motorola)
 
17599
      need_lib_prefix=no
 
17600
      need_version=no
 
17601
      shlibpath_overrides_runpath=no
 
17602
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17603
      ;;
 
17604
  esac
 
17605
  ;;
 
17606
 
 
17607
sysv4*MP*)
 
17608
  if test -d /usr/nec ;then
 
17609
    version_type=linux
 
17610
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17611
    soname_spec='$libname${shared_ext}.$major'
 
17612
    shlibpath_var=LD_LIBRARY_PATH
 
17613
  fi
 
17614
  ;;
 
17615
 
 
17616
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17617
  version_type=freebsd-elf
 
17618
  need_lib_prefix=no
 
17619
  need_version=no
 
17620
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17621
  soname_spec='${libname}${release}${shared_ext}$major'
 
17622
  shlibpath_var=LD_LIBRARY_PATH
 
17623
  hardcode_into_libs=yes
 
17624
  if test "$with_gnu_ld" = yes; then
 
17625
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17626
    shlibpath_overrides_runpath=no
 
17627
  else
 
17628
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17629
    shlibpath_overrides_runpath=yes
 
17630
    case $host_os in
 
17631
      sco3.2v5*)
 
17632
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17633
        ;;
 
17634
    esac
 
17635
  fi
 
17636
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17637
  ;;
 
17638
 
 
17639
uts4*)
 
17640
  version_type=linux
 
17641
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17642
  soname_spec='${libname}${release}${shared_ext}$major'
 
17643
  shlibpath_var=LD_LIBRARY_PATH
 
17644
  ;;
 
17645
 
 
17646
*)
 
17647
  dynamic_linker=no
 
17648
  ;;
 
17649
esac
 
17650
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17651
$as_echo "$dynamic_linker" >&6; }
 
17652
test "$dynamic_linker" = no && can_build_shared=no
 
17653
 
 
17654
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
17655
  $as_echo_n "(cached) " >&6
 
17656
else
 
17657
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
17658
fi
 
17659
 
 
17660
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
17661
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
17662
  $as_echo_n "(cached) " >&6
 
17663
else
 
17664
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
17665
fi
 
17666
 
 
17667
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
17668
 
 
17669
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17670
if test "$GCC" = yes; then
 
17671
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17672
fi
 
17673
 
 
17674
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17675
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
17676
hardcode_action_F77=
 
17677
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
17678
   test -n "$runpath_var_F77" || \
 
17679
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
17680
 
 
17681
  # We can hardcode non-existant directories.
 
17682
  if test "$hardcode_direct_F77" != no &&
 
17683
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17684
     # have to relink, otherwise we might link with an installed library
 
17685
     # when we should be linking with a yet-to-be-installed one
 
17686
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
17687
     test "$hardcode_minus_L_F77" != no; then
 
17688
    # Linking always hardcodes the temporary library directory.
 
17689
    hardcode_action_F77=relink
 
17690
  else
 
17691
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17692
    hardcode_action_F77=immediate
 
17693
  fi
 
17694
else
 
17695
  # We cannot hardcode anything, or else we can only hardcode existing
 
17696
  # directories.
 
17697
  hardcode_action_F77=unsupported
 
17698
fi
 
17699
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17700
$as_echo "$hardcode_action_F77" >&6; }
 
17701
 
 
17702
if test "$hardcode_action_F77" = relink; then
 
17703
  # Fast installation is not supported
 
17704
  enable_fast_install=no
 
17705
elif test "$shlibpath_overrides_runpath" = yes ||
 
17706
     test "$enable_shared" = no; then
 
17707
  # Fast installation is not necessary
 
17708
  enable_fast_install=needless
 
17709
fi
 
17710
 
 
17711
 
 
17712
# The else clause should only fire when bootstrapping the
 
17713
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17714
# with your package, and you will get complaints that there are
 
17715
# no rules to generate ltmain.sh.
 
17716
if test -f "$ltmain"; then
 
17717
  # See if we are running on zsh, and set the options which allow our commands through
 
17718
  # without removal of \ escapes.
 
17719
  if test -n "${ZSH_VERSION+set}" ; then
 
17720
    setopt NO_GLOB_SUBST
 
17721
  fi
 
17722
  # Now quote all the things that may contain metacharacters while being
 
17723
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17724
  # variables and quote the copies for generation of the libtool script.
 
17725
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
17726
    SED SHELL STRIP \
 
17727
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17728
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17729
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17730
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17731
    lt_cv_sys_global_symbol_to_c_name_address \
 
17732
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17733
    old_postinstall_cmds old_postuninstall_cmds \
 
17734
    compiler_F77 \
 
17735
    CC_F77 \
 
17736
    LD_F77 \
 
17737
    lt_prog_compiler_wl_F77 \
 
17738
    lt_prog_compiler_pic_F77 \
 
17739
    lt_prog_compiler_static_F77 \
 
17740
    lt_prog_compiler_no_builtin_flag_F77 \
 
17741
    export_dynamic_flag_spec_F77 \
 
17742
    thread_safe_flag_spec_F77 \
 
17743
    whole_archive_flag_spec_F77 \
 
17744
    enable_shared_with_static_runtimes_F77 \
 
17745
    old_archive_cmds_F77 \
 
17746
    old_archive_from_new_cmds_F77 \
 
17747
    predep_objects_F77 \
 
17748
    postdep_objects_F77 \
 
17749
    predeps_F77 \
 
17750
    postdeps_F77 \
 
17751
    compiler_lib_search_path_F77 \
 
17752
    compiler_lib_search_dirs_F77 \
 
17753
    archive_cmds_F77 \
 
17754
    archive_expsym_cmds_F77 \
 
17755
    postinstall_cmds_F77 \
 
17756
    postuninstall_cmds_F77 \
 
17757
    old_archive_from_expsyms_cmds_F77 \
 
17758
    allow_undefined_flag_F77 \
 
17759
    no_undefined_flag_F77 \
 
17760
    export_symbols_cmds_F77 \
 
17761
    hardcode_libdir_flag_spec_F77 \
 
17762
    hardcode_libdir_flag_spec_ld_F77 \
 
17763
    hardcode_libdir_separator_F77 \
 
17764
    hardcode_automatic_F77 \
 
17765
    module_cmds_F77 \
 
17766
    module_expsym_cmds_F77 \
 
17767
    lt_cv_prog_compiler_c_o_F77 \
 
17768
    fix_srcfile_path_F77 \
 
17769
    exclude_expsyms_F77 \
 
17770
    include_expsyms_F77; do
 
17771
 
 
17772
    case $var in
 
17773
    old_archive_cmds_F77 | \
 
17774
    old_archive_from_new_cmds_F77 | \
 
17775
    archive_cmds_F77 | \
 
17776
    archive_expsym_cmds_F77 | \
 
17777
    module_cmds_F77 | \
 
17778
    module_expsym_cmds_F77 | \
 
17779
    old_archive_from_expsyms_cmds_F77 | \
 
17780
    export_symbols_cmds_F77 | \
 
17781
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17782
    postinstall_cmds | postuninstall_cmds | \
 
17783
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17784
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17785
      # Double-quote double-evaled strings.
 
17786
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17787
      ;;
 
17788
    *)
 
17789
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17790
      ;;
 
17791
    esac
 
17792
  done
 
17793
 
 
17794
  case $lt_echo in
 
17795
  *'\$0 --fallback-echo"')
 
17796
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17797
    ;;
 
17798
  esac
 
17799
 
 
17800
cfgfile="$ofile"
 
17801
 
 
17802
  cat <<__EOF__ >> "$cfgfile"
 
17803
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17804
 
 
17805
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17806
 
 
17807
# Shell to use when invoking shell scripts.
 
17808
SHELL=$lt_SHELL
 
17809
 
 
17810
# Whether or not to build shared libraries.
 
17811
build_libtool_libs=$enable_shared
 
17812
 
 
17813
# Whether or not to build static libraries.
 
17814
build_old_libs=$enable_static
 
17815
 
 
17816
# Whether or not to add -lc for building shared libraries.
 
17817
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17818
 
 
17819
# Whether or not to disallow shared libs when runtime libs are static
 
17820
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17821
 
 
17822
# Whether or not to optimize for fast installation.
 
17823
fast_install=$enable_fast_install
 
17824
 
 
17825
# The host system.
 
17826
host_alias=$host_alias
 
17827
host=$host
 
17828
host_os=$host_os
 
17829
 
 
17830
# The build system.
 
17831
build_alias=$build_alias
 
17832
build=$build
 
17833
build_os=$build_os
 
17834
 
 
17835
# An echo program that does not interpret backslashes.
 
17836
echo=$lt_echo
 
17837
 
 
17838
# The archiver.
 
17839
AR=$lt_AR
 
17840
AR_FLAGS=$lt_AR_FLAGS
 
17841
 
 
17842
# A C compiler.
 
17843
LTCC=$lt_LTCC
 
17844
 
 
17845
# LTCC compiler flags.
 
17846
LTCFLAGS=$lt_LTCFLAGS
 
17847
 
 
17848
# A language-specific compiler.
 
17849
CC=$lt_compiler_F77
 
17850
 
 
17851
# Is the compiler the GNU C compiler?
 
17852
with_gcc=$GCC_F77
 
17853
 
 
17854
# An ERE matcher.
 
17855
EGREP=$lt_EGREP
 
17856
 
 
17857
# The linker used to build libraries.
 
17858
LD=$lt_LD_F77
 
17859
 
 
17860
# Whether we need hard or soft links.
 
17861
LN_S=$lt_LN_S
 
17862
 
 
17863
# A BSD-compatible nm program.
 
17864
NM=$lt_NM
 
17865
 
 
17866
# A symbol stripping program
 
17867
STRIP=$lt_STRIP
 
17868
 
 
17869
# Used to examine libraries when file_magic_cmd begins "file"
 
17870
MAGIC_CMD=$MAGIC_CMD
 
17871
 
 
17872
# Used on cygwin: DLL creation program.
 
17873
DLLTOOL="$DLLTOOL"
 
17874
 
 
17875
# Used on cygwin: object dumper.
 
17876
OBJDUMP="$OBJDUMP"
 
17877
 
 
17878
# Used on cygwin: assembler.
 
17879
AS="$AS"
 
17880
 
 
17881
# The name of the directory that contains temporary libtool files.
 
17882
objdir=$objdir
 
17883
 
 
17884
# How to create reloadable object files.
 
17885
reload_flag=$lt_reload_flag
 
17886
reload_cmds=$lt_reload_cmds
 
17887
 
 
17888
# How to pass a linker flag through the compiler.
 
17889
wl=$lt_lt_prog_compiler_wl_F77
 
17890
 
 
17891
# Object file suffix (normally "o").
 
17892
objext="$ac_objext"
 
17893
 
 
17894
# Old archive suffix (normally "a").
 
17895
libext="$libext"
 
17896
 
 
17897
# Shared library suffix (normally ".so").
 
17898
shrext_cmds='$shrext_cmds'
 
17899
 
 
17900
# Executable file suffix (normally "").
 
17901
exeext="$exeext"
 
17902
 
 
17903
# Additional compiler flags for building library objects.
 
17904
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17905
pic_mode=$pic_mode
 
17906
 
 
17907
# What is the maximum length of a command?
 
17908
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17909
 
 
17910
# Does compiler simultaneously support -c and -o options?
 
17911
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17912
 
 
17913
# Must we lock files when doing compilation?
 
17914
need_locks=$lt_need_locks
 
17915
 
 
17916
# Do we need the lib prefix for modules?
 
17917
need_lib_prefix=$need_lib_prefix
 
17918
 
 
17919
# Do we need a version for libraries?
 
17920
need_version=$need_version
 
17921
 
 
17922
# Whether dlopen is supported.
 
17923
dlopen_support=$enable_dlopen
 
17924
 
 
17925
# Whether dlopen of programs is supported.
 
17926
dlopen_self=$enable_dlopen_self
 
17927
 
 
17928
# Whether dlopen of statically linked programs is supported.
 
17929
dlopen_self_static=$enable_dlopen_self_static
 
17930
 
 
17931
# Compiler flag to prevent dynamic linking.
 
17932
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17933
 
 
17934
# Compiler flag to turn off builtin functions.
 
17935
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17936
 
 
17937
# Compiler flag to allow reflexive dlopens.
 
17938
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17939
 
 
17940
# Compiler flag to generate shared objects directly from archives.
 
17941
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17942
 
 
17943
# Compiler flag to generate thread-safe objects.
 
17944
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17945
 
 
17946
# Library versioning type.
 
17947
version_type=$version_type
 
17948
 
 
17949
# Format of library name prefix.
 
17950
libname_spec=$lt_libname_spec
 
17951
 
 
17952
# List of archive names.  First name is the real one, the rest are links.
 
17953
# The last name is the one that the linker finds with -lNAME.
 
17954
library_names_spec=$lt_library_names_spec
 
17955
 
 
17956
# The coded name of the library, if different from the real name.
 
17957
soname_spec=$lt_soname_spec
 
17958
 
 
17959
# Commands used to build and install an old-style archive.
 
17960
RANLIB=$lt_RANLIB
 
17961
old_archive_cmds=$lt_old_archive_cmds_F77
 
17962
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17963
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17964
 
 
17965
# Create an old-style archive from a shared archive.
 
17966
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17967
 
 
17968
# Create a temporary old-style archive to link instead of a shared archive.
 
17969
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17970
 
 
17971
# Commands used to build and install a shared archive.
 
17972
archive_cmds=$lt_archive_cmds_F77
 
17973
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17974
postinstall_cmds=$lt_postinstall_cmds
 
17975
postuninstall_cmds=$lt_postuninstall_cmds
 
17976
 
 
17977
# Commands used to build a loadable module (assumed same as above if empty)
 
17978
module_cmds=$lt_module_cmds_F77
 
17979
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17980
 
 
17981
# Commands to strip libraries.
 
17982
old_striplib=$lt_old_striplib
 
17983
striplib=$lt_striplib
 
17984
 
 
17985
# Dependencies to place before the objects being linked to create a
 
17986
# shared library.
 
17987
predep_objects=$lt_predep_objects_F77
 
17988
 
 
17989
# Dependencies to place after the objects being linked to create a
 
17990
# shared library.
 
17991
postdep_objects=$lt_postdep_objects_F77
 
17992
 
 
17993
# Dependencies to place before the objects being linked to create a
 
17994
# shared library.
 
17995
predeps=$lt_predeps_F77
 
17996
 
 
17997
# Dependencies to place after the objects being linked to create a
 
17998
# shared library.
 
17999
postdeps=$lt_postdeps_F77
 
18000
 
 
18001
# The directories searched by this compiler when creating a shared
 
18002
# library
 
18003
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
18004
 
 
18005
# The library search path used internally by the compiler when linking
 
18006
# a shared library.
 
18007
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
18008
 
 
18009
# Method to check whether dependent libraries are shared objects.
 
18010
deplibs_check_method=$lt_deplibs_check_method
 
18011
 
 
18012
# Command to use when deplibs_check_method == file_magic.
 
18013
file_magic_cmd=$lt_file_magic_cmd
 
18014
 
 
18015
# Flag that allows shared libraries with undefined symbols to be built.
 
18016
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
18017
 
 
18018
# Flag that forces no undefined symbols.
 
18019
no_undefined_flag=$lt_no_undefined_flag_F77
 
18020
 
 
18021
# Commands used to finish a libtool library installation in a directory.
 
18022
finish_cmds=$lt_finish_cmds
 
18023
 
 
18024
# Same as above, but a single script fragment to be evaled but not shown.
 
18025
finish_eval=$lt_finish_eval
 
18026
 
 
18027
# Take the output of nm and produce a listing of raw symbols and C names.
 
18028
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18029
 
 
18030
# Transform the output of nm in a proper C declaration
 
18031
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18032
 
 
18033
# Transform the output of nm in a C name address pair
 
18034
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18035
 
 
18036
# This is the shared library runtime path variable.
 
18037
runpath_var=$runpath_var
 
18038
 
 
18039
# This is the shared library path variable.
 
18040
shlibpath_var=$shlibpath_var
 
18041
 
 
18042
# Is shlibpath searched before the hard-coded library search path?
 
18043
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18044
 
 
18045
# How to hardcode a shared library path into an executable.
 
18046
hardcode_action=$hardcode_action_F77
 
18047
 
 
18048
# Whether we should hardcode library paths into libraries.
 
18049
hardcode_into_libs=$hardcode_into_libs
 
18050
 
 
18051
# Flag to hardcode \$libdir into a binary during linking.
 
18052
# This must work even if \$libdir does not exist.
 
18053
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
18054
 
 
18055
# If ld is used when linking, flag to hardcode \$libdir into
 
18056
# a binary during linking. This must work even if \$libdir does
 
18057
# not exist.
 
18058
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
18059
 
 
18060
# Whether we need a single -rpath flag with a separated argument.
 
18061
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
18062
 
 
18063
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18064
# resulting binary.
 
18065
hardcode_direct=$hardcode_direct_F77
 
18066
 
 
18067
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18068
# resulting binary.
 
18069
hardcode_minus_L=$hardcode_minus_L_F77
 
18070
 
 
18071
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18072
# the resulting binary.
 
18073
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
18074
 
 
18075
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18076
# and all subsequent libraries and executables linked against it.
 
18077
hardcode_automatic=$hardcode_automatic_F77
 
18078
 
 
18079
# Variables whose values should be saved in libtool wrapper scripts and
 
18080
# restored at relink time.
 
18081
variables_saved_for_relink="$variables_saved_for_relink"
 
18082
 
 
18083
# Whether libtool must link a program against all its dependency libraries.
 
18084
link_all_deplibs=$link_all_deplibs_F77
 
18085
 
 
18086
# Compile-time system search path for libraries
 
18087
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18088
 
 
18089
# Run-time system search path for libraries
 
18090
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18091
 
 
18092
# Fix the shell variable \$srcfile for the compiler.
 
18093
fix_srcfile_path=$lt_fix_srcfile_path
 
18094
 
 
18095
# Set to yes if exported symbols are required.
 
18096
always_export_symbols=$always_export_symbols_F77
 
18097
 
 
18098
# The commands to list exported symbols.
 
18099
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
18100
 
 
18101
# The commands to extract the exported symbol list from a shared archive.
 
18102
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18103
 
 
18104
# Symbols that should not be listed in the preloaded symbols.
 
18105
exclude_expsyms=$lt_exclude_expsyms_F77
 
18106
 
 
18107
# Symbols that must always be exported.
 
18108
include_expsyms=$lt_include_expsyms_F77
 
18109
 
 
18110
# ### END LIBTOOL TAG CONFIG: $tagname
 
18111
 
 
18112
__EOF__
 
18113
 
 
18114
 
 
18115
else
 
18116
  # If there is no Makefile yet, we rely on a make rule to execute
 
18117
  # `config.status --recheck' to rerun these tests and create the
 
18118
  # libtool script then.
 
18119
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18120
  if test -f "$ltmain_in"; then
 
18121
    test -f Makefile && make "$ltmain"
 
18122
  fi
 
18123
fi
 
18124
 
 
18125
 
 
18126
ac_ext=c
 
18127
ac_cpp='$CPP $CPPFLAGS'
 
18128
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18129
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18130
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18131
 
 
18132
CC="$lt_save_CC"
 
18133
 
 
18134
        else
 
18135
          tagname=""
 
18136
        fi
 
18137
        ;;
 
18138
 
 
18139
      GCJ)
 
18140
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
18141
 
 
18142
 
 
18143
# Source file extension for Java test sources.
 
18144
ac_ext=java
 
18145
 
 
18146
# Object file extension for compiled Java test sources.
 
18147
objext=o
 
18148
objext_GCJ=$objext
 
18149
 
 
18150
# Code to be used in simple compile tests
 
18151
lt_simple_compile_test_code="class foo {}"
 
18152
 
 
18153
# Code to be used in simple link tests
 
18154
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
18155
 
 
18156
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18157
 
 
18158
# If no C compiler was specified, use CC.
 
18159
LTCC=${LTCC-"$CC"}
 
18160
 
 
18161
# If no C compiler flags were specified, use CFLAGS.
 
18162
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18163
 
 
18164
# Allow CC to be a program name with arguments.
 
18165
compiler=$CC
 
18166
 
 
18167
 
 
18168
# save warnings/boilerplate of simple test code
 
18169
ac_outfile=conftest.$ac_objext
 
18170
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18171
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18172
_lt_compiler_boilerplate=`cat conftest.err`
 
18173
$rm conftest*
 
18174
 
 
18175
ac_outfile=conftest.$ac_objext
 
18176
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
18177
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18178
_lt_linker_boilerplate=`cat conftest.err`
 
18179
$rm -r conftest*
 
18180
 
 
18181
 
 
18182
# Allow CC to be a program name with arguments.
 
18183
lt_save_CC="$CC"
 
18184
CC=${GCJ-"gcj"}
 
18185
compiler=$CC
 
18186
compiler_GCJ=$CC
 
18187
for cc_temp in $compiler""; do
 
18188
  case $cc_temp in
 
18189
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18190
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18191
    \-*) ;;
 
18192
    *) break;;
 
18193
  esac
 
18194
done
 
18195
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18196
 
 
18197
 
 
18198
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
18199
archive_cmds_need_lc_GCJ=no
 
18200
 
 
18201
old_archive_cmds_GCJ=$old_archive_cmds
 
18202
 
 
18203
 
 
18204
lt_prog_compiler_no_builtin_flag_GCJ=
 
18205
 
 
18206
if test "$GCC" = yes; then
 
18207
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
18208
 
 
18209
 
 
18210
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
18211
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
18212
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
18213
  $as_echo_n "(cached) " >&6
 
18214
else
 
18215
  lt_cv_prog_compiler_rtti_exceptions=no
 
18216
  ac_outfile=conftest.$ac_objext
 
18217
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18218
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
18219
   # Insert the option either (1) after the last *FLAGS variable, or
 
18220
   # (2) before a word containing "conftest.", or (3) at the end.
 
18221
   # Note that $ac_compile itself does not contain backslashes and begins
 
18222
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18223
   # The option is referenced via a variable to avoid confusing sed.
 
18224
   lt_compile=`echo "$ac_compile" | $SED \
 
18225
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
18226
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18227
   -e 's:$: $lt_compiler_flag:'`
 
18228
   (eval echo "\"\$as_me:18228: $lt_compile\"" >&5)
 
18229
   (eval "$lt_compile" 2>conftest.err)
 
18230
   ac_status=$?
 
18231
   cat conftest.err >&5
 
18232
   echo "$as_me:18232: \$? = $ac_status" >&5
 
18233
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18234
     # The compiler can only warn and ignore the option if not recognized
 
18235
     # So say no if there are warnings other than the usual output.
 
18236
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
18237
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
18238
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
18239
       lt_cv_prog_compiler_rtti_exceptions=yes
 
18240
     fi
 
18241
   fi
 
18242
   $rm conftest*
 
18243
 
 
18244
fi
 
18245
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
18246
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
18247
 
 
18248
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
18249
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
18250
else
 
18251
    :
 
18252
fi
 
18253
 
 
18254
fi
 
18255
 
 
18256
lt_prog_compiler_wl_GCJ=
 
18257
lt_prog_compiler_pic_GCJ=
 
18258
lt_prog_compiler_static_GCJ=
 
18259
 
 
18260
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18261
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
18262
 
 
18263
  if test "$GCC" = yes; then
 
18264
    lt_prog_compiler_wl_GCJ='-Wl,'
 
18265
    lt_prog_compiler_static_GCJ='-static'
 
18266
 
 
18267
    case $host_os in
 
18268
      aix*)
 
18269
      # All AIX code is PIC.
 
18270
      if test "$host_cpu" = ia64; then
 
18271
        # AIX 5 now supports IA64 processor
 
18272
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18273
      fi
 
18274
      ;;
 
18275
 
 
18276
    amigaos*)
 
18277
      # FIXME: we need at least 68020 code to build shared libraries, but
 
18278
      # adding the `-m68020' flag to GCC prevents building anything better,
 
18279
      # like `-m68040'.
 
18280
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
18281
      ;;
 
18282
 
 
18283
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
18284
      # PIC is the default for these OSes.
 
18285
      ;;
 
18286
 
 
18287
    mingw* | cygwin* | pw32* | os2*)
 
18288
      # This hack is so that the source file can tell whether it is being
 
18289
      # built for inclusion in a dll (and should export symbols for example).
 
18290
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
18291
      # (--disable-auto-import) libraries
 
18292
 
 
18293
      ;;
 
18294
 
 
18295
    darwin* | rhapsody*)
 
18296
      # PIC is the default on this platform
 
18297
      # Common symbols not allowed in MH_DYLIB files
 
18298
      lt_prog_compiler_pic_GCJ='-fno-common'
 
18299
      ;;
 
18300
 
 
18301
    interix[3-9]*)
 
18302
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
18303
      # Instead, we relocate shared libraries at runtime.
 
18304
      ;;
 
18305
 
 
18306
    msdosdjgpp*)
 
18307
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
18308
      # on systems that don't support them.
 
18309
      lt_prog_compiler_can_build_shared_GCJ=no
 
18310
      enable_shared=no
 
18311
      ;;
 
18312
 
 
18313
    sysv4*MP*)
 
18314
      if test -d /usr/nec; then
 
18315
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
18316
      fi
 
18317
      ;;
 
18318
 
 
18319
    hpux*)
 
18320
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18321
      # not for PA HP-UX.
 
18322
      case $host_cpu in
 
18323
      hppa*64*|ia64*)
 
18324
        # +Z the default
 
18325
        ;;
 
18326
      *)
 
18327
        lt_prog_compiler_pic_GCJ='-fPIC'
 
18328
        ;;
 
18329
      esac
 
18330
      ;;
 
18331
 
 
18332
    *)
 
18333
      lt_prog_compiler_pic_GCJ='-fPIC'
 
18334
      ;;
 
18335
    esac
 
18336
  else
 
18337
    # PORTME Check for flag to pass linker flags through the system compiler.
 
18338
    case $host_os in
 
18339
    aix*)
 
18340
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18341
      if test "$host_cpu" = ia64; then
 
18342
        # AIX 5 now supports IA64 processor
 
18343
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18344
      else
 
18345
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
18346
      fi
 
18347
      ;;
 
18348
      darwin*)
 
18349
        # PIC is the default on this platform
 
18350
        # Common symbols not allowed in MH_DYLIB files
 
18351
       case $cc_basename in
 
18352
         xlc*)
 
18353
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
18354
         lt_prog_compiler_wl_GCJ='-Wl,'
 
18355
         ;;
 
18356
       esac
 
18357
       ;;
 
18358
 
 
18359
    mingw* | cygwin* | pw32* | os2*)
 
18360
      # This hack is so that the source file can tell whether it is being
 
18361
      # built for inclusion in a dll (and should export symbols for example).
 
18362
 
 
18363
      ;;
 
18364
 
 
18365
    hpux9* | hpux10* | hpux11*)
 
18366
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18367
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18368
      # not for PA HP-UX.
 
18369
      case $host_cpu in
 
18370
      hppa*64*|ia64*)
 
18371
        # +Z the default
 
18372
        ;;
 
18373
      *)
 
18374
        lt_prog_compiler_pic_GCJ='+Z'
 
18375
        ;;
 
18376
      esac
 
18377
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
18378
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
18379
      ;;
 
18380
 
 
18381
    irix5* | irix6* | nonstopux*)
 
18382
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18383
      # PIC (with -KPIC) is the default.
 
18384
      lt_prog_compiler_static_GCJ='-non_shared'
 
18385
      ;;
 
18386
 
 
18387
    newsos6)
 
18388
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18389
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18390
      ;;
 
18391
 
 
18392
    linux* | k*bsd*-gnu)
 
18393
      case $cc_basename in
 
18394
      icc* | ecc*)
 
18395
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18396
        lt_prog_compiler_pic_GCJ='-KPIC'
 
18397
        lt_prog_compiler_static_GCJ='-static'
 
18398
        ;;
 
18399
      pgcc* | pgf77* | pgf90* | pgf95*)
 
18400
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
18401
        # which looks to be a dead project)
 
18402
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18403
        lt_prog_compiler_pic_GCJ='-fpic'
 
18404
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18405
        ;;
 
18406
      ccc*)
 
18407
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18408
        # All Alpha code is PIC.
 
18409
        lt_prog_compiler_static_GCJ='-non_shared'
 
18410
        ;;
 
18411
      *)
 
18412
        case `$CC -V 2>&1 | sed 5q` in
 
18413
        *Sun\ C*)
 
18414
          # Sun C 5.9
 
18415
          lt_prog_compiler_pic_GCJ='-KPIC'
 
18416
          lt_prog_compiler_static_GCJ='-Bstatic'
 
18417
          lt_prog_compiler_wl_GCJ='-Wl,'
 
18418
          ;;
 
18419
        *Sun\ F*)
 
18420
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
18421
          lt_prog_compiler_pic_GCJ='-KPIC'
 
18422
          lt_prog_compiler_static_GCJ='-Bstatic'
 
18423
          lt_prog_compiler_wl_GCJ=''
 
18424
          ;;
 
18425
        esac
 
18426
        ;;
 
18427
      esac
 
18428
      ;;
 
18429
 
 
18430
    osf3* | osf4* | osf5*)
 
18431
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18432
      # All OSF/1 code is PIC.
 
18433
      lt_prog_compiler_static_GCJ='-non_shared'
 
18434
      ;;
 
18435
 
 
18436
    rdos*)
 
18437
      lt_prog_compiler_static_GCJ='-non_shared'
 
18438
      ;;
 
18439
 
 
18440
    solaris*)
 
18441
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18442
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18443
      case $cc_basename in
 
18444
      f77* | f90* | f95*)
 
18445
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
18446
      *)
 
18447
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
18448
      esac
 
18449
      ;;
 
18450
 
 
18451
    sunos4*)
 
18452
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
18453
      lt_prog_compiler_pic_GCJ='-PIC'
 
18454
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18455
      ;;
 
18456
 
 
18457
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
18458
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18459
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18460
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18461
      ;;
 
18462
 
 
18463
    sysv4*MP*)
 
18464
      if test -d /usr/nec ;then
 
18465
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
18466
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18467
      fi
 
18468
      ;;
 
18469
 
 
18470
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
18471
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18472
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18473
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18474
      ;;
 
18475
 
 
18476
    unicos*)
 
18477
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18478
      lt_prog_compiler_can_build_shared_GCJ=no
 
18479
      ;;
 
18480
 
 
18481
    uts4*)
 
18482
      lt_prog_compiler_pic_GCJ='-pic'
 
18483
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18484
      ;;
 
18485
 
 
18486
    *)
 
18487
      lt_prog_compiler_can_build_shared_GCJ=no
 
18488
      ;;
 
18489
    esac
 
18490
  fi
 
18491
 
 
18492
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
18493
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
18494
 
 
18495
#
 
18496
# Check to make sure the PIC flag actually works.
 
18497
#
 
18498
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
18499
 
 
18500
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
18501
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
18502
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
18503
  $as_echo_n "(cached) " >&6
 
18504
else
 
18505
  lt_cv_prog_compiler_pic_works_GCJ=no
 
18506
  ac_outfile=conftest.$ac_objext
 
18507
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18508
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
18509
   # Insert the option either (1) after the last *FLAGS variable, or
 
18510
   # (2) before a word containing "conftest.", or (3) at the end.
 
18511
   # Note that $ac_compile itself does not contain backslashes and begins
 
18512
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18513
   # The option is referenced via a variable to avoid confusing sed.
 
18514
   lt_compile=`echo "$ac_compile" | $SED \
 
18515
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
18516
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18517
   -e 's:$: $lt_compiler_flag:'`
 
18518
   (eval echo "\"\$as_me:18518: $lt_compile\"" >&5)
 
18519
   (eval "$lt_compile" 2>conftest.err)
 
18520
   ac_status=$?
 
18521
   cat conftest.err >&5
 
18522
   echo "$as_me:18522: \$? = $ac_status" >&5
 
18523
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18524
     # The compiler can only warn and ignore the option if not recognized
 
18525
     # So say no if there are warnings other than the usual output.
 
18526
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
18527
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
18528
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
18529
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
18530
     fi
 
18531
   fi
 
18532
   $rm conftest*
 
18533
 
 
18534
fi
 
18535
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
18536
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
18537
 
 
18538
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
18539
    case $lt_prog_compiler_pic_GCJ in
 
18540
     "" | " "*) ;;
 
18541
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
18542
     esac
 
18543
else
 
18544
    lt_prog_compiler_pic_GCJ=
 
18545
     lt_prog_compiler_can_build_shared_GCJ=no
 
18546
fi
 
18547
 
 
18548
fi
 
18549
case $host_os in
 
18550
  # For platforms which do not support PIC, -DPIC is meaningless:
 
18551
  *djgpp*)
 
18552
    lt_prog_compiler_pic_GCJ=
 
18553
    ;;
 
18554
  *)
 
18555
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
18556
    ;;
 
18557
esac
 
18558
 
 
18559
#
 
18560
# Check to make sure the static flag actually works.
 
18561
#
 
18562
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
18563
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
18564
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
18565
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
18566
  $as_echo_n "(cached) " >&6
 
18567
else
 
18568
  lt_cv_prog_compiler_static_works_GCJ=no
 
18569
   save_LDFLAGS="$LDFLAGS"
 
18570
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
18571
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
18572
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
18573
     # The linker can only warn and ignore the option if not recognized
 
18574
     # So say no if there are warnings
 
18575
     if test -s conftest.err; then
 
18576
       # Append any errors to the config.log.
 
18577
       cat conftest.err 1>&5
 
18578
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
18579
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
18580
       if diff conftest.exp conftest.er2 >/dev/null; then
 
18581
         lt_cv_prog_compiler_static_works_GCJ=yes
 
18582
       fi
 
18583
     else
 
18584
       lt_cv_prog_compiler_static_works_GCJ=yes
 
18585
     fi
 
18586
   fi
 
18587
   $rm -r conftest*
 
18588
   LDFLAGS="$save_LDFLAGS"
 
18589
 
 
18590
fi
 
18591
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
18592
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
18593
 
 
18594
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
18595
    :
 
18596
else
 
18597
    lt_prog_compiler_static_GCJ=
 
18598
fi
 
18599
 
 
18600
 
 
18601
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18602
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
18603
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
18604
  $as_echo_n "(cached) " >&6
 
18605
else
 
18606
  lt_cv_prog_compiler_c_o_GCJ=no
 
18607
   $rm -r conftest 2>/dev/null
 
18608
   mkdir conftest
 
18609
   cd conftest
 
18610
   mkdir out
 
18611
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18612
 
 
18613
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18614
   # Insert the option either (1) after the last *FLAGS variable, or
 
18615
   # (2) before a word containing "conftest.", or (3) at the end.
 
18616
   # Note that $ac_compile itself does not contain backslashes and begins
 
18617
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18618
   lt_compile=`echo "$ac_compile" | $SED \
 
18619
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
18620
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18621
   -e 's:$: $lt_compiler_flag:'`
 
18622
   (eval echo "\"\$as_me:18622: $lt_compile\"" >&5)
 
18623
   (eval "$lt_compile" 2>out/conftest.err)
 
18624
   ac_status=$?
 
18625
   cat out/conftest.err >&5
 
18626
   echo "$as_me:18626: \$? = $ac_status" >&5
 
18627
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
18628
   then
 
18629
     # The compiler can only warn and ignore the option if not recognized
 
18630
     # So say no if there are warnings
 
18631
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
18632
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
18633
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
18634
       lt_cv_prog_compiler_c_o_GCJ=yes
 
18635
     fi
 
18636
   fi
 
18637
   chmod u+w . 2>&5
 
18638
   $rm conftest*
 
18639
   # SGI C++ compiler will create directory out/ii_files/ for
 
18640
   # template instantiation
 
18641
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
18642
   $rm out/* && rmdir out
 
18643
   cd ..
 
18644
   rmdir conftest
 
18645
   $rm conftest*
 
18646
 
 
18647
fi
 
18648
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
18649
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
18650
 
 
18651
 
 
18652
hard_links="nottested"
 
18653
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
18654
  # do not overwrite the value of need_locks provided by the user
 
18655
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18656
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
18657
  hard_links=yes
 
18658
  $rm conftest*
 
18659
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18660
  touch conftest.a
 
18661
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
18662
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18663
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
18664
$as_echo "$hard_links" >&6; }
 
18665
  if test "$hard_links" = no; then
 
18666
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18667
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
18668
    need_locks=warn
 
18669
  fi
 
18670
else
 
18671
  need_locks=no
 
18672
fi
 
18673
 
 
18674
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18675
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
18676
 
 
18677
  runpath_var=
 
18678
  allow_undefined_flag_GCJ=
 
18679
  enable_shared_with_static_runtimes_GCJ=no
 
18680
  archive_cmds_GCJ=
 
18681
  archive_expsym_cmds_GCJ=
 
18682
  old_archive_From_new_cmds_GCJ=
 
18683
  old_archive_from_expsyms_cmds_GCJ=
 
18684
  export_dynamic_flag_spec_GCJ=
 
18685
  whole_archive_flag_spec_GCJ=
 
18686
  thread_safe_flag_spec_GCJ=
 
18687
  hardcode_libdir_flag_spec_GCJ=
 
18688
  hardcode_libdir_flag_spec_ld_GCJ=
 
18689
  hardcode_libdir_separator_GCJ=
 
18690
  hardcode_direct_GCJ=no
 
18691
  hardcode_minus_L_GCJ=no
 
18692
  hardcode_shlibpath_var_GCJ=unsupported
 
18693
  link_all_deplibs_GCJ=unknown
 
18694
  hardcode_automatic_GCJ=no
 
18695
  module_cmds_GCJ=
 
18696
  module_expsym_cmds_GCJ=
 
18697
  always_export_symbols_GCJ=no
 
18698
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18699
  # include_expsyms should be a list of space-separated symbols to be *always*
 
18700
  # included in the symbol list
 
18701
  include_expsyms_GCJ=
 
18702
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
18703
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
18704
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
18705
  # as well as any symbol that contains `d'.
 
18706
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
18707
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
18708
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
18709
  # the symbol is explicitly referenced.  Since portable code cannot
 
18710
  # rely on this symbol name, it's probably fine to never include it in
 
18711
  # preloaded symbol tables.
 
18712
  # Exclude shared library initialization/finalization symbols.
 
18713
  extract_expsyms_cmds=
 
18714
  # Just being paranoid about ensuring that cc_basename is set.
 
18715
  for cc_temp in $compiler""; do
 
18716
  case $cc_temp in
 
18717
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18718
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18719
    \-*) ;;
 
18720
    *) break;;
 
18721
  esac
 
18722
done
 
18723
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18724
 
 
18725
  case $host_os in
 
18726
  cygwin* | mingw* | pw32*)
 
18727
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
18728
    # When not using gcc, we currently assume that we are using
 
18729
    # Microsoft Visual C++.
 
18730
    if test "$GCC" != yes; then
 
18731
      with_gnu_ld=no
 
18732
    fi
 
18733
    ;;
 
18734
  interix*)
 
18735
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
18736
    with_gnu_ld=yes
 
18737
    ;;
 
18738
  openbsd*)
 
18739
    with_gnu_ld=no
 
18740
    ;;
 
18741
  esac
 
18742
 
 
18743
  ld_shlibs_GCJ=yes
 
18744
  if test "$with_gnu_ld" = yes; then
 
18745
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
18746
    wlarc='${wl}'
 
18747
 
 
18748
    # Set some defaults for GNU ld with shared library support. These
 
18749
    # are reset later if shared libraries are not supported. Putting them
 
18750
    # here allows them to be overridden if necessary.
 
18751
    runpath_var=LD_RUN_PATH
 
18752
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18753
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18754
    # ancient GNU ld didn't support --whole-archive et. al.
 
18755
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18756
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18757
      else
 
18758
        whole_archive_flag_spec_GCJ=
 
18759
    fi
 
18760
    supports_anon_versioning=no
 
18761
    case `$LD -v 2>/dev/null` in
 
18762
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
18763
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
18764
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
18765
      *\ 2.11.*) ;; # other 2.11 versions
 
18766
      *) supports_anon_versioning=yes ;;
 
18767
    esac
 
18768
 
 
18769
    # See if GNU ld supports shared libraries.
 
18770
    case $host_os in
 
18771
    aix[3-9]*)
 
18772
      # On AIX/PPC, the GNU linker is very broken
 
18773
      if test "$host_cpu" != ia64; then
 
18774
        ld_shlibs_GCJ=no
 
18775
        cat <<EOF 1>&2
 
18776
 
 
18777
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
18778
*** to be unable to reliably create shared libraries on AIX.
 
18779
*** Therefore, libtool is disabling shared libraries support.  If you
 
18780
*** really care for shared libraries, you may want to modify your PATH
 
18781
*** so that a non-GNU linker is found, and then restart.
 
18782
 
 
18783
EOF
 
18784
      fi
 
18785
      ;;
 
18786
 
 
18787
    amigaos*)
 
18788
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
18789
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18790
      hardcode_minus_L_GCJ=yes
 
18791
 
 
18792
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
18793
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
18794
      # to version 4, is to share data among multiple programs linked
 
18795
      # with the same dynamic library.  Since this doesn't match the
 
18796
      # behavior of shared libraries on other platforms, we can't use
 
18797
      # them.
 
18798
      ld_shlibs_GCJ=no
 
18799
      ;;
 
18800
 
 
18801
    beos*)
 
18802
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18803
        allow_undefined_flag_GCJ=unsupported
 
18804
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
18805
        # support --undefined.  This deserves some investigation.  FIXME
 
18806
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18807
      else
 
18808
        ld_shlibs_GCJ=no
 
18809
      fi
 
18810
      ;;
 
18811
 
 
18812
    cygwin* | mingw* | pw32*)
 
18813
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
18814
      # as there is no search path for DLLs.
 
18815
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18816
      allow_undefined_flag_GCJ=unsupported
 
18817
      always_export_symbols_GCJ=no
 
18818
      enable_shared_with_static_runtimes_GCJ=yes
 
18819
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
18820
 
 
18821
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18822
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
18823
        # If the export-symbols file already is a .def file (1st line
 
18824
        # is EXPORTS), use it as is; otherwise, prepend...
 
18825
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18826
          cp $export_symbols $output_objdir/$soname.def;
 
18827
        else
 
18828
          echo EXPORTS > $output_objdir/$soname.def;
 
18829
          cat $export_symbols >> $output_objdir/$soname.def;
 
18830
        fi~
 
18831
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
18832
      else
 
18833
        ld_shlibs_GCJ=no
 
18834
      fi
 
18835
      ;;
 
18836
 
 
18837
    interix[3-9]*)
 
18838
      hardcode_direct_GCJ=no
 
18839
      hardcode_shlibpath_var_GCJ=no
 
18840
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18841
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18842
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
18843
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
18844
      # default) and relocated if they conflict, which is a slow very memory
 
18845
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
18846
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
18847
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
18848
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
18849
      archive_expsym_cmds_GCJ='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'
 
18850
      ;;
 
18851
 
 
18852
    gnu* | linux* | k*bsd*-gnu)
 
18853
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18854
        tmp_addflag=
 
18855
        case $cc_basename,$host_cpu in
 
18856
        pgcc*)                          # Portland Group C compiler
 
18857
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
18858
          tmp_addflag=' $pic_flag'
 
18859
          ;;
 
18860
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
18861
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
18862
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
18863
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
18864
          tmp_addflag=' -i_dynamic' ;;
 
18865
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
18866
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
18867
        ifc* | ifort*)                  # Intel Fortran compiler
 
18868
          tmp_addflag=' -nofor_main' ;;
 
18869
        esac
 
18870
        case `$CC -V 2>&1 | sed 5q` in
 
18871
        *Sun\ C*)                       # Sun C 5.9
 
18872
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
18873
          tmp_sharedflag='-G' ;;
 
18874
        *Sun\ F*)                       # Sun Fortran 8.3
 
18875
          tmp_sharedflag='-G' ;;
 
18876
        *)
 
18877
          tmp_sharedflag='-shared' ;;
 
18878
        esac
 
18879
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18880
 
 
18881
        if test $supports_anon_versioning = yes; then
 
18882
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
18883
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18884
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
18885
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18886
        fi
 
18887
        link_all_deplibs_GCJ=no
 
18888
      else
 
18889
        ld_shlibs_GCJ=no
 
18890
      fi
 
18891
      ;;
 
18892
 
 
18893
    netbsd* | netbsdelf*-gnu)
 
18894
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18895
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18896
        wlarc=
 
18897
      else
 
18898
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18899
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18900
      fi
 
18901
      ;;
 
18902
 
 
18903
    solaris*)
 
18904
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18905
        ld_shlibs_GCJ=no
 
18906
        cat <<EOF 1>&2
 
18907
 
 
18908
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18909
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18910
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18911
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18912
*** your PATH or compiler configuration so that the native linker is
 
18913
*** used, and then restart.
 
18914
 
 
18915
EOF
 
18916
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18917
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18918
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18919
      else
 
18920
        ld_shlibs_GCJ=no
 
18921
      fi
 
18922
      ;;
 
18923
 
 
18924
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
18925
      case `$LD -v 2>&1` in
 
18926
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
18927
        ld_shlibs_GCJ=no
 
18928
        cat <<_LT_EOF 1>&2
 
18929
 
 
18930
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
18931
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
18932
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18933
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
18934
*** your PATH or compiler configuration so that the native linker is
 
18935
*** used, and then restart.
 
18936
 
 
18937
_LT_EOF
 
18938
        ;;
 
18939
        *)
 
18940
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18941
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
18942
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
18943
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
18944
          else
 
18945
            ld_shlibs_GCJ=no
 
18946
          fi
 
18947
        ;;
 
18948
      esac
 
18949
      ;;
 
18950
 
 
18951
    sunos4*)
 
18952
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18953
      wlarc=
 
18954
      hardcode_direct_GCJ=yes
 
18955
      hardcode_shlibpath_var_GCJ=no
 
18956
      ;;
 
18957
 
 
18958
    *)
 
18959
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18960
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18961
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18962
      else
 
18963
        ld_shlibs_GCJ=no
 
18964
      fi
 
18965
      ;;
 
18966
    esac
 
18967
 
 
18968
    if test "$ld_shlibs_GCJ" = no; then
 
18969
      runpath_var=
 
18970
      hardcode_libdir_flag_spec_GCJ=
 
18971
      export_dynamic_flag_spec_GCJ=
 
18972
      whole_archive_flag_spec_GCJ=
 
18973
    fi
 
18974
  else
 
18975
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18976
    case $host_os in
 
18977
    aix3*)
 
18978
      allow_undefined_flag_GCJ=unsupported
 
18979
      always_export_symbols_GCJ=yes
 
18980
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
18981
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18982
      # are no directories specified by -L.
 
18983
      hardcode_minus_L_GCJ=yes
 
18984
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
18985
        # Neither direct hardcoding nor static linking is supported with a
 
18986
        # broken collect2.
 
18987
        hardcode_direct_GCJ=unsupported
 
18988
      fi
 
18989
      ;;
 
18990
 
 
18991
    aix[4-9]*)
 
18992
      if test "$host_cpu" = ia64; then
 
18993
        # On IA64, the linker does run time linking by default, so we don't
 
18994
        # have to do anything special.
 
18995
        aix_use_runtimelinking=no
 
18996
        exp_sym_flag='-Bexport'
 
18997
        no_entry_flag=""
 
18998
      else
 
18999
        # If we're using GNU nm, then we don't want the "-C" option.
 
19000
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
19001
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
19002
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
19003
        else
 
19004
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
19005
        fi
 
19006
        aix_use_runtimelinking=no
 
19007
 
 
19008
        # Test if we are trying to use run time linking or normal
 
19009
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
19010
        # need to do runtime linking.
 
19011
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
19012
          for ld_flag in $LDFLAGS; do
 
19013
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
19014
            aix_use_runtimelinking=yes
 
19015
            break
 
19016
          fi
 
19017
          done
 
19018
          ;;
 
19019
        esac
 
19020
 
 
19021
        exp_sym_flag='-bexport'
 
19022
        no_entry_flag='-bnoentry'
 
19023
      fi
 
19024
 
 
19025
      # When large executables or shared objects are built, AIX ld can
 
19026
      # have problems creating the table of contents.  If linking a library
 
19027
      # or program results in "error TOC overflow" add -mminimal-toc to
 
19028
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
19029
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
19030
 
 
19031
      archive_cmds_GCJ=''
 
19032
      hardcode_direct_GCJ=yes
 
19033
      hardcode_libdir_separator_GCJ=':'
 
19034
      link_all_deplibs_GCJ=yes
 
19035
 
 
19036
      if test "$GCC" = yes; then
 
19037
        case $host_os in aix4.[012]|aix4.[012].*)
 
19038
        # We only want to do this on AIX 4.2 and lower, the check
 
19039
        # below for broken collect2 doesn't work under 4.3+
 
19040
          collect2name=`${CC} -print-prog-name=collect2`
 
19041
          if test -f "$collect2name" && \
 
19042
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
19043
          then
 
19044
          # We have reworked collect2
 
19045
          :
 
19046
          else
 
19047
          # We have old collect2
 
19048
          hardcode_direct_GCJ=unsupported
 
19049
          # It fails to find uninstalled libraries when the uninstalled
 
19050
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
19051
          # to unsupported forces relinking
 
19052
          hardcode_minus_L_GCJ=yes
 
19053
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19054
          hardcode_libdir_separator_GCJ=
 
19055
          fi
 
19056
          ;;
 
19057
        esac
 
19058
        shared_flag='-shared'
 
19059
        if test "$aix_use_runtimelinking" = yes; then
 
19060
          shared_flag="$shared_flag "'${wl}-G'
 
19061
        fi
 
19062
      else
 
19063
        # not using gcc
 
19064
        if test "$host_cpu" = ia64; then
 
19065
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
19066
        # chokes on -Wl,-G. The following line is correct:
 
19067
          shared_flag='-G'
 
19068
        else
 
19069
          if test "$aix_use_runtimelinking" = yes; then
 
19070
            shared_flag='${wl}-G'
 
19071
          else
 
19072
            shared_flag='${wl}-bM:SRE'
 
19073
          fi
 
19074
        fi
 
19075
      fi
 
19076
 
 
19077
      # It seems that -bexpall does not export symbols beginning with
 
19078
      # underscore (_), so it is better to generate a list of symbols to export.
 
19079
      always_export_symbols_GCJ=yes
 
19080
      if test "$aix_use_runtimelinking" = yes; then
 
19081
        # Warning - without using the other runtime loading flags (-brtl),
 
19082
        # -berok will link without error, but may produce a broken library.
 
19083
        allow_undefined_flag_GCJ='-berok'
 
19084
       # Determine the default libpath from the value encoded in an empty executable.
 
19085
       cat >conftest.$ac_ext <<_ACEOF
 
19086
/* confdefs.h.  */
 
19087
_ACEOF
 
19088
cat confdefs.h >>conftest.$ac_ext
 
19089
cat >>conftest.$ac_ext <<_ACEOF
 
19090
/* end confdefs.h.  */
 
19091
 
 
19092
int
 
19093
main ()
 
19094
{
 
19095
 
 
19096
  ;
 
19097
  return 0;
 
19098
}
 
19099
_ACEOF
 
19100
rm -f conftest.$ac_objext conftest$ac_exeext
 
19101
if { (ac_try="$ac_link"
 
19102
case "(($ac_try" in
 
19103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19104
  *) ac_try_echo=$ac_try;;
 
19105
esac
 
19106
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19107
$as_echo "$ac_try_echo") >&5
 
19108
  (eval "$ac_link") 2>conftest.er1
 
19109
  ac_status=$?
 
19110
  grep -v '^ *+' conftest.er1 >conftest.err
 
19111
  rm -f conftest.er1
 
19112
  cat conftest.err >&5
 
19113
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19114
  (exit $ac_status); } && {
 
19115
         test -z "$ac_c_werror_flag" ||
 
19116
         test ! -s conftest.err
 
19117
       } && test -s conftest$ac_exeext && {
 
19118
         test "$cross_compiling" = yes ||
 
19119
         $as_test_x conftest$ac_exeext
 
19120
       }; then
 
19121
 
 
19122
lt_aix_libpath_sed='
 
19123
    /Import File Strings/,/^$/ {
 
19124
        /^0/ {
 
19125
            s/^0  *\(.*\)$/\1/
 
19126
            p
 
19127
        }
 
19128
    }'
 
19129
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
19130
# Check for a 64-bit object if we didn't find anything.
 
19131
if test -z "$aix_libpath"; then
 
19132
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
19133
fi
 
19134
else
 
19135
  $as_echo "$as_me: failed program was:" >&5
 
19136
sed 's/^/| /' conftest.$ac_ext >&5
 
19137
 
 
19138
 
 
19139
fi
 
19140
 
 
19141
rm -rf conftest.dSYM
 
19142
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19143
      conftest$ac_exeext conftest.$ac_ext
 
19144
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
19145
 
 
19146
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
19147
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
19148
       else
 
19149
        if test "$host_cpu" = ia64; then
 
19150
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
19151
          allow_undefined_flag_GCJ="-z nodefs"
 
19152
          archive_expsym_cmds_GCJ="\$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"
 
19153
        else
 
19154
         # Determine the default libpath from the value encoded in an empty executable.
 
19155
         cat >conftest.$ac_ext <<_ACEOF
 
19156
/* confdefs.h.  */
 
19157
_ACEOF
 
19158
cat confdefs.h >>conftest.$ac_ext
 
19159
cat >>conftest.$ac_ext <<_ACEOF
 
19160
/* end confdefs.h.  */
 
19161
 
 
19162
int
 
19163
main ()
 
19164
{
 
19165
 
 
19166
  ;
 
19167
  return 0;
 
19168
}
 
19169
_ACEOF
 
19170
rm -f conftest.$ac_objext conftest$ac_exeext
 
19171
if { (ac_try="$ac_link"
 
19172
case "(($ac_try" in
 
19173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19174
  *) ac_try_echo=$ac_try;;
 
19175
esac
 
19176
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19177
$as_echo "$ac_try_echo") >&5
 
19178
  (eval "$ac_link") 2>conftest.er1
 
19179
  ac_status=$?
 
19180
  grep -v '^ *+' conftest.er1 >conftest.err
 
19181
  rm -f conftest.er1
 
19182
  cat conftest.err >&5
 
19183
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19184
  (exit $ac_status); } && {
 
19185
         test -z "$ac_c_werror_flag" ||
 
19186
         test ! -s conftest.err
 
19187
       } && test -s conftest$ac_exeext && {
 
19188
         test "$cross_compiling" = yes ||
 
19189
         $as_test_x conftest$ac_exeext
 
19190
       }; then
 
19191
 
 
19192
lt_aix_libpath_sed='
 
19193
    /Import File Strings/,/^$/ {
 
19194
        /^0/ {
 
19195
            s/^0  *\(.*\)$/\1/
 
19196
            p
 
19197
        }
 
19198
    }'
 
19199
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
19200
# Check for a 64-bit object if we didn't find anything.
 
19201
if test -z "$aix_libpath"; then
 
19202
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
19203
fi
 
19204
else
 
19205
  $as_echo "$as_me: failed program was:" >&5
 
19206
sed 's/^/| /' conftest.$ac_ext >&5
 
19207
 
 
19208
 
 
19209
fi
 
19210
 
 
19211
rm -rf conftest.dSYM
 
19212
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19213
      conftest$ac_exeext conftest.$ac_ext
 
19214
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
19215
 
 
19216
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
19217
          # Warning - without using the other run time loading flags,
 
19218
          # -berok will link without error, but may produce a broken library.
 
19219
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
19220
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
19221
          # Exported symbols can be pulled into shared objects from archives
 
19222
          whole_archive_flag_spec_GCJ='$convenience'
 
19223
          archive_cmds_need_lc_GCJ=yes
 
19224
          # This is similar to how AIX traditionally builds its shared libraries.
 
19225
          archive_expsym_cmds_GCJ="\$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'
 
19226
        fi
 
19227
      fi
 
19228
      ;;
 
19229
 
 
19230
    amigaos*)
 
19231
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
19232
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19233
      hardcode_minus_L_GCJ=yes
 
19234
      # see comment about different semantics on the GNU ld section
 
19235
      ld_shlibs_GCJ=no
 
19236
      ;;
 
19237
 
 
19238
    bsdi[45]*)
 
19239
      export_dynamic_flag_spec_GCJ=-rdynamic
 
19240
      ;;
 
19241
 
 
19242
    cygwin* | mingw* | pw32*)
 
19243
      # When not using gcc, we currently assume that we are using
 
19244
      # Microsoft Visual C++.
 
19245
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
19246
      # no search path for DLLs.
 
19247
      hardcode_libdir_flag_spec_GCJ=' '
 
19248
      allow_undefined_flag_GCJ=unsupported
 
19249
      # Tell ltmain to make .lib files, not .a files.
 
19250
      libext=lib
 
19251
      # Tell ltmain to make .dll files, not .so files.
 
19252
      shrext_cmds=".dll"
 
19253
      # FIXME: Setting linknames here is a bad hack.
 
19254
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
19255
      # The linker will automatically build a .lib file if we build a DLL.
 
19256
      old_archive_From_new_cmds_GCJ='true'
 
19257
      # FIXME: Should let the user specify the lib program.
 
19258
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
19259
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
19260
      enable_shared_with_static_runtimes_GCJ=yes
 
19261
      ;;
 
19262
 
 
19263
    darwin* | rhapsody*)
 
19264
      case $host_os in
 
19265
        rhapsody* | darwin1.[012])
 
19266
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
19267
         ;;
 
19268
       *) # Darwin 1.3 on
 
19269
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
19270
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
19271
         else
 
19272
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
19273
             10.[012])
 
19274
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
19275
               ;;
 
19276
             10.*)
 
19277
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
19278
               ;;
 
19279
           esac
 
19280
         fi
 
19281
         ;;
 
19282
      esac
 
19283
      archive_cmds_need_lc_GCJ=no
 
19284
      hardcode_direct_GCJ=no
 
19285
      hardcode_automatic_GCJ=yes
 
19286
      hardcode_shlibpath_var_GCJ=unsupported
 
19287
      whole_archive_flag_spec_GCJ=''
 
19288
      link_all_deplibs_GCJ=yes
 
19289
    if test "$GCC" = yes ; then
 
19290
        output_verbose_link_cmd='echo'
 
19291
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
19292
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
19293
        archive_expsym_cmds_GCJ="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}"
 
19294
        module_expsym_cmds_GCJ="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}"
 
19295
    else
 
19296
      case $cc_basename in
 
19297
        xlc*)
 
19298
         output_verbose_link_cmd='echo'
 
19299
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
19300
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
19301
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
19302
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19303
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19304
          ;;
 
19305
       *)
 
19306
         ld_shlibs_GCJ=no
 
19307
          ;;
 
19308
      esac
 
19309
    fi
 
19310
      ;;
 
19311
 
 
19312
    dgux*)
 
19313
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19314
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19315
      hardcode_shlibpath_var_GCJ=no
 
19316
      ;;
 
19317
 
 
19318
    freebsd1*)
 
19319
      ld_shlibs_GCJ=no
 
19320
      ;;
 
19321
 
 
19322
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
19323
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
19324
    # does not break anything, and helps significantly (at the cost of a little
 
19325
    # extra space).
 
19326
    freebsd2.2*)
 
19327
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
19328
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19329
      hardcode_direct_GCJ=yes
 
19330
      hardcode_shlibpath_var_GCJ=no
 
19331
      ;;
 
19332
 
 
19333
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
19334
    freebsd2*)
 
19335
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19336
      hardcode_direct_GCJ=yes
 
19337
      hardcode_minus_L_GCJ=yes
 
19338
      hardcode_shlibpath_var_GCJ=no
 
19339
      ;;
 
19340
 
 
19341
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
19342
    freebsd* | dragonfly*)
 
19343
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
19344
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19345
      hardcode_direct_GCJ=yes
 
19346
      hardcode_shlibpath_var_GCJ=no
 
19347
      ;;
 
19348
 
 
19349
    hpux9*)
 
19350
      if test "$GCC" = yes; then
 
19351
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
19352
      else
 
19353
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
19354
      fi
 
19355
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19356
      hardcode_libdir_separator_GCJ=:
 
19357
      hardcode_direct_GCJ=yes
 
19358
 
 
19359
      # hardcode_minus_L: Not really in the search PATH,
 
19360
      # but as the default location of the library.
 
19361
      hardcode_minus_L_GCJ=yes
 
19362
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
19363
      ;;
 
19364
 
 
19365
    hpux10*)
 
19366
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19367
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
19368
      else
 
19369
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
19370
      fi
 
19371
      if test "$with_gnu_ld" = no; then
 
19372
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19373
        hardcode_libdir_separator_GCJ=:
 
19374
 
 
19375
        hardcode_direct_GCJ=yes
 
19376
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
19377
 
 
19378
        # hardcode_minus_L: Not really in the search PATH,
 
19379
        # but as the default location of the library.
 
19380
        hardcode_minus_L_GCJ=yes
 
19381
      fi
 
19382
      ;;
 
19383
 
 
19384
    hpux11*)
 
19385
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19386
        case $host_cpu in
 
19387
        hppa*64*)
 
19388
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19389
          ;;
 
19390
        ia64*)
 
19391
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
19392
          ;;
 
19393
        *)
 
19394
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
19395
          ;;
 
19396
        esac
 
19397
      else
 
19398
        case $host_cpu in
 
19399
        hppa*64*)
 
19400
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19401
          ;;
 
19402
        ia64*)
 
19403
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
19404
          ;;
 
19405
        *)
 
19406
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
19407
          ;;
 
19408
        esac
 
19409
      fi
 
19410
      if test "$with_gnu_ld" = no; then
 
19411
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19412
        hardcode_libdir_separator_GCJ=:
 
19413
 
 
19414
        case $host_cpu in
 
19415
        hppa*64*|ia64*)
 
19416
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
19417
          hardcode_direct_GCJ=no
 
19418
          hardcode_shlibpath_var_GCJ=no
 
19419
          ;;
 
19420
        *)
 
19421
          hardcode_direct_GCJ=yes
 
19422
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
19423
 
 
19424
          # hardcode_minus_L: Not really in the search PATH,
 
19425
          # but as the default location of the library.
 
19426
          hardcode_minus_L_GCJ=yes
 
19427
          ;;
 
19428
        esac
 
19429
      fi
 
19430
      ;;
 
19431
 
 
19432
    irix5* | irix6* | nonstopux*)
 
19433
      if test "$GCC" = yes; then
 
19434
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
19435
      else
 
19436
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
19437
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
19438
      fi
 
19439
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19440
      hardcode_libdir_separator_GCJ=:
 
19441
      link_all_deplibs_GCJ=yes
 
19442
      ;;
 
19443
 
 
19444
    netbsd* | netbsdelf*-gnu)
 
19445
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19446
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
19447
      else
 
19448
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
19449
      fi
 
19450
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19451
      hardcode_direct_GCJ=yes
 
19452
      hardcode_shlibpath_var_GCJ=no
 
19453
      ;;
 
19454
 
 
19455
    newsos6)
 
19456
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19457
      hardcode_direct_GCJ=yes
 
19458
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19459
      hardcode_libdir_separator_GCJ=:
 
19460
      hardcode_shlibpath_var_GCJ=no
 
19461
      ;;
 
19462
 
 
19463
    openbsd*)
 
19464
      if test -f /usr/libexec/ld.so; then
 
19465
        hardcode_direct_GCJ=yes
 
19466
        hardcode_shlibpath_var_GCJ=no
 
19467
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19468
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
19469
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
19470
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19471
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
19472
        else
 
19473
          case $host_os in
 
19474
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
19475
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19476
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19477
             ;;
 
19478
           *)
 
19479
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
19480
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19481
             ;;
 
19482
          esac
 
19483
        fi
 
19484
      else
 
19485
        ld_shlibs_GCJ=no
 
19486
      fi
 
19487
      ;;
 
19488
 
 
19489
    os2*)
 
19490
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19491
      hardcode_minus_L_GCJ=yes
 
19492
      allow_undefined_flag_GCJ=unsupported
 
19493
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
19494
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
19495
      ;;
 
19496
 
 
19497
    osf3*)
 
19498
      if test "$GCC" = yes; then
 
19499
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19500
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
19501
      else
 
19502
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19503
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
19504
      fi
 
19505
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19506
      hardcode_libdir_separator_GCJ=:
 
19507
      ;;
 
19508
 
 
19509
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
19510
      if test "$GCC" = yes; then
 
19511
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19512
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
19513
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19514
      else
 
19515
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19516
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
19517
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
19518
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
19519
 
 
19520
        # Both c and cxx compiler support -rpath directly
 
19521
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
19522
      fi
 
19523
      hardcode_libdir_separator_GCJ=:
 
19524
      ;;
 
19525
 
 
19526
    solaris*)
 
19527
      no_undefined_flag_GCJ=' -z text'
 
19528
      if test "$GCC" = yes; then
 
19529
        wlarc='${wl}'
 
19530
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19531
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19532
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
19533
      else
 
19534
        wlarc=''
 
19535
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19536
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19537
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19538
      fi
 
19539
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19540
      hardcode_shlibpath_var_GCJ=no
 
19541
      case $host_os in
 
19542
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
19543
      *)
 
19544
        # The compiler driver will combine and reorder linker options,
 
19545
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
19546
        # but is careful enough not to reorder.
 
19547
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
19548
        if test "$GCC" = yes; then
 
19549
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
19550
        else
 
19551
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
19552
        fi
 
19553
        ;;
 
19554
      esac
 
19555
      link_all_deplibs_GCJ=yes
 
19556
      ;;
 
19557
 
 
19558
    sunos4*)
 
19559
      if test "x$host_vendor" = xsequent; then
 
19560
        # Use $CC to link under sequent, because it throws in some extra .o
 
19561
        # files that make .init and .fini sections work.
 
19562
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
19563
      else
 
19564
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
19565
      fi
 
19566
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19567
      hardcode_direct_GCJ=yes
 
19568
      hardcode_minus_L_GCJ=yes
 
19569
      hardcode_shlibpath_var_GCJ=no
 
19570
      ;;
 
19571
 
 
19572
    sysv4)
 
19573
      case $host_vendor in
 
19574
        sni)
 
19575
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19576
          hardcode_direct_GCJ=yes # is this really true???
 
19577
        ;;
 
19578
        siemens)
 
19579
          ## LD is ld it makes a PLAMLIB
 
19580
          ## CC just makes a GrossModule.
 
19581
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19582
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
19583
          hardcode_direct_GCJ=no
 
19584
        ;;
 
19585
        motorola)
 
19586
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19587
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
19588
        ;;
 
19589
      esac
 
19590
      runpath_var='LD_RUN_PATH'
 
19591
      hardcode_shlibpath_var_GCJ=no
 
19592
      ;;
 
19593
 
 
19594
    sysv4.3*)
 
19595
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19596
      hardcode_shlibpath_var_GCJ=no
 
19597
      export_dynamic_flag_spec_GCJ='-Bexport'
 
19598
      ;;
 
19599
 
 
19600
    sysv4*MP*)
 
19601
      if test -d /usr/nec; then
 
19602
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19603
        hardcode_shlibpath_var_GCJ=no
 
19604
        runpath_var=LD_RUN_PATH
 
19605
        hardcode_runpath_var=yes
 
19606
        ld_shlibs_GCJ=yes
 
19607
      fi
 
19608
      ;;
 
19609
 
 
19610
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
19611
      no_undefined_flag_GCJ='${wl}-z,text'
 
19612
      archive_cmds_need_lc_GCJ=no
 
19613
      hardcode_shlibpath_var_GCJ=no
 
19614
      runpath_var='LD_RUN_PATH'
 
19615
 
 
19616
      if test "$GCC" = yes; then
 
19617
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19618
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19619
      else
 
19620
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19621
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19622
      fi
 
19623
      ;;
 
19624
 
 
19625
    sysv5* | sco3.2v5* | sco5v6*)
 
19626
      # Note: We can NOT use -z defs as we might desire, because we do not
 
19627
      # link with -lc, and that would cause any symbols used from libc to
 
19628
      # always be unresolved, which means just about no library would
 
19629
      # ever link correctly.  If we're not using GNU ld we use -z text
 
19630
      # though, which does catch some bad symbols but isn't as heavy-handed
 
19631
      # as -z defs.
 
19632
      no_undefined_flag_GCJ='${wl}-z,text'
 
19633
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
19634
      archive_cmds_need_lc_GCJ=no
 
19635
      hardcode_shlibpath_var_GCJ=no
 
19636
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
19637
      hardcode_libdir_separator_GCJ=':'
 
19638
      link_all_deplibs_GCJ=yes
 
19639
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
19640
      runpath_var='LD_RUN_PATH'
 
19641
 
 
19642
      if test "$GCC" = yes; then
 
19643
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19644
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19645
      else
 
19646
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19647
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19648
      fi
 
19649
      ;;
 
19650
 
 
19651
    uts4*)
 
19652
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19653
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19654
      hardcode_shlibpath_var_GCJ=no
 
19655
      ;;
 
19656
 
 
19657
    *)
 
19658
      ld_shlibs_GCJ=no
 
19659
      ;;
 
19660
    esac
 
19661
  fi
 
19662
 
 
19663
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
19664
$as_echo "$ld_shlibs_GCJ" >&6; }
 
19665
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
19666
 
 
19667
#
 
19668
# Do we need to explicitly link libc?
 
19669
#
 
19670
case "x$archive_cmds_need_lc_GCJ" in
 
19671
x|xyes)
 
19672
  # Assume -lc should be added
 
19673
  archive_cmds_need_lc_GCJ=yes
 
19674
 
 
19675
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
19676
    case $archive_cmds_GCJ in
 
19677
    *'~'*)
 
19678
      # FIXME: we may have to deal with multi-command sequences.
 
19679
      ;;
 
19680
    '$CC '*)
 
19681
      # Test whether the compiler implicitly links with -lc since on some
 
19682
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19683
      # to ld, don't add -lc before -lgcc.
 
19684
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19685
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
19686
      $rm conftest*
 
19687
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19688
 
 
19689
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19690
  (eval $ac_compile) 2>&5
 
19691
  ac_status=$?
 
19692
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19693
  (exit $ac_status); } 2>conftest.err; then
 
19694
        soname=conftest
 
19695
        lib=conftest
 
19696
        libobjs=conftest.$ac_objext
 
19697
        deplibs=
 
19698
        wl=$lt_prog_compiler_wl_GCJ
 
19699
        pic_flag=$lt_prog_compiler_pic_GCJ
 
19700
        compiler_flags=-v
 
19701
        linker_flags=-v
 
19702
        verstring=
 
19703
        output_objdir=.
 
19704
        libname=conftest
 
19705
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
19706
        allow_undefined_flag_GCJ=
 
19707
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19708
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19709
  ac_status=$?
 
19710
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19711
  (exit $ac_status); }
 
19712
        then
 
19713
          archive_cmds_need_lc_GCJ=no
 
19714
        else
 
19715
          archive_cmds_need_lc_GCJ=yes
 
19716
        fi
 
19717
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
19718
      else
 
19719
        cat conftest.err 1>&5
 
19720
      fi
 
19721
      $rm conftest*
 
19722
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
19723
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
19724
      ;;
 
19725
    esac
 
19726
  fi
 
19727
  ;;
 
19728
esac
 
19729
 
 
19730
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19731
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
19732
library_names_spec=
 
19733
libname_spec='lib$name'
 
19734
soname_spec=
 
19735
shrext_cmds=".so"
 
19736
postinstall_cmds=
 
19737
postuninstall_cmds=
 
19738
finish_cmds=
 
19739
finish_eval=
 
19740
shlibpath_var=
 
19741
shlibpath_overrides_runpath=unknown
 
19742
version_type=none
 
19743
dynamic_linker="$host_os ld.so"
 
19744
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19745
 
 
19746
need_lib_prefix=unknown
 
19747
hardcode_into_libs=no
 
19748
 
 
19749
# when you set need_version to no, make sure it does not cause -set_version
 
19750
# flags to be left without arguments
 
19751
need_version=unknown
 
19752
 
 
19753
case $host_os in
 
19754
aix3*)
 
19755
  version_type=linux
 
19756
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19757
  shlibpath_var=LIBPATH
 
19758
 
 
19759
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19760
  soname_spec='${libname}${release}${shared_ext}$major'
 
19761
  ;;
 
19762
 
 
19763
aix[4-9]*)
 
19764
  version_type=linux
 
19765
  need_lib_prefix=no
 
19766
  need_version=no
 
19767
  hardcode_into_libs=yes
 
19768
  if test "$host_cpu" = ia64; then
 
19769
    # AIX 5 supports IA64
 
19770
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19771
    shlibpath_var=LD_LIBRARY_PATH
 
19772
  else
 
19773
    # With GCC up to 2.95.x, collect2 would create an import file
 
19774
    # for dependence libraries.  The import file would start with
 
19775
    # the line `#! .'.  This would cause the generated library to
 
19776
    # depend on `.', always an invalid library.  This was fixed in
 
19777
    # development snapshots of GCC prior to 3.0.
 
19778
    case $host_os in
 
19779
      aix4 | aix4.[01] | aix4.[01].*)
 
19780
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19781
           echo ' yes '
 
19782
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
19783
        :
 
19784
      else
 
19785
        can_build_shared=no
 
19786
      fi
 
19787
      ;;
 
19788
    esac
 
19789
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19790
    # soname into executable. Probably we can add versioning support to
 
19791
    # collect2, so additional links can be useful in future.
 
19792
    if test "$aix_use_runtimelinking" = yes; then
 
19793
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19794
      # instead of lib<name>.a to let people know that these are not
 
19795
      # typical AIX shared libraries.
 
19796
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19797
    else
 
19798
      # We preserve .a as extension for shared libraries through AIX4.2
 
19799
      # and later when we are not doing run time linking.
 
19800
      library_names_spec='${libname}${release}.a $libname.a'
 
19801
      soname_spec='${libname}${release}${shared_ext}$major'
 
19802
    fi
 
19803
    shlibpath_var=LIBPATH
 
19804
  fi
 
19805
  ;;
 
19806
 
 
19807
amigaos*)
 
19808
  library_names_spec='$libname.ixlibrary $libname.a'
 
19809
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19810
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
 
19811
  ;;
 
19812
 
 
19813
beos*)
 
19814
  library_names_spec='${libname}${shared_ext}'
 
19815
  dynamic_linker="$host_os ld.so"
 
19816
  shlibpath_var=LIBRARY_PATH
 
19817
  ;;
 
19818
 
 
19819
bsdi[45]*)
 
19820
  version_type=linux
 
19821
  need_version=no
 
19822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19823
  soname_spec='${libname}${release}${shared_ext}$major'
 
19824
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19825
  shlibpath_var=LD_LIBRARY_PATH
 
19826
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19827
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19828
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19829
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19830
  # libtool to hard-code these into programs
 
19831
  ;;
 
19832
 
 
19833
cygwin* | mingw* | pw32*)
 
19834
  version_type=windows
 
19835
  shrext_cmds=".dll"
 
19836
  need_version=no
 
19837
  need_lib_prefix=no
 
19838
 
 
19839
  case $GCC,$host_os in
 
19840
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19841
    library_names_spec='$libname.dll.a'
 
19842
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19843
    postinstall_cmds='base_file=`basename \${file}`~
 
19844
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19845
      dldir=$destdir/`dirname \$dlpath`~
 
19846
      test -d \$dldir || mkdir -p \$dldir~
 
19847
      $install_prog $dir/$dlname \$dldir/$dlname~
 
19848
      chmod a+x \$dldir/$dlname'
 
19849
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19850
      dlpath=$dir/\$dldll~
 
19851
       $rm \$dlpath'
 
19852
    shlibpath_overrides_runpath=yes
 
19853
 
 
19854
    case $host_os in
 
19855
    cygwin*)
 
19856
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19857
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19858
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19859
      ;;
 
19860
    mingw*)
 
19861
      # MinGW DLLs use traditional 'lib' prefix
 
19862
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19863
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19864
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19865
        # It is most probably a Windows format PATH printed by
 
19866
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19867
        # path with ; separators, and with drive letters. We can handle the
 
19868
        # drive letters (cygwin fileutils understands them), so leave them,
 
19869
        # especially as we might pass files found there to a mingw objdump,
 
19870
        # which wouldn't understand a cygwinified path. Ahh.
 
19871
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19872
      else
 
19873
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19874
      fi
 
19875
      ;;
 
19876
    pw32*)
 
19877
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19878
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19879
      ;;
 
19880
    esac
 
19881
    ;;
 
19882
 
 
19883
  *)
 
19884
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19885
    ;;
 
19886
  esac
 
19887
  dynamic_linker='Win32 ld.exe'
 
19888
  # FIXME: first we should search . and the directory the executable is in
 
19889
  shlibpath_var=PATH
 
19890
  ;;
 
19891
 
 
19892
darwin* | rhapsody*)
 
19893
  dynamic_linker="$host_os dyld"
 
19894
  version_type=darwin
 
19895
  need_lib_prefix=no
 
19896
  need_version=no
 
19897
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19898
  soname_spec='${libname}${release}${major}$shared_ext'
 
19899
  shlibpath_overrides_runpath=yes
 
19900
  shlibpath_var=DYLD_LIBRARY_PATH
 
19901
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
19902
 
 
19903
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19904
  ;;
 
19905
 
 
19906
dgux*)
 
19907
  version_type=linux
 
19908
  need_lib_prefix=no
 
19909
  need_version=no
 
19910
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19911
  soname_spec='${libname}${release}${shared_ext}$major'
 
19912
  shlibpath_var=LD_LIBRARY_PATH
 
19913
  ;;
 
19914
 
 
19915
freebsd1*)
 
19916
  dynamic_linker=no
 
19917
  ;;
 
19918
 
 
19919
freebsd* | dragonfly*)
 
19920
  # DragonFly does not have aout.  When/if they implement a new
 
19921
  # versioning mechanism, adjust this.
 
19922
  if test -x /usr/bin/objformat; then
 
19923
    objformat=`/usr/bin/objformat`
 
19924
  else
 
19925
    case $host_os in
 
19926
    freebsd[123]*) objformat=aout ;;
 
19927
    *) objformat=elf ;;
 
19928
    esac
 
19929
  fi
 
19930
  version_type=freebsd-$objformat
 
19931
  case $version_type in
 
19932
    freebsd-elf*)
 
19933
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19934
      need_version=no
 
19935
      need_lib_prefix=no
 
19936
      ;;
 
19937
    freebsd-*)
 
19938
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19939
      need_version=yes
 
19940
      ;;
 
19941
  esac
 
19942
  shlibpath_var=LD_LIBRARY_PATH
 
19943
  case $host_os in
 
19944
  freebsd2*)
 
19945
    shlibpath_overrides_runpath=yes
 
19946
    ;;
 
19947
  freebsd3.[01]* | freebsdelf3.[01]*)
 
19948
    shlibpath_overrides_runpath=yes
 
19949
    hardcode_into_libs=yes
 
19950
    ;;
 
19951
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
19952
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
19953
    shlibpath_overrides_runpath=no
 
19954
    hardcode_into_libs=yes
 
19955
    ;;
 
19956
  *) # from 4.6 on, and DragonFly
 
19957
    shlibpath_overrides_runpath=yes
 
19958
    hardcode_into_libs=yes
 
19959
    ;;
 
19960
  esac
 
19961
  ;;
 
19962
 
 
19963
gnu*)
 
19964
  version_type=linux
 
19965
  need_lib_prefix=no
 
19966
  need_version=no
 
19967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19968
  soname_spec='${libname}${release}${shared_ext}$major'
 
19969
  shlibpath_var=LD_LIBRARY_PATH
 
19970
  hardcode_into_libs=yes
 
19971
  ;;
 
19972
 
 
19973
hpux9* | hpux10* | hpux11*)
 
19974
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19975
  # link against other versions.
 
19976
  version_type=sunos
 
19977
  need_lib_prefix=no
 
19978
  need_version=no
 
19979
  case $host_cpu in
 
19980
  ia64*)
 
19981
    shrext_cmds='.so'
 
19982
    hardcode_into_libs=yes
 
19983
    dynamic_linker="$host_os dld.so"
 
19984
    shlibpath_var=LD_LIBRARY_PATH
 
19985
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19986
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19987
    soname_spec='${libname}${release}${shared_ext}$major'
 
19988
    if test "X$HPUX_IA64_MODE" = X32; then
 
19989
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19990
    else
 
19991
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19992
    fi
 
19993
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19994
    ;;
 
19995
   hppa*64*)
 
19996
     shrext_cmds='.sl'
 
19997
     hardcode_into_libs=yes
 
19998
     dynamic_linker="$host_os dld.sl"
 
19999
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
20000
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
20001
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20002
     soname_spec='${libname}${release}${shared_ext}$major'
 
20003
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
20004
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
20005
     ;;
 
20006
   *)
 
20007
    shrext_cmds='.sl'
 
20008
    dynamic_linker="$host_os dld.sl"
 
20009
    shlibpath_var=SHLIB_PATH
 
20010
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
20011
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20012
    soname_spec='${libname}${release}${shared_ext}$major'
 
20013
    ;;
 
20014
  esac
 
20015
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
20016
  postinstall_cmds='chmod 555 $lib'
 
20017
  ;;
 
20018
 
 
20019
interix[3-9]*)
 
20020
  version_type=linux
 
20021
  need_lib_prefix=no
 
20022
  need_version=no
 
20023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
20024
  soname_spec='${libname}${release}${shared_ext}$major'
 
20025
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
20026
  shlibpath_var=LD_LIBRARY_PATH
 
20027
  shlibpath_overrides_runpath=no
 
20028
  hardcode_into_libs=yes
 
20029
  ;;
 
20030
 
 
20031
irix5* | irix6* | nonstopux*)
 
20032
  case $host_os in
 
20033
    nonstopux*) version_type=nonstopux ;;
 
20034
    *)
 
20035
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
20036
                version_type=linux
 
20037
        else
 
20038
                version_type=irix
 
20039
        fi ;;
 
20040
  esac
 
20041
  need_lib_prefix=no
 
20042
  need_version=no
 
20043
  soname_spec='${libname}${release}${shared_ext}$major'
 
20044
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
20045
  case $host_os in
 
20046
  irix5* | nonstopux*)
 
20047
    libsuff= shlibsuff=
 
20048
    ;;
 
20049
  *)
 
20050
    case $LD in # libtool.m4 will add one of these switches to LD
 
20051
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
20052
      libsuff= shlibsuff= libmagic=32-bit;;
 
20053
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
20054
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
20055
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
20056
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
20057
    *) libsuff= shlibsuff= libmagic=never-match;;
 
20058
    esac
 
20059
    ;;
 
20060
  esac
 
20061
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
20062
  shlibpath_overrides_runpath=no
 
20063
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
20064
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
20065
  hardcode_into_libs=yes
 
20066
  ;;
 
20067
 
 
20068
# No shared lib support for Linux oldld, aout, or coff.
 
20069
linux*oldld* | linux*aout* | linux*coff*)
 
20070
  dynamic_linker=no
 
20071
  ;;
 
20072
 
 
20073
# This must be Linux ELF.
 
20074
linux* | k*bsd*-gnu)
 
20075
  version_type=linux
 
20076
  need_lib_prefix=no
 
20077
  need_version=no
 
20078
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20079
  soname_spec='${libname}${release}${shared_ext}$major'
 
20080
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
20081
  shlibpath_var=LD_LIBRARY_PATH
 
20082
  shlibpath_overrides_runpath=no
 
20083
  # This implies no fast_install, which is unacceptable.
 
20084
  # Some rework will be needed to allow for fast_install
 
20085
  # before this can be enabled.
 
20086
  hardcode_into_libs=yes
 
20087
 
 
20088
  # Append ld.so.conf contents to the search path
 
20089
  if test -f /etc/ld.so.conf; then
 
20090
    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;/^$/d' | tr '\n' ' '`
 
20091
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
20092
  fi
 
20093
 
 
20094
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
20095
  # powerpc, because MkLinux only supported shared libraries with the
 
20096
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
20097
  # most powerpc-linux boxes support dynamic linking these days and
 
20098
  # people can always --disable-shared, the test was removed, and we
 
20099
  # assume the GNU/Linux dynamic linker is in use.
 
20100
  dynamic_linker='GNU/Linux ld.so'
 
20101
  ;;
 
20102
 
 
20103
netbsdelf*-gnu)
 
20104
  version_type=linux
 
20105
  need_lib_prefix=no
 
20106
  need_version=no
 
20107
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
20108
  soname_spec='${libname}${release}${shared_ext}$major'
 
20109
  shlibpath_var=LD_LIBRARY_PATH
 
20110
  shlibpath_overrides_runpath=no
 
20111
  hardcode_into_libs=yes
 
20112
  dynamic_linker='NetBSD ld.elf_so'
 
20113
  ;;
 
20114
 
 
20115
netbsd*)
 
20116
  version_type=sunos
 
20117
  need_lib_prefix=no
 
20118
  need_version=no
 
20119
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
20120
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20121
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
20122
    dynamic_linker='NetBSD (a.out) ld.so'
 
20123
  else
 
20124
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
20125
    soname_spec='${libname}${release}${shared_ext}$major'
 
20126
    dynamic_linker='NetBSD ld.elf_so'
 
20127
  fi
 
20128
  shlibpath_var=LD_LIBRARY_PATH
 
20129
  shlibpath_overrides_runpath=yes
 
20130
  hardcode_into_libs=yes
 
20131
  ;;
 
20132
 
 
20133
newsos6)
 
20134
  version_type=linux
 
20135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20136
  shlibpath_var=LD_LIBRARY_PATH
 
20137
  shlibpath_overrides_runpath=yes
 
20138
  ;;
 
20139
 
 
20140
nto-qnx*)
 
20141
  version_type=linux
 
20142
  need_lib_prefix=no
 
20143
  need_version=no
 
20144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20145
  soname_spec='${libname}${release}${shared_ext}$major'
 
20146
  shlibpath_var=LD_LIBRARY_PATH
 
20147
  shlibpath_overrides_runpath=yes
 
20148
  ;;
 
20149
 
 
20150
openbsd*)
 
20151
  version_type=sunos
 
20152
  sys_lib_dlsearch_path_spec="/usr/lib"
 
20153
  need_lib_prefix=no
 
20154
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
20155
  case $host_os in
 
20156
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
20157
    *)                         need_version=no  ;;
 
20158
  esac
 
20159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20160
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
20161
  shlibpath_var=LD_LIBRARY_PATH
 
20162
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
20163
    case $host_os in
 
20164
      openbsd2.[89] | openbsd2.[89].*)
 
20165
        shlibpath_overrides_runpath=no
 
20166
        ;;
 
20167
      *)
 
20168
        shlibpath_overrides_runpath=yes
 
20169
        ;;
 
20170
      esac
 
20171
  else
 
20172
    shlibpath_overrides_runpath=yes
 
20173
  fi
 
20174
  ;;
 
20175
 
 
20176
os2*)
 
20177
  libname_spec='$name'
 
20178
  shrext_cmds=".dll"
 
20179
  need_lib_prefix=no
 
20180
  library_names_spec='$libname${shared_ext} $libname.a'
 
20181
  dynamic_linker='OS/2 ld.exe'
 
20182
  shlibpath_var=LIBPATH
 
20183
  ;;
 
20184
 
 
20185
osf3* | osf4* | osf5*)
 
20186
  version_type=osf
 
20187
  need_lib_prefix=no
 
20188
  need_version=no
 
20189
  soname_spec='${libname}${release}${shared_ext}$major'
 
20190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20191
  shlibpath_var=LD_LIBRARY_PATH
 
20192
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
20193
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
20194
  ;;
 
20195
 
 
20196
rdos*)
 
20197
  dynamic_linker=no
 
20198
  ;;
 
20199
 
 
20200
solaris*)
 
20201
  version_type=linux
 
20202
  need_lib_prefix=no
 
20203
  need_version=no
 
20204
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20205
  soname_spec='${libname}${release}${shared_ext}$major'
 
20206
  shlibpath_var=LD_LIBRARY_PATH
 
20207
  shlibpath_overrides_runpath=yes
 
20208
  hardcode_into_libs=yes
 
20209
  # ldd complains unless libraries are executable
 
20210
  postinstall_cmds='chmod +x $lib'
 
20211
  ;;
 
20212
 
 
20213
sunos4*)
 
20214
  version_type=sunos
 
20215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20216
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
20217
  shlibpath_var=LD_LIBRARY_PATH
 
20218
  shlibpath_overrides_runpath=yes
 
20219
  if test "$with_gnu_ld" = yes; then
 
20220
    need_lib_prefix=no
 
20221
  fi
 
20222
  need_version=yes
 
20223
  ;;
 
20224
 
 
20225
sysv4 | sysv4.3*)
 
20226
  version_type=linux
 
20227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20228
  soname_spec='${libname}${release}${shared_ext}$major'
 
20229
  shlibpath_var=LD_LIBRARY_PATH
 
20230
  case $host_vendor in
 
20231
    sni)
 
20232
      shlibpath_overrides_runpath=no
 
20233
      need_lib_prefix=no
 
20234
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
20235
      runpath_var=LD_RUN_PATH
 
20236
      ;;
 
20237
    siemens)
 
20238
      need_lib_prefix=no
 
20239
      ;;
 
20240
    motorola)
 
20241
      need_lib_prefix=no
 
20242
      need_version=no
 
20243
      shlibpath_overrides_runpath=no
 
20244
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
20245
      ;;
 
20246
  esac
 
20247
  ;;
 
20248
 
 
20249
sysv4*MP*)
 
20250
  if test -d /usr/nec ;then
 
20251
    version_type=linux
 
20252
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
20253
    soname_spec='$libname${shared_ext}.$major'
 
20254
    shlibpath_var=LD_LIBRARY_PATH
 
20255
  fi
 
20256
  ;;
 
20257
 
 
20258
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
20259
  version_type=freebsd-elf
 
20260
  need_lib_prefix=no
 
20261
  need_version=no
 
20262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
20263
  soname_spec='${libname}${release}${shared_ext}$major'
 
20264
  shlibpath_var=LD_LIBRARY_PATH
 
20265
  hardcode_into_libs=yes
 
20266
  if test "$with_gnu_ld" = yes; then
 
20267
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
20268
    shlibpath_overrides_runpath=no
 
20269
  else
 
20270
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
20271
    shlibpath_overrides_runpath=yes
 
20272
    case $host_os in
 
20273
      sco3.2v5*)
 
20274
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
20275
        ;;
 
20276
    esac
 
20277
  fi
 
20278
  sys_lib_dlsearch_path_spec='/usr/lib'
 
20279
  ;;
 
20280
 
 
20281
uts4*)
 
20282
  version_type=linux
 
20283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20284
  soname_spec='${libname}${release}${shared_ext}$major'
 
20285
  shlibpath_var=LD_LIBRARY_PATH
 
20286
  ;;
 
20287
 
 
20288
*)
 
20289
  dynamic_linker=no
 
20290
  ;;
 
20291
esac
 
20292
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
20293
$as_echo "$dynamic_linker" >&6; }
 
20294
test "$dynamic_linker" = no && can_build_shared=no
 
20295
 
 
20296
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
20297
  $as_echo_n "(cached) " >&6
 
20298
else
 
20299
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
20300
fi
 
20301
 
 
20302
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
20303
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
20304
  $as_echo_n "(cached) " >&6
 
20305
else
 
20306
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
20307
fi
 
20308
 
 
20309
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
20310
 
 
20311
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
20312
if test "$GCC" = yes; then
 
20313
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
20314
fi
 
20315
 
 
20316
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
20317
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
20318
hardcode_action_GCJ=
 
20319
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
20320
   test -n "$runpath_var_GCJ" || \
 
20321
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
20322
 
 
20323
  # We can hardcode non-existant directories.
 
20324
  if test "$hardcode_direct_GCJ" != no &&
 
20325
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
20326
     # have to relink, otherwise we might link with an installed library
 
20327
     # when we should be linking with a yet-to-be-installed one
 
20328
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
20329
     test "$hardcode_minus_L_GCJ" != no; then
 
20330
    # Linking always hardcodes the temporary library directory.
 
20331
    hardcode_action_GCJ=relink
 
20332
  else
 
20333
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
20334
    hardcode_action_GCJ=immediate
 
20335
  fi
 
20336
else
 
20337
  # We cannot hardcode anything, or else we can only hardcode existing
 
20338
  # directories.
 
20339
  hardcode_action_GCJ=unsupported
 
20340
fi
 
20341
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
20342
$as_echo "$hardcode_action_GCJ" >&6; }
 
20343
 
 
20344
if test "$hardcode_action_GCJ" = relink; then
 
20345
  # Fast installation is not supported
 
20346
  enable_fast_install=no
 
20347
elif test "$shlibpath_overrides_runpath" = yes ||
 
20348
     test "$enable_shared" = no; then
 
20349
  # Fast installation is not necessary
 
20350
  enable_fast_install=needless
 
20351
fi
 
20352
 
 
20353
 
 
20354
# The else clause should only fire when bootstrapping the
 
20355
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20356
# with your package, and you will get complaints that there are
 
20357
# no rules to generate ltmain.sh.
 
20358
if test -f "$ltmain"; then
 
20359
  # See if we are running on zsh, and set the options which allow our commands through
 
20360
  # without removal of \ escapes.
 
20361
  if test -n "${ZSH_VERSION+set}" ; then
 
20362
    setopt NO_GLOB_SUBST
 
20363
  fi
 
20364
  # Now quote all the things that may contain metacharacters while being
 
20365
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20366
  # variables and quote the copies for generation of the libtool script.
 
20367
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
20368
    SED SHELL STRIP \
 
20369
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20370
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20371
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20372
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20373
    lt_cv_sys_global_symbol_to_c_name_address \
 
20374
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20375
    old_postinstall_cmds old_postuninstall_cmds \
 
20376
    compiler_GCJ \
 
20377
    CC_GCJ \
 
20378
    LD_GCJ \
 
20379
    lt_prog_compiler_wl_GCJ \
 
20380
    lt_prog_compiler_pic_GCJ \
 
20381
    lt_prog_compiler_static_GCJ \
 
20382
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20383
    export_dynamic_flag_spec_GCJ \
 
20384
    thread_safe_flag_spec_GCJ \
 
20385
    whole_archive_flag_spec_GCJ \
 
20386
    enable_shared_with_static_runtimes_GCJ \
 
20387
    old_archive_cmds_GCJ \
 
20388
    old_archive_from_new_cmds_GCJ \
 
20389
    predep_objects_GCJ \
 
20390
    postdep_objects_GCJ \
 
20391
    predeps_GCJ \
 
20392
    postdeps_GCJ \
 
20393
    compiler_lib_search_path_GCJ \
 
20394
    compiler_lib_search_dirs_GCJ \
 
20395
    archive_cmds_GCJ \
 
20396
    archive_expsym_cmds_GCJ \
 
20397
    postinstall_cmds_GCJ \
 
20398
    postuninstall_cmds_GCJ \
 
20399
    old_archive_from_expsyms_cmds_GCJ \
 
20400
    allow_undefined_flag_GCJ \
 
20401
    no_undefined_flag_GCJ \
 
20402
    export_symbols_cmds_GCJ \
 
20403
    hardcode_libdir_flag_spec_GCJ \
 
20404
    hardcode_libdir_flag_spec_ld_GCJ \
 
20405
    hardcode_libdir_separator_GCJ \
 
20406
    hardcode_automatic_GCJ \
 
20407
    module_cmds_GCJ \
 
20408
    module_expsym_cmds_GCJ \
 
20409
    lt_cv_prog_compiler_c_o_GCJ \
 
20410
    fix_srcfile_path_GCJ \
 
20411
    exclude_expsyms_GCJ \
 
20412
    include_expsyms_GCJ; do
 
20413
 
 
20414
    case $var in
 
20415
    old_archive_cmds_GCJ | \
 
20416
    old_archive_from_new_cmds_GCJ | \
 
20417
    archive_cmds_GCJ | \
 
20418
    archive_expsym_cmds_GCJ | \
 
20419
    module_cmds_GCJ | \
 
20420
    module_expsym_cmds_GCJ | \
 
20421
    old_archive_from_expsyms_cmds_GCJ | \
 
20422
    export_symbols_cmds_GCJ | \
 
20423
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20424
    postinstall_cmds | postuninstall_cmds | \
 
20425
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20426
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20427
      # Double-quote double-evaled strings.
 
20428
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20429
      ;;
 
20430
    *)
 
20431
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20432
      ;;
 
20433
    esac
 
20434
  done
 
20435
 
 
20436
  case $lt_echo in
 
20437
  *'\$0 --fallback-echo"')
 
20438
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20439
    ;;
 
20440
  esac
 
20441
 
 
20442
cfgfile="$ofile"
 
20443
 
 
20444
  cat <<__EOF__ >> "$cfgfile"
 
20445
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20446
 
 
20447
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20448
 
 
20449
# Shell to use when invoking shell scripts.
 
20450
SHELL=$lt_SHELL
 
20451
 
 
20452
# Whether or not to build shared libraries.
 
20453
build_libtool_libs=$enable_shared
 
20454
 
 
20455
# Whether or not to build static libraries.
 
20456
build_old_libs=$enable_static
 
20457
 
 
20458
# Whether or not to add -lc for building shared libraries.
 
20459
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
20460
 
 
20461
# Whether or not to disallow shared libs when runtime libs are static
 
20462
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
20463
 
 
20464
# Whether or not to optimize for fast installation.
 
20465
fast_install=$enable_fast_install
 
20466
 
 
20467
# The host system.
 
20468
host_alias=$host_alias
 
20469
host=$host
 
20470
host_os=$host_os
 
20471
 
 
20472
# The build system.
 
20473
build_alias=$build_alias
 
20474
build=$build
 
20475
build_os=$build_os
 
20476
 
 
20477
# An echo program that does not interpret backslashes.
 
20478
echo=$lt_echo
 
20479
 
 
20480
# The archiver.
 
20481
AR=$lt_AR
 
20482
AR_FLAGS=$lt_AR_FLAGS
 
20483
 
 
20484
# A C compiler.
 
20485
LTCC=$lt_LTCC
 
20486
 
 
20487
# LTCC compiler flags.
 
20488
LTCFLAGS=$lt_LTCFLAGS
 
20489
 
 
20490
# A language-specific compiler.
 
20491
CC=$lt_compiler_GCJ
 
20492
 
 
20493
# Is the compiler the GNU C compiler?
 
20494
with_gcc=$GCC_GCJ
 
20495
 
 
20496
# An ERE matcher.
 
20497
EGREP=$lt_EGREP
 
20498
 
 
20499
# The linker used to build libraries.
 
20500
LD=$lt_LD_GCJ
 
20501
 
 
20502
# Whether we need hard or soft links.
 
20503
LN_S=$lt_LN_S
 
20504
 
 
20505
# A BSD-compatible nm program.
 
20506
NM=$lt_NM
 
20507
 
 
20508
# A symbol stripping program
 
20509
STRIP=$lt_STRIP
 
20510
 
 
20511
# Used to examine libraries when file_magic_cmd begins "file"
 
20512
MAGIC_CMD=$MAGIC_CMD
 
20513
 
 
20514
# Used on cygwin: DLL creation program.
 
20515
DLLTOOL="$DLLTOOL"
 
20516
 
 
20517
# Used on cygwin: object dumper.
 
20518
OBJDUMP="$OBJDUMP"
 
20519
 
 
20520
# Used on cygwin: assembler.
 
20521
AS="$AS"
 
20522
 
 
20523
# The name of the directory that contains temporary libtool files.
 
20524
objdir=$objdir
 
20525
 
 
20526
# How to create reloadable object files.
 
20527
reload_flag=$lt_reload_flag
 
20528
reload_cmds=$lt_reload_cmds
 
20529
 
 
20530
# How to pass a linker flag through the compiler.
 
20531
wl=$lt_lt_prog_compiler_wl_GCJ
 
20532
 
 
20533
# Object file suffix (normally "o").
 
20534
objext="$ac_objext"
 
20535
 
 
20536
# Old archive suffix (normally "a").
 
20537
libext="$libext"
 
20538
 
 
20539
# Shared library suffix (normally ".so").
 
20540
shrext_cmds='$shrext_cmds'
 
20541
 
 
20542
# Executable file suffix (normally "").
 
20543
exeext="$exeext"
 
20544
 
 
20545
# Additional compiler flags for building library objects.
 
20546
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
20547
pic_mode=$pic_mode
 
20548
 
 
20549
# What is the maximum length of a command?
 
20550
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20551
 
 
20552
# Does compiler simultaneously support -c and -o options?
 
20553
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
20554
 
 
20555
# Must we lock files when doing compilation?
 
20556
need_locks=$lt_need_locks
 
20557
 
 
20558
# Do we need the lib prefix for modules?
 
20559
need_lib_prefix=$need_lib_prefix
 
20560
 
 
20561
# Do we need a version for libraries?
 
20562
need_version=$need_version
 
20563
 
 
20564
# Whether dlopen is supported.
 
20565
dlopen_support=$enable_dlopen
 
20566
 
 
20567
# Whether dlopen of programs is supported.
 
20568
dlopen_self=$enable_dlopen_self
 
20569
 
 
20570
# Whether dlopen of statically linked programs is supported.
 
20571
dlopen_self_static=$enable_dlopen_self_static
 
20572
 
 
20573
# Compiler flag to prevent dynamic linking.
 
20574
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
20575
 
 
20576
# Compiler flag to turn off builtin functions.
 
20577
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
20578
 
 
20579
# Compiler flag to allow reflexive dlopens.
 
20580
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
20581
 
 
20582
# Compiler flag to generate shared objects directly from archives.
 
20583
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
20584
 
 
20585
# Compiler flag to generate thread-safe objects.
 
20586
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
20587
 
 
20588
# Library versioning type.
 
20589
version_type=$version_type
 
20590
 
 
20591
# Format of library name prefix.
 
20592
libname_spec=$lt_libname_spec
 
20593
 
 
20594
# List of archive names.  First name is the real one, the rest are links.
 
20595
# The last name is the one that the linker finds with -lNAME.
 
20596
library_names_spec=$lt_library_names_spec
 
20597
 
 
20598
# The coded name of the library, if different from the real name.
 
20599
soname_spec=$lt_soname_spec
 
20600
 
 
20601
# Commands used to build and install an old-style archive.
 
20602
RANLIB=$lt_RANLIB
 
20603
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
20604
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20605
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20606
 
 
20607
# Create an old-style archive from a shared archive.
 
20608
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
20609
 
 
20610
# Create a temporary old-style archive to link instead of a shared archive.
 
20611
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
20612
 
 
20613
# Commands used to build and install a shared archive.
 
20614
archive_cmds=$lt_archive_cmds_GCJ
 
20615
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
20616
postinstall_cmds=$lt_postinstall_cmds
 
20617
postuninstall_cmds=$lt_postuninstall_cmds
 
20618
 
 
20619
# Commands used to build a loadable module (assumed same as above if empty)
 
20620
module_cmds=$lt_module_cmds_GCJ
 
20621
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
20622
 
 
20623
# Commands to strip libraries.
 
20624
old_striplib=$lt_old_striplib
 
20625
striplib=$lt_striplib
 
20626
 
 
20627
# Dependencies to place before the objects being linked to create a
 
20628
# shared library.
 
20629
predep_objects=$lt_predep_objects_GCJ
 
20630
 
 
20631
# Dependencies to place after the objects being linked to create a
 
20632
# shared library.
 
20633
postdep_objects=$lt_postdep_objects_GCJ
 
20634
 
 
20635
# Dependencies to place before the objects being linked to create a
 
20636
# shared library.
 
20637
predeps=$lt_predeps_GCJ
 
20638
 
 
20639
# Dependencies to place after the objects being linked to create a
 
20640
# shared library.
 
20641
postdeps=$lt_postdeps_GCJ
 
20642
 
 
20643
# The directories searched by this compiler when creating a shared
 
20644
# library
 
20645
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
20646
 
 
20647
# The library search path used internally by the compiler when linking
 
20648
# a shared library.
 
20649
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
20650
 
 
20651
# Method to check whether dependent libraries are shared objects.
 
20652
deplibs_check_method=$lt_deplibs_check_method
 
20653
 
 
20654
# Command to use when deplibs_check_method == file_magic.
 
20655
file_magic_cmd=$lt_file_magic_cmd
 
20656
 
 
20657
# Flag that allows shared libraries with undefined symbols to be built.
 
20658
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
20659
 
 
20660
# Flag that forces no undefined symbols.
 
20661
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
20662
 
 
20663
# Commands used to finish a libtool library installation in a directory.
 
20664
finish_cmds=$lt_finish_cmds
 
20665
 
 
20666
# Same as above, but a single script fragment to be evaled but not shown.
 
20667
finish_eval=$lt_finish_eval
 
20668
 
 
20669
# Take the output of nm and produce a listing of raw symbols and C names.
 
20670
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20671
 
 
20672
# Transform the output of nm in a proper C declaration
 
20673
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20674
 
 
20675
# Transform the output of nm in a C name address pair
 
20676
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20677
 
 
20678
# This is the shared library runtime path variable.
 
20679
runpath_var=$runpath_var
 
20680
 
 
20681
# This is the shared library path variable.
 
20682
shlibpath_var=$shlibpath_var
 
20683
 
 
20684
# Is shlibpath searched before the hard-coded library search path?
 
20685
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20686
 
 
20687
# How to hardcode a shared library path into an executable.
 
20688
hardcode_action=$hardcode_action_GCJ
 
20689
 
 
20690
# Whether we should hardcode library paths into libraries.
 
20691
hardcode_into_libs=$hardcode_into_libs
 
20692
 
 
20693
# Flag to hardcode \$libdir into a binary during linking.
 
20694
# This must work even if \$libdir does not exist.
 
20695
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
20696
 
 
20697
# If ld is used when linking, flag to hardcode \$libdir into
 
20698
# a binary during linking. This must work even if \$libdir does
 
20699
# not exist.
 
20700
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20701
 
 
20702
# Whether we need a single -rpath flag with a separated argument.
 
20703
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
20704
 
 
20705
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20706
# resulting binary.
 
20707
hardcode_direct=$hardcode_direct_GCJ
 
20708
 
 
20709
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20710
# resulting binary.
 
20711
hardcode_minus_L=$hardcode_minus_L_GCJ
 
20712
 
 
20713
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20714
# the resulting binary.
 
20715
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
20716
 
 
20717
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20718
# and all subsequent libraries and executables linked against it.
 
20719
hardcode_automatic=$hardcode_automatic_GCJ
 
20720
 
 
20721
# Variables whose values should be saved in libtool wrapper scripts and
 
20722
# restored at relink time.
 
20723
variables_saved_for_relink="$variables_saved_for_relink"
 
20724
 
 
20725
# Whether libtool must link a program against all its dependency libraries.
 
20726
link_all_deplibs=$link_all_deplibs_GCJ
 
20727
 
 
20728
# Compile-time system search path for libraries
 
20729
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20730
 
 
20731
# Run-time system search path for libraries
 
20732
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20733
 
 
20734
# Fix the shell variable \$srcfile for the compiler.
 
20735
fix_srcfile_path=$lt_fix_srcfile_path
 
20736
 
 
20737
# Set to yes if exported symbols are required.
 
20738
always_export_symbols=$always_export_symbols_GCJ
 
20739
 
 
20740
# The commands to list exported symbols.
 
20741
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
20742
 
 
20743
# The commands to extract the exported symbol list from a shared archive.
 
20744
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20745
 
 
20746
# Symbols that should not be listed in the preloaded symbols.
 
20747
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
20748
 
 
20749
# Symbols that must always be exported.
 
20750
include_expsyms=$lt_include_expsyms_GCJ
 
20751
 
 
20752
# ### END LIBTOOL TAG CONFIG: $tagname
 
20753
 
 
20754
__EOF__
 
20755
 
 
20756
 
 
20757
else
 
20758
  # If there is no Makefile yet, we rely on a make rule to execute
 
20759
  # `config.status --recheck' to rerun these tests and create the
 
20760
  # libtool script then.
 
20761
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20762
  if test -f "$ltmain_in"; then
 
20763
    test -f Makefile && make "$ltmain"
 
20764
  fi
 
20765
fi
 
20766
 
 
20767
 
 
20768
ac_ext=c
 
20769
ac_cpp='$CPP $CPPFLAGS'
 
20770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20773
 
 
20774
CC="$lt_save_CC"
 
20775
 
 
20776
        else
 
20777
          tagname=""
 
20778
        fi
 
20779
        ;;
 
20780
 
 
20781
      RC)
 
20782
 
 
20783
 
 
20784
# Source file extension for RC test sources.
 
20785
ac_ext=rc
 
20786
 
 
20787
# Object file extension for compiled RC test sources.
 
20788
objext=o
 
20789
objext_RC=$objext
 
20790
 
 
20791
# Code to be used in simple compile tests
 
20792
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
20793
 
 
20794
# Code to be used in simple link tests
 
20795
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
20796
 
 
20797
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20798
 
 
20799
# If no C compiler was specified, use CC.
 
20800
LTCC=${LTCC-"$CC"}
 
20801
 
 
20802
# If no C compiler flags were specified, use CFLAGS.
 
20803
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
20804
 
 
20805
# Allow CC to be a program name with arguments.
 
20806
compiler=$CC
 
20807
 
 
20808
 
 
20809
# save warnings/boilerplate of simple test code
 
20810
ac_outfile=conftest.$ac_objext
 
20811
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
20812
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
20813
_lt_compiler_boilerplate=`cat conftest.err`
 
20814
$rm conftest*
 
20815
 
 
20816
ac_outfile=conftest.$ac_objext
 
20817
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
20818
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
20819
_lt_linker_boilerplate=`cat conftest.err`
 
20820
$rm -r conftest*
 
20821
 
 
20822
 
 
20823
# Allow CC to be a program name with arguments.
 
20824
lt_save_CC="$CC"
 
20825
CC=${RC-"windres"}
 
20826
compiler=$CC
 
20827
compiler_RC=$CC
 
20828
for cc_temp in $compiler""; do
 
20829
  case $cc_temp in
 
20830
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
20831
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
20832
    \-*) ;;
 
20833
    *) break;;
 
20834
  esac
 
20835
done
 
20836
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
20837
 
 
20838
lt_cv_prog_compiler_c_o_RC=yes
 
20839
 
 
20840
# The else clause should only fire when bootstrapping the
 
20841
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20842
# with your package, and you will get complaints that there are
 
20843
# no rules to generate ltmain.sh.
 
20844
if test -f "$ltmain"; then
 
20845
  # See if we are running on zsh, and set the options which allow our commands through
 
20846
  # without removal of \ escapes.
 
20847
  if test -n "${ZSH_VERSION+set}" ; then
 
20848
    setopt NO_GLOB_SUBST
 
20849
  fi
 
20850
  # Now quote all the things that may contain metacharacters while being
 
20851
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20852
  # variables and quote the copies for generation of the libtool script.
 
20853
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
20854
    SED SHELL STRIP \
 
20855
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20856
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20857
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20858
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20859
    lt_cv_sys_global_symbol_to_c_name_address \
 
20860
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20861
    old_postinstall_cmds old_postuninstall_cmds \
 
20862
    compiler_RC \
 
20863
    CC_RC \
 
20864
    LD_RC \
 
20865
    lt_prog_compiler_wl_RC \
 
20866
    lt_prog_compiler_pic_RC \
 
20867
    lt_prog_compiler_static_RC \
 
20868
    lt_prog_compiler_no_builtin_flag_RC \
 
20869
    export_dynamic_flag_spec_RC \
 
20870
    thread_safe_flag_spec_RC \
 
20871
    whole_archive_flag_spec_RC \
 
20872
    enable_shared_with_static_runtimes_RC \
 
20873
    old_archive_cmds_RC \
 
20874
    old_archive_from_new_cmds_RC \
 
20875
    predep_objects_RC \
 
20876
    postdep_objects_RC \
 
20877
    predeps_RC \
 
20878
    postdeps_RC \
 
20879
    compiler_lib_search_path_RC \
 
20880
    compiler_lib_search_dirs_RC \
 
20881
    archive_cmds_RC \
 
20882
    archive_expsym_cmds_RC \
 
20883
    postinstall_cmds_RC \
 
20884
    postuninstall_cmds_RC \
 
20885
    old_archive_from_expsyms_cmds_RC \
 
20886
    allow_undefined_flag_RC \
 
20887
    no_undefined_flag_RC \
 
20888
    export_symbols_cmds_RC \
 
20889
    hardcode_libdir_flag_spec_RC \
 
20890
    hardcode_libdir_flag_spec_ld_RC \
 
20891
    hardcode_libdir_separator_RC \
 
20892
    hardcode_automatic_RC \
 
20893
    module_cmds_RC \
 
20894
    module_expsym_cmds_RC \
 
20895
    lt_cv_prog_compiler_c_o_RC \
 
20896
    fix_srcfile_path_RC \
 
20897
    exclude_expsyms_RC \
 
20898
    include_expsyms_RC; do
 
20899
 
 
20900
    case $var in
 
20901
    old_archive_cmds_RC | \
 
20902
    old_archive_from_new_cmds_RC | \
 
20903
    archive_cmds_RC | \
 
20904
    archive_expsym_cmds_RC | \
 
20905
    module_cmds_RC | \
 
20906
    module_expsym_cmds_RC | \
 
20907
    old_archive_from_expsyms_cmds_RC | \
 
20908
    export_symbols_cmds_RC | \
 
20909
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20910
    postinstall_cmds | postuninstall_cmds | \
 
20911
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20912
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20913
      # Double-quote double-evaled strings.
 
20914
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20915
      ;;
 
20916
    *)
 
20917
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20918
      ;;
 
20919
    esac
 
20920
  done
 
20921
 
 
20922
  case $lt_echo in
 
20923
  *'\$0 --fallback-echo"')
 
20924
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20925
    ;;
 
20926
  esac
 
20927
 
 
20928
cfgfile="$ofile"
 
20929
 
 
20930
  cat <<__EOF__ >> "$cfgfile"
 
20931
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20932
 
 
20933
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20934
 
 
20935
# Shell to use when invoking shell scripts.
 
20936
SHELL=$lt_SHELL
 
20937
 
 
20938
# Whether or not to build shared libraries.
 
20939
build_libtool_libs=$enable_shared
 
20940
 
 
20941
# Whether or not to build static libraries.
 
20942
build_old_libs=$enable_static
 
20943
 
 
20944
# Whether or not to add -lc for building shared libraries.
 
20945
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20946
 
 
20947
# Whether or not to disallow shared libs when runtime libs are static
 
20948
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20949
 
 
20950
# Whether or not to optimize for fast installation.
 
20951
fast_install=$enable_fast_install
 
20952
 
 
20953
# The host system.
 
20954
host_alias=$host_alias
 
20955
host=$host
 
20956
host_os=$host_os
 
20957
 
 
20958
# The build system.
 
20959
build_alias=$build_alias
 
20960
build=$build
 
20961
build_os=$build_os
 
20962
 
 
20963
# An echo program that does not interpret backslashes.
 
20964
echo=$lt_echo
 
20965
 
 
20966
# The archiver.
 
20967
AR=$lt_AR
 
20968
AR_FLAGS=$lt_AR_FLAGS
 
20969
 
 
20970
# A C compiler.
 
20971
LTCC=$lt_LTCC
 
20972
 
 
20973
# LTCC compiler flags.
 
20974
LTCFLAGS=$lt_LTCFLAGS
 
20975
 
 
20976
# A language-specific compiler.
 
20977
CC=$lt_compiler_RC
 
20978
 
 
20979
# Is the compiler the GNU C compiler?
 
20980
with_gcc=$GCC_RC
 
20981
 
 
20982
# An ERE matcher.
 
20983
EGREP=$lt_EGREP
 
20984
 
 
20985
# The linker used to build libraries.
 
20986
LD=$lt_LD_RC
 
20987
 
 
20988
# Whether we need hard or soft links.
 
20989
LN_S=$lt_LN_S
 
20990
 
 
20991
# A BSD-compatible nm program.
 
20992
NM=$lt_NM
 
20993
 
 
20994
# A symbol stripping program
 
20995
STRIP=$lt_STRIP
 
20996
 
 
20997
# Used to examine libraries when file_magic_cmd begins "file"
 
20998
MAGIC_CMD=$MAGIC_CMD
 
20999
 
 
21000
# Used on cygwin: DLL creation program.
 
21001
DLLTOOL="$DLLTOOL"
 
21002
 
 
21003
# Used on cygwin: object dumper.
 
21004
OBJDUMP="$OBJDUMP"
 
21005
 
 
21006
# Used on cygwin: assembler.
 
21007
AS="$AS"
 
21008
 
 
21009
# The name of the directory that contains temporary libtool files.
 
21010
objdir=$objdir
 
21011
 
 
21012
# How to create reloadable object files.
 
21013
reload_flag=$lt_reload_flag
 
21014
reload_cmds=$lt_reload_cmds
 
21015
 
 
21016
# How to pass a linker flag through the compiler.
 
21017
wl=$lt_lt_prog_compiler_wl_RC
 
21018
 
 
21019
# Object file suffix (normally "o").
 
21020
objext="$ac_objext"
 
21021
 
 
21022
# Old archive suffix (normally "a").
 
21023
libext="$libext"
 
21024
 
 
21025
# Shared library suffix (normally ".so").
 
21026
shrext_cmds='$shrext_cmds'
 
21027
 
 
21028
# Executable file suffix (normally "").
 
21029
exeext="$exeext"
 
21030
 
 
21031
# Additional compiler flags for building library objects.
 
21032
pic_flag=$lt_lt_prog_compiler_pic_RC
 
21033
pic_mode=$pic_mode
 
21034
 
 
21035
# What is the maximum length of a command?
 
21036
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21037
 
 
21038
# Does compiler simultaneously support -c and -o options?
 
21039
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
21040
 
 
21041
# Must we lock files when doing compilation?
 
21042
need_locks=$lt_need_locks
 
21043
 
 
21044
# Do we need the lib prefix for modules?
 
21045
need_lib_prefix=$need_lib_prefix
 
21046
 
 
21047
# Do we need a version for libraries?
 
21048
need_version=$need_version
 
21049
 
 
21050
# Whether dlopen is supported.
 
21051
dlopen_support=$enable_dlopen
 
21052
 
 
21053
# Whether dlopen of programs is supported.
 
21054
dlopen_self=$enable_dlopen_self
 
21055
 
 
21056
# Whether dlopen of statically linked programs is supported.
 
21057
dlopen_self_static=$enable_dlopen_self_static
 
21058
 
 
21059
# Compiler flag to prevent dynamic linking.
 
21060
link_static_flag=$lt_lt_prog_compiler_static_RC
 
21061
 
 
21062
# Compiler flag to turn off builtin functions.
 
21063
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
21064
 
 
21065
# Compiler flag to allow reflexive dlopens.
 
21066
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
21067
 
 
21068
# Compiler flag to generate shared objects directly from archives.
 
21069
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
21070
 
 
21071
# Compiler flag to generate thread-safe objects.
 
21072
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
21073
 
 
21074
# Library versioning type.
 
21075
version_type=$version_type
 
21076
 
 
21077
# Format of library name prefix.
 
21078
libname_spec=$lt_libname_spec
 
21079
 
 
21080
# List of archive names.  First name is the real one, the rest are links.
 
21081
# The last name is the one that the linker finds with -lNAME.
 
21082
library_names_spec=$lt_library_names_spec
 
21083
 
 
21084
# The coded name of the library, if different from the real name.
 
21085
soname_spec=$lt_soname_spec
 
21086
 
 
21087
# Commands used to build and install an old-style archive.
 
21088
RANLIB=$lt_RANLIB
 
21089
old_archive_cmds=$lt_old_archive_cmds_RC
 
21090
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21091
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21092
 
 
21093
# Create an old-style archive from a shared archive.
 
21094
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
21095
 
 
21096
# Create a temporary old-style archive to link instead of a shared archive.
 
21097
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
21098
 
 
21099
# Commands used to build and install a shared archive.
 
21100
archive_cmds=$lt_archive_cmds_RC
 
21101
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
21102
postinstall_cmds=$lt_postinstall_cmds
 
21103
postuninstall_cmds=$lt_postuninstall_cmds
 
21104
 
 
21105
# Commands used to build a loadable module (assumed same as above if empty)
 
21106
module_cmds=$lt_module_cmds_RC
 
21107
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
21108
 
 
21109
# Commands to strip libraries.
 
21110
old_striplib=$lt_old_striplib
 
21111
striplib=$lt_striplib
 
21112
 
 
21113
# Dependencies to place before the objects being linked to create a
 
21114
# shared library.
 
21115
predep_objects=$lt_predep_objects_RC
 
21116
 
 
21117
# Dependencies to place after the objects being linked to create a
 
21118
# shared library.
 
21119
postdep_objects=$lt_postdep_objects_RC
 
21120
 
 
21121
# Dependencies to place before the objects being linked to create a
 
21122
# shared library.
 
21123
predeps=$lt_predeps_RC
 
21124
 
 
21125
# Dependencies to place after the objects being linked to create a
 
21126
# shared library.
 
21127
postdeps=$lt_postdeps_RC
 
21128
 
 
21129
# The directories searched by this compiler when creating a shared
 
21130
# library
 
21131
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
21132
 
 
21133
# The library search path used internally by the compiler when linking
 
21134
# a shared library.
 
21135
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
21136
 
 
21137
# Method to check whether dependent libraries are shared objects.
 
21138
deplibs_check_method=$lt_deplibs_check_method
 
21139
 
 
21140
# Command to use when deplibs_check_method == file_magic.
 
21141
file_magic_cmd=$lt_file_magic_cmd
 
21142
 
 
21143
# Flag that allows shared libraries with undefined symbols to be built.
 
21144
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
21145
 
 
21146
# Flag that forces no undefined symbols.
 
21147
no_undefined_flag=$lt_no_undefined_flag_RC
 
21148
 
 
21149
# Commands used to finish a libtool library installation in a directory.
 
21150
finish_cmds=$lt_finish_cmds
 
21151
 
 
21152
# Same as above, but a single script fragment to be evaled but not shown.
 
21153
finish_eval=$lt_finish_eval
 
21154
 
 
21155
# Take the output of nm and produce a listing of raw symbols and C names.
 
21156
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21157
 
 
21158
# Transform the output of nm in a proper C declaration
 
21159
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21160
 
 
21161
# Transform the output of nm in a C name address pair
 
21162
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21163
 
 
21164
# This is the shared library runtime path variable.
 
21165
runpath_var=$runpath_var
 
21166
 
 
21167
# This is the shared library path variable.
 
21168
shlibpath_var=$shlibpath_var
 
21169
 
 
21170
# Is shlibpath searched before the hard-coded library search path?
 
21171
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21172
 
 
21173
# How to hardcode a shared library path into an executable.
 
21174
hardcode_action=$hardcode_action_RC
 
21175
 
 
21176
# Whether we should hardcode library paths into libraries.
 
21177
hardcode_into_libs=$hardcode_into_libs
 
21178
 
 
21179
# Flag to hardcode \$libdir into a binary during linking.
 
21180
# This must work even if \$libdir does not exist.
 
21181
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
21182
 
 
21183
# If ld is used when linking, flag to hardcode \$libdir into
 
21184
# a binary during linking. This must work even if \$libdir does
 
21185
# not exist.
 
21186
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21187
 
 
21188
# Whether we need a single -rpath flag with a separated argument.
 
21189
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
21190
 
 
21191
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21192
# resulting binary.
 
21193
hardcode_direct=$hardcode_direct_RC
 
21194
 
 
21195
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21196
# resulting binary.
 
21197
hardcode_minus_L=$hardcode_minus_L_RC
 
21198
 
 
21199
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21200
# the resulting binary.
 
21201
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
21202
 
 
21203
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21204
# and all subsequent libraries and executables linked against it.
 
21205
hardcode_automatic=$hardcode_automatic_RC
 
21206
 
 
21207
# Variables whose values should be saved in libtool wrapper scripts and
 
21208
# restored at relink time.
 
21209
variables_saved_for_relink="$variables_saved_for_relink"
 
21210
 
 
21211
# Whether libtool must link a program against all its dependency libraries.
 
21212
link_all_deplibs=$link_all_deplibs_RC
 
21213
 
 
21214
# Compile-time system search path for libraries
 
21215
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21216
 
 
21217
# Run-time system search path for libraries
 
21218
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21219
 
 
21220
# Fix the shell variable \$srcfile for the compiler.
 
21221
fix_srcfile_path=$lt_fix_srcfile_path
 
21222
 
 
21223
# Set to yes if exported symbols are required.
 
21224
always_export_symbols=$always_export_symbols_RC
 
21225
 
 
21226
# The commands to list exported symbols.
 
21227
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
21228
 
 
21229
# The commands to extract the exported symbol list from a shared archive.
 
21230
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21231
 
 
21232
# Symbols that should not be listed in the preloaded symbols.
 
21233
exclude_expsyms=$lt_exclude_expsyms_RC
 
21234
 
 
21235
# Symbols that must always be exported.
 
21236
include_expsyms=$lt_include_expsyms_RC
 
21237
 
 
21238
# ### END LIBTOOL TAG CONFIG: $tagname
 
21239
 
 
21240
__EOF__
 
21241
 
 
21242
 
 
21243
else
 
21244
  # If there is no Makefile yet, we rely on a make rule to execute
 
21245
  # `config.status --recheck' to rerun these tests and create the
 
21246
  # libtool script then.
 
21247
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
21248
  if test -f "$ltmain_in"; then
 
21249
    test -f Makefile && make "$ltmain"
 
21250
  fi
 
21251
fi
 
21252
 
 
21253
 
 
21254
ac_ext=c
 
21255
ac_cpp='$CPP $CPPFLAGS'
 
21256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21259
 
 
21260
CC="$lt_save_CC"
 
21261
 
 
21262
        ;;
 
21263
 
 
21264
      *)
 
21265
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
21266
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
21267
   { (exit 1); exit 1; }; }
 
21268
        ;;
 
21269
      esac
 
21270
 
 
21271
      # Append the new tag name to the list of available tags.
 
21272
      if test -n "$tagname" ; then
 
21273
      available_tags="$available_tags $tagname"
 
21274
    fi
 
21275
    fi
 
21276
  done
 
21277
  IFS="$lt_save_ifs"
 
21278
 
 
21279
  # Now substitute the updated list of available tags.
 
21280
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
21281
    mv "${ofile}T" "$ofile"
 
21282
    chmod +x "$ofile"
 
21283
  else
 
21284
    rm -f "${ofile}T"
 
21285
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
21286
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
21287
   { (exit 1); exit 1; }; }
 
21288
  fi
 
21289
fi
 
21290
 
 
21291
 
 
21292
 
 
21293
# This can be used to rebuild libtool when needed
 
21294
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
21295
 
 
21296
# Always use our own libtool.
 
21297
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
21298
 
 
21299
# Prevent multiple expansion
 
21300
 
 
21301
 
 
21302
 
 
21303
 
 
21304
 
 
21305
 
 
21306
 
 
21307
 
 
21308
 
 
21309
 
 
21310
 
 
21311
 
 
21312
 
 
21313
 
 
21314
 
 
21315
 
 
21316
 
 
21317
 
11969
21318
 
11970
21319
 
11971
21320
 
13533
22882
  GNULIB_MKDTEMP=0;
13534
22883
  GNULIB_MKSTEMP=0;
13535
22884
  GNULIB_PUTENV=0;
 
22885
  GNULIB_RPMATCH=0;
13536
22886
  GNULIB_SETENV=0;
13537
22887
  GNULIB_STRTOD=0;
13538
22888
  GNULIB_UNSETENV=0;
13541
22891
  HAVE_MALLOC_POSIX=1;
13542
22892
  HAVE_MKDTEMP=1;
13543
22893
  HAVE_REALLOC_POSIX=1;
 
22894
  HAVE_RPMATCH=1;
13544
22895
  HAVE_SETENV=1;
13545
22896
  HAVE_STRTOD=1;
13546
22897
  HAVE_UNSETENV=1;
14028
23379
  GNULIB_MEMMEM=0;
14029
23380
  GNULIB_MEMPCPY=0;
14030
23381
  GNULIB_MEMRCHR=0;
 
23382
  GNULIB_RAWMEMCHR=0;
14031
23383
  GNULIB_STPCPY=0;
14032
23384
  GNULIB_STPNCPY=0;
14033
23385
  GNULIB_STRCHRNUL=0;
14055
23407
  GNULIB_MBSTOK_R=0;
14056
23408
  GNULIB_STRERROR=0;
14057
23409
  GNULIB_STRSIGNAL=0;
 
23410
  GNULIB_STRVERSCMP=0;
14058
23411
    HAVE_DECL_MEMMEM=1;
14059
23412
  HAVE_MEMPCPY=1;
14060
23413
  HAVE_DECL_MEMRCHR=1;
 
23414
  HAVE_RAWMEMCHR=1;
14061
23415
  HAVE_STPCPY=1;
14062
23416
  HAVE_STPNCPY=1;
14063
23417
  HAVE_STRCHRNUL=1;
14071
23425
  HAVE_DECL_STRTOK_R=1;
14072
23426
  HAVE_DECL_STRERROR=1;
14073
23427
  HAVE_DECL_STRSIGNAL=1;
 
23428
  HAVE_STRVERSCMP=1;
14074
23429
  REPLACE_STRERROR=0;
14075
23430
  REPLACE_STRSIGNAL=0;
14076
23431
  REPLACE_MEMMEM=0;
14330
23685
 
14331
23686
 
14332
23687
 
 
23688
 
 
23689
 
14333
23690
  gl_source_base='gl'
14334
23691
 
14335
23692
 
14342
23699
 
14343
23700
 
14344
23701
 
 
23702
 
14345
23703
  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14346
23704
 
14347
23705
 
14351
23709
 
14352
23710
 
14353
23711
 
 
23712
 
14354
23713
  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14355
23714
 
14356
23715
 
14399
23758
 
14400
23759
 
14401
23760
 
 
23761
 
14402
23762
  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14403
23763
 
14404
23764
    HAVE_MALLOC_POSIX=0
14417
23777
 
14418
23778
 
14419
23779
 
 
23780
 
14420
23781
  gl_LIBOBJS="$gl_LIBOBJS read-file.$ac_objext"
14421
23782
 
14422
23783
  :
14438
23799
 
14439
23800
 
14440
23801
 
 
23802
 
14441
23803
  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
14442
23804
 
14443
23805
    HAVE_REALLOC_POSIX=0
15793
25155
 
15794
25156
 
15795
25157
 
 
25158
 
15796
25159
for ac_func in strdup
15797
25160
do
15798
25161
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16088
25451
 
16089
25452
 
16090
25453
 
 
25454
 
 
25455
 
 
25456
 
 
25457
 
 
25458
 
16091
25459
  gltests_libdeps=
16092
25460
  gltests_ltlibdeps=
16093
25461
 
16096
25464
 
16097
25465
 
16098
25466
 
 
25467
 
 
25468
 
16099
25469
  gl_source_base='tests'
16100
25470
 
16101
25471
 
16103
25473
 
16104
25474
 
16105
25475
 
 
25476
 
 
25477
 
 
25478
 
16106
25479
# For libtasn1-config.
16107
25480
LIBTASN1_LIBS="-L${libdir} -ltasn1 $LIBS"
16108
25481
LIBTASN1_CFLAGS="-I${includedir}"
16346
25719
Usually this means the macro was only invoked conditionally." >&2;}
16347
25720
   { (exit 1); exit 1; }; }
16348
25721
fi
 
25722
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
25723
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
25724
Usually this means the macro was only invoked conditionally." >&5
 
25725
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
25726
Usually this means the macro was only invoked conditionally." >&2;}
 
25727
   { (exit 1); exit 1; }; }
 
25728
fi
16349
25729
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
16350
25730
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
16351
25731
Usually this means the macro was only invoked conditionally." >&5
16728
26108
# report actual input values of CONFIG_FILES etc. instead of their
16729
26109
# values after options handling.
16730
26110
ac_log="
16731
 
This file was extended by libtasn1 $as_me 1.4, which was
 
26111
This file was extended by libtasn1 $as_me 1.5, which was
16732
26112
generated by GNU Autoconf 2.62.  Invocation command line was
16733
26113
 
16734
26114
  CONFIG_FILES    = $CONFIG_FILES
16785
26165
_ACEOF
16786
26166
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16787
26167
ac_cs_version="\\
16788
 
libtasn1 config.status 1.4
 
26168
libtasn1 config.status 1.5
16789
26169
configured by $0, generated by GNU Autoconf 2.62,
16790
26170
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16791
26171
 
16899
26279
# INIT-COMMANDS
16900
26280
#
16901
26281
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16902
 
 
16903
 
 
16904
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
16905
 
# if CDPATH is set.
16906
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16907
 
 
16908
 
sed_quote_subst='$sed_quote_subst'
16909
 
double_quote_subst='$double_quote_subst'
16910
 
delay_variable_subst='$delay_variable_subst'
16911
 
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16912
 
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16913
 
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16914
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16915
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16916
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16917
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16918
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16919
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16920
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16921
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16922
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16923
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16924
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16925
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16926
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16927
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16928
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16929
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16930
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16931
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16932
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16933
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16934
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16935
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16936
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16937
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16938
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16939
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16940
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16941
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16942
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16943
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16944
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16945
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16946
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16947
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16948
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16949
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16950
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16951
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16952
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16953
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16954
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16955
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16956
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16957
 
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16958
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16959
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16960
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16961
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16962
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16963
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16964
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16965
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16966
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16967
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16968
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16969
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16970
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16971
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16972
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16973
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16974
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16975
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16976
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16977
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16978
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16979
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16980
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16981
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16982
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16983
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16984
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16985
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16986
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16987
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16988
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16989
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16990
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16991
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16992
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16993
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16994
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16995
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16996
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16997
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16998
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16999
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17000
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17001
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17002
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17003
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17004
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17005
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17006
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17007
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17008
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17009
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17010
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17011
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17012
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17013
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17014
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17015
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17016
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17017
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17018
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17019
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17020
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17021
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17022
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17023
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17024
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17025
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17026
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17027
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17028
 
 
17029
 
LTCC='$LTCC'
17030
 
LTCFLAGS='$LTCFLAGS'
17031
 
compiler='$compiler_DEFAULT'
17032
 
 
17033
 
# Quote evaled strings.
17034
 
for var in SED \
17035
 
GREP \
17036
 
EGREP \
17037
 
FGREP \
17038
 
LD \
17039
 
NM \
17040
 
LN_S \
17041
 
lt_SP2NL \
17042
 
lt_NL2SP \
17043
 
reload_flag \
17044
 
deplibs_check_method \
17045
 
file_magic_cmd \
17046
 
AR \
17047
 
AR_FLAGS \
17048
 
STRIP \
17049
 
RANLIB \
17050
 
CC \
17051
 
CFLAGS \
17052
 
compiler \
17053
 
lt_cv_sys_global_symbol_pipe \
17054
 
lt_cv_sys_global_symbol_to_cdecl \
17055
 
lt_cv_sys_global_symbol_to_c_name_address \
17056
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17057
 
SHELL \
17058
 
ECHO \
17059
 
lt_prog_compiler_no_builtin_flag \
17060
 
lt_prog_compiler_wl \
17061
 
lt_prog_compiler_pic \
17062
 
lt_prog_compiler_static \
17063
 
lt_cv_prog_compiler_c_o \
17064
 
need_locks \
17065
 
DSYMUTIL \
17066
 
NMEDIT \
17067
 
shrext_cmds \
17068
 
export_dynamic_flag_spec \
17069
 
whole_archive_flag_spec \
17070
 
compiler_needs_object \
17071
 
with_gnu_ld \
17072
 
allow_undefined_flag \
17073
 
no_undefined_flag \
17074
 
hardcode_libdir_flag_spec \
17075
 
hardcode_libdir_flag_spec_ld \
17076
 
hardcode_libdir_separator \
17077
 
fix_srcfile_path \
17078
 
exclude_expsyms \
17079
 
include_expsyms \
17080
 
file_list_spec \
17081
 
variables_saved_for_relink \
17082
 
libname_spec \
17083
 
library_names_spec \
17084
 
soname_spec \
17085
 
finish_eval \
17086
 
old_striplib \
17087
 
striplib; do
17088
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17089
 
    *[\\\\\\\`\\"\\\$]*)
17090
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17091
 
      ;;
17092
 
    *)
17093
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17094
 
      ;;
17095
 
    esac
17096
 
done
17097
 
 
17098
 
# Double-quote double-evaled strings.
17099
 
for var in reload_cmds \
17100
 
old_postinstall_cmds \
17101
 
old_postuninstall_cmds \
17102
 
old_archive_cmds \
17103
 
extract_expsyms_cmds \
17104
 
old_archive_from_new_cmds \
17105
 
old_archive_from_expsyms_cmds \
17106
 
archive_cmds \
17107
 
archive_expsym_cmds \
17108
 
module_cmds \
17109
 
module_expsym_cmds \
17110
 
export_symbols_cmds \
17111
 
prelink_cmds \
17112
 
postinstall_cmds \
17113
 
postuninstall_cmds \
17114
 
finish_cmds \
17115
 
sys_lib_search_path_spec \
17116
 
sys_lib_dlsearch_path_spec; do
17117
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17118
 
    *[\\\\\\\`\\"\\\$]*)
17119
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17120
 
      ;;
17121
 
    *)
17122
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17123
 
      ;;
17124
 
    esac
17125
 
done
17126
 
 
17127
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
17128
 
case \$lt_ECHO in
17129
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17130
 
  ;;
17131
 
esac
17132
 
 
17133
 
ac_aux_dir='$ac_aux_dir'
17134
 
xsi_shell='$xsi_shell'
17135
 
lt_shell_append='$lt_shell_append'
17136
 
 
17137
 
# See if we are running on zsh, and set the options which allow our
17138
 
# commands through without removal of \ escapes INIT.
17139
 
if test -n "\${ZSH_VERSION+set}" ; then
17140
 
   setopt NO_GLOB_SUBST
17141
 
fi
17142
 
 
17143
 
 
17144
 
    PACKAGE='$PACKAGE'
17145
 
    VERSION='$VERSION'
17146
 
    TIMESTAMP='$TIMESTAMP'
17147
 
    RM='$RM'
17148
 
    ofile='$ofile'
17149
 
 
17150
 
 
17151
 
 
17152
26282
GNUmakefile=$GNUmakefile
17153
26283
 
17154
26284
 
17162
26292
  case $ac_config_target in
17163
26293
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17164
26294
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17165
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17166
26295
    "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
17167
26296
    "chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
17168
26297
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17989
27118
  done
17990
27119
done
17991
27120
 ;;
17992
 
    "libtool":C)
17993
 
 
17994
 
    # See if we are running on zsh, and set the options which allow our
17995
 
    # commands through without removal of \ escapes.
17996
 
    if test -n "${ZSH_VERSION+set}" ; then
17997
 
      setopt NO_GLOB_SUBST
17998
 
    fi
17999
 
 
18000
 
    cfgfile="${ofile}T"
18001
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18002
 
    $RM "$cfgfile"
18003
 
 
18004
 
    cat <<_LT_EOF >> "$cfgfile"
18005
 
#! $SHELL
18006
 
 
18007
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18008
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18009
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18010
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18011
 
#
18012
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18013
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
18014
 
#   Written by Gordon Matzigkeit, 1996
18015
 
#
18016
 
#   This file is part of GNU Libtool.
18017
 
#
18018
 
# GNU Libtool is free software; you can redistribute it and/or
18019
 
# modify it under the terms of the GNU General Public License as
18020
 
# published by the Free Software Foundation; either version 2 of
18021
 
# the License, or (at your option) any later version.
18022
 
#
18023
 
# As a special exception to the GNU General Public License,
18024
 
# if you distribute this file as part of a program or library that
18025
 
# is built using GNU Libtool, you may include this file under the
18026
 
# same distribution terms that you use for the rest of that program.
18027
 
#
18028
 
# GNU Libtool is distributed in the hope that it will be useful,
18029
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18030
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18031
 
# GNU General Public License for more details.
18032
 
#
18033
 
# You should have received a copy of the GNU General Public License
18034
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
18035
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18036
 
# obtained by writing to the Free Software Foundation, Inc.,
18037
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18038
 
 
18039
 
 
18040
 
# The names of the tagged configurations supported by this script.
18041
 
available_tags=""
18042
 
 
18043
 
# ### BEGIN LIBTOOL CONFIG
18044
 
 
18045
 
# Assembler program.
18046
 
AS=$AS
18047
 
 
18048
 
# DLL creation program.
18049
 
DLLTOOL=$DLLTOOL
18050
 
 
18051
 
# Object dumper program.
18052
 
OBJDUMP=$OBJDUMP
18053
 
 
18054
 
# Which release of libtool.m4 was used?
18055
 
macro_version=$macro_version
18056
 
macro_revision=$macro_revision
18057
 
 
18058
 
# Whether or not to build shared libraries.
18059
 
build_libtool_libs=$enable_shared
18060
 
 
18061
 
# Whether or not to build static libraries.
18062
 
build_old_libs=$enable_static
18063
 
 
18064
 
# What type of objects to build.
18065
 
pic_mode=$pic_mode
18066
 
 
18067
 
# Whether or not to optimize for fast installation.
18068
 
fast_install=$enable_fast_install
18069
 
 
18070
 
# The host system.
18071
 
host_alias=$host_alias
18072
 
host=$host
18073
 
host_os=$host_os
18074
 
 
18075
 
# The build system.
18076
 
build_alias=$build_alias
18077
 
build=$build
18078
 
build_os=$build_os
18079
 
 
18080
 
# A sed program that does not truncate output.
18081
 
SED=$lt_SED
18082
 
 
18083
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18084
 
Xsed="\$SED -e 1s/^X//"
18085
 
 
18086
 
# A grep program that handles long lines.
18087
 
GREP=$lt_GREP
18088
 
 
18089
 
# An ERE matcher.
18090
 
EGREP=$lt_EGREP
18091
 
 
18092
 
# A literal string matcher.
18093
 
FGREP=$lt_FGREP
18094
 
 
18095
 
# A BSD- or MS-compatible name lister.
18096
 
NM=$lt_NM
18097
 
 
18098
 
# Whether we need soft or hard links.
18099
 
LN_S=$lt_LN_S
18100
 
 
18101
 
# What is the maximum length of a command?
18102
 
max_cmd_len=$max_cmd_len
18103
 
 
18104
 
# Object file suffix (normally "o").
18105
 
objext=$ac_objext
18106
 
 
18107
 
# Executable file suffix (normally "").
18108
 
exeext=$exeext
18109
 
 
18110
 
# whether the shell understands "unset".
18111
 
lt_unset=$lt_unset
18112
 
 
18113
 
# turn spaces into newlines.
18114
 
SP2NL=$lt_lt_SP2NL
18115
 
 
18116
 
# turn newlines into spaces.
18117
 
NL2SP=$lt_lt_NL2SP
18118
 
 
18119
 
# How to create reloadable object files.
18120
 
reload_flag=$lt_reload_flag
18121
 
reload_cmds=$lt_reload_cmds
18122
 
 
18123
 
# Method to check whether dependent libraries are shared objects.
18124
 
deplibs_check_method=$lt_deplibs_check_method
18125
 
 
18126
 
# Command to use when deplibs_check_method == "file_magic".
18127
 
file_magic_cmd=$lt_file_magic_cmd
18128
 
 
18129
 
# The archiver.
18130
 
AR=$lt_AR
18131
 
AR_FLAGS=$lt_AR_FLAGS
18132
 
 
18133
 
# A symbol stripping program.
18134
 
STRIP=$lt_STRIP
18135
 
 
18136
 
# Commands used to install an old-style archive.
18137
 
RANLIB=$lt_RANLIB
18138
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18139
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18140
 
 
18141
 
# A C compiler.
18142
 
LTCC=$lt_CC
18143
 
 
18144
 
# LTCC compiler flags.
18145
 
LTCFLAGS=$lt_CFLAGS
18146
 
 
18147
 
# Take the output of nm and produce a listing of raw symbols and C names.
18148
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18149
 
 
18150
 
# Transform the output of nm in a proper C declaration.
18151
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18152
 
 
18153
 
# Transform the output of nm in a C name address pair.
18154
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18155
 
 
18156
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
18157
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18158
 
 
18159
 
# The name of the directory that contains temporary libtool files.
18160
 
objdir=$objdir
18161
 
 
18162
 
# Shell to use when invoking shell scripts.
18163
 
SHELL=$lt_SHELL
18164
 
 
18165
 
# An echo program that does not interpret backslashes.
18166
 
ECHO=$lt_ECHO
18167
 
 
18168
 
# Used to examine libraries when file_magic_cmd begins with "file".
18169
 
MAGIC_CMD=$MAGIC_CMD
18170
 
 
18171
 
# Must we lock files when doing compilation?
18172
 
need_locks=$lt_need_locks
18173
 
 
18174
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18175
 
DSYMUTIL=$lt_DSYMUTIL
18176
 
 
18177
 
# Tool to change global to local symbols on Mac OS X.
18178
 
NMEDIT=$lt_NMEDIT
18179
 
 
18180
 
# Old archive suffix (normally "a").
18181
 
libext=$libext
18182
 
 
18183
 
# Shared library suffix (normally ".so").
18184
 
shrext_cmds=$lt_shrext_cmds
18185
 
 
18186
 
# The commands to extract the exported symbol list from a shared archive.
18187
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18188
 
 
18189
 
# Variables whose values should be saved in libtool wrapper scripts and
18190
 
# restored at link time.
18191
 
variables_saved_for_relink=$lt_variables_saved_for_relink
18192
 
 
18193
 
# Do we need the "lib" prefix for modules?
18194
 
need_lib_prefix=$need_lib_prefix
18195
 
 
18196
 
# Do we need a version for libraries?
18197
 
need_version=$need_version
18198
 
 
18199
 
# Library versioning type.
18200
 
version_type=$version_type
18201
 
 
18202
 
# Shared library runtime path variable.
18203
 
runpath_var=$runpath_var
18204
 
 
18205
 
# Shared library path variable.
18206
 
shlibpath_var=$shlibpath_var
18207
 
 
18208
 
# Is shlibpath searched before the hard-coded library search path?
18209
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18210
 
 
18211
 
# Format of library name prefix.
18212
 
libname_spec=$lt_libname_spec
18213
 
 
18214
 
# List of archive names.  First name is the real one, the rest are links.
18215
 
# The last name is the one that the linker finds with -lNAME
18216
 
library_names_spec=$lt_library_names_spec
18217
 
 
18218
 
# The coded name of the library, if different from the real name.
18219
 
soname_spec=$lt_soname_spec
18220
 
 
18221
 
# Command to use after installation of a shared archive.
18222
 
postinstall_cmds=$lt_postinstall_cmds
18223
 
 
18224
 
# Command to use after uninstallation of a shared archive.
18225
 
postuninstall_cmds=$lt_postuninstall_cmds
18226
 
 
18227
 
# Commands used to finish a libtool library installation in a directory.
18228
 
finish_cmds=$lt_finish_cmds
18229
 
 
18230
 
# As "finish_cmds", except a single script fragment to be evaled but
18231
 
# not shown.
18232
 
finish_eval=$lt_finish_eval
18233
 
 
18234
 
# Whether we should hardcode library paths into libraries.
18235
 
hardcode_into_libs=$hardcode_into_libs
18236
 
 
18237
 
# Compile-time system search path for libraries.
18238
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18239
 
 
18240
 
# Run-time system search path for libraries.
18241
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18242
 
 
18243
 
# Whether dlopen is supported.
18244
 
dlopen_support=$enable_dlopen
18245
 
 
18246
 
# Whether dlopen of programs is supported.
18247
 
dlopen_self=$enable_dlopen_self
18248
 
 
18249
 
# Whether dlopen of statically linked programs is supported.
18250
 
dlopen_self_static=$enable_dlopen_self_static
18251
 
 
18252
 
# Commands to strip libraries.
18253
 
old_striplib=$lt_old_striplib
18254
 
striplib=$lt_striplib
18255
 
 
18256
 
 
18257
 
# The linker used to build libraries.
18258
 
LD=$lt_LD
18259
 
 
18260
 
# Commands used to build an old-style archive.
18261
 
old_archive_cmds=$lt_old_archive_cmds
18262
 
 
18263
 
# A language specific compiler.
18264
 
CC=$lt_compiler
18265
 
 
18266
 
# Is the compiler the GNU compiler?
18267
 
with_gcc=$GCC
18268
 
 
18269
 
# Compiler flag to turn off builtin functions.
18270
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18271
 
 
18272
 
# How to pass a linker flag through the compiler.
18273
 
wl=$lt_lt_prog_compiler_wl
18274
 
 
18275
 
# Additional compiler flags for building library objects.
18276
 
pic_flag=$lt_lt_prog_compiler_pic
18277
 
 
18278
 
# Compiler flag to prevent dynamic linking.
18279
 
link_static_flag=$lt_lt_prog_compiler_static
18280
 
 
18281
 
# Does compiler simultaneously support -c and -o options?
18282
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18283
 
 
18284
 
# Whether or not to add -lc for building shared libraries.
18285
 
build_libtool_need_lc=$archive_cmds_need_lc
18286
 
 
18287
 
# Whether or not to disallow shared libs when runtime libs are static.
18288
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18289
 
 
18290
 
# Compiler flag to allow reflexive dlopens.
18291
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18292
 
 
18293
 
# Compiler flag to generate shared objects directly from archives.
18294
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18295
 
 
18296
 
# Whether the compiler copes with passing no objects directly.
18297
 
compiler_needs_object=$lt_compiler_needs_object
18298
 
 
18299
 
# Create an old-style archive from a shared archive.
18300
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18301
 
 
18302
 
# Create a temporary old-style archive to link instead of a shared archive.
18303
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18304
 
 
18305
 
# Commands used to build a shared archive.
18306
 
archive_cmds=$lt_archive_cmds
18307
 
archive_expsym_cmds=$lt_archive_expsym_cmds
18308
 
 
18309
 
# Commands used to build a loadable module if different from building
18310
 
# a shared archive.
18311
 
module_cmds=$lt_module_cmds
18312
 
module_expsym_cmds=$lt_module_expsym_cmds
18313
 
 
18314
 
# Whether we are building with GNU ld or not.
18315
 
with_gnu_ld=$lt_with_gnu_ld
18316
 
 
18317
 
# Flag that allows shared libraries with undefined symbols to be built.
18318
 
allow_undefined_flag=$lt_allow_undefined_flag
18319
 
 
18320
 
# Flag that enforces no undefined symbols.
18321
 
no_undefined_flag=$lt_no_undefined_flag
18322
 
 
18323
 
# Flag to hardcode \$libdir into a binary during linking.
18324
 
# This must work even if \$libdir does not exist
18325
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18326
 
 
18327
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
18328
 
# during linking.  This must work even if \$libdir does not exist.
18329
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18330
 
 
18331
 
# Whether we need a single "-rpath" flag with a separated argument.
18332
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18333
 
 
18334
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18335
 
# DIR into the resulting binary.
18336
 
hardcode_direct=$hardcode_direct
18337
 
 
18338
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18339
 
# DIR into the resulting binary and the resulting library dependency is
18340
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18341
 
# library is relocated.
18342
 
hardcode_direct_absolute=$hardcode_direct_absolute
18343
 
 
18344
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18345
 
# into the resulting binary.
18346
 
hardcode_minus_L=$hardcode_minus_L
18347
 
 
18348
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18349
 
# into the resulting binary.
18350
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
18351
 
 
18352
 
# Set to "yes" if building a shared library automatically hardcodes DIR
18353
 
# into the library and all subsequent libraries and executables linked
18354
 
# against it.
18355
 
hardcode_automatic=$hardcode_automatic
18356
 
 
18357
 
# Set to yes if linker adds runtime paths of dependent libraries
18358
 
# to runtime path list.
18359
 
inherit_rpath=$inherit_rpath
18360
 
 
18361
 
# Whether libtool must link a program against all its dependency libraries.
18362
 
link_all_deplibs=$link_all_deplibs
18363
 
 
18364
 
# Fix the shell variable \$srcfile for the compiler.
18365
 
fix_srcfile_path=$lt_fix_srcfile_path
18366
 
 
18367
 
# Set to "yes" if exported symbols are required.
18368
 
always_export_symbols=$always_export_symbols
18369
 
 
18370
 
# The commands to list exported symbols.
18371
 
export_symbols_cmds=$lt_export_symbols_cmds
18372
 
 
18373
 
# Symbols that should not be listed in the preloaded symbols.
18374
 
exclude_expsyms=$lt_exclude_expsyms
18375
 
 
18376
 
# Symbols that must always be exported.
18377
 
include_expsyms=$lt_include_expsyms
18378
 
 
18379
 
# Commands necessary for linking programs (against libraries) with templates.
18380
 
prelink_cmds=$lt_prelink_cmds
18381
 
 
18382
 
# Specify filename containing input files.
18383
 
file_list_spec=$lt_file_list_spec
18384
 
 
18385
 
# How to hardcode a shared library path into an executable.
18386
 
hardcode_action=$hardcode_action
18387
 
 
18388
 
# ### END LIBTOOL CONFIG
18389
 
 
18390
 
_LT_EOF
18391
 
 
18392
 
  case $host_os in
18393
 
  aix3*)
18394
 
    cat <<\_LT_EOF >> "$cfgfile"
18395
 
# AIX sometimes has problems with the GCC collect2 program.  For some
18396
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
18397
 
# vanish in a puff of smoke.
18398
 
if test "X${COLLECT_NAMES+set}" != Xset; then
18399
 
  COLLECT_NAMES=
18400
 
  export COLLECT_NAMES
18401
 
fi
18402
 
_LT_EOF
18403
 
    ;;
18404
 
  esac
18405
 
 
18406
 
 
18407
 
ltmain="$ac_aux_dir/ltmain.sh"
18408
 
 
18409
 
 
18410
 
  # We use sed instead of cat because bash on DJGPP gets confused if
18411
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18412
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
18413
 
  # is reportedly fixed, but why not run on old versions too?
18414
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18415
 
    || (rm -f "$cfgfile"; exit 1)
18416
 
 
18417
 
  case $xsi_shell in
18418
 
  yes)
18419
 
    cat << \_LT_EOF >> "$cfgfile"
18420
 
# func_dirname file append nondir_replacement
18421
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18422
 
# otherwise set result to NONDIR_REPLACEMENT.
18423
 
func_dirname ()
18424
 
{
18425
 
  case ${1} in
18426
 
    */*) func_dirname_result="${1%/*}${2}" ;;
18427
 
    *  ) func_dirname_result="${3}" ;;
18428
 
  esac
18429
 
}
18430
 
 
18431
 
# func_basename file
18432
 
func_basename ()
18433
 
{
18434
 
  func_basename_result="${1##*/}"
18435
 
}
18436
 
 
18437
 
# func_dirname_and_basename file append nondir_replacement
18438
 
# perform func_basename and func_dirname in a single function
18439
 
# call:
18440
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
18441
 
#             add APPEND to the result, otherwise set result
18442
 
#             to NONDIR_REPLACEMENT.
18443
 
#             value returned in "$func_dirname_result"
18444
 
#   basename: Compute filename of FILE.
18445
 
#             value retuned in "$func_basename_result"
18446
 
# Implementation must be kept synchronized with func_dirname
18447
 
# and func_basename. For efficiency, we do not delegate to
18448
 
# those functions but instead duplicate the functionality here.
18449
 
func_dirname_and_basename ()
18450
 
{
18451
 
  case ${1} in
18452
 
    */*) func_dirname_result="${1%/*}${2}" ;;
18453
 
    *  ) func_dirname_result="${3}" ;;
18454
 
  esac
18455
 
  func_basename_result="${1##*/}"
18456
 
}
18457
 
 
18458
 
# func_stripname prefix suffix name
18459
 
# strip PREFIX and SUFFIX off of NAME.
18460
 
# PREFIX and SUFFIX must not contain globbing or regex special
18461
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
18462
 
# dot (in which case that matches only a dot).
18463
 
func_stripname ()
18464
 
{
18465
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18466
 
  # positional parameters, so assign one to ordinary parameter first.
18467
 
  func_stripname_result=${3}
18468
 
  func_stripname_result=${func_stripname_result#"${1}"}
18469
 
  func_stripname_result=${func_stripname_result%"${2}"}
18470
 
}
18471
 
 
18472
 
# func_opt_split
18473
 
func_opt_split ()
18474
 
{
18475
 
  func_opt_split_opt=${1%%=*}
18476
 
  func_opt_split_arg=${1#*=}
18477
 
}
18478
 
 
18479
 
# func_lo2o object
18480
 
func_lo2o ()
18481
 
{
18482
 
  case ${1} in
18483
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18484
 
    *)    func_lo2o_result=${1} ;;
18485
 
  esac
18486
 
}
18487
 
_LT_EOF
18488
 
    ;;
18489
 
  *) # Bourne compatible functions.
18490
 
    cat << \_LT_EOF >> "$cfgfile"
18491
 
# func_dirname file append nondir_replacement
18492
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18493
 
# otherwise set result to NONDIR_REPLACEMENT.
18494
 
func_dirname ()
18495
 
{
18496
 
  # Extract subdirectory from the argument.
18497
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18498
 
  if test "X$func_dirname_result" = "X${1}"; then
18499
 
    func_dirname_result="${3}"
18500
 
  else
18501
 
    func_dirname_result="$func_dirname_result${2}"
18502
 
  fi
18503
 
}
18504
 
 
18505
 
# func_basename file
18506
 
func_basename ()
18507
 
{
18508
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18509
 
}
18510
 
 
18511
 
# func_dirname_and_basename file append nondir_replacement
18512
 
# perform func_basename and func_dirname in a single function
18513
 
# call:
18514
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
18515
 
#             add APPEND to the result, otherwise set result
18516
 
#             to NONDIR_REPLACEMENT.
18517
 
#             value returned in "$func_dirname_result"
18518
 
#   basename: Compute filename of FILE.
18519
 
#             value retuned in "$func_basename_result"
18520
 
# Implementation must be kept synchronized with func_dirname
18521
 
# and func_basename. For efficiency, we do not delegate to
18522
 
# those functions but instead duplicate the functionality here.
18523
 
func_dirname_and_basename ()
18524
 
{
18525
 
  # Extract subdirectory from the argument.
18526
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18527
 
  if test "X$func_dirname_result" = "X${1}"; then
18528
 
    func_dirname_result="${3}"
18529
 
  else
18530
 
    func_dirname_result="$func_dirname_result${2}"
18531
 
  fi
18532
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18533
 
}
18534
 
 
18535
 
# func_stripname prefix suffix name
18536
 
# strip PREFIX and SUFFIX off of NAME.
18537
 
# PREFIX and SUFFIX must not contain globbing or regex special
18538
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
18539
 
# dot (in which case that matches only a dot).
18540
 
# func_strip_suffix prefix name
18541
 
func_stripname ()
18542
 
{
18543
 
  case ${2} in
18544
 
    .*) func_stripname_result=`$ECHO "X${3}" \
18545
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18546
 
    *)  func_stripname_result=`$ECHO "X${3}" \
18547
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18548
 
  esac
18549
 
}
18550
 
 
18551
 
# sed scripts:
18552
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18553
 
my_sed_long_arg='1s/^-[^=]*=//'
18554
 
 
18555
 
# func_opt_split
18556
 
func_opt_split ()
18557
 
{
18558
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18559
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18560
 
}
18561
 
 
18562
 
# func_lo2o object
18563
 
func_lo2o ()
18564
 
{
18565
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18566
 
}
18567
 
_LT_EOF
18568
 
esac
18569
 
 
18570
 
case $lt_shell_append in
18571
 
  yes)
18572
 
    cat << \_LT_EOF >> "$cfgfile"
18573
 
 
18574
 
# func_append var value
18575
 
# Append VALUE to the end of shell variable VAR.
18576
 
func_append ()
18577
 
{
18578
 
  eval "$1+=\$2"
18579
 
}
18580
 
_LT_EOF
18581
 
    ;;
18582
 
  *)
18583
 
    cat << \_LT_EOF >> "$cfgfile"
18584
 
 
18585
 
# func_append var value
18586
 
# Append VALUE to the end of shell variable VAR.
18587
 
func_append ()
18588
 
{
18589
 
  eval "$1=\$$1\$2"
18590
 
}
18591
 
_LT_EOF
18592
 
    ;;
18593
 
  esac
18594
 
 
18595
 
 
18596
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18597
 
    || (rm -f "$cfgfile"; exit 1)
18598
 
 
18599
 
  mv -f "$cfgfile" "$ofile" ||
18600
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18601
 
  chmod +x "$ofile"
18602
 
 
18603
 
 ;;
18604
27121
    "chmod":C)
18605
27122
 chmod +x lib/libtasn1-config
18606
27123
 ;;