~ubuntu-branches/ubuntu/utopic/libice/utopic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Julien Cristau, Timo Aaltonen
  • Date: 2009-11-23 17:41:57 UTC
  • mfrom: (1.1.5 upstream) (0.2.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091123174157-mlkeqf8qzaoa3ebs
Tags: 2:1.0.6-1
[ Julien Cristau ]
* libice6-dbg doesn't need to depend on x11-common.
* Remove the debian revision from the xtrans-dev build-dep.
* Move -dbg package to the debug section.

[ Timo Aaltonen ]
* New upstream release.
* Bump Standards-Version to 3.8.3.

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.63 for libICE 1.0.5.
 
3
# Generated by GNU Autoconf 2.63 for libICE 1.0.6.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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$ECHO in
 
580
case X$lt_ECHO in
581
581
X*--fallback-echo)
582
582
  # Remove one level of quotation (which was required for Make).
583
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
584
  ;;
585
585
esac
586
586
 
587
 
echo=${ECHO-echo}
 
587
ECHO=${lt_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 <<EOF
 
605
  cat <<_LT_EOF
606
606
$*
607
 
EOF
 
607
_LT_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 "$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
 
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
642
650
    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"
652
651
 
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"
 
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+"$@"}
690
667
      else
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
 
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
698
708
          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
 
709
        fi
710
710
      fi
711
711
    fi
712
712
  fi
713
713
fi
714
 
fi
715
714
 
716
715
# Copy echo and quote the copy suitably for passing to libtool from
717
716
# the Makefile, instead of quoting the original, which is used later.
718
 
ECHO=$echo
719
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
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"
721
720
fi
722
721
 
723
722
 
724
723
 
725
724
 
726
 
tagnames=${tagnames+${tagnames},}CXX
727
 
 
728
 
tagnames=${tagnames+${tagnames},}F77
729
 
 
730
725
exec 7<&0 </dev/null 6>&1
731
726
 
732
727
# Name of the host.
750
745
# Identity of this package.
751
746
PACKAGE_NAME='libICE'
752
747
PACKAGE_TARNAME='libICE'
753
 
PACKAGE_VERSION='1.0.5'
754
 
PACKAGE_STRING='libICE 1.0.5'
 
748
PACKAGE_VERSION='1.0.6'
 
749
PACKAGE_STRING='libICE 1.0.6'
755
750
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
751
 
757
752
ac_unique_file="Makefile.am"
791
786
# include <unistd.h>
792
787
#endif"
793
788
 
794
 
ac_subst_vars='LTLIBOBJS
 
789
ac_subst_vars='am__EXEEXT_FALSE
 
790
am__EXEEXT_TRUE
 
791
LTLIBOBJS
795
792
LIBOBJS
796
 
CWARNFLAGS
797
793
distcleancheck_listfiles
798
794
CHANGELOG_CMD
799
795
MAKE_LINT_LIB_FALSE
808
804
ICE_LIBS
809
805
ICE_CFLAGS
810
806
PKG_CONFIG
811
 
LIBTOOL
812
 
ac_ct_F77
813
 
FFLAGS
814
 
F77
815
 
CXXCPP
816
 
am__fastdepCXX_FALSE
817
 
am__fastdepCXX_TRUE
818
 
CXXDEPMODE
819
 
ac_ct_CXX
820
 
CXXFLAGS
821
 
CXX
 
807
AM_BACKSLASH
 
808
AM_DEFAULT_VERBOSITY
 
809
CWARNFLAGS
822
810
CPP
 
811
OTOOL64
 
812
OTOOL
 
813
LIPO
823
814
NMEDIT
824
815
DSYMUTIL
 
816
lt_ECHO
825
817
RANLIB
826
818
AR
827
 
ECHO
 
819
OBJDUMP
828
820
LN_S
 
821
NM
 
822
ac_ct_DUMPBIN
 
823
DUMPBIN
 
824
LD
 
825
FGREP
829
826
EGREP
830
827
GREP
831
828
SED
853
850
build_vendor
854
851
build_cpu
855
852
build
 
853
LIBTOOL
856
854
MAINT
857
855
MAINTAINER_MODE_FALSE
858
856
MAINTAINER_MODE_TRUE
922
920
enable_maintainer_mode
923
921
enable_shared
924
922
enable_static
 
923
with_pic
925
924
enable_fast_install
926
925
enable_dependency_tracking
927
926
with_gnu_ld
928
927
enable_libtool_lock
929
 
with_pic
930
 
with_tags
 
928
enable_silent_rules
931
929
enable_unix_transport
932
930
enable_tcp_transport
933
931
enable_ipv6
945
943
LIBS
946
944
CPPFLAGS
947
945
CPP
948
 
CXX
949
 
CXXFLAGS
950
 
CCC
951
 
CXXCPP
952
 
F77
953
 
FFLAGS
954
946
PKG_CONFIG
955
947
ICE_CFLAGS
956
948
ICE_LIBS
1508
1500
  # Omit some internal or obsolete options to make the list less imposing.
1509
1501
  # This message is too long to be a string in the A/UX 3.1 sh.
1510
1502
  cat <<_ACEOF
1511
 
\`configure' configures libICE 1.0.5 to adapt to many kinds of systems.
 
1503
\`configure' configures libICE 1.0.6 to adapt to many kinds of systems.
1512
1504
 
1513
1505
Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1506
 
1578
1570
 
1579
1571
if test -n "$ac_init_help"; then
1580
1572
  case $ac_init_help in
1581
 
     short | recursive ) echo "Configuration of libICE 1.0.5:";;
 
1573
     short | recursive ) echo "Configuration of libICE 1.0.6:";;
1582
1574
   esac
1583
1575
  cat <<\_ACEOF
1584
1576
 
1595
1587
  --disable-dependency-tracking  speeds up one-time build
1596
1588
  --enable-dependency-tracking   do not reject slow dependency extractors
1597
1589
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1590
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1591
  --disable-silent-rules         verbose build output (undo: `make V=0')
1598
1592
  --enable-unix-transport Enable UNIX domain socket transport
1599
1593
  --enable-tcp-transport  Enable TCP socket transport
1600
 
  --enable-IPv6           Enable IPv6 support
 
1594
  --enable-ipv6           Enable IPv6 support
1601
1595
  --enable-local-transport
1602
1596
                          Enable os-specific local transport
1603
1597
  --enable-lint-library   Create lint library (default: disabled)
1605
1599
Optional Packages:
1606
1600
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1607
1601
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1608
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1609
1602
  --with-pic              try to use only PIC/non-PIC objects [default=use
1610
1603
                          both]
1611
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1604
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1612
1605
  --with-lint             Use a lint-style source code checker (default:
1613
1606
                          disabled)
1614
1607
  --with-release-version=STRING
1623
1616
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624
1617
              you have headers in a nonstandard directory <include dir>
1625
1618
  CPP         C preprocessor
1626
 
  CXX         C++ compiler command
1627
 
  CXXFLAGS    C++ compiler flags
1628
 
  CXXCPP      C++ preprocessor
1629
 
  F77         Fortran 77 compiler command
1630
 
  FFLAGS      Fortran 77 compiler flags
1631
1619
  PKG_CONFIG  path to pkg-config utility
1632
1620
  ICE_CFLAGS  C compiler flags for ICE, overriding pkg-config
1633
1621
  ICE_LIBS    linker flags for ICE, overriding pkg-config
1701
1689
test -n "$ac_init_help" && exit $ac_status
1702
1690
if $ac_init_version; then
1703
1691
  cat <<\_ACEOF
1704
 
libICE configure 1.0.5
 
1692
libICE configure 1.0.6
1705
1693
generated by GNU Autoconf 2.63
1706
1694
 
1707
1695
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715
1703
This file contains any messages produced by compilers while
1716
1704
running configure, to aid debugging if configure makes a mistake.
1717
1705
 
1718
 
It was created by libICE $as_me 1.0.5, which was
 
1706
It was created by libICE $as_me 1.0.6, which was
1719
1707
generated by GNU Autoconf 2.63.  Invocation command line was
1720
1708
 
1721
1709
  $ $0 $@
2085
2073
 
2086
2074
 
2087
2075
 
2088
 
am__api_version='1.10'
 
2076
am__api_version='1.11'
2089
2077
 
2090
2078
ac_aux_dir=
2091
2079
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2216
2204
# Just in case
2217
2205
sleep 1
2218
2206
echo timestamp > conftest.file
 
2207
# Reject unsafe characters in $srcdir or the absolute working directory
 
2208
# name.  Accept space and tab only in the latter.
 
2209
am_lf='
 
2210
'
 
2211
case `pwd` in
 
2212
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2213
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2214
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2215
   { (exit 1); exit 1; }; };;
 
2216
esac
 
2217
case $srcdir in
 
2218
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2219
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2220
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2221
   { (exit 1); exit 1; }; };;
 
2222
esac
 
2223
 
2219
2224
# Do `set' in a subshell so we don't clobber the current shell's
2220
2225
# arguments.  Must try -L first in case configure is actually a
2221
2226
# symlink; some systems play weird games with the mod time of symlinks
2222
2227
# (eg FreeBSD returns the mod time of the symlink's containing
2223
2228
# directory).
2224
2229
if (
2225
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2230
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2226
2231
   if test "$*" = "X"; then
2227
2232
      # -L didn't work.
2228
 
      set X `ls -t $srcdir/configure conftest.file`
 
2233
      set X `ls -t "$srcdir/configure" conftest.file`
2229
2234
   fi
2230
2235
   rm -f conftest.file
2231
2236
   if test "$*" != "X $srcdir/configure conftest.file" \
2269
2274
# expand $ac_aux_dir to an absolute path
2270
2275
am_aux_dir=`cd $ac_aux_dir && pwd`
2271
2276
 
2272
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2277
if test x"${MISSING+set}" != xset; then
 
2278
  case $am_aux_dir in
 
2279
  *\ * | *\     *)
 
2280
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2281
  *)
 
2282
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2283
  esac
 
2284
fi
2273
2285
# Use eval to expand $SHELL
2274
2286
if eval "$MISSING --run true"; then
2275
2287
  am_missing_run="$MISSING --run "
2279
2291
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2280
2292
fi
2281
2293
 
 
2294
if test x"${install_sh}" != xset; then
 
2295
  case $am_aux_dir in
 
2296
  *\ * | *\     *)
 
2297
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2298
  *)
 
2299
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2300
  esac
 
2301
fi
 
2302
 
 
2303
# Installed binaries are usually stripped using `strip' when the user
 
2304
# run `make install-strip'.  However `strip' might not be the right
 
2305
# tool to use in cross-compilation environments, therefore Automake
 
2306
# will honor the `STRIP' environment variable to overrule this program.
 
2307
if test "$cross_compiling" != no; then
 
2308
  if test -n "$ac_tool_prefix"; then
 
2309
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2310
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2311
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2312
$as_echo_n "checking for $ac_word... " >&6; }
 
2313
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2314
  $as_echo_n "(cached) " >&6
 
2315
else
 
2316
  if test -n "$STRIP"; then
 
2317
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2318
else
 
2319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2320
for as_dir in $PATH
 
2321
do
 
2322
  IFS=$as_save_IFS
 
2323
  test -z "$as_dir" && as_dir=.
 
2324
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2326
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2327
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2328
    break 2
 
2329
  fi
 
2330
done
 
2331
done
 
2332
IFS=$as_save_IFS
 
2333
 
 
2334
fi
 
2335
fi
 
2336
STRIP=$ac_cv_prog_STRIP
 
2337
if test -n "$STRIP"; then
 
2338
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2339
$as_echo "$STRIP" >&6; }
 
2340
else
 
2341
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2342
$as_echo "no" >&6; }
 
2343
fi
 
2344
 
 
2345
 
 
2346
fi
 
2347
if test -z "$ac_cv_prog_STRIP"; then
 
2348
  ac_ct_STRIP=$STRIP
 
2349
  # Extract the first word of "strip", so it can be a program name with args.
 
2350
set dummy strip; ac_word=$2
 
2351
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2352
$as_echo_n "checking for $ac_word... " >&6; }
 
2353
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2354
  $as_echo_n "(cached) " >&6
 
2355
else
 
2356
  if test -n "$ac_ct_STRIP"; then
 
2357
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2358
else
 
2359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2360
for as_dir in $PATH
 
2361
do
 
2362
  IFS=$as_save_IFS
 
2363
  test -z "$as_dir" && as_dir=.
 
2364
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2365
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2366
    ac_cv_prog_ac_ct_STRIP="strip"
 
2367
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2368
    break 2
 
2369
  fi
 
2370
done
 
2371
done
 
2372
IFS=$as_save_IFS
 
2373
 
 
2374
fi
 
2375
fi
 
2376
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2377
if test -n "$ac_ct_STRIP"; then
 
2378
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2379
$as_echo "$ac_ct_STRIP" >&6; }
 
2380
else
 
2381
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2382
$as_echo "no" >&6; }
 
2383
fi
 
2384
 
 
2385
  if test "x$ac_ct_STRIP" = x; then
 
2386
    STRIP=":"
 
2387
  else
 
2388
    case $cross_compiling:$ac_tool_warned in
 
2389
yes:)
 
2390
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2391
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2392
ac_tool_warned=yes ;;
 
2393
esac
 
2394
    STRIP=$ac_ct_STRIP
 
2395
  fi
 
2396
else
 
2397
  STRIP="$ac_cv_prog_STRIP"
 
2398
fi
 
2399
 
 
2400
fi
 
2401
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2402
 
2282
2403
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283
2404
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2284
2405
if test -z "$MKDIR_P"; then
2433
2554
 
2434
2555
# Define the identity of the package.
2435
2556
 PACKAGE='libICE'
2436
 
 VERSION='1.0.5'
 
2557
 VERSION='1.0.6'
2437
2558
 
2438
2559
 
2439
2560
cat >>confdefs.h <<_ACEOF
2461
2582
 
2462
2583
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2463
2584
 
2464
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2465
 
 
2466
 
# Installed binaries are usually stripped using `strip' when the user
2467
 
# run `make install-strip'.  However `strip' might not be the right
2468
 
# tool to use in cross-compilation environments, therefore Automake
2469
 
# will honor the `STRIP' environment variable to overrule this program.
2470
 
if test "$cross_compiling" != no; then
2471
 
  if test -n "$ac_tool_prefix"; then
2472
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2474
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2475
 
$as_echo_n "checking for $ac_word... " >&6; }
2476
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2477
 
  $as_echo_n "(cached) " >&6
2478
 
else
2479
 
  if test -n "$STRIP"; then
2480
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481
 
else
2482
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483
 
for as_dir in $PATH
2484
 
do
2485
 
  IFS=$as_save_IFS
2486
 
  test -z "$as_dir" && as_dir=.
2487
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2488
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491
 
    break 2
2492
 
  fi
2493
 
done
2494
 
done
2495
 
IFS=$as_save_IFS
2496
 
 
2497
 
fi
2498
 
fi
2499
 
STRIP=$ac_cv_prog_STRIP
2500
 
if test -n "$STRIP"; then
2501
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2502
 
$as_echo "$STRIP" >&6; }
2503
 
else
2504
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2505
 
$as_echo "no" >&6; }
2506
 
fi
2507
 
 
2508
 
 
2509
 
fi
2510
 
if test -z "$ac_cv_prog_STRIP"; then
2511
 
  ac_ct_STRIP=$STRIP
2512
 
  # Extract the first word of "strip", so it can be a program name with args.
2513
 
set dummy strip; ac_word=$2
2514
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2515
 
$as_echo_n "checking for $ac_word... " >&6; }
2516
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517
 
  $as_echo_n "(cached) " >&6
2518
 
else
2519
 
  if test -n "$ac_ct_STRIP"; then
2520
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521
 
else
2522
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523
 
for as_dir in $PATH
2524
 
do
2525
 
  IFS=$as_save_IFS
2526
 
  test -z "$as_dir" && as_dir=.
2527
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2528
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529
 
    ac_cv_prog_ac_ct_STRIP="strip"
2530
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531
 
    break 2
2532
 
  fi
2533
 
done
2534
 
done
2535
 
IFS=$as_save_IFS
2536
 
 
2537
 
fi
2538
 
fi
2539
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540
 
if test -n "$ac_ct_STRIP"; then
2541
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542
 
$as_echo "$ac_ct_STRIP" >&6; }
2543
 
else
2544
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2545
 
$as_echo "no" >&6; }
2546
 
fi
2547
 
 
2548
 
  if test "x$ac_ct_STRIP" = x; then
2549
 
    STRIP=":"
2550
 
  else
2551
 
    case $cross_compiling:$ac_tool_warned in
2552
 
yes:)
2553
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2554
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2555
 
ac_tool_warned=yes ;;
2556
 
esac
2557
 
    STRIP=$ac_ct_STRIP
2558
 
  fi
2559
 
else
2560
 
  STRIP="$ac_cv_prog_STRIP"
2561
 
fi
2562
 
 
2563
 
fi
2564
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565
 
 
2566
2585
# We need awk for the "check" target.  The system "awk" is bad on
2567
2586
# some platforms.
2568
2587
# Always define AMTAR for backward compatibility.
2576
2595
 
2577
2596
 
2578
2597
 
 
2598
 
2579
2599
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2580
2600
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2581
2601
    # Check whether --enable-maintainer-mode was given.
2599
2619
 
2600
2620
 
2601
2621
 
 
2622
# Require xorg-macros at least 1.2.1
 
2623
 
 
2624
 
 
2625
 
 
2626
 
 
2627
 
 
2628
 
 
2629
 
 
2630
 
 
2631
 
 
2632
 
 
2633
 
2602
2634
ac_config_headers="$ac_config_headers config.h"
2603
2635
 
2604
2636
 
2605
2637
# Checks for programs.
2606
 
# Check whether --enable-shared was given.
2607
 
if test "${enable_shared+set}" = set; then
2608
 
  enableval=$enable_shared; p=${PACKAGE-default}
2609
 
    case $enableval in
2610
 
    yes) enable_shared=yes ;;
2611
 
    no) enable_shared=no ;;
2612
 
    *)
2613
 
      enable_shared=no
2614
 
      # Look at the argument we got.  We use all the common list separators.
2615
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2616
 
      for pkg in $enableval; do
2617
 
        IFS="$lt_save_ifs"
2618
 
        if test "X$pkg" = "X$p"; then
2619
 
          enable_shared=yes
2620
 
        fi
2621
 
      done
2622
 
      IFS="$lt_save_ifs"
2623
 
      ;;
2624
 
    esac
2625
 
else
2626
 
  enable_shared=yes
2627
 
fi
2628
 
 
2629
 
 
2630
 
# Check whether --enable-static was given.
2631
 
if test "${enable_static+set}" = set; then
2632
 
  enableval=$enable_static; p=${PACKAGE-default}
2633
 
    case $enableval in
2634
 
    yes) enable_static=yes ;;
2635
 
    no) enable_static=no ;;
2636
 
    *)
2637
 
     enable_static=no
2638
 
      # Look at the argument we got.  We use all the common list separators.
2639
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2640
 
      for pkg in $enableval; do
2641
 
        IFS="$lt_save_ifs"
2642
 
        if test "X$pkg" = "X$p"; then
2643
 
          enable_static=yes
2644
 
        fi
2645
 
      done
2646
 
      IFS="$lt_save_ifs"
2647
 
      ;;
2648
 
    esac
2649
 
else
2650
 
  enable_static=yes
2651
 
fi
2652
 
 
2653
 
 
2654
 
# Check whether --enable-fast-install was given.
2655
 
if test "${enable_fast_install+set}" = set; then
2656
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
2657
 
    case $enableval in
2658
 
    yes) enable_fast_install=yes ;;
2659
 
    no) enable_fast_install=no ;;
2660
 
    *)
2661
 
      enable_fast_install=no
2662
 
      # Look at the argument we got.  We use all the common list separators.
2663
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2664
 
      for pkg in $enableval; do
2665
 
        IFS="$lt_save_ifs"
2666
 
        if test "X$pkg" = "X$p"; then
2667
 
          enable_fast_install=yes
2668
 
        fi
2669
 
      done
2670
 
      IFS="$lt_save_ifs"
2671
 
      ;;
2672
 
    esac
2673
 
else
2674
 
  enable_fast_install=yes
2675
 
fi
2676
 
 
 
2638
case `pwd` in
 
2639
  *\ * | *\     *)
 
2640
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2641
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2642
esac
 
2643
 
 
2644
 
 
2645
 
 
2646
macro_version='2.2.6'
 
2647
macro_revision='1.3012'
 
2648
 
 
2649
 
 
2650
 
 
2651
 
 
2652
 
 
2653
 
 
2654
 
 
2655
 
 
2656
 
 
2657
 
 
2658
 
 
2659
 
 
2660
 
 
2661
ltmain="$ac_aux_dir/ltmain.sh"
2677
2662
 
2678
2663
# Make sure we can run config.sub.
2679
2664
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766
2751
am_make=${MAKE-make}
2767
2752
cat > confinc << 'END'
2768
2753
am__doit:
2769
 
        @echo done
 
2754
        @echo this is the am__doit target
2770
2755
.PHONY: am__doit
2771
2756
END
2772
2757
# If we don't find an include directive, just comment out the code.
2777
2762
_am_result=none
2778
2763
# First try GNU make style include.
2779
2764
echo "include confinc" > confmf
2780
 
# We grep out `Entering directory' and `Leaving directory'
2781
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2782
 
# In particular we don't look at `^make:' because GNU make might
2783
 
# be invoked under some other name (usually "gmake"), in which
2784
 
# case it prints its new name instead of `make'.
2785
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2786
 
   am__include=include
2787
 
   am__quote=
2788
 
   _am_result=GNU
2789
 
fi
 
2765
# Ignore all kinds of additional output from `make'.
 
2766
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2767
*the\ am__doit\ target*)
 
2768
  am__include=include
 
2769
  am__quote=
 
2770
  _am_result=GNU
 
2771
  ;;
 
2772
esac
2790
2773
# Now try BSD make style include.
2791
2774
if test "$am__include" = "#"; then
2792
2775
   echo '.include "confinc"' > confmf
2793
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2794
 
      am__include=.include
2795
 
      am__quote="\""
2796
 
      _am_result=BSD
2797
 
   fi
 
2776
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2777
   *the\ am__doit\ target*)
 
2778
     am__include=.include
 
2779
     am__quote="\""
 
2780
     _am_result=BSD
 
2781
     ;;
 
2782
   esac
2798
2783
fi
2799
2784
 
2800
2785
 
3783
3768
  if test "$am_compiler_list" = ""; then
3784
3769
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785
3770
  fi
 
3771
  am__universal=false
 
3772
  case " $depcc " in #(
 
3773
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3774
     esac
 
3775
 
3786
3776
  for depmode in $am_compiler_list; do
3787
3777
    # Setup a source with many dependencies, because some compilers
3788
3778
    # like to wrap large dependency lists on column 80 (with \), and
3800
3790
    done
3801
3791
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3802
3792
 
 
3793
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3794
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3795
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3796
    # versions had trouble with output in subdirs
 
3797
    am__obj=sub/conftest.${OBJEXT-o}
 
3798
    am__minus_obj="-o $am__obj"
3803
3799
    case $depmode in
 
3800
    gcc)
 
3801
      # This depmode causes a compiler race in universal mode.
 
3802
      test "$am__universal" = false || continue
 
3803
      ;;
3804
3804
    nosideeffect)
3805
3805
      # after this tag, mechanisms are not by side-effect, so they'll
3806
3806
      # only be used when explicitly requested
3810
3810
        break
3811
3811
      fi
3812
3812
      ;;
 
3813
    msvisualcpp | msvcmsys)
 
3814
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3815
      # not run yet.  These depmodes are late enough in the game, and
 
3816
      # so weak that their functioning should not be impacted.
 
3817
      am__obj=conftest.${OBJEXT-o}
 
3818
      am__minus_obj=
 
3819
      ;;
3813
3820
    none) break ;;
3814
3821
    esac
3815
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3816
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3817
 
    # handle `-M -o', and we need to detect this.
3818
3822
    if depmode=$depmode \
3819
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3823
       source=sub/conftest.c object=$am__obj \
3820
3824
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3825
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3822
3826
         >/dev/null 2>conftest.err &&
3823
3827
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824
3828
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3829
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3826
3830
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827
3831
      # icc doesn't choke on unknown options, it will just issue warnings
3828
3832
      # or remarks (even with -Werror).  So we grep stderr for any message
3863
3867
 
3864
3868
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3865
3869
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3866
 
if test "${lt_cv_path_SED+set}" = set; then
 
3870
if test "${ac_cv_path_SED+set}" = set; then
3867
3871
  $as_echo_n "(cached) " >&6
3868
3872
else
3869
 
  # Loop through the user's path and test for sed and gsed.
3870
 
# Then use that list of sed's as ones to test for truncation.
3871
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3873
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3874
     for ac_i in 1 2 3 4 5 6 7; do
 
3875
       ac_script="$ac_script$as_nl$ac_script"
 
3876
     done
 
3877
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3878
     $as_unset ac_script || ac_script=
 
3879
     if test -z "$SED"; then
 
3880
  ac_path_SED_found=false
 
3881
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3882
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872
3883
for as_dir in $PATH
3873
3884
do
3874
3885
  IFS=$as_save_IFS
3875
3886
  test -z "$as_dir" && as_dir=.
3876
 
  for lt_ac_prog in sed gsed; do
 
3887
  for ac_prog in sed gsed; do
3877
3888
    for ac_exec_ext in '' $ac_executable_extensions; do
3878
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3879
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3880
 
      fi
 
3889
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3890
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3891
# Check for GNU ac_path_SED and select it if it is found.
 
3892
  # Check for GNU $ac_path_SED
 
3893
case `"$ac_path_SED" --version 2>&1` in
 
3894
*GNU*)
 
3895
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3896
*)
 
3897
  ac_count=0
 
3898
  $as_echo_n 0123456789 >"conftest.in"
 
3899
  while :
 
3900
  do
 
3901
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3902
    mv "conftest.tmp" "conftest.in"
 
3903
    cp "conftest.in" "conftest.nl"
 
3904
    $as_echo '' >> "conftest.nl"
 
3905
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3906
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3907
    ac_count=`expr $ac_count + 1`
 
3908
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3909
      # Best one so far, save it but keep looking for a better one
 
3910
      ac_cv_path_SED="$ac_path_SED"
 
3911
      ac_path_SED_max=$ac_count
 
3912
    fi
 
3913
    # 10*(2^10) chars as input seems more than enough
 
3914
    test $ac_count -gt 10 && break
 
3915
  done
 
3916
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3917
esac
 
3918
 
 
3919
      $ac_path_SED_found && break 3
3881
3920
    done
3882
3921
  done
3883
3922
done
3884
3923
IFS=$as_save_IFS
3885
 
lt_ac_max=0
3886
 
lt_ac_count=0
3887
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3888
 
# along with /bin/sed that truncates output.
3889
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3890
 
  test ! -f $lt_ac_sed && continue
3891
 
  cat /dev/null > conftest.in
3892
 
  lt_ac_count=0
3893
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3894
 
  # Check for GNU sed and select it if it is found.
3895
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3896
 
    lt_cv_path_SED=$lt_ac_sed
3897
 
    break
 
3924
  if test -z "$ac_cv_path_SED"; then
 
3925
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
3926
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
3927
   { (exit 1); exit 1; }; }
3898
3928
  fi
3899
 
  while true; do
3900
 
    cat conftest.in conftest.in >conftest.tmp
3901
 
    mv conftest.tmp conftest.in
3902
 
    cp conftest.in conftest.nl
3903
 
    echo >>conftest.nl
3904
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3905
 
    cmp -s conftest.out conftest.nl || break
3906
 
    # 10000 chars as input seems more than enough
3907
 
    test $lt_ac_count -gt 10 && break
3908
 
    lt_ac_count=`expr $lt_ac_count + 1`
3909
 
    if test $lt_ac_count -gt $lt_ac_max; then
3910
 
      lt_ac_max=$lt_ac_count
3911
 
      lt_cv_path_SED=$lt_ac_sed
3912
 
    fi
3913
 
  done
3914
 
done
3915
 
 
3916
 
fi
3917
 
 
3918
 
SED=$lt_cv_path_SED
3919
 
 
3920
 
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3921
 
$as_echo "$SED" >&6; }
 
3929
else
 
3930
  ac_cv_path_SED=$SED
 
3931
fi
 
3932
 
 
3933
fi
 
3934
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
3935
$as_echo "$ac_cv_path_SED" >&6; }
 
3936
 SED="$ac_cv_path_SED"
 
3937
  rm -f conftest.sed
 
3938
 
 
3939
test -z "$SED" && SED=sed
 
3940
Xsed="$SED -e 1s/^X//"
 
3941
 
 
3942
 
 
3943
 
 
3944
 
 
3945
 
 
3946
 
 
3947
 
 
3948
 
 
3949
 
 
3950
 
3922
3951
 
3923
3952
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924
3953
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4054
4083
 EGREP="$ac_cv_path_EGREP"
4055
4084
 
4056
4085
 
 
4086
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
4087
$as_echo_n "checking for fgrep... " >&6; }
 
4088
if test "${ac_cv_path_FGREP+set}" = set; then
 
4089
  $as_echo_n "(cached) " >&6
 
4090
else
 
4091
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4092
   then ac_cv_path_FGREP="$GREP -F"
 
4093
   else
 
4094
     if test -z "$FGREP"; then
 
4095
  ac_path_FGREP_found=false
 
4096
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4097
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4098
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4099
do
 
4100
  IFS=$as_save_IFS
 
4101
  test -z "$as_dir" && as_dir=.
 
4102
  for ac_prog in fgrep; do
 
4103
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4104
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4105
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4106
# Check for GNU ac_path_FGREP and select it if it is found.
 
4107
  # Check for GNU $ac_path_FGREP
 
4108
case `"$ac_path_FGREP" --version 2>&1` in
 
4109
*GNU*)
 
4110
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4111
*)
 
4112
  ac_count=0
 
4113
  $as_echo_n 0123456789 >"conftest.in"
 
4114
  while :
 
4115
  do
 
4116
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4117
    mv "conftest.tmp" "conftest.in"
 
4118
    cp "conftest.in" "conftest.nl"
 
4119
    $as_echo 'FGREP' >> "conftest.nl"
 
4120
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4121
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4122
    ac_count=`expr $ac_count + 1`
 
4123
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4124
      # Best one so far, save it but keep looking for a better one
 
4125
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4126
      ac_path_FGREP_max=$ac_count
 
4127
    fi
 
4128
    # 10*(2^10) chars as input seems more than enough
 
4129
    test $ac_count -gt 10 && break
 
4130
  done
 
4131
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4132
esac
 
4133
 
 
4134
      $ac_path_FGREP_found && break 3
 
4135
    done
 
4136
  done
 
4137
done
 
4138
IFS=$as_save_IFS
 
4139
  if test -z "$ac_cv_path_FGREP"; then
 
4140
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4141
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4142
   { (exit 1); exit 1; }; }
 
4143
  fi
 
4144
else
 
4145
  ac_cv_path_FGREP=$FGREP
 
4146
fi
 
4147
 
 
4148
   fi
 
4149
fi
 
4150
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4151
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4152
 FGREP="$ac_cv_path_FGREP"
 
4153
 
 
4154
 
 
4155
test -z "$GREP" && GREP=grep
 
4156
 
 
4157
 
 
4158
 
 
4159
 
 
4160
 
 
4161
 
 
4162
 
 
4163
 
 
4164
 
 
4165
 
 
4166
 
 
4167
 
 
4168
 
 
4169
 
 
4170
 
 
4171
 
 
4172
 
 
4173
 
4057
4174
 
4058
4175
# Check whether --with-gnu-ld was given.
4059
4176
if test "${with_gnu_ld+set}" = set; then
4079
4196
    [\\/]* | ?:[\\/]*)
4080
4197
      re_direlt='/[^/][^/]*/\.\./'
4081
4198
      # Canonicalize the pathname of ld
4082
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4083
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4084
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4199
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4200
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4201
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4085
4202
      done
4086
4203
      test -z "$LD" && LD="$ac_prog"
4087
4204
      ;;
4161
4278
with_gnu_ld=$lt_cv_prog_gnu_ld
4162
4279
 
4163
4280
 
4164
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4165
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4166
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4167
 
  $as_echo_n "(cached) " >&6
4168
 
else
4169
 
  lt_cv_ld_reload_flag='-r'
4170
 
fi
4171
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4172
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4173
 
reload_flag=$lt_cv_ld_reload_flag
4174
 
case $reload_flag in
4175
 
"" | " "*) ;;
4176
 
*) reload_flag=" $reload_flag" ;;
4177
 
esac
4178
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4179
 
case $host_os in
4180
 
  darwin*)
4181
 
    if test "$GCC" = yes; then
4182
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4183
 
    else
4184
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4185
 
    fi
4186
 
    ;;
4187
 
esac
4188
 
 
4189
 
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4190
 
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4281
 
 
4282
 
 
4283
 
 
4284
 
 
4285
 
 
4286
 
 
4287
 
 
4288
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4289
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4191
4290
if test "${lt_cv_path_NM+set}" = set; then
4192
4291
  $as_echo_n "(cached) " >&6
4193
4292
else
4232
4331
    done
4233
4332
    IFS="$lt_save_ifs"
4234
4333
  done
4235
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4334
  : ${lt_cv_path_NM=no}
4236
4335
fi
4237
4336
fi
4238
4337
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4239
4338
$as_echo "$lt_cv_path_NM" >&6; }
4240
 
NM="$lt_cv_path_NM"
 
4339
if test "$lt_cv_path_NM" != "no"; then
 
4340
  NM="$lt_cv_path_NM"
 
4341
else
 
4342
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4343
  if test -n "$ac_tool_prefix"; then
 
4344
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4345
  do
 
4346
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4347
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4348
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4349
$as_echo_n "checking for $ac_word... " >&6; }
 
4350
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4351
  $as_echo_n "(cached) " >&6
 
4352
else
 
4353
  if test -n "$DUMPBIN"; then
 
4354
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4355
else
 
4356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4357
for as_dir in $PATH
 
4358
do
 
4359
  IFS=$as_save_IFS
 
4360
  test -z "$as_dir" && as_dir=.
 
4361
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4362
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4363
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4364
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4365
    break 2
 
4366
  fi
 
4367
done
 
4368
done
 
4369
IFS=$as_save_IFS
 
4370
 
 
4371
fi
 
4372
fi
 
4373
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4374
if test -n "$DUMPBIN"; then
 
4375
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4376
$as_echo "$DUMPBIN" >&6; }
 
4377
else
 
4378
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4379
$as_echo "no" >&6; }
 
4380
fi
 
4381
 
 
4382
 
 
4383
    test -n "$DUMPBIN" && break
 
4384
  done
 
4385
fi
 
4386
if test -z "$DUMPBIN"; then
 
4387
  ac_ct_DUMPBIN=$DUMPBIN
 
4388
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4389
do
 
4390
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4391
set dummy $ac_prog; ac_word=$2
 
4392
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4393
$as_echo_n "checking for $ac_word... " >&6; }
 
4394
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4395
  $as_echo_n "(cached) " >&6
 
4396
else
 
4397
  if test -n "$ac_ct_DUMPBIN"; then
 
4398
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4399
else
 
4400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4401
for as_dir in $PATH
 
4402
do
 
4403
  IFS=$as_save_IFS
 
4404
  test -z "$as_dir" && as_dir=.
 
4405
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4406
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4407
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4408
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4409
    break 2
 
4410
  fi
 
4411
done
 
4412
done
 
4413
IFS=$as_save_IFS
 
4414
 
 
4415
fi
 
4416
fi
 
4417
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4418
if test -n "$ac_ct_DUMPBIN"; then
 
4419
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4420
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4421
else
 
4422
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4423
$as_echo "no" >&6; }
 
4424
fi
 
4425
 
 
4426
 
 
4427
  test -n "$ac_ct_DUMPBIN" && break
 
4428
done
 
4429
 
 
4430
  if test "x$ac_ct_DUMPBIN" = x; then
 
4431
    DUMPBIN=":"
 
4432
  else
 
4433
    case $cross_compiling:$ac_tool_warned in
 
4434
yes:)
 
4435
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4436
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4437
ac_tool_warned=yes ;;
 
4438
esac
 
4439
    DUMPBIN=$ac_ct_DUMPBIN
 
4440
  fi
 
4441
fi
 
4442
 
 
4443
 
 
4444
  if test "$DUMPBIN" != ":"; then
 
4445
    NM="$DUMPBIN"
 
4446
  fi
 
4447
fi
 
4448
test -z "$NM" && NM=nm
 
4449
 
 
4450
 
 
4451
 
 
4452
 
 
4453
 
 
4454
 
 
4455
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4456
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4457
if test "${lt_cv_nm_interface+set}" = set; then
 
4458
  $as_echo_n "(cached) " >&6
 
4459
else
 
4460
  lt_cv_nm_interface="BSD nm"
 
4461
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4462
  (eval echo "\"\$as_me:4462: $ac_compile\"" >&5)
 
4463
  (eval "$ac_compile" 2>conftest.err)
 
4464
  cat conftest.err >&5
 
4465
  (eval echo "\"\$as_me:4465: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4466
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4467
  cat conftest.err >&5
 
4468
  (eval echo "\"\$as_me:4468: output\"" >&5)
 
4469
  cat conftest.out >&5
 
4470
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4471
    lt_cv_nm_interface="MS dumpbin"
 
4472
  fi
 
4473
  rm -f conftest*
 
4474
fi
 
4475
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4476
$as_echo "$lt_cv_nm_interface" >&6; }
4241
4477
 
4242
4478
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4243
4479
$as_echo_n "checking whether ln -s works... " >&6; }
4250
4486
$as_echo "no, using $LN_S" >&6; }
4251
4487
fi
4252
4488
 
 
4489
# find the maximum length of command line arguments
 
4490
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4491
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4492
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4493
  $as_echo_n "(cached) " >&6
 
4494
else
 
4495
    i=0
 
4496
  teststring="ABCD"
 
4497
 
 
4498
  case $build_os in
 
4499
  msdosdjgpp*)
 
4500
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4501
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4502
    # during glob expansion).  Even if it were fixed, the result of this
 
4503
    # check would be larger than it should be.
 
4504
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4505
    ;;
 
4506
 
 
4507
  gnu*)
 
4508
    # Under GNU Hurd, this test is not required because there is
 
4509
    # no limit to the length of command line arguments.
 
4510
    # Libtool will interpret -1 as no limit whatsoever
 
4511
    lt_cv_sys_max_cmd_len=-1;
 
4512
    ;;
 
4513
 
 
4514
  cygwin* | mingw* | cegcc*)
 
4515
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4516
    # about 5 minutes as the teststring grows exponentially.
 
4517
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4518
    # you end up with a "frozen" computer, even though with patience
 
4519
    # the test eventually succeeds (with a max line length of 256k).
 
4520
    # Instead, let's just punt: use the minimum linelength reported by
 
4521
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4522
    lt_cv_sys_max_cmd_len=8192;
 
4523
    ;;
 
4524
 
 
4525
  amigaos*)
 
4526
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4527
    # So we just punt and use a minimum line length of 8192.
 
4528
    lt_cv_sys_max_cmd_len=8192;
 
4529
    ;;
 
4530
 
 
4531
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4532
    # This has been around since 386BSD, at least.  Likely further.
 
4533
    if test -x /sbin/sysctl; then
 
4534
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4535
    elif test -x /usr/sbin/sysctl; then
 
4536
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4537
    else
 
4538
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4539
    fi
 
4540
    # And add a safety zone
 
4541
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4542
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4543
    ;;
 
4544
 
 
4545
  interix*)
 
4546
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4547
    lt_cv_sys_max_cmd_len=196608
 
4548
    ;;
 
4549
 
 
4550
  osf*)
 
4551
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4552
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4553
    # nice to cause kernel panics so lets avoid the loop below.
 
4554
    # First set a reasonable default.
 
4555
    lt_cv_sys_max_cmd_len=16384
 
4556
    #
 
4557
    if test -x /sbin/sysconfig; then
 
4558
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4559
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4560
      esac
 
4561
    fi
 
4562
    ;;
 
4563
  sco3.2v5*)
 
4564
    lt_cv_sys_max_cmd_len=102400
 
4565
    ;;
 
4566
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4567
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4568
    if test -n "$kargmax"; then
 
4569
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4570
    else
 
4571
      lt_cv_sys_max_cmd_len=32768
 
4572
    fi
 
4573
    ;;
 
4574
  *)
 
4575
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4576
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4577
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4578
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4579
    else
 
4580
      # Make teststring a little bigger before we do anything with it.
 
4581
      # a 1K string should be a reasonable start.
 
4582
      for i in 1 2 3 4 5 6 7 8 ; do
 
4583
        teststring=$teststring$teststring
 
4584
      done
 
4585
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4586
      # If test is not a shell built-in, we'll probably end up computing a
 
4587
      # maximum length that is only half of the actual maximum length, but
 
4588
      # we can't tell.
 
4589
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4590
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4591
              test $i != 17 # 1/2 MB should be enough
 
4592
      do
 
4593
        i=`expr $i + 1`
 
4594
        teststring=$teststring$teststring
 
4595
      done
 
4596
      # Only check the string length outside the loop.
 
4597
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4598
      teststring=
 
4599
      # Add a significant safety factor because C++ compilers can tack on
 
4600
      # massive amounts of additional arguments before passing them to the
 
4601
      # linker.  It appears as though 1/2 is a usable value.
 
4602
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4603
    fi
 
4604
    ;;
 
4605
  esac
 
4606
 
 
4607
fi
 
4608
 
 
4609
if test -n $lt_cv_sys_max_cmd_len ; then
 
4610
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4611
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4612
else
 
4613
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
4614
$as_echo "none" >&6; }
 
4615
fi
 
4616
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4617
 
 
4618
 
 
4619
 
 
4620
 
 
4621
 
 
4622
 
 
4623
: ${CP="cp -f"}
 
4624
: ${MV="mv -f"}
 
4625
: ${RM="rm -f"}
 
4626
 
 
4627
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
4628
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4629
# Try some XSI features
 
4630
xsi_shell=no
 
4631
( _lt_dummy="a/b/c"
 
4632
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4633
      = c,a/b,, \
 
4634
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4635
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4636
  && xsi_shell=yes
 
4637
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
4638
$as_echo "$xsi_shell" >&6; }
 
4639
 
 
4640
 
 
4641
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
4642
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4643
lt_shell_append=no
 
4644
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4645
    >/dev/null 2>&1 \
 
4646
  && lt_shell_append=yes
 
4647
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
4648
$as_echo "$lt_shell_append" >&6; }
 
4649
 
 
4650
 
 
4651
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4652
  lt_unset=unset
 
4653
else
 
4654
  lt_unset=false
 
4655
fi
 
4656
 
 
4657
 
 
4658
 
 
4659
 
 
4660
 
 
4661
# test EBCDIC or ASCII
 
4662
case `echo X|tr X '\101'` in
 
4663
 A) # ASCII based system
 
4664
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4665
  lt_SP2NL='tr \040 \012'
 
4666
  lt_NL2SP='tr \015\012 \040\040'
 
4667
  ;;
 
4668
 *) # EBCDIC based system
 
4669
  lt_SP2NL='tr \100 \n'
 
4670
  lt_NL2SP='tr \r\n \100\100'
 
4671
  ;;
 
4672
esac
 
4673
 
 
4674
 
 
4675
 
 
4676
 
 
4677
 
 
4678
 
 
4679
 
 
4680
 
 
4681
 
 
4682
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4683
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4684
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4685
  $as_echo_n "(cached) " >&6
 
4686
else
 
4687
  lt_cv_ld_reload_flag='-r'
 
4688
fi
 
4689
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4690
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4691
reload_flag=$lt_cv_ld_reload_flag
 
4692
case $reload_flag in
 
4693
"" | " "*) ;;
 
4694
*) reload_flag=" $reload_flag" ;;
 
4695
esac
 
4696
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4697
case $host_os in
 
4698
  darwin*)
 
4699
    if test "$GCC" = yes; then
 
4700
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4701
    else
 
4702
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4703
    fi
 
4704
    ;;
 
4705
esac
 
4706
 
 
4707
 
 
4708
 
 
4709
 
 
4710
 
 
4711
 
 
4712
 
 
4713
 
 
4714
 
 
4715
if test -n "$ac_tool_prefix"; then
 
4716
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4717
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4718
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4719
$as_echo_n "checking for $ac_word... " >&6; }
 
4720
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4721
  $as_echo_n "(cached) " >&6
 
4722
else
 
4723
  if test -n "$OBJDUMP"; then
 
4724
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4725
else
 
4726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4727
for as_dir in $PATH
 
4728
do
 
4729
  IFS=$as_save_IFS
 
4730
  test -z "$as_dir" && as_dir=.
 
4731
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4732
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4733
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4734
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4735
    break 2
 
4736
  fi
 
4737
done
 
4738
done
 
4739
IFS=$as_save_IFS
 
4740
 
 
4741
fi
 
4742
fi
 
4743
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4744
if test -n "$OBJDUMP"; then
 
4745
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4746
$as_echo "$OBJDUMP" >&6; }
 
4747
else
 
4748
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4749
$as_echo "no" >&6; }
 
4750
fi
 
4751
 
 
4752
 
 
4753
fi
 
4754
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4755
  ac_ct_OBJDUMP=$OBJDUMP
 
4756
  # Extract the first word of "objdump", so it can be a program name with args.
 
4757
set dummy objdump; ac_word=$2
 
4758
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4759
$as_echo_n "checking for $ac_word... " >&6; }
 
4760
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4761
  $as_echo_n "(cached) " >&6
 
4762
else
 
4763
  if test -n "$ac_ct_OBJDUMP"; then
 
4764
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4765
else
 
4766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4767
for as_dir in $PATH
 
4768
do
 
4769
  IFS=$as_save_IFS
 
4770
  test -z "$as_dir" && as_dir=.
 
4771
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4772
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4773
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4774
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4775
    break 2
 
4776
  fi
 
4777
done
 
4778
done
 
4779
IFS=$as_save_IFS
 
4780
 
 
4781
fi
 
4782
fi
 
4783
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4784
if test -n "$ac_ct_OBJDUMP"; then
 
4785
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4786
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4787
else
 
4788
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4789
$as_echo "no" >&6; }
 
4790
fi
 
4791
 
 
4792
  if test "x$ac_ct_OBJDUMP" = x; then
 
4793
    OBJDUMP="false"
 
4794
  else
 
4795
    case $cross_compiling:$ac_tool_warned in
 
4796
yes:)
 
4797
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4798
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4799
ac_tool_warned=yes ;;
 
4800
esac
 
4801
    OBJDUMP=$ac_ct_OBJDUMP
 
4802
  fi
 
4803
else
 
4804
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4805
fi
 
4806
 
 
4807
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4808
 
 
4809
 
 
4810
 
 
4811
 
 
4812
 
 
4813
 
 
4814
 
 
4815
 
 
4816
 
4253
4817
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4254
4818
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4255
4819
if test "${lt_cv_deplibs_check_method+set}" = set; then
4303
4867
  fi
4304
4868
  ;;
4305
4869
 
 
4870
cegcc)
 
4871
  # use the weaker test based on 'objdump'. See mingw*.
 
4872
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4873
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4874
  ;;
 
4875
 
4306
4876
darwin* | rhapsody*)
4307
4877
  lt_cv_deplibs_check_method=pass_all
4308
4878
  ;;
4309
4879
 
4310
4880
freebsd* | dragonfly*)
4311
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4881
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4312
4882
    case $host_cpu in
4313
4883
    i*86 )
4314
4884
      # Not sure whether the presence of OpenBSD here was a mistake.
4366
4936
  ;;
4367
4937
 
4368
4938
netbsd*)
4369
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4939
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4370
4940
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371
4941
  else
4372
4942
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4379
4949
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4380
4950
  ;;
4381
4951
 
4382
 
nto-qnx*)
4383
 
  lt_cv_deplibs_check_method=unknown
 
4952
*nto* | *qnx*)
 
4953
  lt_cv_deplibs_check_method=pass_all
4384
4954
  ;;
4385
4955
 
4386
4956
openbsd*)
4387
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4957
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4388
4958
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4389
4959
  else
4390
4960
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4403
4973
  lt_cv_deplibs_check_method=pass_all
4404
4974
  ;;
4405
4975
 
 
4976
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4977
  lt_cv_deplibs_check_method=pass_all
 
4978
  ;;
 
4979
 
4406
4980
sysv4 | sysv4.3*)
4407
4981
  case $host_vendor in
4408
4982
  motorola)
4430
5004
  esac
4431
5005
  ;;
4432
5006
 
4433
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5007
tpf*)
4434
5008
  lt_cv_deplibs_check_method=pass_all
4435
5009
  ;;
4436
5010
esac
4445
5019
 
4446
5020
 
4447
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
 
5027
 
 
5028
 
 
5029
 
 
5030
if test -n "$ac_tool_prefix"; then
 
5031
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5032
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5033
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5034
$as_echo_n "checking for $ac_word... " >&6; }
 
5035
if test "${ac_cv_prog_AR+set}" = set; then
 
5036
  $as_echo_n "(cached) " >&6
 
5037
else
 
5038
  if test -n "$AR"; then
 
5039
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5040
else
 
5041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5042
for as_dir in $PATH
 
5043
do
 
5044
  IFS=$as_save_IFS
 
5045
  test -z "$as_dir" && as_dir=.
 
5046
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5047
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5048
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5049
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5050
    break 2
 
5051
  fi
 
5052
done
 
5053
done
 
5054
IFS=$as_save_IFS
 
5055
 
 
5056
fi
 
5057
fi
 
5058
AR=$ac_cv_prog_AR
 
5059
if test -n "$AR"; then
 
5060
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
5061
$as_echo "$AR" >&6; }
 
5062
else
 
5063
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5064
$as_echo "no" >&6; }
 
5065
fi
 
5066
 
 
5067
 
 
5068
fi
 
5069
if test -z "$ac_cv_prog_AR"; then
 
5070
  ac_ct_AR=$AR
 
5071
  # Extract the first word of "ar", so it can be a program name with args.
 
5072
set dummy ar; ac_word=$2
 
5073
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5074
$as_echo_n "checking for $ac_word... " >&6; }
 
5075
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5076
  $as_echo_n "(cached) " >&6
 
5077
else
 
5078
  if test -n "$ac_ct_AR"; then
 
5079
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5080
else
 
5081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5082
for as_dir in $PATH
 
5083
do
 
5084
  IFS=$as_save_IFS
 
5085
  test -z "$as_dir" && as_dir=.
 
5086
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5087
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5088
    ac_cv_prog_ac_ct_AR="ar"
 
5089
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5090
    break 2
 
5091
  fi
 
5092
done
 
5093
done
 
5094
IFS=$as_save_IFS
 
5095
 
 
5096
fi
 
5097
fi
 
5098
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5099
if test -n "$ac_ct_AR"; then
 
5100
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5101
$as_echo "$ac_ct_AR" >&6; }
 
5102
else
 
5103
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5104
$as_echo "no" >&6; }
 
5105
fi
 
5106
 
 
5107
  if test "x$ac_ct_AR" = x; then
 
5108
    AR="false"
 
5109
  else
 
5110
    case $cross_compiling:$ac_tool_warned in
 
5111
yes:)
 
5112
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5113
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5114
ac_tool_warned=yes ;;
 
5115
esac
 
5116
    AR=$ac_ct_AR
 
5117
  fi
 
5118
else
 
5119
  AR="$ac_cv_prog_AR"
 
5120
fi
 
5121
 
 
5122
test -z "$AR" && AR=ar
 
5123
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5124
 
 
5125
 
 
5126
 
 
5127
 
 
5128
 
 
5129
 
 
5130
 
 
5131
 
 
5132
 
 
5133
 
 
5134
 
 
5135
if test -n "$ac_tool_prefix"; then
 
5136
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5137
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5138
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5139
$as_echo_n "checking for $ac_word... " >&6; }
 
5140
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5141
  $as_echo_n "(cached) " >&6
 
5142
else
 
5143
  if test -n "$STRIP"; then
 
5144
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5145
else
 
5146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5147
for as_dir in $PATH
 
5148
do
 
5149
  IFS=$as_save_IFS
 
5150
  test -z "$as_dir" && as_dir=.
 
5151
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5152
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5153
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5154
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5155
    break 2
 
5156
  fi
 
5157
done
 
5158
done
 
5159
IFS=$as_save_IFS
 
5160
 
 
5161
fi
 
5162
fi
 
5163
STRIP=$ac_cv_prog_STRIP
 
5164
if test -n "$STRIP"; then
 
5165
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
5166
$as_echo "$STRIP" >&6; }
 
5167
else
 
5168
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5169
$as_echo "no" >&6; }
 
5170
fi
 
5171
 
 
5172
 
 
5173
fi
 
5174
if test -z "$ac_cv_prog_STRIP"; then
 
5175
  ac_ct_STRIP=$STRIP
 
5176
  # Extract the first word of "strip", so it can be a program name with args.
 
5177
set dummy strip; ac_word=$2
 
5178
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5179
$as_echo_n "checking for $ac_word... " >&6; }
 
5180
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5181
  $as_echo_n "(cached) " >&6
 
5182
else
 
5183
  if test -n "$ac_ct_STRIP"; then
 
5184
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5185
else
 
5186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5187
for as_dir in $PATH
 
5188
do
 
5189
  IFS=$as_save_IFS
 
5190
  test -z "$as_dir" && as_dir=.
 
5191
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5192
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5193
    ac_cv_prog_ac_ct_STRIP="strip"
 
5194
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5195
    break 2
 
5196
  fi
 
5197
done
 
5198
done
 
5199
IFS=$as_save_IFS
 
5200
 
 
5201
fi
 
5202
fi
 
5203
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5204
if test -n "$ac_ct_STRIP"; then
 
5205
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5206
$as_echo "$ac_ct_STRIP" >&6; }
 
5207
else
 
5208
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5209
$as_echo "no" >&6; }
 
5210
fi
 
5211
 
 
5212
  if test "x$ac_ct_STRIP" = x; then
 
5213
    STRIP=":"
 
5214
  else
 
5215
    case $cross_compiling:$ac_tool_warned in
 
5216
yes:)
 
5217
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5218
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5219
ac_tool_warned=yes ;;
 
5220
esac
 
5221
    STRIP=$ac_ct_STRIP
 
5222
  fi
 
5223
else
 
5224
  STRIP="$ac_cv_prog_STRIP"
 
5225
fi
 
5226
 
 
5227
test -z "$STRIP" && STRIP=:
 
5228
 
 
5229
 
 
5230
 
 
5231
 
 
5232
 
 
5233
 
 
5234
if test -n "$ac_tool_prefix"; then
 
5235
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5236
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5237
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5238
$as_echo_n "checking for $ac_word... " >&6; }
 
5239
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5240
  $as_echo_n "(cached) " >&6
 
5241
else
 
5242
  if test -n "$RANLIB"; then
 
5243
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5244
else
 
5245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5246
for as_dir in $PATH
 
5247
do
 
5248
  IFS=$as_save_IFS
 
5249
  test -z "$as_dir" && as_dir=.
 
5250
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5252
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5253
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5254
    break 2
 
5255
  fi
 
5256
done
 
5257
done
 
5258
IFS=$as_save_IFS
 
5259
 
 
5260
fi
 
5261
fi
 
5262
RANLIB=$ac_cv_prog_RANLIB
 
5263
if test -n "$RANLIB"; then
 
5264
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5265
$as_echo "$RANLIB" >&6; }
 
5266
else
 
5267
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5268
$as_echo "no" >&6; }
 
5269
fi
 
5270
 
 
5271
 
 
5272
fi
 
5273
if test -z "$ac_cv_prog_RANLIB"; then
 
5274
  ac_ct_RANLIB=$RANLIB
 
5275
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5276
set dummy ranlib; ac_word=$2
 
5277
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5278
$as_echo_n "checking for $ac_word... " >&6; }
 
5279
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5280
  $as_echo_n "(cached) " >&6
 
5281
else
 
5282
  if test -n "$ac_ct_RANLIB"; then
 
5283
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5284
else
 
5285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5286
for as_dir in $PATH
 
5287
do
 
5288
  IFS=$as_save_IFS
 
5289
  test -z "$as_dir" && as_dir=.
 
5290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5292
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5293
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5294
    break 2
 
5295
  fi
 
5296
done
 
5297
done
 
5298
IFS=$as_save_IFS
 
5299
 
 
5300
fi
 
5301
fi
 
5302
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5303
if test -n "$ac_ct_RANLIB"; then
 
5304
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5305
$as_echo "$ac_ct_RANLIB" >&6; }
 
5306
else
 
5307
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5308
$as_echo "no" >&6; }
 
5309
fi
 
5310
 
 
5311
  if test "x$ac_ct_RANLIB" = x; then
 
5312
    RANLIB=":"
 
5313
  else
 
5314
    case $cross_compiling:$ac_tool_warned in
 
5315
yes:)
 
5316
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5317
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5318
ac_tool_warned=yes ;;
 
5319
esac
 
5320
    RANLIB=$ac_ct_RANLIB
 
5321
  fi
 
5322
else
 
5323
  RANLIB="$ac_cv_prog_RANLIB"
 
5324
fi
 
5325
 
 
5326
test -z "$RANLIB" && RANLIB=:
 
5327
 
 
5328
 
 
5329
 
 
5330
 
 
5331
 
 
5332
 
 
5333
# Determine commands to create old-style static archives.
 
5334
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5335
old_postinstall_cmds='chmod 644 $oldlib'
 
5336
old_postuninstall_cmds=
 
5337
 
 
5338
if test -n "$RANLIB"; then
 
5339
  case $host_os in
 
5340
  openbsd*)
 
5341
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5342
    ;;
 
5343
  *)
 
5344
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5345
    ;;
 
5346
  esac
 
5347
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5348
fi
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
 
 
5366
 
 
5367
 
 
5368
 
 
5369
 
 
5370
 
 
5371
 
 
5372
 
 
5373
 
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
 
5379
 
 
5380
 
 
5381
 
 
5382
 
4448
5383
# If no C compiler was specified, use CC.
4449
5384
LTCC=${LTCC-"$CC"}
4450
5385
 
4455
5390
compiler=$CC
4456
5391
 
4457
5392
 
4458
 
# Check whether --enable-libtool-lock was given.
4459
 
if test "${enable_libtool_lock+set}" = set; then
4460
 
  enableval=$enable_libtool_lock;
4461
 
fi
4462
 
 
4463
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4464
 
 
4465
 
# Some flags need to be propagated to the compiler or linker for good
4466
 
# libtool support.
4467
 
case $host in
4468
 
ia64-*-hpux*)
4469
 
  # Find out which ABI we are using.
4470
 
  echo 'int i;' > conftest.$ac_ext
4471
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472
 
  (eval $ac_compile) 2>&5
4473
 
  ac_status=$?
4474
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475
 
  (exit $ac_status); }; then
4476
 
    case `/usr/bin/file conftest.$ac_objext` in
4477
 
    *ELF-32*)
4478
 
      HPUX_IA64_MODE="32"
4479
 
      ;;
4480
 
    *ELF-64*)
4481
 
      HPUX_IA64_MODE="64"
4482
 
      ;;
4483
 
    esac
4484
 
  fi
4485
 
  rm -rf conftest*
4486
 
  ;;
4487
 
*-*-irix6*)
4488
 
  # Find out which ABI we are using.
4489
 
  echo '#line 4489 "configure"' > conftest.$ac_ext
4490
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491
 
  (eval $ac_compile) 2>&5
4492
 
  ac_status=$?
4493
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
 
  (exit $ac_status); }; then
4495
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4496
 
    case `/usr/bin/file conftest.$ac_objext` in
4497
 
    *32-bit*)
4498
 
      LD="${LD-ld} -melf32bsmip"
4499
 
      ;;
4500
 
    *N32*)
4501
 
      LD="${LD-ld} -melf32bmipn32"
4502
 
      ;;
4503
 
    *64-bit*)
4504
 
      LD="${LD-ld} -melf64bmip"
4505
 
      ;;
4506
 
    esac
4507
 
   else
4508
 
    case `/usr/bin/file conftest.$ac_objext` in
4509
 
    *32-bit*)
4510
 
      LD="${LD-ld} -32"
4511
 
      ;;
4512
 
    *N32*)
4513
 
      LD="${LD-ld} -n32"
4514
 
      ;;
4515
 
    *64-bit*)
4516
 
      LD="${LD-ld} -64"
4517
 
      ;;
4518
 
    esac
4519
 
   fi
4520
 
  fi
4521
 
  rm -rf conftest*
4522
 
  ;;
4523
 
 
4524
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4525
 
s390*-*linux*|sparc*-*linux*)
4526
 
  # Find out which ABI we are using.
4527
 
  echo 'int i;' > conftest.$ac_ext
4528
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529
 
  (eval $ac_compile) 2>&5
4530
 
  ac_status=$?
4531
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532
 
  (exit $ac_status); }; then
4533
 
    case `/usr/bin/file conftest.o` in
4534
 
    *32-bit*)
4535
 
      case $host in
4536
 
        x86_64-*kfreebsd*-gnu)
4537
 
          LD="${LD-ld} -m elf_i386_fbsd"
4538
 
          ;;
4539
 
        x86_64-*linux*)
4540
 
          LD="${LD-ld} -m elf_i386"
4541
 
          ;;
4542
 
        ppc64-*linux*|powerpc64-*linux*)
4543
 
          LD="${LD-ld} -m elf32ppclinux"
4544
 
          ;;
4545
 
        s390x-*linux*)
4546
 
          LD="${LD-ld} -m elf_s390"
4547
 
          ;;
4548
 
        sparc64-*linux*)
4549
 
          LD="${LD-ld} -m elf32_sparc"
4550
 
          ;;
4551
 
      esac
4552
 
      ;;
4553
 
    *64-bit*)
4554
 
      case $host in
4555
 
        x86_64-*kfreebsd*-gnu)
4556
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
4557
 
          ;;
4558
 
        x86_64-*linux*)
4559
 
          LD="${LD-ld} -m elf_x86_64"
4560
 
          ;;
4561
 
        ppc*-*linux*|powerpc*-*linux*)
4562
 
          LD="${LD-ld} -m elf64ppc"
4563
 
          ;;
4564
 
        s390*-*linux*)
4565
 
          LD="${LD-ld} -m elf64_s390"
4566
 
          ;;
4567
 
        sparc*-*linux*)
4568
 
          LD="${LD-ld} -m elf64_sparc"
4569
 
          ;;
4570
 
      esac
4571
 
      ;;
4572
 
    esac
4573
 
  fi
4574
 
  rm -rf conftest*
4575
 
  ;;
4576
 
 
4577
 
*-*-sco3.2v5*)
4578
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4579
 
  SAVE_CFLAGS="$CFLAGS"
4580
 
  CFLAGS="$CFLAGS -belf"
4581
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4582
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4583
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4584
 
  $as_echo_n "(cached) " >&6
4585
 
else
4586
 
  ac_ext=c
4587
 
ac_cpp='$CPP $CPPFLAGS'
4588
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
 
 
4592
 
     cat >conftest.$ac_ext <<_ACEOF
4593
 
/* confdefs.h.  */
4594
 
_ACEOF
4595
 
cat confdefs.h >>conftest.$ac_ext
4596
 
cat >>conftest.$ac_ext <<_ACEOF
4597
 
/* end confdefs.h.  */
4598
 
 
4599
 
int
4600
 
main ()
4601
 
{
4602
 
 
4603
 
  ;
4604
 
  return 0;
4605
 
}
4606
 
_ACEOF
4607
 
rm -f conftest.$ac_objext conftest$ac_exeext
4608
 
if { (ac_try="$ac_link"
4609
 
case "(($ac_try" in
4610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611
 
  *) ac_try_echo=$ac_try;;
4612
 
esac
4613
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4614
 
$as_echo "$ac_try_echo") >&5
4615
 
  (eval "$ac_link") 2>conftest.er1
4616
 
  ac_status=$?
4617
 
  grep -v '^ *+' conftest.er1 >conftest.err
4618
 
  rm -f conftest.er1
4619
 
  cat conftest.err >&5
4620
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621
 
  (exit $ac_status); } && {
4622
 
         test -z "$ac_c_werror_flag" ||
4623
 
         test ! -s conftest.err
4624
 
       } && test -s conftest$ac_exeext && {
4625
 
         test "$cross_compiling" = yes ||
4626
 
         $as_test_x conftest$ac_exeext
4627
 
       }; then
4628
 
  lt_cv_cc_needs_belf=yes
4629
 
else
4630
 
  $as_echo "$as_me: failed program was:" >&5
4631
 
sed 's/^/| /' conftest.$ac_ext >&5
4632
 
 
4633
 
        lt_cv_cc_needs_belf=no
4634
 
fi
4635
 
 
4636
 
rm -rf conftest.dSYM
4637
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4638
 
      conftest$ac_exeext conftest.$ac_ext
4639
 
     ac_ext=c
4640
 
ac_cpp='$CPP $CPPFLAGS'
4641
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
 
 
4645
 
fi
4646
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4647
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
4648
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4649
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4650
 
    CFLAGS="$SAVE_CFLAGS"
4651
 
  fi
4652
 
  ;;
4653
 
sparc*-*solaris*)
4654
 
  # Find out which ABI we are using.
4655
 
  echo 'int i;' > conftest.$ac_ext
4656
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657
 
  (eval $ac_compile) 2>&5
4658
 
  ac_status=$?
4659
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660
 
  (exit $ac_status); }; then
4661
 
    case `/usr/bin/file conftest.o` in
4662
 
    *64-bit*)
4663
 
      case $lt_cv_prog_gnu_ld in
4664
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4665
 
      *)
4666
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4667
 
          LD="${LD-ld} -64"
4668
 
        fi
4669
 
        ;;
4670
 
      esac
4671
 
      ;;
4672
 
    esac
4673
 
  fi
4674
 
  rm -rf conftest*
4675
 
  ;;
4676
 
 
4677
 
 
4678
 
esac
4679
 
 
4680
 
need_locks="$enable_libtool_lock"
4681
 
 
4682
 
 
4683
 
ac_ext=c
4684
 
ac_cpp='$CPP $CPPFLAGS'
4685
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4689
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4690
 
# On Suns, sometimes $CPP names a directory.
4691
 
if test -n "$CPP" && test -d "$CPP"; then
4692
 
  CPP=
4693
 
fi
4694
 
if test -z "$CPP"; then
4695
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4696
 
  $as_echo_n "(cached) " >&6
4697
 
else
4698
 
      # Double quotes because CPP needs to be expanded
4699
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4700
 
    do
4701
 
      ac_preproc_ok=false
4702
 
for ac_c_preproc_warn_flag in '' yes
4703
 
do
4704
 
  # Use a header file that comes with gcc, so configuring glibc
4705
 
  # with a fresh cross-compiler works.
4706
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707
 
  # <limits.h> exists even on freestanding compilers.
4708
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4709
 
  # not just through cpp. "Syntax error" is here to catch this case.
4710
 
  cat >conftest.$ac_ext <<_ACEOF
4711
 
/* confdefs.h.  */
4712
 
_ACEOF
4713
 
cat confdefs.h >>conftest.$ac_ext
4714
 
cat >>conftest.$ac_ext <<_ACEOF
4715
 
/* end confdefs.h.  */
4716
 
#ifdef __STDC__
4717
 
# include <limits.h>
4718
 
#else
4719
 
# include <assert.h>
4720
 
#endif
4721
 
                     Syntax error
4722
 
_ACEOF
4723
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4724
 
case "(($ac_try" in
4725
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726
 
  *) ac_try_echo=$ac_try;;
4727
 
esac
4728
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729
 
$as_echo "$ac_try_echo") >&5
4730
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4731
 
  ac_status=$?
4732
 
  grep -v '^ *+' conftest.er1 >conftest.err
4733
 
  rm -f conftest.er1
4734
 
  cat conftest.err >&5
4735
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
 
  (exit $ac_status); } >/dev/null && {
4737
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4738
 
         test ! -s conftest.err
4739
 
       }; then
4740
 
  :
4741
 
else
4742
 
  $as_echo "$as_me: failed program was:" >&5
4743
 
sed 's/^/| /' conftest.$ac_ext >&5
4744
 
 
4745
 
  # Broken: fails on valid input.
4746
 
continue
4747
 
fi
4748
 
 
4749
 
rm -f conftest.err conftest.$ac_ext
4750
 
 
4751
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4752
 
  # can be detected and how.
4753
 
  cat >conftest.$ac_ext <<_ACEOF
4754
 
/* confdefs.h.  */
4755
 
_ACEOF
4756
 
cat confdefs.h >>conftest.$ac_ext
4757
 
cat >>conftest.$ac_ext <<_ACEOF
4758
 
/* end confdefs.h.  */
4759
 
#include <ac_nonexistent.h>
4760
 
_ACEOF
4761
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4762
 
case "(($ac_try" in
4763
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764
 
  *) ac_try_echo=$ac_try;;
4765
 
esac
4766
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4767
 
$as_echo "$ac_try_echo") >&5
4768
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4769
 
  ac_status=$?
4770
 
  grep -v '^ *+' conftest.er1 >conftest.err
4771
 
  rm -f conftest.er1
4772
 
  cat conftest.err >&5
4773
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774
 
  (exit $ac_status); } >/dev/null && {
4775
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4776
 
         test ! -s conftest.err
4777
 
       }; then
4778
 
  # Broken: success on invalid input.
4779
 
continue
4780
 
else
4781
 
  $as_echo "$as_me: failed program was:" >&5
4782
 
sed 's/^/| /' conftest.$ac_ext >&5
4783
 
 
4784
 
  # Passes both tests.
4785
 
ac_preproc_ok=:
4786
 
break
4787
 
fi
4788
 
 
4789
 
rm -f conftest.err conftest.$ac_ext
4790
 
 
4791
 
done
4792
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4793
 
rm -f conftest.err conftest.$ac_ext
4794
 
if $ac_preproc_ok; then
4795
 
  break
4796
 
fi
4797
 
 
4798
 
    done
4799
 
    ac_cv_prog_CPP=$CPP
4800
 
 
4801
 
fi
4802
 
  CPP=$ac_cv_prog_CPP
4803
 
else
4804
 
  ac_cv_prog_CPP=$CPP
4805
 
fi
4806
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4807
 
$as_echo "$CPP" >&6; }
4808
 
ac_preproc_ok=false
4809
 
for ac_c_preproc_warn_flag in '' yes
4810
 
do
4811
 
  # Use a header file that comes with gcc, so configuring glibc
4812
 
  # with a fresh cross-compiler works.
4813
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814
 
  # <limits.h> exists even on freestanding compilers.
4815
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4816
 
  # not just through cpp. "Syntax error" is here to catch this case.
4817
 
  cat >conftest.$ac_ext <<_ACEOF
4818
 
/* confdefs.h.  */
4819
 
_ACEOF
4820
 
cat confdefs.h >>conftest.$ac_ext
4821
 
cat >>conftest.$ac_ext <<_ACEOF
4822
 
/* end confdefs.h.  */
4823
 
#ifdef __STDC__
4824
 
# include <limits.h>
4825
 
#else
4826
 
# include <assert.h>
4827
 
#endif
4828
 
                     Syntax error
4829
 
_ACEOF
4830
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4831
 
case "(($ac_try" in
4832
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833
 
  *) ac_try_echo=$ac_try;;
4834
 
esac
4835
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836
 
$as_echo "$ac_try_echo") >&5
4837
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838
 
  ac_status=$?
4839
 
  grep -v '^ *+' conftest.er1 >conftest.err
4840
 
  rm -f conftest.er1
4841
 
  cat conftest.err >&5
4842
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843
 
  (exit $ac_status); } >/dev/null && {
4844
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845
 
         test ! -s conftest.err
4846
 
       }; then
4847
 
  :
4848
 
else
4849
 
  $as_echo "$as_me: failed program was:" >&5
4850
 
sed 's/^/| /' conftest.$ac_ext >&5
4851
 
 
4852
 
  # Broken: fails on valid input.
4853
 
continue
4854
 
fi
4855
 
 
4856
 
rm -f conftest.err conftest.$ac_ext
4857
 
 
4858
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4859
 
  # can be detected and how.
4860
 
  cat >conftest.$ac_ext <<_ACEOF
4861
 
/* confdefs.h.  */
4862
 
_ACEOF
4863
 
cat confdefs.h >>conftest.$ac_ext
4864
 
cat >>conftest.$ac_ext <<_ACEOF
4865
 
/* end confdefs.h.  */
4866
 
#include <ac_nonexistent.h>
4867
 
_ACEOF
4868
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4869
 
case "(($ac_try" in
4870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871
 
  *) ac_try_echo=$ac_try;;
4872
 
esac
4873
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4874
 
$as_echo "$ac_try_echo") >&5
4875
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876
 
  ac_status=$?
4877
 
  grep -v '^ *+' conftest.er1 >conftest.err
4878
 
  rm -f conftest.er1
4879
 
  cat conftest.err >&5
4880
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
 
  (exit $ac_status); } >/dev/null && {
4882
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883
 
         test ! -s conftest.err
4884
 
       }; then
4885
 
  # Broken: success on invalid input.
4886
 
continue
4887
 
else
4888
 
  $as_echo "$as_me: failed program was:" >&5
4889
 
sed 's/^/| /' conftest.$ac_ext >&5
4890
 
 
4891
 
  # Passes both tests.
4892
 
ac_preproc_ok=:
4893
 
break
4894
 
fi
4895
 
 
4896
 
rm -f conftest.err conftest.$ac_ext
4897
 
 
4898
 
done
4899
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900
 
rm -f conftest.err conftest.$ac_ext
4901
 
if $ac_preproc_ok; then
4902
 
  :
4903
 
else
4904
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4905
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4907
 
See \`config.log' for more details." >&5
4908
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4909
 
See \`config.log' for more details." >&2;}
4910
 
   { (exit 1); exit 1; }; }; }
4911
 
fi
4912
 
 
4913
 
ac_ext=c
4914
 
ac_cpp='$CPP $CPPFLAGS'
4915
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
 
 
4919
 
 
4920
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4922
 
if test "${ac_cv_header_stdc+set}" = set; then
4923
 
  $as_echo_n "(cached) " >&6
4924
 
else
4925
 
  cat >conftest.$ac_ext <<_ACEOF
4926
 
/* confdefs.h.  */
4927
 
_ACEOF
4928
 
cat confdefs.h >>conftest.$ac_ext
4929
 
cat >>conftest.$ac_ext <<_ACEOF
4930
 
/* end confdefs.h.  */
4931
 
#include <stdlib.h>
4932
 
#include <stdarg.h>
4933
 
#include <string.h>
4934
 
#include <float.h>
4935
 
 
4936
 
int
4937
 
main ()
4938
 
{
4939
 
 
4940
 
  ;
4941
 
  return 0;
4942
 
}
4943
 
_ACEOF
4944
 
rm -f conftest.$ac_objext
4945
 
if { (ac_try="$ac_compile"
4946
 
case "(($ac_try" in
4947
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948
 
  *) ac_try_echo=$ac_try;;
4949
 
esac
4950
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951
 
$as_echo "$ac_try_echo") >&5
4952
 
  (eval "$ac_compile") 2>conftest.er1
4953
 
  ac_status=$?
4954
 
  grep -v '^ *+' conftest.er1 >conftest.err
4955
 
  rm -f conftest.er1
4956
 
  cat conftest.err >&5
4957
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958
 
  (exit $ac_status); } && {
4959
 
         test -z "$ac_c_werror_flag" ||
4960
 
         test ! -s conftest.err
4961
 
       } && test -s conftest.$ac_objext; then
4962
 
  ac_cv_header_stdc=yes
4963
 
else
4964
 
  $as_echo "$as_me: failed program was:" >&5
4965
 
sed 's/^/| /' conftest.$ac_ext >&5
4966
 
 
4967
 
        ac_cv_header_stdc=no
4968
 
fi
4969
 
 
4970
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971
 
 
4972
 
if test $ac_cv_header_stdc = yes; then
4973
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4974
 
  cat >conftest.$ac_ext <<_ACEOF
4975
 
/* confdefs.h.  */
4976
 
_ACEOF
4977
 
cat confdefs.h >>conftest.$ac_ext
4978
 
cat >>conftest.$ac_ext <<_ACEOF
4979
 
/* end confdefs.h.  */
4980
 
#include <string.h>
4981
 
 
4982
 
_ACEOF
4983
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984
 
  $EGREP "memchr" >/dev/null 2>&1; then
4985
 
  :
4986
 
else
4987
 
  ac_cv_header_stdc=no
4988
 
fi
4989
 
rm -f conftest*
4990
 
 
4991
 
fi
4992
 
 
4993
 
if test $ac_cv_header_stdc = yes; then
4994
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4995
 
  cat >conftest.$ac_ext <<_ACEOF
4996
 
/* confdefs.h.  */
4997
 
_ACEOF
4998
 
cat confdefs.h >>conftest.$ac_ext
4999
 
cat >>conftest.$ac_ext <<_ACEOF
5000
 
/* end confdefs.h.  */
5001
 
#include <stdlib.h>
5002
 
 
5003
 
_ACEOF
5004
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5005
 
  $EGREP "free" >/dev/null 2>&1; then
5006
 
  :
5007
 
else
5008
 
  ac_cv_header_stdc=no
5009
 
fi
5010
 
rm -f conftest*
5011
 
 
5012
 
fi
5013
 
 
5014
 
if test $ac_cv_header_stdc = yes; then
5015
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5016
 
  if test "$cross_compiling" = yes; then
5017
 
  :
5018
 
else
5019
 
  cat >conftest.$ac_ext <<_ACEOF
5020
 
/* confdefs.h.  */
5021
 
_ACEOF
5022
 
cat confdefs.h >>conftest.$ac_ext
5023
 
cat >>conftest.$ac_ext <<_ACEOF
5024
 
/* end confdefs.h.  */
5025
 
#include <ctype.h>
5026
 
#include <stdlib.h>
5027
 
#if ((' ' & 0x0FF) == 0x020)
5028
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030
 
#else
5031
 
# define ISLOWER(c) \
5032
 
                   (('a' <= (c) && (c) <= 'i') \
5033
 
                     || ('j' <= (c) && (c) <= 'r') \
5034
 
                     || ('s' <= (c) && (c) <= 'z'))
5035
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036
 
#endif
5037
 
 
5038
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5039
 
int
5040
 
main ()
5041
 
{
5042
 
  int i;
5043
 
  for (i = 0; i < 256; i++)
5044
 
    if (XOR (islower (i), ISLOWER (i))
5045
 
        || toupper (i) != TOUPPER (i))
5046
 
      return 2;
5047
 
  return 0;
5048
 
}
5049
 
_ACEOF
5050
 
rm -f conftest$ac_exeext
5051
 
if { (ac_try="$ac_link"
5052
 
case "(($ac_try" in
5053
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054
 
  *) ac_try_echo=$ac_try;;
5055
 
esac
5056
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057
 
$as_echo "$ac_try_echo") >&5
5058
 
  (eval "$ac_link") 2>&5
5059
 
  ac_status=$?
5060
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5062
 
  { (case "(($ac_try" in
5063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064
 
  *) ac_try_echo=$ac_try;;
5065
 
esac
5066
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5067
 
$as_echo "$ac_try_echo") >&5
5068
 
  (eval "$ac_try") 2>&5
5069
 
  ac_status=$?
5070
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071
 
  (exit $ac_status); }; }; then
5072
 
  :
5073
 
else
5074
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5075
 
$as_echo "$as_me: failed program was:" >&5
5076
 
sed 's/^/| /' conftest.$ac_ext >&5
5077
 
 
5078
 
( exit $ac_status )
5079
 
ac_cv_header_stdc=no
5080
 
fi
5081
 
rm -rf conftest.dSYM
5082
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5083
 
fi
5084
 
 
5085
 
 
5086
 
fi
5087
 
fi
5088
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5089
 
$as_echo "$ac_cv_header_stdc" >&6; }
5090
 
if test $ac_cv_header_stdc = yes; then
5091
 
 
5092
 
cat >>confdefs.h <<\_ACEOF
5093
 
#define STDC_HEADERS 1
5094
 
_ACEOF
5095
 
 
5096
 
fi
5097
 
 
5098
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5099
 
 
5100
 
 
5101
 
 
5102
 
 
5103
 
 
5104
 
 
5105
 
 
5106
 
 
5107
 
 
5108
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5109
 
                  inttypes.h stdint.h unistd.h
5110
 
do
5111
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5112
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5113
 
$as_echo_n "checking for $ac_header... " >&6; }
5114
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115
 
  $as_echo_n "(cached) " >&6
5116
 
else
5117
 
  cat >conftest.$ac_ext <<_ACEOF
5118
 
/* confdefs.h.  */
5119
 
_ACEOF
5120
 
cat confdefs.h >>conftest.$ac_ext
5121
 
cat >>conftest.$ac_ext <<_ACEOF
5122
 
/* end confdefs.h.  */
5123
 
$ac_includes_default
5124
 
 
5125
 
#include <$ac_header>
5126
 
_ACEOF
5127
 
rm -f conftest.$ac_objext
5128
 
if { (ac_try="$ac_compile"
5129
 
case "(($ac_try" in
5130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131
 
  *) ac_try_echo=$ac_try;;
5132
 
esac
5133
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134
 
$as_echo "$ac_try_echo") >&5
5135
 
  (eval "$ac_compile") 2>conftest.er1
5136
 
  ac_status=$?
5137
 
  grep -v '^ *+' conftest.er1 >conftest.err
5138
 
  rm -f conftest.er1
5139
 
  cat conftest.err >&5
5140
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141
 
  (exit $ac_status); } && {
5142
 
         test -z "$ac_c_werror_flag" ||
5143
 
         test ! -s conftest.err
5144
 
       } && test -s conftest.$ac_objext; then
5145
 
  eval "$as_ac_Header=yes"
5146
 
else
5147
 
  $as_echo "$as_me: failed program was:" >&5
5148
 
sed 's/^/| /' conftest.$ac_ext >&5
5149
 
 
5150
 
        eval "$as_ac_Header=no"
5151
 
fi
5152
 
 
5153
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154
 
fi
5155
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5156
 
                 $as_echo "$as_val"'`
5157
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5158
 
$as_echo "$ac_res" >&6; }
5159
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5160
 
                 $as_echo "$as_val"'`
5161
 
   if test "x$as_val" = x""yes; then
5162
 
  cat >>confdefs.h <<_ACEOF
5163
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5164
 
_ACEOF
5165
 
 
5166
 
fi
5167
 
 
5168
 
done
5169
 
 
5170
 
 
5171
 
 
5172
 
for ac_header in dlfcn.h
5173
 
do
5174
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5175
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5176
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5177
 
$as_echo_n "checking for $ac_header... " >&6; }
5178
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5179
 
  $as_echo_n "(cached) " >&6
5180
 
fi
5181
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5182
 
                 $as_echo "$as_val"'`
5183
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5184
 
$as_echo "$ac_res" >&6; }
5185
 
else
5186
 
  # Is the header compilable?
5187
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5188
 
$as_echo_n "checking $ac_header usability... " >&6; }
5189
 
cat >conftest.$ac_ext <<_ACEOF
5190
 
/* confdefs.h.  */
5191
 
_ACEOF
5192
 
cat confdefs.h >>conftest.$ac_ext
5193
 
cat >>conftest.$ac_ext <<_ACEOF
5194
 
/* end confdefs.h.  */
5195
 
$ac_includes_default
5196
 
#include <$ac_header>
5197
 
_ACEOF
5198
 
rm -f conftest.$ac_objext
5199
 
if { (ac_try="$ac_compile"
5200
 
case "(($ac_try" in
5201
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202
 
  *) ac_try_echo=$ac_try;;
5203
 
esac
5204
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205
 
$as_echo "$ac_try_echo") >&5
5206
 
  (eval "$ac_compile") 2>conftest.er1
5207
 
  ac_status=$?
5208
 
  grep -v '^ *+' conftest.er1 >conftest.err
5209
 
  rm -f conftest.er1
5210
 
  cat conftest.err >&5
5211
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212
 
  (exit $ac_status); } && {
5213
 
         test -z "$ac_c_werror_flag" ||
5214
 
         test ! -s conftest.err
5215
 
       } && test -s conftest.$ac_objext; then
5216
 
  ac_header_compiler=yes
5217
 
else
5218
 
  $as_echo "$as_me: failed program was:" >&5
5219
 
sed 's/^/| /' conftest.$ac_ext >&5
5220
 
 
5221
 
        ac_header_compiler=no
5222
 
fi
5223
 
 
5224
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5226
 
$as_echo "$ac_header_compiler" >&6; }
5227
 
 
5228
 
# Is the header present?
5229
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5230
 
$as_echo_n "checking $ac_header presence... " >&6; }
5231
 
cat >conftest.$ac_ext <<_ACEOF
5232
 
/* confdefs.h.  */
5233
 
_ACEOF
5234
 
cat confdefs.h >>conftest.$ac_ext
5235
 
cat >>conftest.$ac_ext <<_ACEOF
5236
 
/* end confdefs.h.  */
5237
 
#include <$ac_header>
5238
 
_ACEOF
5239
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5240
 
case "(($ac_try" in
5241
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242
 
  *) ac_try_echo=$ac_try;;
5243
 
esac
5244
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5245
 
$as_echo "$ac_try_echo") >&5
5246
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5247
 
  ac_status=$?
5248
 
  grep -v '^ *+' conftest.er1 >conftest.err
5249
 
  rm -f conftest.er1
5250
 
  cat conftest.err >&5
5251
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252
 
  (exit $ac_status); } >/dev/null && {
5253
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5254
 
         test ! -s conftest.err
5255
 
       }; then
5256
 
  ac_header_preproc=yes
5257
 
else
5258
 
  $as_echo "$as_me: failed program was:" >&5
5259
 
sed 's/^/| /' conftest.$ac_ext >&5
5260
 
 
5261
 
  ac_header_preproc=no
5262
 
fi
5263
 
 
5264
 
rm -f conftest.err conftest.$ac_ext
5265
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5266
 
$as_echo "$ac_header_preproc" >&6; }
5267
 
 
5268
 
# So?  What about this header?
5269
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5270
 
  yes:no: )
5271
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5272
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5273
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5274
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5275
 
    ac_header_preproc=yes
5276
 
    ;;
5277
 
  no:yes:* )
5278
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5279
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5280
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5281
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5282
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5283
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5284
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5285
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5286
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5287
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5288
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5289
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5290
 
    ( cat <<\_ASBOX
5291
 
## ---------------------------------------------------------------------- ##
5292
 
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5293
 
## ---------------------------------------------------------------------- ##
5294
 
_ASBOX
5295
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5296
 
    ;;
5297
 
esac
5298
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5299
 
$as_echo_n "checking for $ac_header... " >&6; }
5300
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5301
 
  $as_echo_n "(cached) " >&6
5302
 
else
5303
 
  eval "$as_ac_Header=\$ac_header_preproc"
5304
 
fi
5305
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5306
 
                 $as_echo "$as_val"'`
5307
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5308
 
$as_echo "$ac_res" >&6; }
5309
 
 
5310
 
fi
5311
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5312
 
                 $as_echo "$as_val"'`
5313
 
   if test "x$as_val" = x""yes; then
5314
 
  cat >>confdefs.h <<_ACEOF
5315
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316
 
_ACEOF
5317
 
 
5318
 
fi
5319
 
 
5320
 
done
5321
 
 
5322
 
ac_ext=cpp
5323
 
ac_cpp='$CXXCPP $CPPFLAGS'
5324
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5327
 
if test -z "$CXX"; then
5328
 
  if test -n "$CCC"; then
5329
 
    CXX=$CCC
5330
 
  else
5331
 
    if test -n "$ac_tool_prefix"; then
5332
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5333
 
  do
5334
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5335
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5336
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5337
 
$as_echo_n "checking for $ac_word... " >&6; }
5338
 
if test "${ac_cv_prog_CXX+set}" = set; then
5339
 
  $as_echo_n "(cached) " >&6
5340
 
else
5341
 
  if test -n "$CXX"; then
5342
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5343
 
else
5344
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345
 
for as_dir in $PATH
5346
 
do
5347
 
  IFS=$as_save_IFS
5348
 
  test -z "$as_dir" && as_dir=.
5349
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5350
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5352
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353
 
    break 2
5354
 
  fi
5355
 
done
5356
 
done
5357
 
IFS=$as_save_IFS
5358
 
 
5359
 
fi
5360
 
fi
5361
 
CXX=$ac_cv_prog_CXX
5362
 
if test -n "$CXX"; then
5363
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5364
 
$as_echo "$CXX" >&6; }
5365
 
else
5366
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5367
 
$as_echo "no" >&6; }
5368
 
fi
5369
 
 
5370
 
 
5371
 
    test -n "$CXX" && break
5372
 
  done
5373
 
fi
5374
 
if test -z "$CXX"; then
5375
 
  ac_ct_CXX=$CXX
5376
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5377
 
do
5378
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5379
 
set dummy $ac_prog; ac_word=$2
5380
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381
 
$as_echo_n "checking for $ac_word... " >&6; }
5382
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5383
 
  $as_echo_n "(cached) " >&6
5384
 
else
5385
 
  if test -n "$ac_ct_CXX"; then
5386
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5387
 
else
5388
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389
 
for as_dir in $PATH
5390
 
do
5391
 
  IFS=$as_save_IFS
5392
 
  test -z "$as_dir" && as_dir=.
5393
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5394
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5396
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397
 
    break 2
5398
 
  fi
5399
 
done
5400
 
done
5401
 
IFS=$as_save_IFS
5402
 
 
5403
 
fi
5404
 
fi
5405
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5406
 
if test -n "$ac_ct_CXX"; then
5407
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5408
 
$as_echo "$ac_ct_CXX" >&6; }
5409
 
else
5410
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5411
 
$as_echo "no" >&6; }
5412
 
fi
5413
 
 
5414
 
 
5415
 
  test -n "$ac_ct_CXX" && break
5416
 
done
5417
 
 
5418
 
  if test "x$ac_ct_CXX" = x; then
5419
 
    CXX="g++"
5420
 
  else
5421
 
    case $cross_compiling:$ac_tool_warned in
5422
 
yes:)
5423
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5424
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425
 
ac_tool_warned=yes ;;
5426
 
esac
5427
 
    CXX=$ac_ct_CXX
5428
 
  fi
5429
 
fi
5430
 
 
5431
 
  fi
5432
 
fi
5433
 
# Provide some information about the compiler.
5434
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5435
 
set X $ac_compile
5436
 
ac_compiler=$2
5437
 
{ (ac_try="$ac_compiler --version >&5"
5438
 
case "(($ac_try" in
5439
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440
 
  *) ac_try_echo=$ac_try;;
5441
 
esac
5442
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5443
 
$as_echo "$ac_try_echo") >&5
5444
 
  (eval "$ac_compiler --version >&5") 2>&5
5445
 
  ac_status=$?
5446
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447
 
  (exit $ac_status); }
5448
 
{ (ac_try="$ac_compiler -v >&5"
5449
 
case "(($ac_try" in
5450
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451
 
  *) ac_try_echo=$ac_try;;
5452
 
esac
5453
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454
 
$as_echo "$ac_try_echo") >&5
5455
 
  (eval "$ac_compiler -v >&5") 2>&5
5456
 
  ac_status=$?
5457
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458
 
  (exit $ac_status); }
5459
 
{ (ac_try="$ac_compiler -V >&5"
5460
 
case "(($ac_try" in
5461
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462
 
  *) ac_try_echo=$ac_try;;
5463
 
esac
5464
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5465
 
$as_echo "$ac_try_echo") >&5
5466
 
  (eval "$ac_compiler -V >&5") 2>&5
5467
 
  ac_status=$?
5468
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469
 
  (exit $ac_status); }
5470
 
 
5471
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5472
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5473
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5474
 
  $as_echo_n "(cached) " >&6
5475
 
else
5476
 
  cat >conftest.$ac_ext <<_ACEOF
5477
 
/* confdefs.h.  */
5478
 
_ACEOF
5479
 
cat confdefs.h >>conftest.$ac_ext
5480
 
cat >>conftest.$ac_ext <<_ACEOF
5481
 
/* end confdefs.h.  */
5482
 
 
5483
 
int
5484
 
main ()
5485
 
{
5486
 
#ifndef __GNUC__
5487
 
       choke me
5488
 
#endif
5489
 
 
5490
 
  ;
5491
 
  return 0;
5492
 
}
5493
 
_ACEOF
5494
 
rm -f conftest.$ac_objext
5495
 
if { (ac_try="$ac_compile"
5496
 
case "(($ac_try" in
5497
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498
 
  *) ac_try_echo=$ac_try;;
5499
 
esac
5500
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5501
 
$as_echo "$ac_try_echo") >&5
5502
 
  (eval "$ac_compile") 2>conftest.er1
5503
 
  ac_status=$?
5504
 
  grep -v '^ *+' conftest.er1 >conftest.err
5505
 
  rm -f conftest.er1
5506
 
  cat conftest.err >&5
5507
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508
 
  (exit $ac_status); } && {
5509
 
         test -z "$ac_cxx_werror_flag" ||
5510
 
         test ! -s conftest.err
5511
 
       } && test -s conftest.$ac_objext; then
5512
 
  ac_compiler_gnu=yes
5513
 
else
5514
 
  $as_echo "$as_me: failed program was:" >&5
5515
 
sed 's/^/| /' conftest.$ac_ext >&5
5516
 
 
5517
 
        ac_compiler_gnu=no
5518
 
fi
5519
 
 
5520
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5522
 
 
5523
 
fi
5524
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5525
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5526
 
if test $ac_compiler_gnu = yes; then
5527
 
  GXX=yes
5528
 
else
5529
 
  GXX=
5530
 
fi
5531
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5532
 
ac_save_CXXFLAGS=$CXXFLAGS
5533
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5534
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5535
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5536
 
  $as_echo_n "(cached) " >&6
5537
 
else
5538
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5539
 
   ac_cxx_werror_flag=yes
5540
 
   ac_cv_prog_cxx_g=no
5541
 
   CXXFLAGS="-g"
5542
 
   cat >conftest.$ac_ext <<_ACEOF
5543
 
/* confdefs.h.  */
5544
 
_ACEOF
5545
 
cat confdefs.h >>conftest.$ac_ext
5546
 
cat >>conftest.$ac_ext <<_ACEOF
5547
 
/* end confdefs.h.  */
5548
 
 
5549
 
int
5550
 
main ()
5551
 
{
5552
 
 
5553
 
  ;
5554
 
  return 0;
5555
 
}
5556
 
_ACEOF
5557
 
rm -f conftest.$ac_objext
5558
 
if { (ac_try="$ac_compile"
5559
 
case "(($ac_try" in
5560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561
 
  *) ac_try_echo=$ac_try;;
5562
 
esac
5563
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564
 
$as_echo "$ac_try_echo") >&5
5565
 
  (eval "$ac_compile") 2>conftest.er1
5566
 
  ac_status=$?
5567
 
  grep -v '^ *+' conftest.er1 >conftest.err
5568
 
  rm -f conftest.er1
5569
 
  cat conftest.err >&5
5570
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571
 
  (exit $ac_status); } && {
5572
 
         test -z "$ac_cxx_werror_flag" ||
5573
 
         test ! -s conftest.err
5574
 
       } && test -s conftest.$ac_objext; then
5575
 
  ac_cv_prog_cxx_g=yes
5576
 
else
5577
 
  $as_echo "$as_me: failed program was:" >&5
5578
 
sed 's/^/| /' conftest.$ac_ext >&5
5579
 
 
5580
 
        CXXFLAGS=""
5581
 
      cat >conftest.$ac_ext <<_ACEOF
5582
 
/* confdefs.h.  */
5583
 
_ACEOF
5584
 
cat confdefs.h >>conftest.$ac_ext
5585
 
cat >>conftest.$ac_ext <<_ACEOF
5586
 
/* end confdefs.h.  */
5587
 
 
5588
 
int
5589
 
main ()
5590
 
{
5591
 
 
5592
 
  ;
5593
 
  return 0;
5594
 
}
5595
 
_ACEOF
5596
 
rm -f conftest.$ac_objext
5597
 
if { (ac_try="$ac_compile"
5598
 
case "(($ac_try" in
5599
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600
 
  *) ac_try_echo=$ac_try;;
5601
 
esac
5602
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603
 
$as_echo "$ac_try_echo") >&5
5604
 
  (eval "$ac_compile") 2>conftest.er1
5605
 
  ac_status=$?
5606
 
  grep -v '^ *+' conftest.er1 >conftest.err
5607
 
  rm -f conftest.er1
5608
 
  cat conftest.err >&5
5609
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610
 
  (exit $ac_status); } && {
5611
 
         test -z "$ac_cxx_werror_flag" ||
5612
 
         test ! -s conftest.err
5613
 
       } && test -s conftest.$ac_objext; then
5614
 
  :
5615
 
else
5616
 
  $as_echo "$as_me: failed program was:" >&5
5617
 
sed 's/^/| /' conftest.$ac_ext >&5
5618
 
 
5619
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5620
 
         CXXFLAGS="-g"
5621
 
         cat >conftest.$ac_ext <<_ACEOF
5622
 
/* confdefs.h.  */
5623
 
_ACEOF
5624
 
cat confdefs.h >>conftest.$ac_ext
5625
 
cat >>conftest.$ac_ext <<_ACEOF
5626
 
/* end confdefs.h.  */
5627
 
 
5628
 
int
5629
 
main ()
5630
 
{
5631
 
 
5632
 
  ;
5633
 
  return 0;
5634
 
}
5635
 
_ACEOF
5636
 
rm -f conftest.$ac_objext
5637
 
if { (ac_try="$ac_compile"
5638
 
case "(($ac_try" in
5639
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640
 
  *) ac_try_echo=$ac_try;;
5641
 
esac
5642
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5643
 
$as_echo "$ac_try_echo") >&5
5644
 
  (eval "$ac_compile") 2>conftest.er1
5645
 
  ac_status=$?
5646
 
  grep -v '^ *+' conftest.er1 >conftest.err
5647
 
  rm -f conftest.er1
5648
 
  cat conftest.err >&5
5649
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650
 
  (exit $ac_status); } && {
5651
 
         test -z "$ac_cxx_werror_flag" ||
5652
 
         test ! -s conftest.err
5653
 
       } && test -s conftest.$ac_objext; then
5654
 
  ac_cv_prog_cxx_g=yes
5655
 
else
5656
 
  $as_echo "$as_me: failed program was:" >&5
5657
 
sed 's/^/| /' conftest.$ac_ext >&5
5658
 
 
5659
 
 
5660
 
fi
5661
 
 
5662
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663
 
fi
5664
 
 
5665
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666
 
fi
5667
 
 
5668
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5670
 
fi
5671
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5672
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5673
 
if test "$ac_test_CXXFLAGS" = set; then
5674
 
  CXXFLAGS=$ac_save_CXXFLAGS
5675
 
elif test $ac_cv_prog_cxx_g = yes; then
5676
 
  if test "$GXX" = yes; then
5677
 
    CXXFLAGS="-g -O2"
5678
 
  else
5679
 
    CXXFLAGS="-g"
5680
 
  fi
5681
 
else
5682
 
  if test "$GXX" = yes; then
5683
 
    CXXFLAGS="-O2"
5684
 
  else
5685
 
    CXXFLAGS=
5686
 
  fi
5687
 
fi
5688
 
ac_ext=cpp
5689
 
ac_cpp='$CXXCPP $CPPFLAGS'
5690
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5693
 
 
5694
 
depcc="$CXX"  am_compiler_list=
5695
 
 
5696
 
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5697
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
5698
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5699
 
  $as_echo_n "(cached) " >&6
5700
 
else
5701
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5702
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5703
 
  # making bogus files that we don't know about and never remove.  For
5704
 
  # instance it was reported that on HP-UX the gcc test will end up
5705
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5706
 
  # in D'.
5707
 
  mkdir conftest.dir
5708
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5709
 
  # using a relative directory.
5710
 
  cp "$am_depcomp" conftest.dir
5711
 
  cd conftest.dir
5712
 
  # We will build objects and dependencies in a subdirectory because
5713
 
  # it helps to detect inapplicable dependency modes.  For instance
5714
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5715
 
  # side effect of compilation, but ICC will put the dependencies in
5716
 
  # the current directory while Tru64 will put them in the object
5717
 
  # directory.
5718
 
  mkdir sub
5719
 
 
5720
 
  am_cv_CXX_dependencies_compiler_type=none
5721
 
  if test "$am_compiler_list" = ""; then
5722
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5723
 
  fi
5724
 
  for depmode in $am_compiler_list; do
5725
 
    # Setup a source with many dependencies, because some compilers
5726
 
    # like to wrap large dependency lists on column 80 (with \), and
5727
 
    # we should not choose a depcomp mode which is confused by this.
5728
 
    #
5729
 
    # We need to recreate these files for each test, as the compiler may
5730
 
    # overwrite some of them when testing with obscure command lines.
5731
 
    # This happens at least with the AIX C compiler.
5732
 
    : > sub/conftest.c
5733
 
    for i in 1 2 3 4 5 6; do
5734
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5735
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5736
 
      # Solaris 8's {/usr,}/bin/sh.
5737
 
      touch sub/conftst$i.h
5738
 
    done
5739
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5740
 
 
5741
 
    case $depmode in
5742
 
    nosideeffect)
5743
 
      # after this tag, mechanisms are not by side-effect, so they'll
5744
 
      # only be used when explicitly requested
5745
 
      if test "x$enable_dependency_tracking" = xyes; then
5746
 
        continue
5747
 
      else
5748
 
        break
5749
 
      fi
5750
 
      ;;
5751
 
    none) break ;;
5752
 
    esac
5753
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5754
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5755
 
    # handle `-M -o', and we need to detect this.
5756
 
    if depmode=$depmode \
5757
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5758
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5759
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5760
 
         >/dev/null 2>conftest.err &&
5761
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5762
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5763
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5764
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5765
 
      # icc doesn't choke on unknown options, it will just issue warnings
5766
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5767
 
      # that says an option was ignored or not supported.
5768
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5769
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5770
 
      # The diagnosis changed in icc 8.0:
5771
 
      #   icc: Command line remark: option '-MP' not supported
5772
 
      if (grep 'ignoring option' conftest.err ||
5773
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5774
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5775
 
        break
5776
 
      fi
5777
 
    fi
5778
 
  done
5779
 
 
5780
 
  cd ..
5781
 
  rm -rf conftest.dir
5782
 
else
5783
 
  am_cv_CXX_dependencies_compiler_type=none
5784
 
fi
5785
 
 
5786
 
fi
5787
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5788
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5789
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5790
 
 
5791
 
 if
5792
 
  test "x$enable_dependency_tracking" != xno \
5793
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5794
 
  am__fastdepCXX_TRUE=
5795
 
  am__fastdepCXX_FALSE='#'
5796
 
else
5797
 
  am__fastdepCXX_TRUE='#'
5798
 
  am__fastdepCXX_FALSE=
5799
 
fi
5800
 
 
5801
 
 
5802
 
 
5803
 
 
5804
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5805
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5806
 
    (test "X$CXX" != "Xg++"))) ; then
5807
 
  ac_ext=cpp
5808
 
ac_cpp='$CXXCPP $CPPFLAGS'
5809
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812
 
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5813
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5814
 
if test -z "$CXXCPP"; then
5815
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5816
 
  $as_echo_n "(cached) " >&6
5817
 
else
5818
 
      # Double quotes because CXXCPP needs to be expanded
5819
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5820
 
    do
5821
 
      ac_preproc_ok=false
5822
 
for ac_cxx_preproc_warn_flag in '' yes
5823
 
do
5824
 
  # Use a header file that comes with gcc, so configuring glibc
5825
 
  # with a fresh cross-compiler works.
5826
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5827
 
  # <limits.h> exists even on freestanding compilers.
5828
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5829
 
  # not just through cpp. "Syntax error" is here to catch this case.
5830
 
  cat >conftest.$ac_ext <<_ACEOF
5831
 
/* confdefs.h.  */
5832
 
_ACEOF
5833
 
cat confdefs.h >>conftest.$ac_ext
5834
 
cat >>conftest.$ac_ext <<_ACEOF
5835
 
/* end confdefs.h.  */
5836
 
#ifdef __STDC__
5837
 
# include <limits.h>
5838
 
#else
5839
 
# include <assert.h>
5840
 
#endif
5841
 
                     Syntax error
5842
 
_ACEOF
5843
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5844
 
case "(($ac_try" in
5845
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846
 
  *) ac_try_echo=$ac_try;;
5847
 
esac
5848
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5849
 
$as_echo "$ac_try_echo") >&5
5850
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5851
 
  ac_status=$?
5852
 
  grep -v '^ *+' conftest.er1 >conftest.err
5853
 
  rm -f conftest.er1
5854
 
  cat conftest.err >&5
5855
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856
 
  (exit $ac_status); } >/dev/null && {
5857
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5858
 
         test ! -s conftest.err
5859
 
       }; then
5860
 
  :
5861
 
else
5862
 
  $as_echo "$as_me: failed program was:" >&5
5863
 
sed 's/^/| /' conftest.$ac_ext >&5
5864
 
 
5865
 
  # Broken: fails on valid input.
5866
 
continue
5867
 
fi
5868
 
 
5869
 
rm -f conftest.err conftest.$ac_ext
5870
 
 
5871
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5872
 
  # can be detected and how.
5873
 
  cat >conftest.$ac_ext <<_ACEOF
5874
 
/* confdefs.h.  */
5875
 
_ACEOF
5876
 
cat confdefs.h >>conftest.$ac_ext
5877
 
cat >>conftest.$ac_ext <<_ACEOF
5878
 
/* end confdefs.h.  */
5879
 
#include <ac_nonexistent.h>
5880
 
_ACEOF
5881
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5882
 
case "(($ac_try" in
5883
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884
 
  *) ac_try_echo=$ac_try;;
5885
 
esac
5886
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5887
 
$as_echo "$ac_try_echo") >&5
5888
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5889
 
  ac_status=$?
5890
 
  grep -v '^ *+' conftest.er1 >conftest.err
5891
 
  rm -f conftest.er1
5892
 
  cat conftest.err >&5
5893
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894
 
  (exit $ac_status); } >/dev/null && {
5895
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5896
 
         test ! -s conftest.err
5897
 
       }; then
5898
 
  # Broken: success on invalid input.
5899
 
continue
5900
 
else
5901
 
  $as_echo "$as_me: failed program was:" >&5
5902
 
sed 's/^/| /' conftest.$ac_ext >&5
5903
 
 
5904
 
  # Passes both tests.
5905
 
ac_preproc_ok=:
5906
 
break
5907
 
fi
5908
 
 
5909
 
rm -f conftest.err conftest.$ac_ext
5910
 
 
5911
 
done
5912
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5913
 
rm -f conftest.err conftest.$ac_ext
5914
 
if $ac_preproc_ok; then
5915
 
  break
5916
 
fi
5917
 
 
5918
 
    done
5919
 
    ac_cv_prog_CXXCPP=$CXXCPP
5920
 
 
5921
 
fi
5922
 
  CXXCPP=$ac_cv_prog_CXXCPP
5923
 
else
5924
 
  ac_cv_prog_CXXCPP=$CXXCPP
5925
 
fi
5926
 
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5927
 
$as_echo "$CXXCPP" >&6; }
5928
 
ac_preproc_ok=false
5929
 
for ac_cxx_preproc_warn_flag in '' yes
5930
 
do
5931
 
  # Use a header file that comes with gcc, so configuring glibc
5932
 
  # with a fresh cross-compiler works.
5933
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5934
 
  # <limits.h> exists even on freestanding compilers.
5935
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5936
 
  # not just through cpp. "Syntax error" is here to catch this case.
5937
 
  cat >conftest.$ac_ext <<_ACEOF
5938
 
/* confdefs.h.  */
5939
 
_ACEOF
5940
 
cat confdefs.h >>conftest.$ac_ext
5941
 
cat >>conftest.$ac_ext <<_ACEOF
5942
 
/* end confdefs.h.  */
5943
 
#ifdef __STDC__
5944
 
# include <limits.h>
5945
 
#else
5946
 
# include <assert.h>
5947
 
#endif
5948
 
                     Syntax error
5949
 
_ACEOF
5950
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5951
 
case "(($ac_try" in
5952
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953
 
  *) ac_try_echo=$ac_try;;
5954
 
esac
5955
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5956
 
$as_echo "$ac_try_echo") >&5
5957
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5958
 
  ac_status=$?
5959
 
  grep -v '^ *+' conftest.er1 >conftest.err
5960
 
  rm -f conftest.er1
5961
 
  cat conftest.err >&5
5962
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963
 
  (exit $ac_status); } >/dev/null && {
5964
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5965
 
         test ! -s conftest.err
5966
 
       }; then
5967
 
  :
5968
 
else
5969
 
  $as_echo "$as_me: failed program was:" >&5
5970
 
sed 's/^/| /' conftest.$ac_ext >&5
5971
 
 
5972
 
  # Broken: fails on valid input.
5973
 
continue
5974
 
fi
5975
 
 
5976
 
rm -f conftest.err conftest.$ac_ext
5977
 
 
5978
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5979
 
  # can be detected and how.
5980
 
  cat >conftest.$ac_ext <<_ACEOF
5981
 
/* confdefs.h.  */
5982
 
_ACEOF
5983
 
cat confdefs.h >>conftest.$ac_ext
5984
 
cat >>conftest.$ac_ext <<_ACEOF
5985
 
/* end confdefs.h.  */
5986
 
#include <ac_nonexistent.h>
5987
 
_ACEOF
5988
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5989
 
case "(($ac_try" in
5990
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991
 
  *) ac_try_echo=$ac_try;;
5992
 
esac
5993
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5994
 
$as_echo "$ac_try_echo") >&5
5995
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5996
 
  ac_status=$?
5997
 
  grep -v '^ *+' conftest.er1 >conftest.err
5998
 
  rm -f conftest.er1
5999
 
  cat conftest.err >&5
6000
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001
 
  (exit $ac_status); } >/dev/null && {
6002
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6003
 
         test ! -s conftest.err
6004
 
       }; then
6005
 
  # Broken: success on invalid input.
6006
 
continue
6007
 
else
6008
 
  $as_echo "$as_me: failed program was:" >&5
6009
 
sed 's/^/| /' conftest.$ac_ext >&5
6010
 
 
6011
 
  # Passes both tests.
6012
 
ac_preproc_ok=:
6013
 
break
6014
 
fi
6015
 
 
6016
 
rm -f conftest.err conftest.$ac_ext
6017
 
 
6018
 
done
6019
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6020
 
rm -f conftest.err conftest.$ac_ext
6021
 
if $ac_preproc_ok; then
6022
 
  :
6023
 
else
6024
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6025
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6026
 
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6027
 
See \`config.log' for more details." >&5
6028
 
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6029
 
See \`config.log' for more details." >&2;}
6030
 
   { (exit 1); exit 1; }; }; }
6031
 
fi
6032
 
 
6033
 
ac_ext=cpp
6034
 
ac_cpp='$CXXCPP $CPPFLAGS'
6035
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6038
 
 
6039
 
fi
6040
 
 
6041
 
 
6042
 
ac_ext=f
6043
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6044
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6046
 
if test -n "$ac_tool_prefix"; then
6047
 
  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
6048
 
  do
6049
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6050
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6051
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052
 
$as_echo_n "checking for $ac_word... " >&6; }
6053
 
if test "${ac_cv_prog_F77+set}" = set; then
6054
 
  $as_echo_n "(cached) " >&6
6055
 
else
6056
 
  if test -n "$F77"; then
6057
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6058
 
else
6059
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060
 
for as_dir in $PATH
6061
 
do
6062
 
  IFS=$as_save_IFS
6063
 
  test -z "$as_dir" && as_dir=.
6064
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6065
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6067
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068
 
    break 2
6069
 
  fi
6070
 
done
6071
 
done
6072
 
IFS=$as_save_IFS
6073
 
 
6074
 
fi
6075
 
fi
6076
 
F77=$ac_cv_prog_F77
6077
 
if test -n "$F77"; then
6078
 
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6079
 
$as_echo "$F77" >&6; }
6080
 
else
6081
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6082
 
$as_echo "no" >&6; }
6083
 
fi
6084
 
 
6085
 
 
6086
 
    test -n "$F77" && break
6087
 
  done
6088
 
fi
6089
 
if test -z "$F77"; then
6090
 
  ac_ct_F77=$F77
6091
 
  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
6092
 
do
6093
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6094
 
set dummy $ac_prog; ac_word=$2
6095
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096
 
$as_echo_n "checking for $ac_word... " >&6; }
6097
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6098
 
  $as_echo_n "(cached) " >&6
6099
 
else
6100
 
  if test -n "$ac_ct_F77"; then
6101
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6102
 
else
6103
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104
 
for as_dir in $PATH
6105
 
do
6106
 
  IFS=$as_save_IFS
6107
 
  test -z "$as_dir" && as_dir=.
6108
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6109
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6111
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112
 
    break 2
6113
 
  fi
6114
 
done
6115
 
done
6116
 
IFS=$as_save_IFS
6117
 
 
6118
 
fi
6119
 
fi
6120
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6121
 
if test -n "$ac_ct_F77"; then
6122
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6123
 
$as_echo "$ac_ct_F77" >&6; }
6124
 
else
6125
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6126
 
$as_echo "no" >&6; }
6127
 
fi
6128
 
 
6129
 
 
6130
 
  test -n "$ac_ct_F77" && break
6131
 
done
6132
 
 
6133
 
  if test "x$ac_ct_F77" = x; then
6134
 
    F77=""
6135
 
  else
6136
 
    case $cross_compiling:$ac_tool_warned in
6137
 
yes:)
6138
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6139
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6140
 
ac_tool_warned=yes ;;
6141
 
esac
6142
 
    F77=$ac_ct_F77
6143
 
  fi
6144
 
fi
6145
 
 
6146
 
 
6147
 
# Provide some information about the compiler.
6148
 
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6149
 
set X $ac_compile
6150
 
ac_compiler=$2
6151
 
{ (ac_try="$ac_compiler --version >&5"
6152
 
case "(($ac_try" in
6153
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154
 
  *) ac_try_echo=$ac_try;;
6155
 
esac
6156
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157
 
$as_echo "$ac_try_echo") >&5
6158
 
  (eval "$ac_compiler --version >&5") 2>&5
6159
 
  ac_status=$?
6160
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161
 
  (exit $ac_status); }
6162
 
{ (ac_try="$ac_compiler -v >&5"
6163
 
case "(($ac_try" in
6164
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165
 
  *) ac_try_echo=$ac_try;;
6166
 
esac
6167
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168
 
$as_echo "$ac_try_echo") >&5
6169
 
  (eval "$ac_compiler -v >&5") 2>&5
6170
 
  ac_status=$?
6171
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172
 
  (exit $ac_status); }
6173
 
{ (ac_try="$ac_compiler -V >&5"
6174
 
case "(($ac_try" in
6175
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176
 
  *) ac_try_echo=$ac_try;;
6177
 
esac
6178
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179
 
$as_echo "$ac_try_echo") >&5
6180
 
  (eval "$ac_compiler -V >&5") 2>&5
6181
 
  ac_status=$?
6182
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183
 
  (exit $ac_status); }
6184
 
rm -f a.out
6185
 
 
6186
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6187
 
# input file.  (Note that this only needs to work for GNU compilers.)
6188
 
ac_save_ext=$ac_ext
6189
 
ac_ext=F
6190
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6191
 
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6192
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6193
 
  $as_echo_n "(cached) " >&6
6194
 
else
6195
 
  cat >conftest.$ac_ext <<_ACEOF
6196
 
      program main
6197
 
#ifndef __GNUC__
6198
 
       choke me
6199
 
#endif
6200
 
 
6201
 
      end
6202
 
_ACEOF
6203
 
rm -f conftest.$ac_objext
6204
 
if { (ac_try="$ac_compile"
6205
 
case "(($ac_try" in
6206
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207
 
  *) ac_try_echo=$ac_try;;
6208
 
esac
6209
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6210
 
$as_echo "$ac_try_echo") >&5
6211
 
  (eval "$ac_compile") 2>conftest.er1
6212
 
  ac_status=$?
6213
 
  grep -v '^ *+' conftest.er1 >conftest.err
6214
 
  rm -f conftest.er1
6215
 
  cat conftest.err >&5
6216
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217
 
  (exit $ac_status); } && {
6218
 
         test -z "$ac_f77_werror_flag" ||
6219
 
         test ! -s conftest.err
6220
 
       } && test -s conftest.$ac_objext; then
6221
 
  ac_compiler_gnu=yes
6222
 
else
6223
 
  $as_echo "$as_me: failed program was:" >&5
6224
 
sed 's/^/| /' conftest.$ac_ext >&5
6225
 
 
6226
 
        ac_compiler_gnu=no
6227
 
fi
6228
 
 
6229
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6231
 
 
6232
 
fi
6233
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6234
 
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6235
 
ac_ext=$ac_save_ext
6236
 
ac_test_FFLAGS=${FFLAGS+set}
6237
 
ac_save_FFLAGS=$FFLAGS
6238
 
FFLAGS=
6239
 
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6240
 
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6241
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6242
 
  $as_echo_n "(cached) " >&6
6243
 
else
6244
 
  FFLAGS=-g
6245
 
cat >conftest.$ac_ext <<_ACEOF
6246
 
      program main
6247
 
 
6248
 
      end
6249
 
_ACEOF
6250
 
rm -f conftest.$ac_objext
6251
 
if { (ac_try="$ac_compile"
6252
 
case "(($ac_try" in
6253
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254
 
  *) ac_try_echo=$ac_try;;
6255
 
esac
6256
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6257
 
$as_echo "$ac_try_echo") >&5
6258
 
  (eval "$ac_compile") 2>conftest.er1
6259
 
  ac_status=$?
6260
 
  grep -v '^ *+' conftest.er1 >conftest.err
6261
 
  rm -f conftest.er1
6262
 
  cat conftest.err >&5
6263
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264
 
  (exit $ac_status); } && {
6265
 
         test -z "$ac_f77_werror_flag" ||
6266
 
         test ! -s conftest.err
6267
 
       } && test -s conftest.$ac_objext; then
6268
 
  ac_cv_prog_f77_g=yes
6269
 
else
6270
 
  $as_echo "$as_me: failed program was:" >&5
6271
 
sed 's/^/| /' conftest.$ac_ext >&5
6272
 
 
6273
 
        ac_cv_prog_f77_g=no
6274
 
fi
6275
 
 
6276
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277
 
 
6278
 
fi
6279
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6280
 
$as_echo "$ac_cv_prog_f77_g" >&6; }
6281
 
if test "$ac_test_FFLAGS" = set; then
6282
 
  FFLAGS=$ac_save_FFLAGS
6283
 
elif test $ac_cv_prog_f77_g = yes; then
6284
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6285
 
    FFLAGS="-g -O2"
6286
 
  else
6287
 
    FFLAGS="-g"
6288
 
  fi
6289
 
else
6290
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6291
 
    FFLAGS="-O2"
6292
 
  else
6293
 
    FFLAGS=
6294
 
  fi
6295
 
fi
6296
 
 
6297
 
if test $ac_compiler_gnu = yes; then
6298
 
  G77=yes
6299
 
else
6300
 
  G77=
6301
 
fi
6302
 
ac_ext=c
6303
 
ac_cpp='$CPP $CPPFLAGS'
6304
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307
 
 
6308
 
 
6309
 
 
6310
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6311
 
# find the maximum length of command line arguments
6312
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6313
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6314
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6315
 
  $as_echo_n "(cached) " >&6
6316
 
else
6317
 
    i=0
6318
 
  teststring="ABCD"
6319
 
 
6320
 
  case $build_os in
6321
 
  msdosdjgpp*)
6322
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6323
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6324
 
    # during glob expansion).  Even if it were fixed, the result of this
6325
 
    # check would be larger than it should be.
6326
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6327
 
    ;;
6328
 
 
6329
 
  gnu*)
6330
 
    # Under GNU Hurd, this test is not required because there is
6331
 
    # no limit to the length of command line arguments.
6332
 
    # Libtool will interpret -1 as no limit whatsoever
6333
 
    lt_cv_sys_max_cmd_len=-1;
6334
 
    ;;
6335
 
 
6336
 
  cygwin* | mingw*)
6337
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6338
 
    # about 5 minutes as the teststring grows exponentially.
6339
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6340
 
    # you end up with a "frozen" computer, even though with patience
6341
 
    # the test eventually succeeds (with a max line length of 256k).
6342
 
    # Instead, let's just punt: use the minimum linelength reported by
6343
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6344
 
    lt_cv_sys_max_cmd_len=8192;
6345
 
    ;;
6346
 
 
6347
 
  amigaos*)
6348
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6349
 
    # So we just punt and use a minimum line length of 8192.
6350
 
    lt_cv_sys_max_cmd_len=8192;
6351
 
    ;;
6352
 
 
6353
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6354
 
    # This has been around since 386BSD, at least.  Likely further.
6355
 
    if test -x /sbin/sysctl; then
6356
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6357
 
    elif test -x /usr/sbin/sysctl; then
6358
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6359
 
    else
6360
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6361
 
    fi
6362
 
    # And add a safety zone
6363
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6364
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6365
 
    ;;
6366
 
 
6367
 
  interix*)
6368
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6369
 
    lt_cv_sys_max_cmd_len=196608
6370
 
    ;;
6371
 
 
6372
 
  osf*)
6373
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6374
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6375
 
    # nice to cause kernel panics so lets avoid the loop below.
6376
 
    # First set a reasonable default.
6377
 
    lt_cv_sys_max_cmd_len=16384
6378
 
    #
6379
 
    if test -x /sbin/sysconfig; then
6380
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6381
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6382
 
      esac
6383
 
    fi
6384
 
    ;;
6385
 
  sco3.2v5*)
6386
 
    lt_cv_sys_max_cmd_len=102400
6387
 
    ;;
6388
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6389
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6390
 
    if test -n "$kargmax"; then
6391
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6392
 
    else
6393
 
      lt_cv_sys_max_cmd_len=32768
6394
 
    fi
6395
 
    ;;
6396
 
  *)
6397
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6398
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6399
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6400
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6401
 
    else
6402
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6403
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6404
 
               = "XX$teststring") >/dev/null 2>&1 &&
6405
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
6406
 
              lt_cv_sys_max_cmd_len=$new_result &&
6407
 
              test $i != 17 # 1/2 MB should be enough
6408
 
      do
6409
 
        i=`expr $i + 1`
6410
 
        teststring=$teststring$teststring
6411
 
      done
6412
 
      teststring=
6413
 
      # Add a significant safety factor because C++ compilers can tack on massive
6414
 
      # amounts of additional arguments before passing them to the linker.
6415
 
      # It appears as though 1/2 is a usable value.
6416
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6417
 
    fi
6418
 
    ;;
6419
 
  esac
6420
 
 
6421
 
fi
6422
 
 
6423
 
if test -n $lt_cv_sys_max_cmd_len ; then
6424
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6425
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6426
 
else
6427
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
6428
 
$as_echo "none" >&6; }
6429
 
fi
6430
 
 
6431
 
 
6432
 
 
6433
 
 
6434
 
 
6435
5393
# Check for command to grab the raw symbol name followed by C symbol from nm.
6436
5394
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6437
5395
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6448
5406
# Regexp to match symbols that can be accessed directly from C.
6449
5407
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6450
5408
 
6451
 
# Transform an extracted symbol line into a proper C declaration
6452
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6453
 
 
6454
 
# Transform an extracted symbol line into symbol name and symbol address
6455
 
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'"
6456
 
 
6457
5409
# Define system-specific variables.
6458
5410
case $host_os in
6459
5411
aix*)
6460
5412
  symcode='[BCDT]'
6461
5413
  ;;
6462
 
cygwin* | mingw* | pw32*)
 
5414
cygwin* | mingw* | pw32* | cegcc*)
6463
5415
  symcode='[ABCDGISTW]'
6464
5416
  ;;
6465
 
hpux*) # Its linker distinguishes data from code symbols
 
5417
hpux*)
6466
5418
  if test "$host_cpu" = ia64; then
6467
5419
    symcode='[ABCDEGRST]'
6468
5420
  fi
6469
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470
 
  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'"
6471
 
  ;;
6472
 
linux* | k*bsd*-gnu)
6473
 
  if test "$host_cpu" = ia64; then
6474
 
    symcode='[ABCDGIRSTW]'
6475
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6476
 
    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'"
6477
 
  fi
6478
5421
  ;;
6479
5422
irix* | nonstopux*)
6480
5423
  symcode='[BCDEGRST]'
6499
5442
  ;;
6500
5443
esac
6501
5444
 
 
5445
# If we're using GNU nm, then use its standard symbol codes.
 
5446
case `$NM -V 2>&1` in
 
5447
*GNU* | *'with BFD'*)
 
5448
  symcode='[ABCDGIRSTW]' ;;
 
5449
esac
 
5450
 
 
5451
# Transform an extracted symbol line into a proper C declaration.
 
5452
# Some systems (esp. on ia64) link data and code symbols differently,
 
5453
# so use this general approach.
 
5454
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5455
 
 
5456
# Transform an extracted symbol line into symbol name and symbol address
 
5457
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5458
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'"
 
5459
 
6502
5460
# Handle CRLF in mingw tool chain
6503
5461
opt_cr=
6504
5462
case $build_os in
6505
5463
mingw*)
6506
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5464
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6507
5465
  ;;
6508
5466
esac
6509
5467
 
6510
 
# If we're using GNU nm, then use its standard symbol codes.
6511
 
case `$NM -V 2>&1` in
6512
 
*GNU* | *'with BFD'*)
6513
 
  symcode='[ABCDGIRSTW]' ;;
6514
 
esac
6515
 
 
6516
 
# Try without a prefix undercore, then with it.
 
5468
# Try without a prefix underscore, then with it.
6517
5469
for ac_symprfx in "" "_"; do
6518
5470
 
6519
5471
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6520
5472
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6521
5473
 
6522
5474
  # Write the raw and C identifiers.
6523
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5475
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5476
    # Fake it for dumpbin and say T for any non-static function
 
5477
    # and D for any global variable.
 
5478
    # Also find C++ and __fastcall symbols from MSVC++,
 
5479
    # which start with @ or ?.
 
5480
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5481
"     {last_section=section; section=\$ 3};"\
 
5482
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5483
"     \$ 0!~/External *\|/{next};"\
 
5484
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5485
"     {if(hide[section]) next};"\
 
5486
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5487
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5488
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5489
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5490
"     ' prfx=^$ac_symprfx"
 
5491
  else
 
5492
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5493
  fi
6524
5494
 
6525
5495
  # Check to see that the pipe works correctly.
6526
5496
  pipe_works=no
6527
5497
 
6528
5498
  rm -f conftest*
6529
 
  cat > conftest.$ac_ext <<EOF
 
5499
  cat > conftest.$ac_ext <<_LT_EOF
6530
5500
#ifdef __cplusplus
6531
5501
extern "C" {
6532
5502
#endif
6533
5503
char nm_test_var;
6534
 
void nm_test_func(){}
 
5504
void nm_test_func(void);
 
5505
void nm_test_func(void){}
6535
5506
#ifdef __cplusplus
6536
5507
}
6537
5508
#endif
6538
5509
int main(){nm_test_var='a';nm_test_func();return(0);}
6539
 
EOF
 
5510
_LT_EOF
6540
5511
 
6541
5512
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542
5513
  (eval $ac_compile) 2>&5
6558
5529
      fi
6559
5530
 
6560
5531
      # Make sure that we snagged all the symbols we need.
6561
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6562
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6563
 
          cat <<EOF > conftest.$ac_ext
 
5532
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5533
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5534
          cat <<_LT_EOF > conftest.$ac_ext
6564
5535
#ifdef __cplusplus
6565
5536
extern "C" {
6566
5537
#endif
6567
5538
 
6568
 
EOF
 
5539
_LT_EOF
6569
5540
          # Now generate the symbol file.
6570
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6571
 
 
6572
 
          cat <<EOF >> conftest.$ac_ext
6573
 
#if defined (__STDC__) && __STDC__
6574
 
# define lt_ptr_t void *
6575
 
#else
6576
 
# define lt_ptr_t char *
6577
 
# define const
6578
 
#endif
6579
 
 
6580
 
/* The mapping between symbol names and symbols. */
 
5541
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5542
 
 
5543
          cat <<_LT_EOF >> conftest.$ac_ext
 
5544
 
 
5545
/* The mapping between symbol names and symbols.  */
6581
5546
const struct {
6582
5547
  const char *name;
6583
 
  lt_ptr_t address;
 
5548
  void       *address;
6584
5549
}
6585
 
lt_preloaded_symbols[] =
 
5550
lt__PROGRAM__LTX_preloaded_symbols[] =
6586
5551
{
6587
 
EOF
6588
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6589
 
          cat <<\EOF >> conftest.$ac_ext
6590
 
  {0, (lt_ptr_t) 0}
 
5552
  { "@PROGRAM@", (void *) 0 },
 
5553
_LT_EOF
 
5554
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5555
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5556
  {0, (void *) 0}
6591
5557
};
6592
5558
 
 
5559
/* This works around a problem in FreeBSD linker */
 
5560
#ifdef FREEBSD_WORKAROUND
 
5561
static const void *lt_preloaded_setup() {
 
5562
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5563
}
 
5564
#endif
 
5565
 
6593
5566
#ifdef __cplusplus
6594
5567
}
6595
5568
#endif
6596
 
EOF
 
5569
_LT_EOF
6597
5570
          # Now try linking the two files.
6598
5571
          mv conftest.$ac_objext conftstm.$ac_objext
6599
5572
          lt_save_LIBS="$LIBS"
6645
5618
$as_echo "ok" >&6; }
6646
5619
fi
6647
5620
 
6648
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6649
 
$as_echo_n "checking for objdir... " >&6; }
6650
 
if test "${lt_cv_objdir+set}" = set; then
6651
 
  $as_echo_n "(cached) " >&6
6652
 
else
6653
 
  rm -f .libs 2>/dev/null
6654
 
mkdir .libs 2>/dev/null
6655
 
if test -d .libs; then
6656
 
  lt_cv_objdir=.libs
6657
 
else
6658
 
  # MS-DOS does not allow filenames that begin with a dot.
6659
 
  lt_cv_objdir=_libs
6660
 
fi
6661
 
rmdir .libs 2>/dev/null
6662
 
fi
6663
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6664
 
$as_echo "$lt_cv_objdir" >&6; }
6665
 
objdir=$lt_cv_objdir
6666
 
 
6667
 
 
6668
 
 
6669
 
 
6670
 
 
6671
 
case $host_os in
6672
 
aix3*)
6673
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6674
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6675
 
  # vanish in a puff of smoke.
6676
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6677
 
    COLLECT_NAMES=
6678
 
    export COLLECT_NAMES
6679
 
  fi
6680
 
  ;;
6681
 
esac
6682
 
 
6683
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6684
 
# metacharacters that are still active within double-quoted strings.
6685
 
Xsed='sed -e 1s/^X//'
6686
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6687
 
 
6688
 
# Same as above, but do not quote variable references.
6689
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6690
 
 
6691
 
# Sed substitution to delay expansion of an escaped shell variable in a
6692
 
# double_quote_subst'ed string.
6693
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6694
 
 
6695
 
# Sed substitution to avoid accidental globbing in evaled expressions
6696
 
no_glob_subst='s/\*/\\\*/g'
6697
 
 
6698
 
# Constants:
6699
 
rm="rm -f"
6700
 
 
6701
 
# Global variables:
6702
 
default_ofile=libtool
6703
 
can_build_shared=yes
6704
 
 
6705
 
# All known linkers require a `.a' archive for static linking (except MSVC,
6706
 
# which needs '.lib').
6707
 
libext=a
6708
 
ltmain="$ac_aux_dir/ltmain.sh"
6709
 
ofile="$default_ofile"
6710
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6711
 
 
6712
 
if test -n "$ac_tool_prefix"; then
6713
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6714
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6715
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6716
 
$as_echo_n "checking for $ac_word... " >&6; }
6717
 
if test "${ac_cv_prog_AR+set}" = set; then
6718
 
  $as_echo_n "(cached) " >&6
6719
 
else
6720
 
  if test -n "$AR"; then
6721
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6722
 
else
6723
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724
 
for as_dir in $PATH
6725
 
do
6726
 
  IFS=$as_save_IFS
6727
 
  test -z "$as_dir" && as_dir=.
6728
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6729
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6731
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732
 
    break 2
6733
 
  fi
6734
 
done
6735
 
done
6736
 
IFS=$as_save_IFS
6737
 
 
6738
 
fi
6739
 
fi
6740
 
AR=$ac_cv_prog_AR
6741
 
if test -n "$AR"; then
6742
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6743
 
$as_echo "$AR" >&6; }
6744
 
else
6745
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6746
 
$as_echo "no" >&6; }
6747
 
fi
6748
 
 
6749
 
 
6750
 
fi
6751
 
if test -z "$ac_cv_prog_AR"; then
6752
 
  ac_ct_AR=$AR
6753
 
  # Extract the first word of "ar", so it can be a program name with args.
6754
 
set dummy ar; ac_word=$2
6755
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6756
 
$as_echo_n "checking for $ac_word... " >&6; }
6757
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6758
 
  $as_echo_n "(cached) " >&6
6759
 
else
6760
 
  if test -n "$ac_ct_AR"; then
6761
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6762
 
else
6763
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764
 
for as_dir in $PATH
6765
 
do
6766
 
  IFS=$as_save_IFS
6767
 
  test -z "$as_dir" && as_dir=.
6768
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6769
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770
 
    ac_cv_prog_ac_ct_AR="ar"
6771
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772
 
    break 2
6773
 
  fi
6774
 
done
6775
 
done
6776
 
IFS=$as_save_IFS
6777
 
 
6778
 
fi
6779
 
fi
6780
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6781
 
if test -n "$ac_ct_AR"; then
6782
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6783
 
$as_echo "$ac_ct_AR" >&6; }
6784
 
else
6785
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6786
 
$as_echo "no" >&6; }
6787
 
fi
6788
 
 
6789
 
  if test "x$ac_ct_AR" = x; then
6790
 
    AR="false"
6791
 
  else
6792
 
    case $cross_compiling:$ac_tool_warned in
6793
 
yes:)
6794
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6795
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796
 
ac_tool_warned=yes ;;
6797
 
esac
6798
 
    AR=$ac_ct_AR
6799
 
  fi
6800
 
else
6801
 
  AR="$ac_cv_prog_AR"
6802
 
fi
6803
 
 
6804
 
if test -n "$ac_tool_prefix"; then
6805
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6806
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6807
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6808
 
$as_echo_n "checking for $ac_word... " >&6; }
6809
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6810
 
  $as_echo_n "(cached) " >&6
6811
 
else
6812
 
  if test -n "$RANLIB"; then
6813
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6814
 
else
6815
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816
 
for as_dir in $PATH
6817
 
do
6818
 
  IFS=$as_save_IFS
6819
 
  test -z "$as_dir" && as_dir=.
6820
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6821
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6823
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824
 
    break 2
6825
 
  fi
6826
 
done
6827
 
done
6828
 
IFS=$as_save_IFS
6829
 
 
6830
 
fi
6831
 
fi
6832
 
RANLIB=$ac_cv_prog_RANLIB
6833
 
if test -n "$RANLIB"; then
6834
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6835
 
$as_echo "$RANLIB" >&6; }
6836
 
else
6837
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6838
 
$as_echo "no" >&6; }
6839
 
fi
6840
 
 
6841
 
 
6842
 
fi
6843
 
if test -z "$ac_cv_prog_RANLIB"; then
6844
 
  ac_ct_RANLIB=$RANLIB
6845
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6846
 
set dummy ranlib; ac_word=$2
6847
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6848
 
$as_echo_n "checking for $ac_word... " >&6; }
6849
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6850
 
  $as_echo_n "(cached) " >&6
6851
 
else
6852
 
  if test -n "$ac_ct_RANLIB"; then
6853
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6854
 
else
6855
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856
 
for as_dir in $PATH
6857
 
do
6858
 
  IFS=$as_save_IFS
6859
 
  test -z "$as_dir" && as_dir=.
6860
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6861
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6863
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864
 
    break 2
6865
 
  fi
6866
 
done
6867
 
done
6868
 
IFS=$as_save_IFS
6869
 
 
6870
 
fi
6871
 
fi
6872
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6873
 
if test -n "$ac_ct_RANLIB"; then
6874
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6875
 
$as_echo "$ac_ct_RANLIB" >&6; }
6876
 
else
6877
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6878
 
$as_echo "no" >&6; }
6879
 
fi
6880
 
 
6881
 
  if test "x$ac_ct_RANLIB" = x; then
6882
 
    RANLIB=":"
6883
 
  else
6884
 
    case $cross_compiling:$ac_tool_warned in
6885
 
yes:)
6886
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6887
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888
 
ac_tool_warned=yes ;;
6889
 
esac
6890
 
    RANLIB=$ac_ct_RANLIB
6891
 
  fi
6892
 
else
6893
 
  RANLIB="$ac_cv_prog_RANLIB"
6894
 
fi
6895
 
 
6896
 
if test -n "$ac_tool_prefix"; then
6897
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6898
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6899
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6900
 
$as_echo_n "checking for $ac_word... " >&6; }
6901
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6902
 
  $as_echo_n "(cached) " >&6
6903
 
else
6904
 
  if test -n "$STRIP"; then
6905
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6906
 
else
6907
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908
 
for as_dir in $PATH
6909
 
do
6910
 
  IFS=$as_save_IFS
6911
 
  test -z "$as_dir" && as_dir=.
6912
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6913
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6915
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916
 
    break 2
6917
 
  fi
6918
 
done
6919
 
done
6920
 
IFS=$as_save_IFS
6921
 
 
6922
 
fi
6923
 
fi
6924
 
STRIP=$ac_cv_prog_STRIP
6925
 
if test -n "$STRIP"; then
6926
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6927
 
$as_echo "$STRIP" >&6; }
6928
 
else
6929
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6930
 
$as_echo "no" >&6; }
6931
 
fi
6932
 
 
6933
 
 
6934
 
fi
6935
 
if test -z "$ac_cv_prog_STRIP"; then
6936
 
  ac_ct_STRIP=$STRIP
6937
 
  # Extract the first word of "strip", so it can be a program name with args.
6938
 
set dummy strip; ac_word=$2
6939
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6940
 
$as_echo_n "checking for $ac_word... " >&6; }
6941
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6942
 
  $as_echo_n "(cached) " >&6
6943
 
else
6944
 
  if test -n "$ac_ct_STRIP"; then
6945
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6946
 
else
6947
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948
 
for as_dir in $PATH
6949
 
do
6950
 
  IFS=$as_save_IFS
6951
 
  test -z "$as_dir" && as_dir=.
6952
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6953
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954
 
    ac_cv_prog_ac_ct_STRIP="strip"
6955
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956
 
    break 2
6957
 
  fi
6958
 
done
6959
 
done
6960
 
IFS=$as_save_IFS
6961
 
 
6962
 
fi
6963
 
fi
6964
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965
 
if test -n "$ac_ct_STRIP"; then
6966
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6967
 
$as_echo "$ac_ct_STRIP" >&6; }
6968
 
else
6969
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6970
 
$as_echo "no" >&6; }
6971
 
fi
6972
 
 
6973
 
  if test "x$ac_ct_STRIP" = x; then
6974
 
    STRIP=":"
6975
 
  else
6976
 
    case $cross_compiling:$ac_tool_warned in
6977
 
yes:)
6978
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6979
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980
 
ac_tool_warned=yes ;;
6981
 
esac
6982
 
    STRIP=$ac_ct_STRIP
6983
 
  fi
6984
 
else
6985
 
  STRIP="$ac_cv_prog_STRIP"
6986
 
fi
6987
 
 
6988
 
 
6989
 
old_CC="$CC"
6990
 
old_CFLAGS="$CFLAGS"
6991
 
 
6992
 
# Set sane defaults for various variables
6993
 
test -z "$AR" && AR=ar
6994
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6995
 
test -z "$AS" && AS=as
6996
 
test -z "$CC" && CC=cc
6997
 
test -z "$LTCC" && LTCC=$CC
6998
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6999
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7000
 
test -z "$LD" && LD=ld
7001
 
test -z "$LN_S" && LN_S="ln -s"
7002
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7003
 
test -z "$NM" && NM=nm
7004
 
test -z "$SED" && SED=sed
7005
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7006
 
test -z "$RANLIB" && RANLIB=:
7007
 
test -z "$STRIP" && STRIP=:
7008
 
test -z "$ac_objext" && ac_objext=o
7009
 
 
7010
 
# Determine commands to create old-style static archives.
7011
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012
 
old_postinstall_cmds='chmod 644 $oldlib'
7013
 
old_postuninstall_cmds=
7014
 
 
7015
 
if test -n "$RANLIB"; then
7016
 
  case $host_os in
7017
 
  openbsd*)
7018
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7019
 
    ;;
7020
 
  *)
7021
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7022
 
    ;;
7023
 
  esac
7024
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7025
 
fi
7026
 
 
7027
 
for cc_temp in $compiler""; do
7028
 
  case $cc_temp in
7029
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7030
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7031
 
    \-*) ;;
7032
 
    *) break;;
7033
 
  esac
7034
 
done
7035
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7036
 
 
7037
 
 
7038
 
# Only perform the check for file, if the check method requires it
7039
 
case $deplibs_check_method in
7040
 
file_magic*)
7041
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7042
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7043
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7044
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7045
 
  $as_echo_n "(cached) " >&6
7046
 
else
7047
 
  case $MAGIC_CMD in
7048
 
[\\/*] |  ?:[\\/]*)
7049
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7050
 
  ;;
7051
 
*)
7052
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7053
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7054
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7055
 
  for ac_dir in $ac_dummy; do
7056
 
    IFS="$lt_save_ifs"
7057
 
    test -z "$ac_dir" && ac_dir=.
7058
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7059
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7060
 
      if test -n "$file_magic_test_file"; then
7061
 
        case $deplibs_check_method in
7062
 
        "file_magic "*)
7063
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7064
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7065
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7066
 
            $EGREP "$file_magic_regex" > /dev/null; then
7067
 
            :
7068
 
          else
7069
 
            cat <<EOF 1>&2
7070
 
 
7071
 
*** Warning: the command libtool uses to detect shared libraries,
7072
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7073
 
*** The result is that libtool may fail to recognize shared libraries
7074
 
*** as such.  This will affect the creation of libtool libraries that
7075
 
*** depend on shared libraries, but programs linked with such libtool
7076
 
*** libraries will work regardless of this problem.  Nevertheless, you
7077
 
*** may want to report the problem to your system manager and/or to
7078
 
*** bug-libtool@gnu.org
7079
 
 
7080
 
EOF
7081
 
          fi ;;
7082
 
        esac
7083
 
      fi
7084
 
      break
7085
 
    fi
7086
 
  done
7087
 
  IFS="$lt_save_ifs"
7088
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7089
 
  ;;
7090
 
esac
7091
 
fi
7092
 
 
7093
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094
 
if test -n "$MAGIC_CMD"; then
7095
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7096
 
$as_echo "$MAGIC_CMD" >&6; }
7097
 
else
7098
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7099
 
$as_echo "no" >&6; }
7100
 
fi
7101
 
 
7102
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7103
 
  if test -n "$ac_tool_prefix"; then
7104
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7105
 
$as_echo_n "checking for file... " >&6; }
7106
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7107
 
  $as_echo_n "(cached) " >&6
7108
 
else
7109
 
  case $MAGIC_CMD in
7110
 
[\\/*] |  ?:[\\/]*)
7111
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7112
 
  ;;
7113
 
*)
7114
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7115
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7116
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7117
 
  for ac_dir in $ac_dummy; do
7118
 
    IFS="$lt_save_ifs"
7119
 
    test -z "$ac_dir" && ac_dir=.
7120
 
    if test -f $ac_dir/file; then
7121
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7122
 
      if test -n "$file_magic_test_file"; then
7123
 
        case $deplibs_check_method in
7124
 
        "file_magic "*)
7125
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7126
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7127
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7128
 
            $EGREP "$file_magic_regex" > /dev/null; then
7129
 
            :
7130
 
          else
7131
 
            cat <<EOF 1>&2
7132
 
 
7133
 
*** Warning: the command libtool uses to detect shared libraries,
7134
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7135
 
*** The result is that libtool may fail to recognize shared libraries
7136
 
*** as such.  This will affect the creation of libtool libraries that
7137
 
*** depend on shared libraries, but programs linked with such libtool
7138
 
*** libraries will work regardless of this problem.  Nevertheless, you
7139
 
*** may want to report the problem to your system manager and/or to
7140
 
*** bug-libtool@gnu.org
7141
 
 
7142
 
EOF
7143
 
          fi ;;
7144
 
        esac
7145
 
      fi
7146
 
      break
7147
 
    fi
7148
 
  done
7149
 
  IFS="$lt_save_ifs"
7150
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7151
 
  ;;
7152
 
esac
7153
 
fi
7154
 
 
7155
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7156
 
if test -n "$MAGIC_CMD"; then
7157
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7158
 
$as_echo "$MAGIC_CMD" >&6; }
7159
 
else
7160
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7161
 
$as_echo "no" >&6; }
7162
 
fi
7163
 
 
7164
 
  else
7165
 
    MAGIC_CMD=:
7166
 
  fi
7167
 
fi
7168
 
 
7169
 
  fi
7170
 
  ;;
7171
 
esac
 
5621
 
 
5622
 
 
5623
 
 
5624
 
 
5625
 
 
5626
 
 
5627
 
 
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
 
 
5641
 
 
5642
 
 
5643
# Check whether --enable-libtool-lock was given.
 
5644
if test "${enable_libtool_lock+set}" = set; then
 
5645
  enableval=$enable_libtool_lock;
 
5646
fi
 
5647
 
 
5648
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5649
 
 
5650
# Some flags need to be propagated to the compiler or linker for good
 
5651
# libtool support.
 
5652
case $host in
 
5653
ia64-*-hpux*)
 
5654
  # Find out which ABI we are using.
 
5655
  echo 'int i;' > conftest.$ac_ext
 
5656
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5657
  (eval $ac_compile) 2>&5
 
5658
  ac_status=$?
 
5659
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5660
  (exit $ac_status); }; then
 
5661
    case `/usr/bin/file conftest.$ac_objext` in
 
5662
      *ELF-32*)
 
5663
        HPUX_IA64_MODE="32"
 
5664
        ;;
 
5665
      *ELF-64*)
 
5666
        HPUX_IA64_MODE="64"
 
5667
        ;;
 
5668
    esac
 
5669
  fi
 
5670
  rm -rf conftest*
 
5671
  ;;
 
5672
*-*-irix6*)
 
5673
  # Find out which ABI we are using.
 
5674
  echo '#line 5674 "configure"' > conftest.$ac_ext
 
5675
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5676
  (eval $ac_compile) 2>&5
 
5677
  ac_status=$?
 
5678
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5679
  (exit $ac_status); }; then
 
5680
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5681
      case `/usr/bin/file conftest.$ac_objext` in
 
5682
        *32-bit*)
 
5683
          LD="${LD-ld} -melf32bsmip"
 
5684
          ;;
 
5685
        *N32*)
 
5686
          LD="${LD-ld} -melf32bmipn32"
 
5687
          ;;
 
5688
        *64-bit*)
 
5689
          LD="${LD-ld} -melf64bmip"
 
5690
        ;;
 
5691
      esac
 
5692
    else
 
5693
      case `/usr/bin/file conftest.$ac_objext` in
 
5694
        *32-bit*)
 
5695
          LD="${LD-ld} -32"
 
5696
          ;;
 
5697
        *N32*)
 
5698
          LD="${LD-ld} -n32"
 
5699
          ;;
 
5700
        *64-bit*)
 
5701
          LD="${LD-ld} -64"
 
5702
          ;;
 
5703
      esac
 
5704
    fi
 
5705
  fi
 
5706
  rm -rf conftest*
 
5707
  ;;
 
5708
 
 
5709
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5710
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5711
  # Find out which ABI we are using.
 
5712
  echo 'int i;' > conftest.$ac_ext
 
5713
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5714
  (eval $ac_compile) 2>&5
 
5715
  ac_status=$?
 
5716
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5717
  (exit $ac_status); }; then
 
5718
    case `/usr/bin/file conftest.o` in
 
5719
      *32-bit*)
 
5720
        case $host in
 
5721
          x86_64-*kfreebsd*-gnu)
 
5722
            LD="${LD-ld} -m elf_i386_fbsd"
 
5723
            ;;
 
5724
          x86_64-*linux*)
 
5725
            LD="${LD-ld} -m elf_i386"
 
5726
            ;;
 
5727
          ppc64-*linux*|powerpc64-*linux*)
 
5728
            LD="${LD-ld} -m elf32ppclinux"
 
5729
            ;;
 
5730
          s390x-*linux*)
 
5731
            LD="${LD-ld} -m elf_s390"
 
5732
            ;;
 
5733
          sparc64-*linux*)
 
5734
            LD="${LD-ld} -m elf32_sparc"
 
5735
            ;;
 
5736
        esac
 
5737
        ;;
 
5738
      *64-bit*)
 
5739
        case $host in
 
5740
          x86_64-*kfreebsd*-gnu)
 
5741
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5742
            ;;
 
5743
          x86_64-*linux*)
 
5744
            LD="${LD-ld} -m elf_x86_64"
 
5745
            ;;
 
5746
          ppc*-*linux*|powerpc*-*linux*)
 
5747
            LD="${LD-ld} -m elf64ppc"
 
5748
            ;;
 
5749
          s390*-*linux*|s390*-*tpf*)
 
5750
            LD="${LD-ld} -m elf64_s390"
 
5751
            ;;
 
5752
          sparc*-*linux*)
 
5753
            LD="${LD-ld} -m elf64_sparc"
 
5754
            ;;
 
5755
        esac
 
5756
        ;;
 
5757
    esac
 
5758
  fi
 
5759
  rm -rf conftest*
 
5760
  ;;
 
5761
 
 
5762
*-*-sco3.2v5*)
 
5763
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5764
  SAVE_CFLAGS="$CFLAGS"
 
5765
  CFLAGS="$CFLAGS -belf"
 
5766
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5767
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5768
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5769
  $as_echo_n "(cached) " >&6
 
5770
else
 
5771
  ac_ext=c
 
5772
ac_cpp='$CPP $CPPFLAGS'
 
5773
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5774
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5775
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5776
 
 
5777
     cat >conftest.$ac_ext <<_ACEOF
 
5778
/* confdefs.h.  */
 
5779
_ACEOF
 
5780
cat confdefs.h >>conftest.$ac_ext
 
5781
cat >>conftest.$ac_ext <<_ACEOF
 
5782
/* end confdefs.h.  */
 
5783
 
 
5784
int
 
5785
main ()
 
5786
{
 
5787
 
 
5788
  ;
 
5789
  return 0;
 
5790
}
 
5791
_ACEOF
 
5792
rm -f conftest.$ac_objext conftest$ac_exeext
 
5793
if { (ac_try="$ac_link"
 
5794
case "(($ac_try" in
 
5795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5796
  *) ac_try_echo=$ac_try;;
 
5797
esac
 
5798
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5799
$as_echo "$ac_try_echo") >&5
 
5800
  (eval "$ac_link") 2>conftest.er1
 
5801
  ac_status=$?
 
5802
  grep -v '^ *+' conftest.er1 >conftest.err
 
5803
  rm -f conftest.er1
 
5804
  cat conftest.err >&5
 
5805
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5806
  (exit $ac_status); } && {
 
5807
         test -z "$ac_c_werror_flag" ||
 
5808
         test ! -s conftest.err
 
5809
       } && test -s conftest$ac_exeext && {
 
5810
         test "$cross_compiling" = yes ||
 
5811
         $as_test_x conftest$ac_exeext
 
5812
       }; then
 
5813
  lt_cv_cc_needs_belf=yes
 
5814
else
 
5815
  $as_echo "$as_me: failed program was:" >&5
 
5816
sed 's/^/| /' conftest.$ac_ext >&5
 
5817
 
 
5818
        lt_cv_cc_needs_belf=no
 
5819
fi
 
5820
 
 
5821
rm -rf conftest.dSYM
 
5822
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5823
      conftest$ac_exeext conftest.$ac_ext
 
5824
     ac_ext=c
 
5825
ac_cpp='$CPP $CPPFLAGS'
 
5826
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5827
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5828
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5829
 
 
5830
fi
 
5831
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5832
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5833
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5834
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5835
    CFLAGS="$SAVE_CFLAGS"
 
5836
  fi
 
5837
  ;;
 
5838
sparc*-*solaris*)
 
5839
  # Find out which ABI we are using.
 
5840
  echo 'int i;' > conftest.$ac_ext
 
5841
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5842
  (eval $ac_compile) 2>&5
 
5843
  ac_status=$?
 
5844
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5845
  (exit $ac_status); }; then
 
5846
    case `/usr/bin/file conftest.o` in
 
5847
    *64-bit*)
 
5848
      case $lt_cv_prog_gnu_ld in
 
5849
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5850
      *)
 
5851
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5852
          LD="${LD-ld} -64"
 
5853
        fi
 
5854
        ;;
 
5855
      esac
 
5856
      ;;
 
5857
    esac
 
5858
  fi
 
5859
  rm -rf conftest*
 
5860
  ;;
 
5861
esac
 
5862
 
 
5863
need_locks="$enable_libtool_lock"
7172
5864
 
7173
5865
 
7174
5866
  case $host_os in
7357
6049
  NMEDIT="$ac_cv_prog_NMEDIT"
7358
6050
fi
7359
6051
 
 
6052
    if test -n "$ac_tool_prefix"; then
 
6053
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6054
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6055
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6056
$as_echo_n "checking for $ac_word... " >&6; }
 
6057
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6058
  $as_echo_n "(cached) " >&6
 
6059
else
 
6060
  if test -n "$LIPO"; then
 
6061
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6062
else
 
6063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6064
for as_dir in $PATH
 
6065
do
 
6066
  IFS=$as_save_IFS
 
6067
  test -z "$as_dir" && as_dir=.
 
6068
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6069
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6070
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6071
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6072
    break 2
 
6073
  fi
 
6074
done
 
6075
done
 
6076
IFS=$as_save_IFS
 
6077
 
 
6078
fi
 
6079
fi
 
6080
LIPO=$ac_cv_prog_LIPO
 
6081
if test -n "$LIPO"; then
 
6082
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
6083
$as_echo "$LIPO" >&6; }
 
6084
else
 
6085
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6086
$as_echo "no" >&6; }
 
6087
fi
 
6088
 
 
6089
 
 
6090
fi
 
6091
if test -z "$ac_cv_prog_LIPO"; then
 
6092
  ac_ct_LIPO=$LIPO
 
6093
  # Extract the first word of "lipo", so it can be a program name with args.
 
6094
set dummy lipo; ac_word=$2
 
6095
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6096
$as_echo_n "checking for $ac_word... " >&6; }
 
6097
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6098
  $as_echo_n "(cached) " >&6
 
6099
else
 
6100
  if test -n "$ac_ct_LIPO"; then
 
6101
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6102
else
 
6103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6104
for as_dir in $PATH
 
6105
do
 
6106
  IFS=$as_save_IFS
 
6107
  test -z "$as_dir" && as_dir=.
 
6108
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6109
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6110
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6111
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6112
    break 2
 
6113
  fi
 
6114
done
 
6115
done
 
6116
IFS=$as_save_IFS
 
6117
 
 
6118
fi
 
6119
fi
 
6120
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6121
if test -n "$ac_ct_LIPO"; then
 
6122
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6123
$as_echo "$ac_ct_LIPO" >&6; }
 
6124
else
 
6125
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6126
$as_echo "no" >&6; }
 
6127
fi
 
6128
 
 
6129
  if test "x$ac_ct_LIPO" = x; then
 
6130
    LIPO=":"
 
6131
  else
 
6132
    case $cross_compiling:$ac_tool_warned in
 
6133
yes:)
 
6134
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6135
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6136
ac_tool_warned=yes ;;
 
6137
esac
 
6138
    LIPO=$ac_ct_LIPO
 
6139
  fi
 
6140
else
 
6141
  LIPO="$ac_cv_prog_LIPO"
 
6142
fi
 
6143
 
 
6144
    if test -n "$ac_tool_prefix"; then
 
6145
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6146
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6147
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6148
$as_echo_n "checking for $ac_word... " >&6; }
 
6149
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6150
  $as_echo_n "(cached) " >&6
 
6151
else
 
6152
  if test -n "$OTOOL"; then
 
6153
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6154
else
 
6155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6156
for as_dir in $PATH
 
6157
do
 
6158
  IFS=$as_save_IFS
 
6159
  test -z "$as_dir" && as_dir=.
 
6160
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6161
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6162
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6163
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6164
    break 2
 
6165
  fi
 
6166
done
 
6167
done
 
6168
IFS=$as_save_IFS
 
6169
 
 
6170
fi
 
6171
fi
 
6172
OTOOL=$ac_cv_prog_OTOOL
 
6173
if test -n "$OTOOL"; then
 
6174
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6175
$as_echo "$OTOOL" >&6; }
 
6176
else
 
6177
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6178
$as_echo "no" >&6; }
 
6179
fi
 
6180
 
 
6181
 
 
6182
fi
 
6183
if test -z "$ac_cv_prog_OTOOL"; then
 
6184
  ac_ct_OTOOL=$OTOOL
 
6185
  # Extract the first word of "otool", so it can be a program name with args.
 
6186
set dummy otool; ac_word=$2
 
6187
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6188
$as_echo_n "checking for $ac_word... " >&6; }
 
6189
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
6190
  $as_echo_n "(cached) " >&6
 
6191
else
 
6192
  if test -n "$ac_ct_OTOOL"; then
 
6193
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6194
else
 
6195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6196
for as_dir in $PATH
 
6197
do
 
6198
  IFS=$as_save_IFS
 
6199
  test -z "$as_dir" && as_dir=.
 
6200
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6202
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6203
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6204
    break 2
 
6205
  fi
 
6206
done
 
6207
done
 
6208
IFS=$as_save_IFS
 
6209
 
 
6210
fi
 
6211
fi
 
6212
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6213
if test -n "$ac_ct_OTOOL"; then
 
6214
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6215
$as_echo "$ac_ct_OTOOL" >&6; }
 
6216
else
 
6217
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6218
$as_echo "no" >&6; }
 
6219
fi
 
6220
 
 
6221
  if test "x$ac_ct_OTOOL" = x; then
 
6222
    OTOOL=":"
 
6223
  else
 
6224
    case $cross_compiling:$ac_tool_warned in
 
6225
yes:)
 
6226
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6227
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6228
ac_tool_warned=yes ;;
 
6229
esac
 
6230
    OTOOL=$ac_ct_OTOOL
 
6231
  fi
 
6232
else
 
6233
  OTOOL="$ac_cv_prog_OTOOL"
 
6234
fi
 
6235
 
 
6236
    if test -n "$ac_tool_prefix"; then
 
6237
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6238
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6239
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6240
$as_echo_n "checking for $ac_word... " >&6; }
 
6241
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6242
  $as_echo_n "(cached) " >&6
 
6243
else
 
6244
  if test -n "$OTOOL64"; then
 
6245
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6246
else
 
6247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6248
for as_dir in $PATH
 
6249
do
 
6250
  IFS=$as_save_IFS
 
6251
  test -z "$as_dir" && as_dir=.
 
6252
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6253
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6254
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6255
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6256
    break 2
 
6257
  fi
 
6258
done
 
6259
done
 
6260
IFS=$as_save_IFS
 
6261
 
 
6262
fi
 
6263
fi
 
6264
OTOOL64=$ac_cv_prog_OTOOL64
 
6265
if test -n "$OTOOL64"; then
 
6266
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6267
$as_echo "$OTOOL64" >&6; }
 
6268
else
 
6269
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6270
$as_echo "no" >&6; }
 
6271
fi
 
6272
 
 
6273
 
 
6274
fi
 
6275
if test -z "$ac_cv_prog_OTOOL64"; then
 
6276
  ac_ct_OTOOL64=$OTOOL64
 
6277
  # Extract the first word of "otool64", so it can be a program name with args.
 
6278
set dummy otool64; ac_word=$2
 
6279
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6280
$as_echo_n "checking for $ac_word... " >&6; }
 
6281
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6282
  $as_echo_n "(cached) " >&6
 
6283
else
 
6284
  if test -n "$ac_ct_OTOOL64"; then
 
6285
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6286
else
 
6287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6288
for as_dir in $PATH
 
6289
do
 
6290
  IFS=$as_save_IFS
 
6291
  test -z "$as_dir" && as_dir=.
 
6292
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6293
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6294
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6295
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6296
    break 2
 
6297
  fi
 
6298
done
 
6299
done
 
6300
IFS=$as_save_IFS
 
6301
 
 
6302
fi
 
6303
fi
 
6304
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6305
if test -n "$ac_ct_OTOOL64"; then
 
6306
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6307
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6308
else
 
6309
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6310
$as_echo "no" >&6; }
 
6311
fi
 
6312
 
 
6313
  if test "x$ac_ct_OTOOL64" = x; then
 
6314
    OTOOL64=":"
 
6315
  else
 
6316
    case $cross_compiling:$ac_tool_warned in
 
6317
yes:)
 
6318
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6319
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6320
ac_tool_warned=yes ;;
 
6321
esac
 
6322
    OTOOL64=$ac_ct_OTOOL64
 
6323
  fi
 
6324
else
 
6325
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6326
fi
 
6327
 
 
6328
 
 
6329
 
 
6330
 
 
6331
 
 
6332
 
 
6333
 
 
6334
 
 
6335
 
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
 
6345
 
 
6346
 
 
6347
 
 
6348
 
 
6349
 
 
6350
 
 
6351
 
 
6352
 
7360
6353
 
7361
6354
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7362
6355
$as_echo_n "checking for -single_module linker flag... " >&6; }
7365
6358
else
7366
6359
  lt_cv_apple_cc_single_mod=no
7367
6360
      if test -z "${LT_MULTI_MODULE}"; then
7368
 
   # By default we will add the -single_module flag. You can override
7369
 
   # by either setting the environment variable LT_MULTI_MODULE
7370
 
   # non-empty at configure time, or by adding -multi_module to the
7371
 
   # link flags.
7372
 
   echo "int foo(void){return 1;}" > conftest.c
7373
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7374
 
     -dynamiclib ${wl}-single_module conftest.c
7375
 
   if test -f libconftest.dylib; then
7376
 
     lt_cv_apple_cc_single_mod=yes
7377
 
     rm -rf libconftest.dylib*
7378
 
   fi
7379
 
   rm conftest.c
 
6361
        # By default we will add the -single_module flag. You can override
 
6362
        # by either setting the environment variable LT_MULTI_MODULE
 
6363
        # non-empty at configure time, or by adding -multi_module to the
 
6364
        # link flags.
 
6365
        rm -rf libconftest.dylib*
 
6366
        echo "int foo(void){return 1;}" > conftest.c
 
6367
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6368
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6369
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6370
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6371
        _lt_result=$?
 
6372
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6373
          lt_cv_apple_cc_single_mod=yes
 
6374
        else
 
6375
          cat conftest.err >&5
 
6376
        fi
 
6377
        rm -rf libconftest.dylib*
 
6378
        rm -f conftest.*
7380
6379
      fi
7381
6380
fi
7382
6381
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7437
6436
rm -rf conftest.dSYM
7438
6437
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439
6438
      conftest$ac_exeext conftest.$ac_ext
7440
 
   LDFLAGS="$save_LDFLAGS"
 
6439
        LDFLAGS="$save_LDFLAGS"
7441
6440
 
7442
6441
fi
7443
6442
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7444
6443
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7445
6444
    case $host_os in
7446
 
    rhapsody* | darwin1.[0123])
 
6445
    rhapsody* | darwin1.[012])
7447
6446
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7448
6447
    darwin1.*)
7449
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7450
 
    darwin*)
 
6448
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6449
    darwin*) # darwin 5.x on
7451
6450
      # if running on 10.5 or later, the deployment target defaults
7452
6451
      # to the OS version, if on x86, and 10.4, the deployment
7453
6452
      # target defaults to 10.4. Don't you love it?
7454
6453
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7455
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7456
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7457
 
   10.[012]*)
7458
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7459
 
   10.*)
7460
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6454
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6455
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6456
        10.[012]*)
 
6457
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6458
        10.*)
 
6459
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7461
6460
      esac
7462
6461
    ;;
7463
6462
  esac
7467
6466
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7468
6467
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7469
6468
    else
7470
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
6469
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7471
6470
    fi
7472
6471
    if test "$DSYMUTIL" != ":"; then
7473
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
6472
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7474
6473
    else
7475
6474
      _lt_dsymutil=
7476
6475
    fi
7477
6476
    ;;
7478
6477
  esac
7479
6478
 
7480
 
 
7481
 
enable_dlopen=no
7482
 
enable_win32_dll=no
7483
 
 
7484
 
# Check whether --enable-libtool-lock was given.
7485
 
if test "${enable_libtool_lock+set}" = set; then
7486
 
  enableval=$enable_libtool_lock;
7487
 
fi
7488
 
 
7489
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6479
ac_ext=c
 
6480
ac_cpp='$CPP $CPPFLAGS'
 
6481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6484
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6485
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6486
# On Suns, sometimes $CPP names a directory.
 
6487
if test -n "$CPP" && test -d "$CPP"; then
 
6488
  CPP=
 
6489
fi
 
6490
if test -z "$CPP"; then
 
6491
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6492
  $as_echo_n "(cached) " >&6
 
6493
else
 
6494
      # Double quotes because CPP needs to be expanded
 
6495
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6496
    do
 
6497
      ac_preproc_ok=false
 
6498
for ac_c_preproc_warn_flag in '' yes
 
6499
do
 
6500
  # Use a header file that comes with gcc, so configuring glibc
 
6501
  # with a fresh cross-compiler works.
 
6502
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6503
  # <limits.h> exists even on freestanding compilers.
 
6504
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6505
  # not just through cpp. "Syntax error" is here to catch this case.
 
6506
  cat >conftest.$ac_ext <<_ACEOF
 
6507
/* confdefs.h.  */
 
6508
_ACEOF
 
6509
cat confdefs.h >>conftest.$ac_ext
 
6510
cat >>conftest.$ac_ext <<_ACEOF
 
6511
/* end confdefs.h.  */
 
6512
#ifdef __STDC__
 
6513
# include <limits.h>
 
6514
#else
 
6515
# include <assert.h>
 
6516
#endif
 
6517
                     Syntax error
 
6518
_ACEOF
 
6519
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6520
case "(($ac_try" in
 
6521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6522
  *) ac_try_echo=$ac_try;;
 
6523
esac
 
6524
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6525
$as_echo "$ac_try_echo") >&5
 
6526
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6527
  ac_status=$?
 
6528
  grep -v '^ *+' conftest.er1 >conftest.err
 
6529
  rm -f conftest.er1
 
6530
  cat conftest.err >&5
 
6531
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6532
  (exit $ac_status); } >/dev/null && {
 
6533
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6534
         test ! -s conftest.err
 
6535
       }; then
 
6536
  :
 
6537
else
 
6538
  $as_echo "$as_me: failed program was:" >&5
 
6539
sed 's/^/| /' conftest.$ac_ext >&5
 
6540
 
 
6541
  # Broken: fails on valid input.
 
6542
continue
 
6543
fi
 
6544
 
 
6545
rm -f conftest.err conftest.$ac_ext
 
6546
 
 
6547
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6548
  # can be detected and how.
 
6549
  cat >conftest.$ac_ext <<_ACEOF
 
6550
/* confdefs.h.  */
 
6551
_ACEOF
 
6552
cat confdefs.h >>conftest.$ac_ext
 
6553
cat >>conftest.$ac_ext <<_ACEOF
 
6554
/* end confdefs.h.  */
 
6555
#include <ac_nonexistent.h>
 
6556
_ACEOF
 
6557
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6558
case "(($ac_try" in
 
6559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6560
  *) ac_try_echo=$ac_try;;
 
6561
esac
 
6562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6563
$as_echo "$ac_try_echo") >&5
 
6564
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6565
  ac_status=$?
 
6566
  grep -v '^ *+' conftest.er1 >conftest.err
 
6567
  rm -f conftest.er1
 
6568
  cat conftest.err >&5
 
6569
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6570
  (exit $ac_status); } >/dev/null && {
 
6571
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6572
         test ! -s conftest.err
 
6573
       }; then
 
6574
  # Broken: success on invalid input.
 
6575
continue
 
6576
else
 
6577
  $as_echo "$as_me: failed program was:" >&5
 
6578
sed 's/^/| /' conftest.$ac_ext >&5
 
6579
 
 
6580
  # Passes both tests.
 
6581
ac_preproc_ok=:
 
6582
break
 
6583
fi
 
6584
 
 
6585
rm -f conftest.err conftest.$ac_ext
 
6586
 
 
6587
done
 
6588
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6589
rm -f conftest.err conftest.$ac_ext
 
6590
if $ac_preproc_ok; then
 
6591
  break
 
6592
fi
 
6593
 
 
6594
    done
 
6595
    ac_cv_prog_CPP=$CPP
 
6596
 
 
6597
fi
 
6598
  CPP=$ac_cv_prog_CPP
 
6599
else
 
6600
  ac_cv_prog_CPP=$CPP
 
6601
fi
 
6602
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
6603
$as_echo "$CPP" >&6; }
 
6604
ac_preproc_ok=false
 
6605
for ac_c_preproc_warn_flag in '' yes
 
6606
do
 
6607
  # Use a header file that comes with gcc, so configuring glibc
 
6608
  # with a fresh cross-compiler works.
 
6609
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6610
  # <limits.h> exists even on freestanding compilers.
 
6611
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6612
  # not just through cpp. "Syntax error" is here to catch this case.
 
6613
  cat >conftest.$ac_ext <<_ACEOF
 
6614
/* confdefs.h.  */
 
6615
_ACEOF
 
6616
cat confdefs.h >>conftest.$ac_ext
 
6617
cat >>conftest.$ac_ext <<_ACEOF
 
6618
/* end confdefs.h.  */
 
6619
#ifdef __STDC__
 
6620
# include <limits.h>
 
6621
#else
 
6622
# include <assert.h>
 
6623
#endif
 
6624
                     Syntax error
 
6625
_ACEOF
 
6626
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6627
case "(($ac_try" in
 
6628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6629
  *) ac_try_echo=$ac_try;;
 
6630
esac
 
6631
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6632
$as_echo "$ac_try_echo") >&5
 
6633
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6634
  ac_status=$?
 
6635
  grep -v '^ *+' conftest.er1 >conftest.err
 
6636
  rm -f conftest.er1
 
6637
  cat conftest.err >&5
 
6638
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6639
  (exit $ac_status); } >/dev/null && {
 
6640
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6641
         test ! -s conftest.err
 
6642
       }; then
 
6643
  :
 
6644
else
 
6645
  $as_echo "$as_me: failed program was:" >&5
 
6646
sed 's/^/| /' conftest.$ac_ext >&5
 
6647
 
 
6648
  # Broken: fails on valid input.
 
6649
continue
 
6650
fi
 
6651
 
 
6652
rm -f conftest.err conftest.$ac_ext
 
6653
 
 
6654
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6655
  # can be detected and how.
 
6656
  cat >conftest.$ac_ext <<_ACEOF
 
6657
/* confdefs.h.  */
 
6658
_ACEOF
 
6659
cat confdefs.h >>conftest.$ac_ext
 
6660
cat >>conftest.$ac_ext <<_ACEOF
 
6661
/* end confdefs.h.  */
 
6662
#include <ac_nonexistent.h>
 
6663
_ACEOF
 
6664
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6665
case "(($ac_try" in
 
6666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6667
  *) ac_try_echo=$ac_try;;
 
6668
esac
 
6669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6670
$as_echo "$ac_try_echo") >&5
 
6671
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6672
  ac_status=$?
 
6673
  grep -v '^ *+' conftest.er1 >conftest.err
 
6674
  rm -f conftest.er1
 
6675
  cat conftest.err >&5
 
6676
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6677
  (exit $ac_status); } >/dev/null && {
 
6678
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6679
         test ! -s conftest.err
 
6680
       }; then
 
6681
  # Broken: success on invalid input.
 
6682
continue
 
6683
else
 
6684
  $as_echo "$as_me: failed program was:" >&5
 
6685
sed 's/^/| /' conftest.$ac_ext >&5
 
6686
 
 
6687
  # Passes both tests.
 
6688
ac_preproc_ok=:
 
6689
break
 
6690
fi
 
6691
 
 
6692
rm -f conftest.err conftest.$ac_ext
 
6693
 
 
6694
done
 
6695
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6696
rm -f conftest.err conftest.$ac_ext
 
6697
if $ac_preproc_ok; then
 
6698
  :
 
6699
else
 
6700
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6701
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6702
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
6703
See \`config.log' for more details." >&5
 
6704
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
6705
See \`config.log' for more details." >&2;}
 
6706
   { (exit 1); exit 1; }; }; }
 
6707
fi
 
6708
 
 
6709
ac_ext=c
 
6710
ac_cpp='$CPP $CPPFLAGS'
 
6711
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6712
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6713
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6714
 
 
6715
 
 
6716
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6717
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6718
if test "${ac_cv_header_stdc+set}" = set; then
 
6719
  $as_echo_n "(cached) " >&6
 
6720
else
 
6721
  cat >conftest.$ac_ext <<_ACEOF
 
6722
/* confdefs.h.  */
 
6723
_ACEOF
 
6724
cat confdefs.h >>conftest.$ac_ext
 
6725
cat >>conftest.$ac_ext <<_ACEOF
 
6726
/* end confdefs.h.  */
 
6727
#include <stdlib.h>
 
6728
#include <stdarg.h>
 
6729
#include <string.h>
 
6730
#include <float.h>
 
6731
 
 
6732
int
 
6733
main ()
 
6734
{
 
6735
 
 
6736
  ;
 
6737
  return 0;
 
6738
}
 
6739
_ACEOF
 
6740
rm -f conftest.$ac_objext
 
6741
if { (ac_try="$ac_compile"
 
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_compile") 2>conftest.er1
 
6749
  ac_status=$?
 
6750
  grep -v '^ *+' conftest.er1 >conftest.err
 
6751
  rm -f conftest.er1
 
6752
  cat conftest.err >&5
 
6753
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6754
  (exit $ac_status); } && {
 
6755
         test -z "$ac_c_werror_flag" ||
 
6756
         test ! -s conftest.err
 
6757
       } && test -s conftest.$ac_objext; then
 
6758
  ac_cv_header_stdc=yes
 
6759
else
 
6760
  $as_echo "$as_me: failed program was:" >&5
 
6761
sed 's/^/| /' conftest.$ac_ext >&5
 
6762
 
 
6763
        ac_cv_header_stdc=no
 
6764
fi
 
6765
 
 
6766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6767
 
 
6768
if test $ac_cv_header_stdc = yes; then
 
6769
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6770
  cat >conftest.$ac_ext <<_ACEOF
 
6771
/* confdefs.h.  */
 
6772
_ACEOF
 
6773
cat confdefs.h >>conftest.$ac_ext
 
6774
cat >>conftest.$ac_ext <<_ACEOF
 
6775
/* end confdefs.h.  */
 
6776
#include <string.h>
 
6777
 
 
6778
_ACEOF
 
6779
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6780
  $EGREP "memchr" >/dev/null 2>&1; then
 
6781
  :
 
6782
else
 
6783
  ac_cv_header_stdc=no
 
6784
fi
 
6785
rm -f conftest*
 
6786
 
 
6787
fi
 
6788
 
 
6789
if test $ac_cv_header_stdc = yes; then
 
6790
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6791
  cat >conftest.$ac_ext <<_ACEOF
 
6792
/* confdefs.h.  */
 
6793
_ACEOF
 
6794
cat confdefs.h >>conftest.$ac_ext
 
6795
cat >>conftest.$ac_ext <<_ACEOF
 
6796
/* end confdefs.h.  */
 
6797
#include <stdlib.h>
 
6798
 
 
6799
_ACEOF
 
6800
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6801
  $EGREP "free" >/dev/null 2>&1; then
 
6802
  :
 
6803
else
 
6804
  ac_cv_header_stdc=no
 
6805
fi
 
6806
rm -f conftest*
 
6807
 
 
6808
fi
 
6809
 
 
6810
if test $ac_cv_header_stdc = yes; then
 
6811
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6812
  if test "$cross_compiling" = yes; then
 
6813
  :
 
6814
else
 
6815
  cat >conftest.$ac_ext <<_ACEOF
 
6816
/* confdefs.h.  */
 
6817
_ACEOF
 
6818
cat confdefs.h >>conftest.$ac_ext
 
6819
cat >>conftest.$ac_ext <<_ACEOF
 
6820
/* end confdefs.h.  */
 
6821
#include <ctype.h>
 
6822
#include <stdlib.h>
 
6823
#if ((' ' & 0x0FF) == 0x020)
 
6824
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6825
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6826
#else
 
6827
# define ISLOWER(c) \
 
6828
                   (('a' <= (c) && (c) <= 'i') \
 
6829
                     || ('j' <= (c) && (c) <= 'r') \
 
6830
                     || ('s' <= (c) && (c) <= 'z'))
 
6831
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6832
#endif
 
6833
 
 
6834
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6835
int
 
6836
main ()
 
6837
{
 
6838
  int i;
 
6839
  for (i = 0; i < 256; i++)
 
6840
    if (XOR (islower (i), ISLOWER (i))
 
6841
        || toupper (i) != TOUPPER (i))
 
6842
      return 2;
 
6843
  return 0;
 
6844
}
 
6845
_ACEOF
 
6846
rm -f conftest$ac_exeext
 
6847
if { (ac_try="$ac_link"
 
6848
case "(($ac_try" in
 
6849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6850
  *) ac_try_echo=$ac_try;;
 
6851
esac
 
6852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6853
$as_echo "$ac_try_echo") >&5
 
6854
  (eval "$ac_link") 2>&5
 
6855
  ac_status=$?
 
6856
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6857
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6858
  { (case "(($ac_try" in
 
6859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6860
  *) ac_try_echo=$ac_try;;
 
6861
esac
 
6862
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6863
$as_echo "$ac_try_echo") >&5
 
6864
  (eval "$ac_try") 2>&5
 
6865
  ac_status=$?
 
6866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6867
  (exit $ac_status); }; }; then
 
6868
  :
 
6869
else
 
6870
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6871
$as_echo "$as_me: failed program was:" >&5
 
6872
sed 's/^/| /' conftest.$ac_ext >&5
 
6873
 
 
6874
( exit $ac_status )
 
6875
ac_cv_header_stdc=no
 
6876
fi
 
6877
rm -rf conftest.dSYM
 
6878
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6879
fi
 
6880
 
 
6881
 
 
6882
fi
 
6883
fi
 
6884
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6885
$as_echo "$ac_cv_header_stdc" >&6; }
 
6886
if test $ac_cv_header_stdc = yes; then
 
6887
 
 
6888
cat >>confdefs.h <<\_ACEOF
 
6889
#define STDC_HEADERS 1
 
6890
_ACEOF
 
6891
 
 
6892
fi
 
6893
 
 
6894
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6895
 
 
6896
 
 
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
 
 
6904
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6905
                  inttypes.h stdint.h unistd.h
 
6906
do
 
6907
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6908
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6909
$as_echo_n "checking for $ac_header... " >&6; }
 
6910
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6911
  $as_echo_n "(cached) " >&6
 
6912
else
 
6913
  cat >conftest.$ac_ext <<_ACEOF
 
6914
/* confdefs.h.  */
 
6915
_ACEOF
 
6916
cat confdefs.h >>conftest.$ac_ext
 
6917
cat >>conftest.$ac_ext <<_ACEOF
 
6918
/* end confdefs.h.  */
 
6919
$ac_includes_default
 
6920
 
 
6921
#include <$ac_header>
 
6922
_ACEOF
 
6923
rm -f conftest.$ac_objext
 
6924
if { (ac_try="$ac_compile"
 
6925
case "(($ac_try" in
 
6926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6927
  *) ac_try_echo=$ac_try;;
 
6928
esac
 
6929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6930
$as_echo "$ac_try_echo") >&5
 
6931
  (eval "$ac_compile") 2>conftest.er1
 
6932
  ac_status=$?
 
6933
  grep -v '^ *+' conftest.er1 >conftest.err
 
6934
  rm -f conftest.er1
 
6935
  cat conftest.err >&5
 
6936
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6937
  (exit $ac_status); } && {
 
6938
         test -z "$ac_c_werror_flag" ||
 
6939
         test ! -s conftest.err
 
6940
       } && test -s conftest.$ac_objext; then
 
6941
  eval "$as_ac_Header=yes"
 
6942
else
 
6943
  $as_echo "$as_me: failed program was:" >&5
 
6944
sed 's/^/| /' conftest.$ac_ext >&5
 
6945
 
 
6946
        eval "$as_ac_Header=no"
 
6947
fi
 
6948
 
 
6949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6950
fi
 
6951
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6952
                 $as_echo "$as_val"'`
 
6953
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6954
$as_echo "$ac_res" >&6; }
 
6955
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6956
                 $as_echo "$as_val"'`
 
6957
   if test "x$as_val" = x""yes; then
 
6958
  cat >>confdefs.h <<_ACEOF
 
6959
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6960
_ACEOF
 
6961
 
 
6962
fi
 
6963
 
 
6964
done
 
6965
 
 
6966
 
 
6967
 
 
6968
for ac_header in dlfcn.h
 
6969
do
 
6970
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6971
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6972
$as_echo_n "checking for $ac_header... " >&6; }
 
6973
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6974
  $as_echo_n "(cached) " >&6
 
6975
else
 
6976
  cat >conftest.$ac_ext <<_ACEOF
 
6977
/* confdefs.h.  */
 
6978
_ACEOF
 
6979
cat confdefs.h >>conftest.$ac_ext
 
6980
cat >>conftest.$ac_ext <<_ACEOF
 
6981
/* end confdefs.h.  */
 
6982
$ac_includes_default
 
6983
 
 
6984
#include <$ac_header>
 
6985
_ACEOF
 
6986
rm -f conftest.$ac_objext
 
6987
if { (ac_try="$ac_compile"
 
6988
case "(($ac_try" in
 
6989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6990
  *) ac_try_echo=$ac_try;;
 
6991
esac
 
6992
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6993
$as_echo "$ac_try_echo") >&5
 
6994
  (eval "$ac_compile") 2>conftest.er1
 
6995
  ac_status=$?
 
6996
  grep -v '^ *+' conftest.er1 >conftest.err
 
6997
  rm -f conftest.er1
 
6998
  cat conftest.err >&5
 
6999
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7000
  (exit $ac_status); } && {
 
7001
         test -z "$ac_c_werror_flag" ||
 
7002
         test ! -s conftest.err
 
7003
       } && test -s conftest.$ac_objext; then
 
7004
  eval "$as_ac_Header=yes"
 
7005
else
 
7006
  $as_echo "$as_me: failed program was:" >&5
 
7007
sed 's/^/| /' conftest.$ac_ext >&5
 
7008
 
 
7009
        eval "$as_ac_Header=no"
 
7010
fi
 
7011
 
 
7012
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7013
fi
 
7014
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7015
                 $as_echo "$as_val"'`
 
7016
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7017
$as_echo "$ac_res" >&6; }
 
7018
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7019
                 $as_echo "$as_val"'`
 
7020
   if test "x$as_val" = x""yes; then
 
7021
  cat >>confdefs.h <<_ACEOF
 
7022
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7023
_ACEOF
 
7024
 
 
7025
fi
 
7026
 
 
7027
done
 
7028
 
 
7029
 
 
7030
 
 
7031
# Set options
 
7032
 
 
7033
 
 
7034
 
 
7035
        enable_dlopen=no
 
7036
 
 
7037
 
 
7038
  enable_win32_dll=no
 
7039
 
 
7040
 
 
7041
            # Check whether --enable-shared was given.
 
7042
if test "${enable_shared+set}" = set; then
 
7043
  enableval=$enable_shared; p=${PACKAGE-default}
 
7044
    case $enableval in
 
7045
    yes) enable_shared=yes ;;
 
7046
    no) enable_shared=no ;;
 
7047
    *)
 
7048
      enable_shared=no
 
7049
      # Look at the argument we got.  We use all the common list separators.
 
7050
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7051
      for pkg in $enableval; do
 
7052
        IFS="$lt_save_ifs"
 
7053
        if test "X$pkg" = "X$p"; then
 
7054
          enable_shared=yes
 
7055
        fi
 
7056
      done
 
7057
      IFS="$lt_save_ifs"
 
7058
      ;;
 
7059
    esac
 
7060
else
 
7061
  enable_shared=yes
 
7062
fi
 
7063
 
 
7064
 
 
7065
 
 
7066
 
 
7067
 
 
7068
 
 
7069
 
 
7070
 
 
7071
 
 
7072
  # Check whether --enable-static was given.
 
7073
if test "${enable_static+set}" = set; then
 
7074
  enableval=$enable_static; p=${PACKAGE-default}
 
7075
    case $enableval in
 
7076
    yes) enable_static=yes ;;
 
7077
    no) enable_static=no ;;
 
7078
    *)
 
7079
     enable_static=no
 
7080
      # Look at the argument we got.  We use all the common list separators.
 
7081
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7082
      for pkg in $enableval; do
 
7083
        IFS="$lt_save_ifs"
 
7084
        if test "X$pkg" = "X$p"; then
 
7085
          enable_static=yes
 
7086
        fi
 
7087
      done
 
7088
      IFS="$lt_save_ifs"
 
7089
      ;;
 
7090
    esac
 
7091
else
 
7092
  enable_static=yes
 
7093
fi
 
7094
 
 
7095
 
 
7096
 
 
7097
 
 
7098
 
 
7099
 
 
7100
 
 
7101
 
7490
7102
 
7491
7103
 
7492
7104
# Check whether --with-pic was given.
7496
7108
  pic_mode=default
7497
7109
fi
7498
7110
 
 
7111
 
7499
7112
test -z "$pic_mode" && pic_mode=default
7500
7113
 
 
7114
 
 
7115
 
 
7116
 
 
7117
 
 
7118
 
 
7119
 
 
7120
  # Check whether --enable-fast-install was given.
 
7121
if test "${enable_fast_install+set}" = set; then
 
7122
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7123
    case $enableval in
 
7124
    yes) enable_fast_install=yes ;;
 
7125
    no) enable_fast_install=no ;;
 
7126
    *)
 
7127
      enable_fast_install=no
 
7128
      # Look at the argument we got.  We use all the common list separators.
 
7129
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7130
      for pkg in $enableval; do
 
7131
        IFS="$lt_save_ifs"
 
7132
        if test "X$pkg" = "X$p"; then
 
7133
          enable_fast_install=yes
 
7134
        fi
 
7135
      done
 
7136
      IFS="$lt_save_ifs"
 
7137
      ;;
 
7138
    esac
 
7139
else
 
7140
  enable_fast_install=yes
 
7141
fi
 
7142
 
 
7143
 
 
7144
 
 
7145
 
 
7146
 
 
7147
 
 
7148
 
 
7149
 
 
7150
 
 
7151
 
 
7152
 
 
7153
# This can be used to rebuild libtool when needed
 
7154
LIBTOOL_DEPS="$ltmain"
 
7155
 
 
7156
# Always use our own libtool.
 
7157
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7158
 
 
7159
 
 
7160
 
 
7161
 
 
7162
 
 
7163
 
 
7164
 
 
7165
 
 
7166
 
 
7167
 
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
test -z "$LN_S" && LN_S="ln -s"
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
 
 
7197
 
 
7198
if test -n "${ZSH_VERSION+set}" ; then
 
7199
   setopt NO_GLOB_SUBST
 
7200
fi
 
7201
 
 
7202
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7203
$as_echo_n "checking for objdir... " >&6; }
 
7204
if test "${lt_cv_objdir+set}" = set; then
 
7205
  $as_echo_n "(cached) " >&6
 
7206
else
 
7207
  rm -f .libs 2>/dev/null
 
7208
mkdir .libs 2>/dev/null
 
7209
if test -d .libs; then
 
7210
  lt_cv_objdir=.libs
 
7211
else
 
7212
  # MS-DOS does not allow filenames that begin with a dot.
 
7213
  lt_cv_objdir=_libs
 
7214
fi
 
7215
rmdir .libs 2>/dev/null
 
7216
fi
 
7217
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7218
$as_echo "$lt_cv_objdir" >&6; }
 
7219
objdir=$lt_cv_objdir
 
7220
 
 
7221
 
 
7222
 
 
7223
 
 
7224
 
 
7225
cat >>confdefs.h <<_ACEOF
 
7226
#define LT_OBJDIR "$lt_cv_objdir/"
 
7227
_ACEOF
 
7228
 
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
 
 
7240
 
 
7241
 
 
7242
 
 
7243
 
 
7244
 
 
7245
case $host_os in
 
7246
aix3*)
 
7247
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7248
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7249
  # vanish in a puff of smoke.
 
7250
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7251
    COLLECT_NAMES=
 
7252
    export COLLECT_NAMES
 
7253
  fi
 
7254
  ;;
 
7255
esac
 
7256
 
 
7257
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7258
# metacharacters that are still active within double-quoted strings.
 
7259
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7260
 
 
7261
# Same as above, but do not quote variable references.
 
7262
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7263
 
 
7264
# Sed substitution to delay expansion of an escaped shell variable in a
 
7265
# double_quote_subst'ed string.
 
7266
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7267
 
 
7268
# Sed substitution to delay expansion of an escaped single quote.
 
7269
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7270
 
 
7271
# Sed substitution to avoid accidental globbing in evaled expressions
 
7272
no_glob_subst='s/\*/\\\*/g'
 
7273
 
 
7274
# Global variables:
 
7275
ofile=libtool
 
7276
can_build_shared=yes
 
7277
 
 
7278
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7279
# which needs '.lib').
 
7280
libext=a
 
7281
 
 
7282
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7283
 
 
7284
old_CC="$CC"
 
7285
old_CFLAGS="$CFLAGS"
 
7286
 
 
7287
# Set sane defaults for various variables
 
7288
test -z "$CC" && CC=cc
 
7289
test -z "$LTCC" && LTCC=$CC
 
7290
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7291
test -z "$LD" && LD=ld
 
7292
test -z "$ac_objext" && ac_objext=o
 
7293
 
 
7294
for cc_temp in $compiler""; do
 
7295
  case $cc_temp in
 
7296
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7297
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7298
    \-*) ;;
 
7299
    *) break;;
 
7300
  esac
 
7301
done
 
7302
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7303
 
 
7304
 
 
7305
# Only perform the check for file, if the check method requires it
 
7306
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7307
case $deplibs_check_method in
 
7308
file_magic*)
 
7309
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7310
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7311
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7312
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7313
  $as_echo_n "(cached) " >&6
 
7314
else
 
7315
  case $MAGIC_CMD in
 
7316
[\\/*] |  ?:[\\/]*)
 
7317
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7318
  ;;
 
7319
*)
 
7320
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7321
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7322
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7323
  for ac_dir in $ac_dummy; do
 
7324
    IFS="$lt_save_ifs"
 
7325
    test -z "$ac_dir" && ac_dir=.
 
7326
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7327
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7328
      if test -n "$file_magic_test_file"; then
 
7329
        case $deplibs_check_method in
 
7330
        "file_magic "*)
 
7331
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7332
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7333
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7334
            $EGREP "$file_magic_regex" > /dev/null; then
 
7335
            :
 
7336
          else
 
7337
            cat <<_LT_EOF 1>&2
 
7338
 
 
7339
*** Warning: the command libtool uses to detect shared libraries,
 
7340
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7341
*** The result is that libtool may fail to recognize shared libraries
 
7342
*** as such.  This will affect the creation of libtool libraries that
 
7343
*** depend on shared libraries, but programs linked with such libtool
 
7344
*** libraries will work regardless of this problem.  Nevertheless, you
 
7345
*** may want to report the problem to your system manager and/or to
 
7346
*** bug-libtool@gnu.org
 
7347
 
 
7348
_LT_EOF
 
7349
          fi ;;
 
7350
        esac
 
7351
      fi
 
7352
      break
 
7353
    fi
 
7354
  done
 
7355
  IFS="$lt_save_ifs"
 
7356
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7357
  ;;
 
7358
esac
 
7359
fi
 
7360
 
 
7361
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7362
if test -n "$MAGIC_CMD"; then
 
7363
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7364
$as_echo "$MAGIC_CMD" >&6; }
 
7365
else
 
7366
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7367
$as_echo "no" >&6; }
 
7368
fi
 
7369
 
 
7370
 
 
7371
 
 
7372
 
 
7373
 
 
7374
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7375
  if test -n "$ac_tool_prefix"; then
 
7376
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7377
$as_echo_n "checking for file... " >&6; }
 
7378
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7379
  $as_echo_n "(cached) " >&6
 
7380
else
 
7381
  case $MAGIC_CMD in
 
7382
[\\/*] |  ?:[\\/]*)
 
7383
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7384
  ;;
 
7385
*)
 
7386
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7387
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7388
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7389
  for ac_dir in $ac_dummy; do
 
7390
    IFS="$lt_save_ifs"
 
7391
    test -z "$ac_dir" && ac_dir=.
 
7392
    if test -f $ac_dir/file; then
 
7393
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7394
      if test -n "$file_magic_test_file"; then
 
7395
        case $deplibs_check_method in
 
7396
        "file_magic "*)
 
7397
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7398
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7399
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7400
            $EGREP "$file_magic_regex" > /dev/null; then
 
7401
            :
 
7402
          else
 
7403
            cat <<_LT_EOF 1>&2
 
7404
 
 
7405
*** Warning: the command libtool uses to detect shared libraries,
 
7406
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7407
*** The result is that libtool may fail to recognize shared libraries
 
7408
*** as such.  This will affect the creation of libtool libraries that
 
7409
*** depend on shared libraries, but programs linked with such libtool
 
7410
*** libraries will work regardless of this problem.  Nevertheless, you
 
7411
*** may want to report the problem to your system manager and/or to
 
7412
*** bug-libtool@gnu.org
 
7413
 
 
7414
_LT_EOF
 
7415
          fi ;;
 
7416
        esac
 
7417
      fi
 
7418
      break
 
7419
    fi
 
7420
  done
 
7421
  IFS="$lt_save_ifs"
 
7422
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7423
  ;;
 
7424
esac
 
7425
fi
 
7426
 
 
7427
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7428
if test -n "$MAGIC_CMD"; then
 
7429
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7430
$as_echo "$MAGIC_CMD" >&6; }
 
7431
else
 
7432
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7433
$as_echo "no" >&6; }
 
7434
fi
 
7435
 
 
7436
 
 
7437
  else
 
7438
    MAGIC_CMD=:
 
7439
  fi
 
7440
fi
 
7441
 
 
7442
  fi
 
7443
  ;;
 
7444
esac
 
7445
 
7501
7446
# Use C for the default configuration in the libtool script
7502
 
tagname=
 
7447
 
7503
7448
lt_save_CC="$CC"
7504
7449
ac_ext=c
7505
7450
ac_cpp='$CPP $CPPFLAGS'
7522
7467
lt_simple_link_test_code='int main(){return(0);}'
7523
7468
 
7524
7469
 
 
7470
 
 
7471
 
 
7472
 
 
7473
 
 
7474
 
7525
7475
# If no C compiler was specified, use CC.
7526
7476
LTCC=${LTCC-"$CC"}
7527
7477
 
7531
7481
# Allow CC to be a program name with arguments.
7532
7482
compiler=$CC
7533
7483
 
 
7484
# Save the default compiler, since it gets overwritten when the other
 
7485
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7486
compiler_DEFAULT=$CC
7534
7487
 
7535
7488
# save warnings/boilerplate of simple test code
7536
7489
ac_outfile=conftest.$ac_objext
7537
7490
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7538
7491
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7539
7492
_lt_compiler_boilerplate=`cat conftest.err`
7540
 
$rm conftest*
 
7493
$RM conftest*
7541
7494
 
7542
7495
ac_outfile=conftest.$ac_objext
7543
7496
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7544
7497
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7545
7498
_lt_linker_boilerplate=`cat conftest.err`
7546
 
$rm -r conftest*
7547
 
 
7548
 
 
 
7499
$RM -r conftest*
 
7500
 
 
7501
 
 
7502
if test -n "$compiler"; then
7549
7503
 
7550
7504
lt_prog_compiler_no_builtin_flag=
7551
7505
 
7552
7506
if test "$GCC" = yes; then
7553
7507
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7554
7508
 
7555
 
 
7556
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7509
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7557
7510
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7558
7511
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7559
7512
  $as_echo_n "(cached) " >&6
7560
7513
else
7561
7514
  lt_cv_prog_compiler_rtti_exceptions=no
7562
 
  ac_outfile=conftest.$ac_objext
 
7515
   ac_outfile=conftest.$ac_objext
7563
7516
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7564
7517
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7565
7518
   # Insert the option either (1) after the last *FLAGS variable, or
7571
7524
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7572
7525
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7573
7526
   -e 's:$: $lt_compiler_flag:'`
7574
 
   (eval echo "\"\$as_me:7574: $lt_compile\"" >&5)
 
7527
   (eval echo "\"\$as_me:7527: $lt_compile\"" >&5)
7575
7528
   (eval "$lt_compile" 2>conftest.err)
7576
7529
   ac_status=$?
7577
7530
   cat conftest.err >&5
7578
 
   echo "$as_me:7578: \$? = $ac_status" >&5
 
7531
   echo "$as_me:7531: \$? = $ac_status" >&5
7579
7532
   if (exit $ac_status) && test -s "$ac_outfile"; then
7580
7533
     # The compiler can only warn and ignore the option if not recognized
7581
7534
     # So say no if there are warnings other than the usual output.
7582
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7535
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7583
7536
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7584
7537
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7585
7538
       lt_cv_prog_compiler_rtti_exceptions=yes
7586
7539
     fi
7587
7540
   fi
7588
 
   $rm conftest*
 
7541
   $RM conftest*
7589
7542
 
7590
7543
fi
7591
7544
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7599
7552
 
7600
7553
fi
7601
7554
 
7602
 
lt_prog_compiler_wl=
 
7555
 
 
7556
 
 
7557
 
 
7558
 
 
7559
 
 
7560
  lt_prog_compiler_wl=
7603
7561
lt_prog_compiler_pic=
7604
7562
lt_prog_compiler_static=
7605
7563
 
7620
7578
      ;;
7621
7579
 
7622
7580
    amigaos*)
7623
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7624
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7625
 
      # like `-m68040'.
7626
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7581
      case $host_cpu in
 
7582
      powerpc)
 
7583
            # see comment about AmigaOS4 .so support
 
7584
            lt_prog_compiler_pic='-fPIC'
 
7585
        ;;
 
7586
      m68k)
 
7587
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7588
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7589
            # like `-m68040'.
 
7590
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7591
        ;;
 
7592
      esac
7627
7593
      ;;
7628
7594
 
7629
7595
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7630
7596
      # PIC is the default for these OSes.
7631
7597
      ;;
7632
7598
 
7633
 
    mingw* | cygwin* | pw32* | os2*)
 
7599
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7634
7600
      # This hack is so that the source file can tell whether it is being
7635
7601
      # built for inclusion in a dll (and should export symbols for example).
7636
7602
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7644
7610
      lt_prog_compiler_pic='-fno-common'
7645
7611
      ;;
7646
7612
 
 
7613
    hpux*)
 
7614
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7615
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7616
      # sets the default TLS model and affects inlining.
 
7617
      case $host_cpu in
 
7618
      hppa*64*)
 
7619
        # +Z the default
 
7620
        ;;
 
7621
      *)
 
7622
        lt_prog_compiler_pic='-fPIC'
 
7623
        ;;
 
7624
      esac
 
7625
      ;;
 
7626
 
7647
7627
    interix[3-9]*)
7648
7628
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7649
7629
      # Instead, we relocate shared libraries at runtime.
7656
7636
      enable_shared=no
7657
7637
      ;;
7658
7638
 
 
7639
    *nto* | *qnx*)
 
7640
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7641
      # it will coredump.
 
7642
      lt_prog_compiler_pic='-fPIC -shared'
 
7643
      ;;
 
7644
 
7659
7645
    sysv4*MP*)
7660
7646
      if test -d /usr/nec; then
7661
7647
        lt_prog_compiler_pic=-Kconform_pic
7662
7648
      fi
7663
7649
      ;;
7664
7650
 
7665
 
    hpux*)
7666
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7667
 
      # not for PA HP-UX.
7668
 
      case $host_cpu in
7669
 
      hppa*64*|ia64*)
7670
 
        # +Z the default
7671
 
        ;;
7672
 
      *)
7673
 
        lt_prog_compiler_pic='-fPIC'
7674
 
        ;;
7675
 
      esac
7676
 
      ;;
7677
 
 
7678
7651
    *)
7679
7652
      lt_prog_compiler_pic='-fPIC'
7680
7653
      ;;
7691
7664
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7692
7665
      fi
7693
7666
      ;;
7694
 
      darwin*)
7695
 
        # PIC is the default on this platform
7696
 
        # Common symbols not allowed in MH_DYLIB files
7697
 
       case $cc_basename in
7698
 
         xlc*)
7699
 
         lt_prog_compiler_pic='-qnocommon'
7700
 
         lt_prog_compiler_wl='-Wl,'
7701
 
         ;;
7702
 
       esac
7703
 
       ;;
7704
7667
 
7705
 
    mingw* | cygwin* | pw32* | os2*)
 
7668
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7706
7669
      # This hack is so that the source file can tell whether it is being
7707
7670
      # built for inclusion in a dll (and should export symbols for example).
7708
7671
      lt_prog_compiler_pic='-DDLL_EXPORT'
7730
7693
      lt_prog_compiler_static='-non_shared'
7731
7694
      ;;
7732
7695
 
7733
 
    newsos6)
7734
 
      lt_prog_compiler_pic='-KPIC'
7735
 
      lt_prog_compiler_static='-Bstatic'
7736
 
      ;;
7737
 
 
7738
7696
    linux* | k*bsd*-gnu)
7739
7697
      case $cc_basename in
7740
 
      icc* | ecc*)
 
7698
      # old Intel for x86_64 which still supported -KPIC.
 
7699
      ecc*)
7741
7700
        lt_prog_compiler_wl='-Wl,'
7742
7701
        lt_prog_compiler_pic='-KPIC'
7743
7702
        lt_prog_compiler_static='-static'
7744
7703
        ;;
 
7704
      # icc used to be incompatible with GCC.
 
7705
      # ICC 10 doesn't accept -KPIC any more.
 
7706
      icc* | ifort*)
 
7707
        lt_prog_compiler_wl='-Wl,'
 
7708
        lt_prog_compiler_pic='-fPIC'
 
7709
        lt_prog_compiler_static='-static'
 
7710
        ;;
 
7711
      # Lahey Fortran 8.1.
 
7712
      lf95*)
 
7713
        lt_prog_compiler_wl='-Wl,'
 
7714
        lt_prog_compiler_pic='--shared'
 
7715
        lt_prog_compiler_static='--static'
 
7716
        ;;
7745
7717
      pgcc* | pgf77* | pgf90* | pgf95*)
7746
7718
        # Portland Group compilers (*not* the Pentium gcc compiler,
7747
7719
        # which looks to be a dead project)
7754
7726
        # All Alpha code is PIC.
7755
7727
        lt_prog_compiler_static='-non_shared'
7756
7728
        ;;
 
7729
      xl*)
 
7730
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7731
        lt_prog_compiler_wl='-Wl,'
 
7732
        lt_prog_compiler_pic='-qpic'
 
7733
        lt_prog_compiler_static='-qstaticlink'
 
7734
        ;;
7757
7735
      *)
7758
 
        case `$CC -V 2>&1 | sed 5q` in
 
7736
        case `$CC -V 2>&1 | sed 5q` in
7759
7737
        *Sun\ C*)
7760
7738
          # Sun C 5.9
7761
7739
          lt_prog_compiler_pic='-KPIC'
7773
7751
      esac
7774
7752
      ;;
7775
7753
 
 
7754
    newsos6)
 
7755
      lt_prog_compiler_pic='-KPIC'
 
7756
      lt_prog_compiler_static='-Bstatic'
 
7757
      ;;
 
7758
 
 
7759
    *nto* | *qnx*)
 
7760
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7761
      # it will coredump.
 
7762
      lt_prog_compiler_pic='-fPIC -shared'
 
7763
      ;;
 
7764
 
7776
7765
    osf3* | osf4* | osf5*)
7777
7766
      lt_prog_compiler_wl='-Wl,'
7778
7767
      # All OSF/1 code is PIC.
7835
7824
    esac
7836
7825
  fi
7837
7826
 
 
7827
case $host_os in
 
7828
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7829
  *djgpp*)
 
7830
    lt_prog_compiler_pic=
 
7831
    ;;
 
7832
  *)
 
7833
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7834
    ;;
 
7835
esac
7838
7836
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7839
7837
$as_echo "$lt_prog_compiler_pic" >&6; }
7840
7838
 
 
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
7841
7844
#
7842
7845
# Check to make sure the PIC flag actually works.
7843
7846
#
7844
7847
if test -n "$lt_prog_compiler_pic"; then
7845
 
 
7846
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7848
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7847
7849
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7848
7850
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7849
7851
  $as_echo_n "(cached) " >&6
7850
7852
else
7851
7853
  lt_cv_prog_compiler_pic_works=no
7852
 
  ac_outfile=conftest.$ac_objext
 
7854
   ac_outfile=conftest.$ac_objext
7853
7855
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7854
7856
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7855
7857
   # Insert the option either (1) after the last *FLAGS variable, or
7861
7863
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7862
7864
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7863
7865
   -e 's:$: $lt_compiler_flag:'`
7864
 
   (eval echo "\"\$as_me:7864: $lt_compile\"" >&5)
 
7866
   (eval echo "\"\$as_me:7866: $lt_compile\"" >&5)
7865
7867
   (eval "$lt_compile" 2>conftest.err)
7866
7868
   ac_status=$?
7867
7869
   cat conftest.err >&5
7868
 
   echo "$as_me:7868: \$? = $ac_status" >&5
 
7870
   echo "$as_me:7870: \$? = $ac_status" >&5
7869
7871
   if (exit $ac_status) && test -s "$ac_outfile"; then
7870
7872
     # The compiler can only warn and ignore the option if not recognized
7871
7873
     # So say no if there are warnings other than the usual output.
7872
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7874
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7873
7875
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874
7876
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7875
7877
       lt_cv_prog_compiler_pic_works=yes
7876
7878
     fi
7877
7879
   fi
7878
 
   $rm conftest*
 
7880
   $RM conftest*
7879
7881
 
7880
7882
fi
7881
7883
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7892
7894
fi
7893
7895
 
7894
7896
fi
7895
 
case $host_os in
7896
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7897
 
  *djgpp*)
7898
 
    lt_prog_compiler_pic=
7899
 
    ;;
7900
 
  *)
7901
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7902
 
    ;;
7903
 
esac
 
7897
 
 
7898
 
 
7899
 
 
7900
 
 
7901
 
7904
7902
 
7905
7903
#
7906
7904
# Check to make sure the static flag actually works.
7921
7919
     if test -s conftest.err; then
7922
7920
       # Append any errors to the config.log.
7923
7921
       cat conftest.err 1>&5
7924
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7922
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7925
7923
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7926
7924
       if diff conftest.exp conftest.er2 >/dev/null; then
7927
7925
         lt_cv_prog_compiler_static_works=yes
7930
7928
       lt_cv_prog_compiler_static_works=yes
7931
7929
     fi
7932
7930
   fi
7933
 
   $rm -r conftest*
 
7931
   $RM -r conftest*
7934
7932
   LDFLAGS="$save_LDFLAGS"
7935
7933
 
7936
7934
fi
7944
7942
fi
7945
7943
 
7946
7944
 
7947
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7948
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7949
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7950
 
  $as_echo_n "(cached) " >&6
7951
 
else
7952
 
  lt_cv_prog_compiler_c_o=no
7953
 
   $rm -r conftest 2>/dev/null
7954
 
   mkdir conftest
7955
 
   cd conftest
7956
 
   mkdir out
7957
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7958
 
 
7959
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7960
 
   # Insert the option either (1) after the last *FLAGS variable, or
7961
 
   # (2) before a word containing "conftest.", or (3) at the end.
7962
 
   # Note that $ac_compile itself does not contain backslashes and begins
7963
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7964
 
   lt_compile=`echo "$ac_compile" | $SED \
7965
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7966
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7967
 
   -e 's:$: $lt_compiler_flag:'`
7968
 
   (eval echo "\"\$as_me:7968: $lt_compile\"" >&5)
7969
 
   (eval "$lt_compile" 2>out/conftest.err)
7970
 
   ac_status=$?
7971
 
   cat out/conftest.err >&5
7972
 
   echo "$as_me:7972: \$? = $ac_status" >&5
7973
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7974
 
   then
7975
 
     # The compiler can only warn and ignore the option if not recognized
7976
 
     # So say no if there are warnings
7977
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7978
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7979
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7980
 
       lt_cv_prog_compiler_c_o=yes
7981
 
     fi
7982
 
   fi
7983
 
   chmod u+w . 2>&5
7984
 
   $rm conftest*
7985
 
   # SGI C++ compiler will create directory out/ii_files/ for
7986
 
   # template instantiation
7987
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7988
 
   $rm out/* && rmdir out
7989
 
   cd ..
7990
 
   rmdir conftest
7991
 
   $rm conftest*
7992
 
 
7993
 
fi
7994
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7995
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7945
 
 
7946
 
 
7947
 
 
7948
 
 
7949
 
 
7950
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7951
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7952
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7953
  $as_echo_n "(cached) " >&6
 
7954
else
 
7955
  lt_cv_prog_compiler_c_o=no
 
7956
   $RM -r conftest 2>/dev/null
 
7957
   mkdir conftest
 
7958
   cd conftest
 
7959
   mkdir out
 
7960
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7961
 
 
7962
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7963
   # Insert the option either (1) after the last *FLAGS variable, or
 
7964
   # (2) before a word containing "conftest.", or (3) at the end.
 
7965
   # Note that $ac_compile itself does not contain backslashes and begins
 
7966
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7967
   lt_compile=`echo "$ac_compile" | $SED \
 
7968
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7969
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7970
   -e 's:$: $lt_compiler_flag:'`
 
7971
   (eval echo "\"\$as_me:7971: $lt_compile\"" >&5)
 
7972
   (eval "$lt_compile" 2>out/conftest.err)
 
7973
   ac_status=$?
 
7974
   cat out/conftest.err >&5
 
7975
   echo "$as_me:7975: \$? = $ac_status" >&5
 
7976
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7977
   then
 
7978
     # The compiler can only warn and ignore the option if not recognized
 
7979
     # So say no if there are warnings
 
7980
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7981
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7982
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7983
       lt_cv_prog_compiler_c_o=yes
 
7984
     fi
 
7985
   fi
 
7986
   chmod u+w . 2>&5
 
7987
   $RM conftest*
 
7988
   # SGI C++ compiler will create directory out/ii_files/ for
 
7989
   # template instantiation
 
7990
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
7991
   $RM out/* && rmdir out
 
7992
   cd ..
 
7993
   $RM -r conftest
 
7994
   $RM conftest*
 
7995
 
 
7996
fi
 
7997
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7998
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7999
 
 
8000
 
 
8001
 
 
8002
 
 
8003
 
 
8004
 
 
8005
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8006
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8007
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8008
  $as_echo_n "(cached) " >&6
 
8009
else
 
8010
  lt_cv_prog_compiler_c_o=no
 
8011
   $RM -r conftest 2>/dev/null
 
8012
   mkdir conftest
 
8013
   cd conftest
 
8014
   mkdir out
 
8015
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8016
 
 
8017
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8018
   # Insert the option either (1) after the last *FLAGS variable, or
 
8019
   # (2) before a word containing "conftest.", or (3) at the end.
 
8020
   # Note that $ac_compile itself does not contain backslashes and begins
 
8021
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8022
   lt_compile=`echo "$ac_compile" | $SED \
 
8023
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8024
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8025
   -e 's:$: $lt_compiler_flag:'`
 
8026
   (eval echo "\"\$as_me:8026: $lt_compile\"" >&5)
 
8027
   (eval "$lt_compile" 2>out/conftest.err)
 
8028
   ac_status=$?
 
8029
   cat out/conftest.err >&5
 
8030
   echo "$as_me:8030: \$? = $ac_status" >&5
 
8031
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8032
   then
 
8033
     # The compiler can only warn and ignore the option if not recognized
 
8034
     # So say no if there are warnings
 
8035
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8036
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8037
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8038
       lt_cv_prog_compiler_c_o=yes
 
8039
     fi
 
8040
   fi
 
8041
   chmod u+w . 2>&5
 
8042
   $RM conftest*
 
8043
   # SGI C++ compiler will create directory out/ii_files/ for
 
8044
   # template instantiation
 
8045
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8046
   $RM out/* && rmdir out
 
8047
   cd ..
 
8048
   $RM -r conftest
 
8049
   $RM conftest*
 
8050
 
 
8051
fi
 
8052
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8053
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8054
 
 
8055
 
7996
8056
 
7997
8057
 
7998
8058
hard_links="nottested"
8001
8061
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8002
8062
$as_echo_n "checking if we can lock with hard links... " >&6; }
8003
8063
  hard_links=yes
8004
 
  $rm conftest*
 
8064
  $RM conftest*
8005
8065
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8006
8066
  touch conftest.a
8007
8067
  ln conftest.a conftest.b 2>&5 || hard_links=no
8017
8077
  need_locks=no
8018
8078
fi
8019
8079
 
8020
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8080
 
 
8081
 
 
8082
 
 
8083
 
 
8084
 
 
8085
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8021
8086
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8022
8087
 
8023
8088
  runpath_var=
8024
8089
  allow_undefined_flag=
8025
 
  enable_shared_with_static_runtimes=no
 
8090
  always_export_symbols=no
8026
8091
  archive_cmds=
8027
8092
  archive_expsym_cmds=
8028
 
  old_archive_From_new_cmds=
8029
 
  old_archive_from_expsyms_cmds=
 
8093
  compiler_needs_object=no
 
8094
  enable_shared_with_static_runtimes=no
8030
8095
  export_dynamic_flag_spec=
8031
 
  whole_archive_flag_spec=
8032
 
  thread_safe_flag_spec=
 
8096
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8097
  hardcode_automatic=no
 
8098
  hardcode_direct=no
 
8099
  hardcode_direct_absolute=no
8033
8100
  hardcode_libdir_flag_spec=
8034
8101
  hardcode_libdir_flag_spec_ld=
8035
8102
  hardcode_libdir_separator=
8036
 
  hardcode_direct=no
8037
8103
  hardcode_minus_L=no
8038
8104
  hardcode_shlibpath_var=unsupported
 
8105
  inherit_rpath=no
8039
8106
  link_all_deplibs=unknown
8040
 
  hardcode_automatic=no
8041
8107
  module_cmds=
8042
8108
  module_expsym_cmds=
8043
 
  always_export_symbols=no
8044
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8109
  old_archive_from_new_cmds=
 
8110
  old_archive_from_expsyms_cmds=
 
8111
  thread_safe_flag_spec=
 
8112
  whole_archive_flag_spec=
8045
8113
  # include_expsyms should be a list of space-separated symbols to be *always*
8046
8114
  # included in the symbol list
8047
8115
  include_expsyms=
8057
8125
  # preloaded symbol tables.
8058
8126
  # Exclude shared library initialization/finalization symbols.
8059
8127
  extract_expsyms_cmds=
8060
 
  # Just being paranoid about ensuring that cc_basename is set.
8061
 
  for cc_temp in $compiler""; do
8062
 
  case $cc_temp in
8063
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8064
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8065
 
    \-*) ;;
8066
 
    *) break;;
8067
 
  esac
8068
 
done
8069
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8070
8128
 
8071
8129
  case $host_os in
8072
 
  cygwin* | mingw* | pw32*)
 
8130
  cygwin* | mingw* | pw32* | cegcc*)
8073
8131
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8074
8132
    # When not using gcc, we currently assume that we are using
8075
8133
    # Microsoft Visual C++.
8095
8153
    # are reset later if shared libraries are not supported. Putting them
8096
8154
    # here allows them to be overridden if necessary.
8097
8155
    runpath_var=LD_RUN_PATH
8098
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8156
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8099
8157
    export_dynamic_flag_spec='${wl}--export-dynamic'
8100
8158
    # ancient GNU ld didn't support --whole-archive et. al.
8101
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8102
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8103
 
      else
8104
 
        whole_archive_flag_spec=
 
8159
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8160
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8161
    else
 
8162
      whole_archive_flag_spec=
8105
8163
    fi
8106
8164
    supports_anon_versioning=no
8107
 
    case `$LD -v 2>/dev/null` in
 
8165
    case `$LD -v 2>&1` in
8108
8166
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8109
8167
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8110
8168
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8118
8176
      # On AIX/PPC, the GNU linker is very broken
8119
8177
      if test "$host_cpu" != ia64; then
8120
8178
        ld_shlibs=no
8121
 
        cat <<EOF 1>&2
 
8179
        cat <<_LT_EOF 1>&2
8122
8180
 
8123
8181
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8124
8182
*** to be unable to reliably create shared libraries on AIX.
8126
8184
*** really care for shared libraries, you may want to modify your PATH
8127
8185
*** so that a non-GNU linker is found, and then restart.
8128
8186
 
8129
 
EOF
 
8187
_LT_EOF
8130
8188
      fi
8131
8189
      ;;
8132
8190
 
8133
8191
    amigaos*)
8134
 
      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)'
8135
 
      hardcode_libdir_flag_spec='-L$libdir'
8136
 
      hardcode_minus_L=yes
8137
 
 
8138
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8139
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8140
 
      # to version 4, is to share data among multiple programs linked
8141
 
      # with the same dynamic library.  Since this doesn't match the
8142
 
      # behavior of shared libraries on other platforms, we can't use
8143
 
      # them.
8144
 
      ld_shlibs=no
 
8192
      case $host_cpu in
 
8193
      powerpc)
 
8194
            # see comment about AmigaOS4 .so support
 
8195
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8196
            archive_expsym_cmds=''
 
8197
        ;;
 
8198
      m68k)
 
8199
            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)'
 
8200
            hardcode_libdir_flag_spec='-L$libdir'
 
8201
            hardcode_minus_L=yes
 
8202
        ;;
 
8203
      esac
8145
8204
      ;;
8146
8205
 
8147
8206
    beos*)
8148
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8207
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8149
8208
        allow_undefined_flag=unsupported
8150
8209
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8151
8210
        # support --undefined.  This deserves some investigation.  FIXME
8155
8214
      fi
8156
8215
      ;;
8157
8216
 
8158
 
    cygwin* | mingw* | pw32*)
8159
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8217
    cygwin* | mingw* | pw32* | cegcc*)
 
8218
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8160
8219
      # as there is no search path for DLLs.
8161
8220
      hardcode_libdir_flag_spec='-L$libdir'
8162
8221
      allow_undefined_flag=unsupported
8163
8222
      always_export_symbols=no
8164
8223
      enable_shared_with_static_runtimes=yes
8165
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8224
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8166
8225
 
8167
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8226
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8168
8227
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8169
8228
        # If the export-symbols file already is a .def file (1st line
8170
8229
        # is EXPORTS), use it as is; otherwise, prepend...
8195
8254
      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'
8196
8255
      ;;
8197
8256
 
8198
 
    gnu* | linux* | k*bsd*-gnu)
8199
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8257
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8258
      tmp_diet=no
 
8259
      if test "$host_os" = linux-dietlibc; then
 
8260
        case $cc_basename in
 
8261
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8262
        esac
 
8263
      fi
 
8264
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8265
         && test "$tmp_diet" = no
 
8266
      then
8200
8267
        tmp_addflag=
 
8268
        tmp_sharedflag='-shared'
8201
8269
        case $cc_basename,$host_cpu in
8202
 
        pgcc*)                          # Portland Group C compiler
8203
 
          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'
 
8270
        pgcc*)                          # Portland Group C compiler
 
8271
          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'
8204
8272
          tmp_addflag=' $pic_flag'
8205
8273
          ;;
8206
8274
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8207
 
          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'
 
8275
          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'
8208
8276
          tmp_addflag=' $pic_flag -Mnomain' ;;
8209
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8277
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8210
8278
          tmp_addflag=' -i_dynamic' ;;
8211
8279
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8212
8280
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8213
8281
        ifc* | ifort*)                  # Intel Fortran compiler
8214
8282
          tmp_addflag=' -nofor_main' ;;
 
8283
        lf95*)                          # Lahey Fortran 8.1
 
8284
          whole_archive_flag_spec=
 
8285
          tmp_sharedflag='--shared' ;;
 
8286
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8287
          tmp_sharedflag='-qmkshrobj'
 
8288
          tmp_addflag= ;;
8215
8289
        esac
8216
8290
        case `$CC -V 2>&1 | sed 5q` in
8217
8291
        *Sun\ C*)                       # Sun C 5.9
8218
 
          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'
 
8292
          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'
 
8293
          compiler_needs_object=yes
8219
8294
          tmp_sharedflag='-G' ;;
8220
8295
        *Sun\ F*)                       # Sun Fortran 8.3
8221
8296
          tmp_sharedflag='-G' ;;
8222
 
        *)
8223
 
          tmp_sharedflag='-shared' ;;
8224
8297
        esac
8225
8298
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226
8299
 
8227
 
        if test $supports_anon_versioning = yes; then
8228
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8229
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8230
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8231
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8232
 
        fi
8233
 
        link_all_deplibs=no
 
8300
        if test "x$supports_anon_versioning" = xyes; then
 
8301
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8302
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8303
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8304
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8305
        fi
 
8306
 
 
8307
        case $cc_basename in
 
8308
        xlf*)
 
8309
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8310
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8311
          hardcode_libdir_flag_spec=
 
8312
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8313
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8314
          if test "x$supports_anon_versioning" = xyes; then
 
8315
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8316
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8317
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8318
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8319
          fi
 
8320
          ;;
 
8321
        esac
8234
8322
      else
8235
 
        ld_shlibs=no
 
8323
        ld_shlibs=no
8236
8324
      fi
8237
8325
      ;;
8238
8326
 
8239
8327
    netbsd*)
8240
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8328
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8241
8329
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8242
8330
        wlarc=
8243
8331
      else
8247
8335
      ;;
8248
8336
 
8249
8337
    solaris*)
8250
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8338
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8251
8339
        ld_shlibs=no
8252
 
        cat <<EOF 1>&2
 
8340
        cat <<_LT_EOF 1>&2
8253
8341
 
8254
8342
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8255
8343
*** create shared libraries on Solaris systems.  Therefore, libtool
8258
8346
*** your PATH or compiler configuration so that the native linker is
8259
8347
*** used, and then restart.
8260
8348
 
8261
 
EOF
8262
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8349
_LT_EOF
 
8350
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8263
8351
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264
8352
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8265
8353
      else
8283
8371
_LT_EOF
8284
8372
        ;;
8285
8373
        *)
8286
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8287
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8288
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8289
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8374
          # For security reasons, it is highly recommended that you always
 
8375
          # use absolute paths for naming shared libraries, and exclude the
 
8376
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8377
          # requires that you compile everything twice, which is a pain.
 
8378
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8379
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8380
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8381
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8290
8382
          else
8291
8383
            ld_shlibs=no
8292
8384
          fi
8302
8394
      ;;
8303
8395
 
8304
8396
    *)
8305
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8397
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8306
8398
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307
8399
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8308
8400
      else
8344
8436
      else
8345
8437
        # If we're using GNU nm, then we don't want the "-C" option.
8346
8438
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8347
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8348
 
          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'
 
8439
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8440
          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'
8349
8441
        else
8350
 
          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'
 
8442
          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'
8351
8443
        fi
8352
8444
        aix_use_runtimelinking=no
8353
8445
 
8356
8448
        # need to do runtime linking.
8357
8449
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8358
8450
          for ld_flag in $LDFLAGS; do
8359
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8360
 
            aix_use_runtimelinking=yes
8361
 
            break
8362
 
          fi
 
8451
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8452
            aix_use_runtimelinking=yes
 
8453
            break
 
8454
          fi
8363
8455
          done
8364
8456
          ;;
8365
8457
        esac
8376
8468
 
8377
8469
      archive_cmds=''
8378
8470
      hardcode_direct=yes
 
8471
      hardcode_direct_absolute=yes
8379
8472
      hardcode_libdir_separator=':'
8380
8473
      link_all_deplibs=yes
 
8474
      file_list_spec='${wl}-f,'
8381
8475
 
8382
8476
      if test "$GCC" = yes; then
8383
8477
        case $host_os in aix4.[012]|aix4.[012].*)
8384
8478
        # We only want to do this on AIX 4.2 and lower, the check
8385
8479
        # below for broken collect2 doesn't work under 4.3+
8386
8480
          collect2name=`${CC} -print-prog-name=collect2`
8387
 
          if test -f "$collect2name" && \
8388
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8481
          if test -f "$collect2name" &&
 
8482
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8389
8483
          then
8390
 
          # We have reworked collect2
8391
 
          :
 
8484
          # We have reworked collect2
 
8485
          :
8392
8486
          else
8393
 
          # We have old collect2
8394
 
          hardcode_direct=unsupported
8395
 
          # It fails to find uninstalled libraries when the uninstalled
8396
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8397
 
          # to unsupported forces relinking
8398
 
          hardcode_minus_L=yes
8399
 
          hardcode_libdir_flag_spec='-L$libdir'
8400
 
          hardcode_libdir_separator=
 
8487
          # We have old collect2
 
8488
          hardcode_direct=unsupported
 
8489
          # It fails to find uninstalled libraries when the uninstalled
 
8490
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8491
          # to unsupported forces relinking
 
8492
          hardcode_minus_L=yes
 
8493
          hardcode_libdir_flag_spec='-L$libdir'
 
8494
          hardcode_libdir_separator=
8401
8495
          fi
8402
8496
          ;;
8403
8497
        esac
8408
8502
      else
8409
8503
        # not using gcc
8410
8504
        if test "$host_cpu" = ia64; then
8411
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8412
 
        # chokes on -Wl,-G. The following line is correct:
 
8505
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8506
        # chokes on -Wl,-G. The following line is correct:
8413
8507
          shared_flag='-G'
8414
8508
        else
8415
8509
          if test "$aix_use_runtimelinking" = yes; then
8420
8514
        fi
8421
8515
      fi
8422
8516
 
 
8517
      export_dynamic_flag_spec='${wl}-bexpall'
8423
8518
      # It seems that -bexpall does not export symbols beginning with
8424
8519
      # underscore (_), so it is better to generate a list of symbols to export.
8425
8520
      always_export_symbols=yes
8427
8522
        # Warning - without using the other runtime loading flags (-brtl),
8428
8523
        # -berok will link without error, but may produce a broken library.
8429
8524
        allow_undefined_flag='-berok'
8430
 
       # Determine the default libpath from the value encoded in an empty executable.
8431
 
       cat >conftest.$ac_ext <<_ACEOF
 
8525
        # Determine the default libpath from the value encoded in an
 
8526
        # empty executable.
 
8527
        cat >conftest.$ac_ext <<_ACEOF
8432
8528
/* confdefs.h.  */
8433
8529
_ACEOF
8434
8530
cat confdefs.h >>conftest.$ac_ext
8489
8585
      conftest$ac_exeext conftest.$ac_ext
8490
8586
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8491
8587
 
8492
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8493
 
        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"
8494
 
       else
 
8588
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8589
        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"
 
8590
      else
8495
8591
        if test "$host_cpu" = ia64; then
8496
8592
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8497
8593
          allow_undefined_flag="-z nodefs"
8498
8594
          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"
8499
8595
        else
8500
 
         # Determine the default libpath from the value encoded in an empty executable.
 
8596
         # Determine the default libpath from the value encoded in an
 
8597
         # empty executable.
8501
8598
         cat >conftest.$ac_ext <<_ACEOF
8502
8599
/* confdefs.h.  */
8503
8600
_ACEOF
8574
8671
      ;;
8575
8672
 
8576
8673
    amigaos*)
8577
 
      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)'
8578
 
      hardcode_libdir_flag_spec='-L$libdir'
8579
 
      hardcode_minus_L=yes
8580
 
      # see comment about different semantics on the GNU ld section
8581
 
      ld_shlibs=no
 
8674
      case $host_cpu in
 
8675
      powerpc)
 
8676
            # see comment about AmigaOS4 .so support
 
8677
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8678
            archive_expsym_cmds=''
 
8679
        ;;
 
8680
      m68k)
 
8681
            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)'
 
8682
            hardcode_libdir_flag_spec='-L$libdir'
 
8683
            hardcode_minus_L=yes
 
8684
        ;;
 
8685
      esac
8582
8686
      ;;
8583
8687
 
8584
8688
    bsdi[45]*)
8585
8689
      export_dynamic_flag_spec=-rdynamic
8586
8690
      ;;
8587
8691
 
8588
 
    cygwin* | mingw* | pw32*)
 
8692
    cygwin* | mingw* | pw32* | cegcc*)
8589
8693
      # When not using gcc, we currently assume that we are using
8590
8694
      # Microsoft Visual C++.
8591
8695
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8597
8701
      # Tell ltmain to make .dll files, not .so files.
8598
8702
      shrext_cmds=".dll"
8599
8703
      # FIXME: Setting linknames here is a bad hack.
8600
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8704
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8601
8705
      # The linker will automatically build a .lib file if we build a DLL.
8602
 
      old_archive_From_new_cmds='true'
 
8706
      old_archive_from_new_cmds='true'
8603
8707
      # FIXME: Should let the user specify the lib program.
8604
8708
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8605
8709
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8607
8711
      ;;
8608
8712
 
8609
8713
    darwin* | rhapsody*)
8610
 
      case $host_os in
8611
 
        rhapsody* | darwin1.[012])
8612
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8613
 
         ;;
8614
 
       *) # Darwin 1.3 on
8615
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8616
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8617
 
         else
8618
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8619
 
             10.[012])
8620
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8621
 
               ;;
8622
 
             10.*)
8623
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8624
 
               ;;
8625
 
           esac
8626
 
         fi
8627
 
         ;;
8628
 
      esac
8629
 
      archive_cmds_need_lc=no
8630
 
      hardcode_direct=no
8631
 
      hardcode_automatic=yes
8632
 
      hardcode_shlibpath_var=unsupported
8633
 
      whole_archive_flag_spec=''
8634
 
      link_all_deplibs=yes
8635
 
    if test "$GCC" = yes ; then
8636
 
        output_verbose_link_cmd='echo'
8637
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8638
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8639
 
        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}"
8640
 
        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}"
8641
 
    else
8642
 
      case $cc_basename in
8643
 
        xlc*)
8644
 
         output_verbose_link_cmd='echo'
8645
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8646
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8647
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8648
 
         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}'
8649
 
          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}'
8650
 
          ;;
8651
 
       *)
8652
 
         ld_shlibs=no
8653
 
          ;;
8654
 
      esac
8655
 
    fi
 
8714
 
 
8715
 
 
8716
  archive_cmds_need_lc=no
 
8717
  hardcode_direct=no
 
8718
  hardcode_automatic=yes
 
8719
  hardcode_shlibpath_var=unsupported
 
8720
  whole_archive_flag_spec=''
 
8721
  link_all_deplibs=yes
 
8722
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8723
  case $cc_basename in
 
8724
     ifort*) _lt_dar_can_shared=yes ;;
 
8725
     *) _lt_dar_can_shared=$GCC ;;
 
8726
  esac
 
8727
  if test "$_lt_dar_can_shared" = "yes"; then
 
8728
    output_verbose_link_cmd=echo
 
8729
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8730
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8731
    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}"
 
8732
    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}"
 
8733
 
 
8734
  else
 
8735
  ld_shlibs=no
 
8736
  fi
 
8737
 
8656
8738
      ;;
8657
8739
 
8658
8740
    dgux*)
8694
8776
 
8695
8777
    hpux9*)
8696
8778
      if test "$GCC" = yes; then
8697
 
        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'
 
8779
        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'
8698
8780
      else
8699
 
        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'
 
8781
        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'
8700
8782
      fi
8701
8783
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702
8784
      hardcode_libdir_separator=:
8716
8798
      fi
8717
8799
      if test "$with_gnu_ld" = no; then
8718
8800
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8801
        hardcode_libdir_flag_spec_ld='+b $libdir'
8719
8802
        hardcode_libdir_separator=:
8720
 
 
8721
8803
        hardcode_direct=yes
 
8804
        hardcode_direct_absolute=yes
8722
8805
        export_dynamic_flag_spec='${wl}-E'
8723
 
 
8724
8806
        # hardcode_minus_L: Not really in the search PATH,
8725
8807
        # but as the default location of the library.
8726
8808
        hardcode_minus_L=yes
8734
8816
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735
8817
          ;;
8736
8818
        ia64*)
8737
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8819
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8738
8820
          ;;
8739
8821
        *)
8740
8822
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8759
8841
 
8760
8842
        case $host_cpu in
8761
8843
        hppa*64*|ia64*)
8762
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8763
8844
          hardcode_direct=no
8764
8845
          hardcode_shlibpath_var=no
8765
8846
          ;;
8766
8847
        *)
8767
8848
          hardcode_direct=yes
 
8849
          hardcode_direct_absolute=yes
8768
8850
          export_dynamic_flag_spec='${wl}-E'
8769
8851
 
8770
8852
          # hardcode_minus_L: Not really in the search PATH,
8777
8859
 
8778
8860
    irix5* | irix6* | nonstopux*)
8779
8861
      if test "$GCC" = yes; then
8780
 
        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'
 
8862
        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'
 
8863
        # Try to use the -exported_symbol ld option, if it does not
 
8864
        # work, assume that -exports_file does not work either and
 
8865
        # implicitly export all symbols.
 
8866
        save_LDFLAGS="$LDFLAGS"
 
8867
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
8868
        cat >conftest.$ac_ext <<_ACEOF
 
8869
int foo(void) {}
 
8870
_ACEOF
 
8871
rm -f conftest.$ac_objext conftest$ac_exeext
 
8872
if { (ac_try="$ac_link"
 
8873
case "(($ac_try" in
 
8874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8875
  *) ac_try_echo=$ac_try;;
 
8876
esac
 
8877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8878
$as_echo "$ac_try_echo") >&5
 
8879
  (eval "$ac_link") 2>conftest.er1
 
8880
  ac_status=$?
 
8881
  grep -v '^ *+' conftest.er1 >conftest.err
 
8882
  rm -f conftest.er1
 
8883
  cat conftest.err >&5
 
8884
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8885
  (exit $ac_status); } && {
 
8886
         test -z "$ac_c_werror_flag" ||
 
8887
         test ! -s conftest.err
 
8888
       } && test -s conftest$ac_exeext && {
 
8889
         test "$cross_compiling" = yes ||
 
8890
         $as_test_x conftest$ac_exeext
 
8891
       }; then
 
8892
  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'
 
8893
 
 
8894
else
 
8895
  $as_echo "$as_me: failed program was:" >&5
 
8896
sed 's/^/| /' conftest.$ac_ext >&5
 
8897
 
 
8898
 
 
8899
fi
 
8900
 
 
8901
rm -rf conftest.dSYM
 
8902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8903
      conftest$ac_exeext conftest.$ac_ext
 
8904
        LDFLAGS="$save_LDFLAGS"
8781
8905
      else
8782
 
        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'
8783
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8906
        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'
 
8907
        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'
8784
8908
      fi
 
8909
      archive_cmds_need_lc='no'
8785
8910
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786
8911
      hardcode_libdir_separator=:
 
8912
      inherit_rpath=yes
8787
8913
      link_all_deplibs=yes
8788
8914
      ;;
8789
8915
 
8790
8916
    netbsd*)
8791
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8917
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8792
8918
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8793
8919
      else
8794
8920
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8806
8932
      hardcode_shlibpath_var=no
8807
8933
      ;;
8808
8934
 
 
8935
    *nto* | *qnx*)
 
8936
      ;;
 
8937
 
8809
8938
    openbsd*)
8810
8939
      if test -f /usr/libexec/ld.so; then
8811
8940
        hardcode_direct=yes
8812
8941
        hardcode_shlibpath_var=no
8813
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8942
        hardcode_direct_absolute=yes
 
8943
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8814
8944
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815
8945
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8816
8946
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8826
8956
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8827
8957
             ;;
8828
8958
          esac
8829
 
        fi
 
8959
        fi
8830
8960
      else
8831
8961
        ld_shlibs=no
8832
8962
      fi
8836
8966
      hardcode_libdir_flag_spec='-L$libdir'
8837
8967
      hardcode_minus_L=yes
8838
8968
      allow_undefined_flag=unsupported
8839
 
      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'
8840
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8969
      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'
 
8970
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8841
8971
      ;;
8842
8972
 
8843
8973
    osf3*)
8844
8974
      if test "$GCC" = yes; then
8845
8975
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8846
 
        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'
 
8976
        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'
8847
8977
      else
8848
8978
        allow_undefined_flag=' -expect_unresolved \*'
8849
 
        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'
 
8979
        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'
8850
8980
      fi
 
8981
      archive_cmds_need_lc='no'
8851
8982
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852
8983
      hardcode_libdir_separator=:
8853
8984
      ;;
8855
8986
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8856
8987
      if test "$GCC" = yes; then
8857
8988
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858
 
        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'
 
8989
        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'
8859
8990
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860
8991
      else
8861
8992
        allow_undefined_flag=' -expect_unresolved \*'
8862
 
        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'
8863
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8864
 
        $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'
 
8993
        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'
 
8994
        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~
 
8995
        $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'
8865
8996
 
8866
8997
        # Both c and cxx compiler support -rpath directly
8867
8998
        hardcode_libdir_flag_spec='-rpath $libdir'
8868
8999
      fi
 
9000
      archive_cmds_need_lc='no'
8869
9001
      hardcode_libdir_separator=:
8870
9002
      ;;
8871
9003
 
8872
9004
    solaris*)
8873
 
      no_undefined_flag=' -z text'
 
9005
      no_undefined_flag=' -z defs'
8874
9006
      if test "$GCC" = yes; then
8875
9007
        wlarc='${wl}'
8876
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8878
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9008
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9009
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9010
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8879
9011
      else
8880
 
        wlarc=''
8881
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8883
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9012
        case `$CC -V 2>&1` in
 
9013
        *"Compilers 5.0"*)
 
9014
          wlarc=''
 
9015
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9016
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9017
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9018
          ;;
 
9019
        *)
 
9020
          wlarc='${wl}'
 
9021
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9022
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9023
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9024
          ;;
 
9025
        esac
8884
9026
      fi
8885
9027
      hardcode_libdir_flag_spec='-R$libdir'
8886
9028
      hardcode_shlibpath_var=no
8890
9032
        # The compiler driver will combine and reorder linker options,
8891
9033
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8892
9034
        # but is careful enough not to reorder.
8893
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9035
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8894
9036
        if test "$GCC" = yes; then
8895
9037
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8896
9038
        else
8979
9121
      allow_undefined_flag='${wl}-z,nodefs'
8980
9122
      archive_cmds_need_lc=no
8981
9123
      hardcode_shlibpath_var=no
8982
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9124
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8983
9125
      hardcode_libdir_separator=':'
8984
9126
      link_all_deplibs=yes
8985
9127
      export_dynamic_flag_spec='${wl}-Bexport'
8986
9128
      runpath_var='LD_RUN_PATH'
8987
9129
 
8988
9130
      if test "$GCC" = yes; then
8989
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9131
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9132
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991
9133
      else
8992
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9134
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9135
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8994
9136
      fi
8995
9137
      ;;
8996
9138
 
9004
9146
      ld_shlibs=no
9005
9147
      ;;
9006
9148
    esac
 
9149
 
 
9150
    if test x$host_vendor = xsni; then
 
9151
      case $host in
 
9152
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9153
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9154
        ;;
 
9155
      esac
 
9156
    fi
9007
9157
  fi
9008
9158
 
9009
9159
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9010
9160
$as_echo "$ld_shlibs" >&6; }
9011
9161
test "$ld_shlibs" = no && can_build_shared=no
9012
9162
 
 
9163
with_gnu_ld=$with_gnu_ld
 
9164
 
 
9165
 
 
9166
 
 
9167
 
 
9168
 
 
9169
 
 
9170
 
 
9171
 
 
9172
 
 
9173
 
 
9174
 
 
9175
 
 
9176
 
 
9177
 
 
9178
 
9013
9179
#
9014
9180
# Do we need to explicitly link libc?
9015
9181
#
9029
9195
      # to ld, don't add -lc before -lgcc.
9030
9196
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9031
9197
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9032
 
      $rm conftest*
 
9198
      $RM conftest*
9033
9199
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9200
 
9035
9201
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050
9216
        libname=conftest
9051
9217
        lt_save_allow_undefined_flag=$allow_undefined_flag
9052
9218
        allow_undefined_flag=
9053
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9054
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9219
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9220
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9055
9221
  ac_status=$?
9056
9222
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057
9223
  (exit $ac_status); }
9064
9230
      else
9065
9231
        cat conftest.err 1>&5
9066
9232
      fi
9067
 
      $rm conftest*
 
9233
      $RM conftest*
9068
9234
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9069
9235
$as_echo "$archive_cmds_need_lc" >&6; }
9070
9236
      ;;
9073
9239
  ;;
9074
9240
esac
9075
9241
 
9076
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9242
 
 
9243
 
 
9244
 
 
9245
 
 
9246
 
 
9247
 
 
9248
 
 
9249
 
 
9250
 
 
9251
 
 
9252
 
 
9253
 
 
9254
 
 
9255
 
 
9256
 
 
9257
 
 
9258
 
 
9259
 
 
9260
 
 
9261
 
 
9262
 
 
9263
 
 
9264
 
 
9265
 
 
9266
 
 
9267
 
 
9268
 
 
9269
 
 
9270
 
 
9271
 
 
9272
 
 
9273
 
 
9274
 
 
9275
 
 
9276
 
 
9277
 
 
9278
 
 
9279
 
 
9280
 
 
9281
 
 
9282
 
 
9283
 
 
9284
 
 
9285
 
 
9286
 
 
9287
 
 
9288
 
 
9289
 
 
9290
 
 
9291
 
 
9292
 
 
9293
 
 
9294
 
 
9295
 
 
9296
 
 
9297
 
 
9298
 
 
9299
 
 
9300
 
 
9301
 
 
9302
 
 
9303
 
 
9304
 
 
9305
 
 
9306
 
 
9307
 
 
9308
 
 
9309
 
 
9310
 
 
9311
 
 
9312
 
 
9313
 
 
9314
 
 
9315
 
 
9316
 
 
9317
 
 
9318
 
 
9319
 
 
9320
 
 
9321
 
 
9322
 
 
9323
 
 
9324
 
 
9325
 
 
9326
 
 
9327
 
 
9328
 
 
9329
 
 
9330
 
 
9331
 
 
9332
 
 
9333
 
 
9334
 
 
9335
 
 
9336
 
 
9337
 
 
9338
 
 
9339
 
 
9340
 
 
9341
 
 
9342
 
 
9343
 
 
9344
 
 
9345
 
 
9346
 
 
9347
 
 
9348
 
 
9349
 
 
9350
 
 
9351
 
 
9352
 
 
9353
 
 
9354
 
 
9355
 
 
9356
 
 
9357
 
 
9358
 
 
9359
 
 
9360
 
 
9361
 
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
 
 
9378
 
 
9379
 
 
9380
 
 
9381
 
 
9382
 
 
9383
 
 
9384
 
 
9385
 
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
 
 
9391
 
 
9392
 
 
9393
 
 
9394
 
 
9395
 
 
9396
 
 
9397
 
 
9398
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9077
9399
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9078
 
library_names_spec=
9079
 
libname_spec='lib$name'
9080
 
soname_spec=
9081
 
shrext_cmds=".so"
9082
 
postinstall_cmds=
9083
 
postuninstall_cmds=
9084
 
finish_cmds=
9085
 
finish_eval=
9086
 
shlibpath_var=
9087
 
shlibpath_overrides_runpath=unknown
9088
 
version_type=none
9089
 
dynamic_linker="$host_os ld.so"
9090
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9091
9400
 
9092
9401
if test "$GCC" = yes; then
9093
9402
  case $host_os in
9095
9404
    *) lt_awk_arg="/^libraries:/" ;;
9096
9405
  esac
9097
9406
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9098
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9407
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9099
9408
    # if the path contains ";" then we assume it to be the separator
9100
9409
    # otherwise default to the standard path separator (i.e. ":") - it is
9101
9410
    # assumed that no part of a normal pathname contains ";" but that should
9102
9411
    # okay in the real world where ";" in dirpaths is itself problematic.
9103
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9412
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9104
9413
  else
9105
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9414
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9106
9415
  fi
9107
9416
  # Ok, now we have the path, separated by spaces, we can step through it
9108
9417
  # and add multilib dir if necessary.
9116
9425
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9117
9426
    fi
9118
9427
  done
9119
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9428
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9120
9429
BEGIN {RS=" "; FS="/|\n";} {
9121
9430
  lt_foo="";
9122
9431
  lt_count=0;
9136
9445
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9137
9446
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9138
9447
}'`
9139
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9448
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9140
9449
else
9141
9450
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9142
9451
fi
 
9452
library_names_spec=
 
9453
libname_spec='lib$name'
 
9454
soname_spec=
 
9455
shrext_cmds=".so"
 
9456
postinstall_cmds=
 
9457
postuninstall_cmds=
 
9458
finish_cmds=
 
9459
finish_eval=
 
9460
shlibpath_var=
 
9461
shlibpath_overrides_runpath=unknown
 
9462
version_type=none
 
9463
dynamic_linker="$host_os ld.so"
 
9464
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9143
9465
need_lib_prefix=unknown
9144
9466
hardcode_into_libs=no
9145
9467
 
9176
9498
      aix4 | aix4.[01] | aix4.[01].*)
9177
9499
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9178
9500
           echo ' yes '
9179
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9501
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9180
9502
        :
9181
9503
      else
9182
9504
        can_build_shared=no
9202
9524
  ;;
9203
9525
 
9204
9526
amigaos*)
9205
 
  library_names_spec='$libname.ixlibrary $libname.a'
9206
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9207
 
  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'
 
9527
  case $host_cpu in
 
9528
  powerpc)
 
9529
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9530
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9531
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9532
    ;;
 
9533
  m68k)
 
9534
    library_names_spec='$libname.ixlibrary $libname.a'
 
9535
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9536
    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'
 
9537
    ;;
 
9538
  esac
9208
9539
  ;;
9209
9540
 
9210
9541
beos*)
9227
9558
  # libtool to hard-code these into programs
9228
9559
  ;;
9229
9560
 
9230
 
cygwin* | mingw* | pw32*)
 
9561
cygwin* | mingw* | pw32* | cegcc*)
9231
9562
  version_type=windows
9232
9563
  shrext_cmds=".dll"
9233
9564
  need_version=no
9234
9565
  need_lib_prefix=no
9235
9566
 
9236
9567
  case $GCC,$host_os in
9237
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9568
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9238
9569
    library_names_spec='$libname.dll.a'
9239
9570
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9240
9571
    postinstall_cmds='base_file=`basename \${file}`~
9241
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9572
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9242
9573
      dldir=$destdir/`dirname \$dlpath`~
9243
9574
      test -d \$dldir || mkdir -p \$dldir~
9244
9575
      $install_prog $dir/$dlname \$dldir/$dlname~
9245
 
      chmod a+x \$dldir/$dlname'
 
9576
      chmod a+x \$dldir/$dlname~
 
9577
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9578
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9579
      fi'
9246
9580
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9247
9581
      dlpath=$dir/\$dldll~
9248
 
       $rm \$dlpath'
 
9582
       $RM \$dlpath'
9249
9583
    shlibpath_overrides_runpath=yes
9250
9584
 
9251
9585
    case $host_os in
9254
9588
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9255
9589
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9256
9590
      ;;
9257
 
    mingw*)
 
9591
    mingw* | cegcc*)
9258
9592
      # MinGW DLLs use traditional 'lib' prefix
9259
9593
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9260
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9261
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9594
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9595
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9262
9596
        # It is most probably a Windows format PATH printed by
9263
9597
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9264
9598
        # path with ; separators, and with drive letters. We can handle the
9265
9599
        # drive letters (cygwin fileutils understands them), so leave them,
9266
9600
        # especially as we might pass files found there to a mingw objdump,
9267
9601
        # which wouldn't understand a cygwinified path. Ahh.
9268
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9602
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9269
9603
      else
9270
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9604
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9271
9605
      fi
9272
9606
      ;;
9273
9607
    pw32*)
9291
9625
  version_type=darwin
9292
9626
  need_lib_prefix=no
9293
9627
  need_version=no
9294
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9628
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9295
9629
  soname_spec='${libname}${release}${major}$shared_ext'
9296
9630
  shlibpath_overrides_runpath=yes
9297
9631
  shlibpath_var=DYLD_LIBRARY_PATH
9390
9724
    fi
9391
9725
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9392
9726
    ;;
9393
 
   hppa*64*)
9394
 
     shrext_cmds='.sl'
9395
 
     hardcode_into_libs=yes
9396
 
     dynamic_linker="$host_os dld.sl"
9397
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9398
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9399
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400
 
     soname_spec='${libname}${release}${shared_ext}$major'
9401
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9402
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403
 
     ;;
9404
 
   *)
 
9727
  hppa*64*)
 
9728
    shrext_cmds='.sl'
 
9729
    hardcode_into_libs=yes
 
9730
    dynamic_linker="$host_os dld.sl"
 
9731
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9732
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9733
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9734
    soname_spec='${libname}${release}${shared_ext}$major'
 
9735
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9736
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9737
    ;;
 
9738
  *)
9405
9739
    shrext_cmds='.sl'
9406
9740
    dynamic_linker="$host_os dld.sl"
9407
9741
    shlibpath_var=SHLIB_PATH
9478
9812
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9479
9813
  shlibpath_var=LD_LIBRARY_PATH
9480
9814
  shlibpath_overrides_runpath=no
 
9815
  # Some binutils ld are patched to set DT_RUNPATH
 
9816
  save_LDFLAGS=$LDFLAGS
 
9817
  save_libdir=$libdir
 
9818
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
9819
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
9820
  cat >conftest.$ac_ext <<_ACEOF
 
9821
/* confdefs.h.  */
 
9822
_ACEOF
 
9823
cat confdefs.h >>conftest.$ac_ext
 
9824
cat >>conftest.$ac_ext <<_ACEOF
 
9825
/* end confdefs.h.  */
 
9826
 
 
9827
int
 
9828
main ()
 
9829
{
 
9830
 
 
9831
  ;
 
9832
  return 0;
 
9833
}
 
9834
_ACEOF
 
9835
rm -f conftest.$ac_objext conftest$ac_exeext
 
9836
if { (ac_try="$ac_link"
 
9837
case "(($ac_try" in
 
9838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9839
  *) ac_try_echo=$ac_try;;
 
9840
esac
 
9841
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9842
$as_echo "$ac_try_echo") >&5
 
9843
  (eval "$ac_link") 2>conftest.er1
 
9844
  ac_status=$?
 
9845
  grep -v '^ *+' conftest.er1 >conftest.err
 
9846
  rm -f conftest.er1
 
9847
  cat conftest.err >&5
 
9848
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9849
  (exit $ac_status); } && {
 
9850
         test -z "$ac_c_werror_flag" ||
 
9851
         test ! -s conftest.err
 
9852
       } && test -s conftest$ac_exeext && {
 
9853
         test "$cross_compiling" = yes ||
 
9854
         $as_test_x conftest$ac_exeext
 
9855
       }; then
 
9856
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
9857
  shlibpath_overrides_runpath=yes
 
9858
fi
 
9859
 
 
9860
else
 
9861
  $as_echo "$as_me: failed program was:" >&5
 
9862
sed 's/^/| /' conftest.$ac_ext >&5
 
9863
 
 
9864
 
 
9865
fi
 
9866
 
 
9867
rm -rf conftest.dSYM
 
9868
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9869
      conftest$ac_exeext conftest.$ac_ext
 
9870
  LDFLAGS=$save_LDFLAGS
 
9871
  libdir=$save_libdir
 
9872
 
9481
9873
  # This implies no fast_install, which is unacceptable.
9482
9874
  # Some rework will be needed to allow for fast_install
9483
9875
  # before this can be enabled.
9484
9876
  hardcode_into_libs=yes
9485
9877
 
9486
 
  # find out which ABI we are using
9487
 
  libsuff=
9488
 
  case "$host_cpu" in
9489
 
  x86_64*|s390x*|powerpc64*)
9490
 
    echo '#line 9490 "configure"' > conftest.$ac_ext
9491
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492
 
  (eval $ac_compile) 2>&5
9493
 
  ac_status=$?
9494
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495
 
  (exit $ac_status); }; then
9496
 
      case `/usr/bin/file conftest.$ac_objext` in
9497
 
      *64-bit*)
9498
 
        libsuff=64
9499
 
        ;;
9500
 
      esac
9501
 
    fi
9502
 
    rm -rf conftest*
9503
 
    ;;
9504
 
  esac
9505
 
 
9506
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
9878
  # Add ABI-specific directories to the system library path.
 
9879
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9507
9880
 
9508
9881
  # Append ld.so.conf contents to the search path
9509
9882
  if test -f /etc/ld.so.conf; then
9510
 
    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' ' '`
 
9883
    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' ' '`
9511
9884
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9512
9885
  fi
9513
9886
 
9524
9897
  version_type=sunos
9525
9898
  need_lib_prefix=no
9526
9899
  need_version=no
9527
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9900
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9528
9901
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9529
9902
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9530
9903
    dynamic_linker='NetBSD (a.out) ld.so'
9545
9918
  shlibpath_overrides_runpath=yes
9546
9919
  ;;
9547
9920
 
9548
 
nto-qnx*)
9549
 
  version_type=linux
 
9921
*nto* | *qnx*)
 
9922
  version_type=qnx
9550
9923
  need_lib_prefix=no
9551
9924
  need_version=no
9552
9925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553
9926
  soname_spec='${libname}${release}${shared_ext}$major'
9554
9927
  shlibpath_var=LD_LIBRARY_PATH
9555
 
  shlibpath_overrides_runpath=yes
 
9928
  shlibpath_overrides_runpath=no
 
9929
  hardcode_into_libs=yes
 
9930
  dynamic_linker='ldqnx.so'
9556
9931
  ;;
9557
9932
 
9558
9933
openbsd*)
9561
9936
  need_lib_prefix=no
9562
9937
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9563
9938
  case $host_os in
9564
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9565
 
    *)                         need_version=no  ;;
 
9939
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
9940
    *)                          need_version=no  ;;
9566
9941
  esac
9567
9942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9568
9943
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9569
9944
  shlibpath_var=LD_LIBRARY_PATH
9570
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9945
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9571
9946
    case $host_os in
9572
9947
      openbsd2.[89] | openbsd2.[89].*)
9573
9948
        shlibpath_overrides_runpath=no
9639
10014
    sni)
9640
10015
      shlibpath_overrides_runpath=no
9641
10016
      need_lib_prefix=no
9642
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9643
10017
      runpath_var=LD_RUN_PATH
9644
10018
      ;;
9645
10019
    siemens)
9670
10044
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9671
10045
  soname_spec='${libname}${release}${shared_ext}$major'
9672
10046
  shlibpath_var=LD_LIBRARY_PATH
 
10047
  shlibpath_overrides_runpath=yes
9673
10048
  hardcode_into_libs=yes
9674
10049
  if test "$with_gnu_ld" = yes; then
9675
10050
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9676
 
    shlibpath_overrides_runpath=no
9677
10051
  else
9678
10052
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9679
 
    shlibpath_overrides_runpath=yes
9680
10053
    case $host_os in
9681
10054
      sco3.2v5*)
9682
10055
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9686
10059
  sys_lib_dlsearch_path_spec='/usr/lib'
9687
10060
  ;;
9688
10061
 
 
10062
tpf*)
 
10063
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10064
  version_type=linux
 
10065
  need_lib_prefix=no
 
10066
  need_version=no
 
10067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10068
  shlibpath_var=LD_LIBRARY_PATH
 
10069
  shlibpath_overrides_runpath=no
 
10070
  hardcode_into_libs=yes
 
10071
  ;;
 
10072
 
9689
10073
uts4*)
9690
10074
  version_type=linux
9691
10075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9701
10085
$as_echo "$dynamic_linker" >&6; }
9702
10086
test "$dynamic_linker" = no && can_build_shared=no
9703
10087
 
9704
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705
 
  $as_echo_n "(cached) " >&6
9706
 
else
9707
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9708
 
fi
9709
 
 
9710
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9711
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9712
 
  $as_echo_n "(cached) " >&6
9713
 
else
9714
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9715
 
fi
9716
 
 
9717
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9718
 
 
9719
10088
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9720
10089
if test "$GCC" = yes; then
9721
10090
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9722
10091
fi
9723
10092
 
9724
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10093
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10094
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10095
fi
 
10096
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10097
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10098
fi
 
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
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9725
10187
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9726
10188
hardcode_action=
9727
 
if test -n "$hardcode_libdir_flag_spec" || \
9728
 
   test -n "$runpath_var" || \
 
10189
if test -n "$hardcode_libdir_flag_spec" ||
 
10190
   test -n "$runpath_var" ||
9729
10191
   test "X$hardcode_automatic" = "Xyes" ; then
9730
10192
 
9731
 
  # We can hardcode non-existant directories.
 
10193
  # We can hardcode non-existent directories.
9732
10194
  if test "$hardcode_direct" != no &&
9733
10195
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9734
10196
     # have to relink, otherwise we might link with an installed library
9735
10197
     # when we should be linking with a yet-to-be-installed one
9736
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10198
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9737
10199
     test "$hardcode_minus_L" != no; then
9738
10200
    # Linking always hardcodes the temporary library directory.
9739
10201
    hardcode_action=relink
9749
10211
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9750
10212
$as_echo "$hardcode_action" >&6; }
9751
10213
 
9752
 
if test "$hardcode_action" = relink; then
 
10214
if test "$hardcode_action" = relink ||
 
10215
   test "$inherit_rpath" = yes; then
9753
10216
  # Fast installation is not supported
9754
10217
  enable_fast_install=no
9755
10218
elif test "$shlibpath_overrides_runpath" = yes ||
9758
10221
  enable_fast_install=needless
9759
10222
fi
9760
10223
 
9761
 
striplib=
9762
 
old_striplib=
9763
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9764
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9765
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9766
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9767
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9768
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
9769
 
$as_echo "yes" >&6; }
9770
 
else
9771
 
# FIXME - insert some real tests, host_os isn't really good enough
9772
 
  case $host_os in
9773
 
   darwin*)
9774
 
       if test -n "$STRIP" ; then
9775
 
         striplib="$STRIP -x"
9776
 
         old_striplib="$STRIP -S"
9777
 
         { $as_echo "$as_me:$LINENO: result: yes" >&5
9778
 
$as_echo "yes" >&6; }
9779
 
       else
9780
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
9781
 
$as_echo "no" >&6; }
9782
 
fi
9783
 
       ;;
9784
 
   *)
9785
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
9786
 
$as_echo "no" >&6; }
9787
 
    ;;
9788
 
  esac
9789
 
fi
9790
 
 
9791
 
if test "x$enable_dlopen" != xyes; then
 
10224
 
 
10225
 
 
10226
 
 
10227
 
 
10228
 
 
10229
  if test "x$enable_dlopen" != xyes; then
9792
10230
  enable_dlopen=unknown
9793
10231
  enable_dlopen_self=unknown
9794
10232
  enable_dlopen_self_static=unknown
9803
10241
    lt_cv_dlopen_self=yes
9804
10242
    ;;
9805
10243
 
9806
 
  mingw* | pw32*)
 
10244
  mingw* | pw32* | cegcc*)
9807
10245
    lt_cv_dlopen="LoadLibrary"
9808
10246
    lt_cv_dlopen_libs=
9809
 
   ;;
 
10247
    ;;
9810
10248
 
9811
10249
  cygwin*)
9812
10250
    lt_cv_dlopen="dlopen"
9813
10251
    lt_cv_dlopen_libs=
9814
 
   ;;
 
10252
    ;;
9815
10253
 
9816
10254
  darwin*)
9817
10255
  # if libdl is installed we need to link against it
9890
10328
 
9891
10329
fi
9892
10330
 
9893
 
   ;;
 
10331
    ;;
9894
10332
 
9895
10333
  *)
9896
10334
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10387
10825
else
10388
10826
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10389
10827
  lt_status=$lt_dlunknown
10390
 
  cat > conftest.$ac_ext <<EOF
10391
 
#line 10391 "configure"
 
10828
  cat > conftest.$ac_ext <<_LT_EOF
 
10829
#line 10829 "configure"
10392
10830
#include "confdefs.h"
10393
10831
 
10394
10832
#if HAVE_DLFCN_H
10429
10867
#  endif
10430
10868
#endif
10431
10869
 
10432
 
#ifdef __cplusplus
10433
 
extern "C" void exit (int);
10434
 
#endif
10435
 
 
10436
10870
void fnord() { int i=42;}
10437
10871
int main ()
10438
10872
{
10448
10882
  else
10449
10883
    puts (dlerror ());
10450
10884
 
10451
 
    exit (status);
 
10885
  return status;
10452
10886
}
10453
 
EOF
 
10887
_LT_EOF
10454
10888
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455
10889
  (eval $ac_link) 2>&5
10456
10890
  ac_status=$?
10487
10921
else
10488
10922
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10489
10923
  lt_status=$lt_dlunknown
10490
 
  cat > conftest.$ac_ext <<EOF
10491
 
#line 10491 "configure"
 
10924
  cat > conftest.$ac_ext <<_LT_EOF
 
10925
#line 10925 "configure"
10492
10926
#include "confdefs.h"
10493
10927
 
10494
10928
#if HAVE_DLFCN_H
10529
10963
#  endif
10530
10964
#endif
10531
10965
 
10532
 
#ifdef __cplusplus
10533
 
extern "C" void exit (int);
10534
 
#endif
10535
 
 
10536
10966
void fnord() { int i=42;}
10537
10967
int main ()
10538
10968
{
10548
10978
  else
10549
10979
    puts (dlerror ());
10550
10980
 
10551
 
    exit (status);
 
10981
  return status;
10552
10982
}
10553
 
EOF
 
10983
_LT_EOF
10554
10984
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555
10985
  (eval $ac_link) 2>&5
10556
10986
  ac_status=$?
10594
11024
fi
10595
11025
 
10596
11026
 
10597
 
# Report which library types will actually be built
10598
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10599
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10600
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10601
 
$as_echo "$can_build_shared" >&6; }
10602
 
 
10603
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10604
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
10605
 
test "$can_build_shared" = "no" && enable_shared=no
10606
 
 
10607
 
# On AIX, shared libraries and static libraries use the same namespace, and
10608
 
# are all built from PIC.
10609
 
case $host_os in
10610
 
aix3*)
10611
 
  test "$enable_shared" = yes && enable_static=no
10612
 
  if test -n "$RANLIB"; then
10613
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10614
 
    postinstall_cmds='$RANLIB $lib'
10615
 
  fi
10616
 
  ;;
10617
 
 
10618
 
aix[4-9]*)
10619
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10620
 
    test "$enable_shared" = yes && enable_static=no
10621
 
  fi
10622
 
    ;;
10623
 
esac
10624
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10625
 
$as_echo "$enable_shared" >&6; }
10626
 
 
10627
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10628
 
$as_echo_n "checking whether to build static libraries... " >&6; }
10629
 
# Make sure either enable_shared or enable_static is yes.
10630
 
test "$enable_shared" = yes || enable_static=yes
10631
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10632
 
$as_echo "$enable_static" >&6; }
10633
 
 
10634
 
# The else clause should only fire when bootstrapping the
10635
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10636
 
# with your package, and you will get complaints that there are
10637
 
# no rules to generate ltmain.sh.
10638
 
if test -f "$ltmain"; then
10639
 
  # See if we are running on zsh, and set the options which allow our commands through
10640
 
  # without removal of \ escapes.
10641
 
  if test -n "${ZSH_VERSION+set}" ; then
10642
 
    setopt NO_GLOB_SUBST
10643
 
  fi
10644
 
  # Now quote all the things that may contain metacharacters while being
10645
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10646
 
  # variables and quote the copies for generation of the libtool script.
10647
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10648
 
    SED SHELL STRIP \
10649
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10650
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10651
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10652
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10653
 
    lt_cv_sys_global_symbol_to_c_name_address \
10654
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10655
 
    old_postinstall_cmds old_postuninstall_cmds \
10656
 
    compiler \
10657
 
    CC \
10658
 
    LD \
10659
 
    lt_prog_compiler_wl \
10660
 
    lt_prog_compiler_pic \
10661
 
    lt_prog_compiler_static \
10662
 
    lt_prog_compiler_no_builtin_flag \
10663
 
    export_dynamic_flag_spec \
10664
 
    thread_safe_flag_spec \
10665
 
    whole_archive_flag_spec \
10666
 
    enable_shared_with_static_runtimes \
10667
 
    old_archive_cmds \
10668
 
    old_archive_from_new_cmds \
10669
 
    predep_objects \
10670
 
    postdep_objects \
10671
 
    predeps \
10672
 
    postdeps \
10673
 
    compiler_lib_search_path \
10674
 
    compiler_lib_search_dirs \
10675
 
    archive_cmds \
10676
 
    archive_expsym_cmds \
10677
 
    postinstall_cmds \
10678
 
    postuninstall_cmds \
10679
 
    old_archive_from_expsyms_cmds \
10680
 
    allow_undefined_flag \
10681
 
    no_undefined_flag \
10682
 
    export_symbols_cmds \
10683
 
    hardcode_libdir_flag_spec \
10684
 
    hardcode_libdir_flag_spec_ld \
10685
 
    hardcode_libdir_separator \
10686
 
    hardcode_automatic \
10687
 
    module_cmds \
10688
 
    module_expsym_cmds \
10689
 
    lt_cv_prog_compiler_c_o \
10690
 
    fix_srcfile_path \
10691
 
    exclude_expsyms \
10692
 
    include_expsyms; do
10693
 
 
10694
 
    case $var in
10695
 
    old_archive_cmds | \
10696
 
    old_archive_from_new_cmds | \
10697
 
    archive_cmds | \
10698
 
    archive_expsym_cmds | \
10699
 
    module_cmds | \
10700
 
    module_expsym_cmds | \
10701
 
    old_archive_from_expsyms_cmds | \
10702
 
    export_symbols_cmds | \
10703
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10704
 
    postinstall_cmds | postuninstall_cmds | \
10705
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10706
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10707
 
      # Double-quote double-evaled strings.
10708
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10709
 
      ;;
10710
 
    *)
10711
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10712
 
      ;;
10713
 
    esac
10714
 
  done
10715
 
 
10716
 
  case $lt_echo in
10717
 
  *'\$0 --fallback-echo"')
10718
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10719
 
    ;;
10720
 
  esac
10721
 
 
10722
 
cfgfile="${ofile}T"
10723
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10724
 
  $rm -f "$cfgfile"
10725
 
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10726
 
$as_echo "$as_me: creating $ofile" >&6;}
10727
 
 
10728
 
  cat <<__EOF__ >> "$cfgfile"
10729
 
#! $SHELL
10730
 
 
10731
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10732
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10733
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10734
 
#
10735
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10736
 
# Free Software Foundation, Inc.
10737
 
#
10738
 
# This file is part of GNU Libtool:
10739
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10740
 
#
10741
 
# This program is free software; you can redistribute it and/or modify
10742
 
# it under the terms of the GNU General Public License as published by
10743
 
# the Free Software Foundation; either version 2 of the License, or
10744
 
# (at your option) any later version.
10745
 
#
10746
 
# This program is distributed in the hope that it will be useful, but
10747
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10748
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10749
 
# General Public License for more details.
10750
 
#
10751
 
# You should have received a copy of the GNU General Public License
10752
 
# along with this program; if not, write to the Free Software
10753
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10754
 
#
10755
 
# As a special exception to the GNU General Public License, if you
10756
 
# distribute this file as part of a program that contains a
10757
 
# configuration script generated by Autoconf, you may include it under
10758
 
# the same distribution terms that you use for the rest of that program.
10759
 
 
10760
 
# A sed program that does not truncate output.
10761
 
SED=$lt_SED
10762
 
 
10763
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10764
 
Xsed="$SED -e 1s/^X//"
10765
 
 
10766
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10767
 
# if CDPATH is set.
10768
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10769
 
 
10770
 
# The names of the tagged configurations supported by this script.
10771
 
available_tags=
10772
 
 
10773
 
# ### BEGIN LIBTOOL CONFIG
10774
 
 
10775
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10776
 
 
10777
 
# Shell to use when invoking shell scripts.
10778
 
SHELL=$lt_SHELL
10779
 
 
10780
 
# Whether or not to build shared libraries.
10781
 
build_libtool_libs=$enable_shared
10782
 
 
10783
 
# Whether or not to build static libraries.
10784
 
build_old_libs=$enable_static
10785
 
 
10786
 
# Whether or not to add -lc for building shared libraries.
10787
 
build_libtool_need_lc=$archive_cmds_need_lc
10788
 
 
10789
 
# Whether or not to disallow shared libs when runtime libs are static
10790
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10791
 
 
10792
 
# Whether or not to optimize for fast installation.
10793
 
fast_install=$enable_fast_install
10794
 
 
10795
 
# The host system.
10796
 
host_alias=$host_alias
10797
 
host=$host
10798
 
host_os=$host_os
10799
 
 
10800
 
# The build system.
10801
 
build_alias=$build_alias
10802
 
build=$build
10803
 
build_os=$build_os
10804
 
 
10805
 
# An echo program that does not interpret backslashes.
10806
 
echo=$lt_echo
10807
 
 
10808
 
# The archiver.
10809
 
AR=$lt_AR
10810
 
AR_FLAGS=$lt_AR_FLAGS
10811
 
 
10812
 
# A C compiler.
10813
 
LTCC=$lt_LTCC
10814
 
 
10815
 
# LTCC compiler flags.
10816
 
LTCFLAGS=$lt_LTCFLAGS
10817
 
 
10818
 
# A language-specific compiler.
10819
 
CC=$lt_compiler
10820
 
 
10821
 
# Is the compiler the GNU C compiler?
10822
 
with_gcc=$GCC
10823
 
 
10824
 
# An ERE matcher.
10825
 
EGREP=$lt_EGREP
10826
 
 
10827
 
# The linker used to build libraries.
10828
 
LD=$lt_LD
10829
 
 
10830
 
# Whether we need hard or soft links.
10831
 
LN_S=$lt_LN_S
10832
 
 
10833
 
# A BSD-compatible nm program.
10834
 
NM=$lt_NM
10835
 
 
10836
 
# A symbol stripping program
10837
 
STRIP=$lt_STRIP
10838
 
 
10839
 
# Used to examine libraries when file_magic_cmd begins "file"
10840
 
MAGIC_CMD=$MAGIC_CMD
10841
 
 
10842
 
# Used on cygwin: DLL creation program.
10843
 
DLLTOOL="$DLLTOOL"
10844
 
 
10845
 
# Used on cygwin: object dumper.
10846
 
OBJDUMP="$OBJDUMP"
10847
 
 
10848
 
# Used on cygwin: assembler.
10849
 
AS="$AS"
10850
 
 
10851
 
# The name of the directory that contains temporary libtool files.
10852
 
objdir=$objdir
10853
 
 
10854
 
# How to create reloadable object files.
10855
 
reload_flag=$lt_reload_flag
10856
 
reload_cmds=$lt_reload_cmds
10857
 
 
10858
 
# How to pass a linker flag through the compiler.
10859
 
wl=$lt_lt_prog_compiler_wl
10860
 
 
10861
 
# Object file suffix (normally "o").
10862
 
objext="$ac_objext"
10863
 
 
10864
 
# Old archive suffix (normally "a").
10865
 
libext="$libext"
10866
 
 
10867
 
# Shared library suffix (normally ".so").
10868
 
shrext_cmds='$shrext_cmds'
10869
 
 
10870
 
# Executable file suffix (normally "").
10871
 
exeext="$exeext"
10872
 
 
10873
 
# Additional compiler flags for building library objects.
10874
 
pic_flag=$lt_lt_prog_compiler_pic
10875
 
pic_mode=$pic_mode
10876
 
 
10877
 
# What is the maximum length of a command?
10878
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10879
 
 
10880
 
# Does compiler simultaneously support -c and -o options?
10881
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10882
 
 
10883
 
# Must we lock files when doing compilation?
10884
 
need_locks=$lt_need_locks
10885
 
 
10886
 
# Do we need the lib prefix for modules?
10887
 
need_lib_prefix=$need_lib_prefix
10888
 
 
10889
 
# Do we need a version for libraries?
10890
 
need_version=$need_version
10891
 
 
10892
 
# Whether dlopen is supported.
10893
 
dlopen_support=$enable_dlopen
10894
 
 
10895
 
# Whether dlopen of programs is supported.
10896
 
dlopen_self=$enable_dlopen_self
10897
 
 
10898
 
# Whether dlopen of statically linked programs is supported.
10899
 
dlopen_self_static=$enable_dlopen_self_static
10900
 
 
10901
 
# Compiler flag to prevent dynamic linking.
10902
 
link_static_flag=$lt_lt_prog_compiler_static
10903
 
 
10904
 
# Compiler flag to turn off builtin functions.
10905
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10906
 
 
10907
 
# Compiler flag to allow reflexive dlopens.
10908
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10909
 
 
10910
 
# Compiler flag to generate shared objects directly from archives.
10911
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10912
 
 
10913
 
# Compiler flag to generate thread-safe objects.
10914
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10915
 
 
10916
 
# Library versioning type.
10917
 
version_type=$version_type
10918
 
 
10919
 
# Format of library name prefix.
10920
 
libname_spec=$lt_libname_spec
10921
 
 
10922
 
# List of archive names.  First name is the real one, the rest are links.
10923
 
# The last name is the one that the linker finds with -lNAME.
10924
 
library_names_spec=$lt_library_names_spec
10925
 
 
10926
 
# The coded name of the library, if different from the real name.
10927
 
soname_spec=$lt_soname_spec
10928
 
 
10929
 
# Commands used to build and install an old-style archive.
10930
 
RANLIB=$lt_RANLIB
10931
 
old_archive_cmds=$lt_old_archive_cmds
10932
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10933
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10934
 
 
10935
 
# Create an old-style archive from a shared archive.
10936
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10937
 
 
10938
 
# Create a temporary old-style archive to link instead of a shared archive.
10939
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10940
 
 
10941
 
# Commands used to build and install a shared archive.
10942
 
archive_cmds=$lt_archive_cmds
10943
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10944
 
postinstall_cmds=$lt_postinstall_cmds
10945
 
postuninstall_cmds=$lt_postuninstall_cmds
10946
 
 
10947
 
# Commands used to build a loadable module (assumed same as above if empty)
10948
 
module_cmds=$lt_module_cmds
10949
 
module_expsym_cmds=$lt_module_expsym_cmds
10950
 
 
10951
 
# Commands to strip libraries.
10952
 
old_striplib=$lt_old_striplib
10953
 
striplib=$lt_striplib
10954
 
 
10955
 
# Dependencies to place before the objects being linked to create a
10956
 
# shared library.
10957
 
predep_objects=$lt_predep_objects
10958
 
 
10959
 
# Dependencies to place after the objects being linked to create a
10960
 
# shared library.
10961
 
postdep_objects=$lt_postdep_objects
10962
 
 
10963
 
# Dependencies to place before the objects being linked to create a
10964
 
# shared library.
10965
 
predeps=$lt_predeps
10966
 
 
10967
 
# Dependencies to place after the objects being linked to create a
10968
 
# shared library.
10969
 
postdeps=$lt_postdeps
10970
 
 
10971
 
# The directories searched by this compiler when creating a shared
10972
 
# library
10973
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10974
 
 
10975
 
# The library search path used internally by the compiler when linking
10976
 
# a shared library.
10977
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10978
 
 
10979
 
# Method to check whether dependent libraries are shared objects.
10980
 
deplibs_check_method=$lt_deplibs_check_method
10981
 
 
10982
 
# Command to use when deplibs_check_method == file_magic.
10983
 
file_magic_cmd=$lt_file_magic_cmd
10984
 
 
10985
 
# Flag that allows shared libraries with undefined symbols to be built.
10986
 
allow_undefined_flag=$lt_allow_undefined_flag
10987
 
 
10988
 
# Flag that forces no undefined symbols.
10989
 
no_undefined_flag=$lt_no_undefined_flag
10990
 
 
10991
 
# Commands used to finish a libtool library installation in a directory.
10992
 
finish_cmds=$lt_finish_cmds
10993
 
 
10994
 
# Same as above, but a single script fragment to be evaled but not shown.
10995
 
finish_eval=$lt_finish_eval
10996
 
 
10997
 
# Take the output of nm and produce a listing of raw symbols and C names.
10998
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10999
 
 
11000
 
# Transform the output of nm in a proper C declaration
11001
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11002
 
 
11003
 
# Transform the output of nm in a C name address pair
11004
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11005
 
 
11006
 
# This is the shared library runtime path variable.
11007
 
runpath_var=$runpath_var
11008
 
 
11009
 
# This is the shared library path variable.
11010
 
shlibpath_var=$shlibpath_var
11011
 
 
11012
 
# Is shlibpath searched before the hard-coded library search path?
11013
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11014
 
 
11015
 
# How to hardcode a shared library path into an executable.
11016
 
hardcode_action=$hardcode_action
11017
 
 
11018
 
# Whether we should hardcode library paths into libraries.
11019
 
hardcode_into_libs=$hardcode_into_libs
11020
 
 
11021
 
# Flag to hardcode \$libdir into a binary during linking.
11022
 
# This must work even if \$libdir does not exist.
11023
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11024
 
 
11025
 
# If ld is used when linking, flag to hardcode \$libdir into
11026
 
# a binary during linking. This must work even if \$libdir does
11027
 
# not exist.
11028
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11029
 
 
11030
 
# Whether we need a single -rpath flag with a separated argument.
11031
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11032
 
 
11033
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11034
 
# resulting binary.
11035
 
hardcode_direct=$hardcode_direct
11036
 
 
11037
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11038
 
# resulting binary.
11039
 
hardcode_minus_L=$hardcode_minus_L
11040
 
 
11041
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11042
 
# the resulting binary.
11043
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
11044
 
 
11045
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
11046
 
# and all subsequent libraries and executables linked against it.
11047
 
hardcode_automatic=$hardcode_automatic
11048
 
 
11049
 
# Variables whose values should be saved in libtool wrapper scripts and
11050
 
# restored at relink time.
11051
 
variables_saved_for_relink="$variables_saved_for_relink"
11052
 
 
11053
 
# Whether libtool must link a program against all its dependency libraries.
11054
 
link_all_deplibs=$link_all_deplibs
11055
 
 
11056
 
# Compile-time system search path for libraries
11057
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11058
 
 
11059
 
# Run-time system search path for libraries
11060
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11061
 
 
11062
 
# Fix the shell variable \$srcfile for the compiler.
11063
 
fix_srcfile_path=$lt_fix_srcfile_path
11064
 
 
11065
 
# Set to yes if exported symbols are required.
11066
 
always_export_symbols=$always_export_symbols
11067
 
 
11068
 
# The commands to list exported symbols.
11069
 
export_symbols_cmds=$lt_export_symbols_cmds
11070
 
 
11071
 
# The commands to extract the exported symbol list from a shared archive.
11072
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11073
 
 
11074
 
# Symbols that should not be listed in the preloaded symbols.
11075
 
exclude_expsyms=$lt_exclude_expsyms
11076
 
 
11077
 
# Symbols that must always be exported.
11078
 
include_expsyms=$lt_include_expsyms
11079
 
 
11080
 
# ### END LIBTOOL CONFIG
11081
 
 
11082
 
__EOF__
11083
 
 
11084
 
 
11085
 
  case $host_os in
11086
 
  aix3*)
11087
 
    cat <<\EOF >> "$cfgfile"
11088
 
 
11089
 
# AIX sometimes has problems with the GCC collect2 program.  For some
11090
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
11091
 
# vanish in a puff of smoke.
11092
 
if test "X${COLLECT_NAMES+set}" != Xset; then
11093
 
  COLLECT_NAMES=
11094
 
  export COLLECT_NAMES
11095
 
fi
11096
 
EOF
11097
 
    ;;
11098
 
  esac
11099
 
 
11100
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11101
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11102
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11103
 
  # is reportedly fixed, but why not run on old versions too?
11104
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11105
 
 
11106
 
  mv -f "$cfgfile" "$ofile" || \
11107
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11108
 
  chmod +x "$ofile"
11109
 
 
11110
 
else
11111
 
  # If there is no Makefile yet, we rely on a make rule to execute
11112
 
  # `config.status --recheck' to rerun these tests and create the
11113
 
  # libtool script then.
11114
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11115
 
  if test -f "$ltmain_in"; then
11116
 
    test -f Makefile && make "$ltmain"
11117
 
  fi
11118
 
fi
11119
 
 
11120
 
 
11121
 
ac_ext=c
11122
 
ac_cpp='$CPP $CPPFLAGS'
11123
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11124
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11125
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11126
 
 
11127
 
CC="$lt_save_CC"
11128
 
 
11129
 
 
11130
 
# Check whether --with-tags was given.
11131
 
if test "${with_tags+set}" = set; then
11132
 
  withval=$with_tags; tagnames="$withval"
11133
 
fi
11134
 
 
11135
 
 
11136
 
if test -f "$ltmain" && test -n "$tagnames"; then
11137
 
  if test ! -f "${ofile}"; then
11138
 
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11139
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11140
 
  fi
11141
 
 
11142
 
  if test -z "$LTCC"; then
11143
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11144
 
    if test -z "$LTCC"; then
11145
 
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11146
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11147
 
    else
11148
 
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11149
 
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11150
 
    fi
11151
 
  fi
11152
 
  if test -z "$LTCFLAGS"; then
11153
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11154
 
  fi
11155
 
 
11156
 
  # Extract list of available tagged configurations in $ofile.
11157
 
  # Note that this assumes the entire list is on one line.
11158
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11159
 
 
11160
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11161
 
  for tagname in $tagnames; do
11162
 
    IFS="$lt_save_ifs"
11163
 
    # Check whether tagname contains only valid characters
11164
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11165
 
    "") ;;
11166
 
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11167
 
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11168
 
   { (exit 1); exit 1; }; }
11169
 
        ;;
11170
 
    esac
11171
 
 
11172
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11173
 
    then
11174
 
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11175
 
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11176
 
   { (exit 1); exit 1; }; }
11177
 
    fi
11178
 
 
11179
 
    # Update the list of available tags.
11180
 
    if test -n "$tagname"; then
11181
 
      echo appending configuration tag \"$tagname\" to $ofile
11182
 
 
11183
 
      case $tagname in
11184
 
      CXX)
11185
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11186
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11187
 
            (test "X$CXX" != "Xg++"))) ; then
11188
 
          ac_ext=cpp
11189
 
ac_cpp='$CXXCPP $CPPFLAGS'
11190
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
archive_cmds_need_lc_CXX=no
11198
 
allow_undefined_flag_CXX=
11199
 
always_export_symbols_CXX=no
11200
 
archive_expsym_cmds_CXX=
11201
 
export_dynamic_flag_spec_CXX=
11202
 
hardcode_direct_CXX=no
11203
 
hardcode_libdir_flag_spec_CXX=
11204
 
hardcode_libdir_flag_spec_ld_CXX=
11205
 
hardcode_libdir_separator_CXX=
11206
 
hardcode_minus_L_CXX=no
11207
 
hardcode_shlibpath_var_CXX=unsupported
11208
 
hardcode_automatic_CXX=no
11209
 
module_cmds_CXX=
11210
 
module_expsym_cmds_CXX=
11211
 
link_all_deplibs_CXX=unknown
11212
 
old_archive_cmds_CXX=$old_archive_cmds
11213
 
no_undefined_flag_CXX=
11214
 
whole_archive_flag_spec_CXX=
11215
 
enable_shared_with_static_runtimes_CXX=no
11216
 
 
11217
 
# Dependencies to place before and after the object being linked:
11218
 
predep_objects_CXX=
11219
 
postdep_objects_CXX=
11220
 
predeps_CXX=
11221
 
postdeps_CXX=
11222
 
compiler_lib_search_path_CXX=
11223
 
compiler_lib_search_dirs_CXX=
11224
 
 
11225
 
# Source file extension for C++ test sources.
11226
 
ac_ext=cpp
11227
 
 
11228
 
# Object file extension for compiled C++ test sources.
11229
 
objext=o
11230
 
objext_CXX=$objext
11231
 
 
11232
 
# Code to be used in simple compile tests
11233
 
lt_simple_compile_test_code="int some_variable = 0;"
11234
 
 
11235
 
# Code to be used in simple link tests
11236
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11237
 
 
11238
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11239
 
 
11240
 
# If no C compiler was specified, use CC.
11241
 
LTCC=${LTCC-"$CC"}
11242
 
 
11243
 
# If no C compiler flags were specified, use CFLAGS.
11244
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11245
 
 
11246
 
# Allow CC to be a program name with arguments.
11247
 
compiler=$CC
11248
 
 
11249
 
 
11250
 
# save warnings/boilerplate of simple test code
11251
 
ac_outfile=conftest.$ac_objext
11252
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11253
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11254
 
_lt_compiler_boilerplate=`cat conftest.err`
11255
 
$rm conftest*
11256
 
 
11257
 
ac_outfile=conftest.$ac_objext
11258
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11259
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11260
 
_lt_linker_boilerplate=`cat conftest.err`
11261
 
$rm -r conftest*
11262
 
 
11263
 
 
11264
 
# Allow CC to be a program name with arguments.
11265
 
lt_save_CC=$CC
11266
 
lt_save_LD=$LD
11267
 
lt_save_GCC=$GCC
11268
 
GCC=$GXX
11269
 
lt_save_with_gnu_ld=$with_gnu_ld
11270
 
lt_save_path_LD=$lt_cv_path_LD
11271
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11272
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11273
 
else
11274
 
  $as_unset lt_cv_prog_gnu_ld
11275
 
fi
11276
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11277
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11278
 
else
11279
 
  $as_unset lt_cv_path_LD
11280
 
fi
11281
 
test -z "${LDCXX+set}" || LD=$LDCXX
11282
 
CC=${CXX-"c++"}
11283
 
compiler=$CC
11284
 
compiler_CXX=$CC
11285
 
for cc_temp in $compiler""; do
11286
 
  case $cc_temp in
11287
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11288
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11289
 
    \-*) ;;
11290
 
    *) break;;
11291
 
  esac
11292
 
done
11293
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11294
 
 
11295
 
 
11296
 
# We don't want -fno-exception wen compiling C++ code, so set the
11297
 
# no_builtin_flag separately
11298
 
if test "$GXX" = yes; then
11299
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11300
 
else
11301
 
  lt_prog_compiler_no_builtin_flag_CXX=
11302
 
fi
11303
 
 
11304
 
if test "$GXX" = yes; then
11305
 
  # Set up default GNU C++ configuration
11306
 
 
11307
 
 
11308
 
# Check whether --with-gnu-ld was given.
11309
 
if test "${with_gnu_ld+set}" = set; then
11310
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11311
 
else
11312
 
  with_gnu_ld=no
11313
 
fi
11314
 
 
11315
 
ac_prog=ld
11316
 
if test "$GCC" = yes; then
11317
 
  # Check if gcc -print-prog-name=ld gives a path.
11318
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11319
 
$as_echo_n "checking for ld used by $CC... " >&6; }
11320
 
  case $host in
11321
 
  *-*-mingw*)
11322
 
    # gcc leaves a trailing carriage return which upsets mingw
11323
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11324
 
  *)
11325
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11326
 
  esac
11327
 
  case $ac_prog in
11328
 
    # Accept absolute paths.
11329
 
    [\\/]* | ?:[\\/]*)
11330
 
      re_direlt='/[^/][^/]*/\.\./'
11331
 
      # Canonicalize the pathname of ld
11332
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11333
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11334
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11335
 
      done
11336
 
      test -z "$LD" && LD="$ac_prog"
11337
 
      ;;
11338
 
  "")
11339
 
    # If it fails, then pretend we aren't using GCC.
11340
 
    ac_prog=ld
11341
 
    ;;
11342
 
  *)
11343
 
    # If it is relative, then search for the first ld in PATH.
11344
 
    with_gnu_ld=unknown
11345
 
    ;;
11346
 
  esac
11347
 
elif test "$with_gnu_ld" = yes; then
11348
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11349
 
$as_echo_n "checking for GNU ld... " >&6; }
11350
 
else
11351
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11352
 
$as_echo_n "checking for non-GNU ld... " >&6; }
11353
 
fi
11354
 
if test "${lt_cv_path_LD+set}" = set; then
11355
 
  $as_echo_n "(cached) " >&6
11356
 
else
11357
 
  if test -z "$LD"; then
11358
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359
 
  for ac_dir in $PATH; do
11360
 
    IFS="$lt_save_ifs"
11361
 
    test -z "$ac_dir" && ac_dir=.
11362
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11364
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11365
 
      # but apparently some variants of GNU ld only accept -v.
11366
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11367
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368
 
      *GNU* | *'with BFD'*)
11369
 
        test "$with_gnu_ld" != no && break
11370
 
        ;;
11371
 
      *)
11372
 
        test "$with_gnu_ld" != yes && break
11373
 
        ;;
11374
 
      esac
11375
 
    fi
11376
 
  done
11377
 
  IFS="$lt_save_ifs"
11378
 
else
11379
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11380
 
fi
11381
 
fi
11382
 
 
11383
 
LD="$lt_cv_path_LD"
11384
 
if test -n "$LD"; then
11385
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11386
 
$as_echo "$LD" >&6; }
11387
 
else
11388
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
11389
 
$as_echo "no" >&6; }
11390
 
fi
11391
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11392
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11393
 
   { (exit 1); exit 1; }; }
11394
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11395
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11396
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11397
 
  $as_echo_n "(cached) " >&6
11398
 
else
11399
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11400
 
case `$LD -v 2>&1 </dev/null` in
11401
 
*GNU* | *'with BFD'*)
11402
 
  lt_cv_prog_gnu_ld=yes
11403
 
  ;;
11404
 
*)
11405
 
  lt_cv_prog_gnu_ld=no
11406
 
  ;;
11407
 
esac
11408
 
fi
11409
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11410
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11411
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11412
 
 
11413
 
 
11414
 
 
11415
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11416
 
  # archiving commands below assume that GNU ld is being used.
11417
 
  if test "$with_gnu_ld" = yes; then
11418
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419
 
    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'
11420
 
 
11421
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11422
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423
 
 
11424
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11425
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11426
 
    #     investigate it a little bit more. (MM)
11427
 
    wlarc='${wl}'
11428
 
 
11429
 
    # ancient GNU ld didn't support --whole-archive et. al.
11430
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11431
 
        grep 'no-whole-archive' > /dev/null; then
11432
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11433
 
    else
11434
 
      whole_archive_flag_spec_CXX=
11435
 
    fi
11436
 
  else
11437
 
    with_gnu_ld=no
11438
 
    wlarc=
11439
 
 
11440
 
    # A generic and very simple default shared library creation
11441
 
    # command for GNU C++ for the case where it uses the native
11442
 
    # linker, instead of GNU ld.  If possible, this setting should
11443
 
    # overridden to take advantage of the native linker features on
11444
 
    # the platform it is being used on.
11445
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11446
 
  fi
11447
 
 
11448
 
  # Commands to make compiler produce verbose output that lists
11449
 
  # what "hidden" libraries, object files and flags are used when
11450
 
  # linking a shared library.
11451
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11452
 
 
11453
 
else
11454
 
  GXX=no
11455
 
  with_gnu_ld=no
11456
 
  wlarc=
11457
 
fi
11458
 
 
11459
 
# PORTME: fill in a description of your system's C++ link characteristics
11460
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11461
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11462
 
ld_shlibs_CXX=yes
11463
 
case $host_os in
11464
 
  aix3*)
11465
 
    # FIXME: insert proper C++ library support
11466
 
    ld_shlibs_CXX=no
11467
 
    ;;
11468
 
  aix[4-9]*)
11469
 
    if test "$host_cpu" = ia64; then
11470
 
      # On IA64, the linker does run time linking by default, so we don't
11471
 
      # have to do anything special.
11472
 
      aix_use_runtimelinking=no
11473
 
      exp_sym_flag='-Bexport'
11474
 
      no_entry_flag=""
11475
 
    else
11476
 
      aix_use_runtimelinking=no
11477
 
 
11478
 
      # Test if we are trying to use run time linking or normal
11479
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11480
 
      # need to do runtime linking.
11481
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11482
 
        for ld_flag in $LDFLAGS; do
11483
 
          case $ld_flag in
11484
 
          *-brtl*)
11485
 
            aix_use_runtimelinking=yes
11486
 
            break
11487
 
            ;;
11488
 
          esac
11489
 
        done
11490
 
        ;;
11491
 
      esac
11492
 
 
11493
 
      exp_sym_flag='-bexport'
11494
 
      no_entry_flag='-bnoentry'
11495
 
    fi
11496
 
 
11497
 
    # When large executables or shared objects are built, AIX ld can
11498
 
    # have problems creating the table of contents.  If linking a library
11499
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11500
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11501
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11502
 
 
11503
 
    archive_cmds_CXX=''
11504
 
    hardcode_direct_CXX=yes
11505
 
    hardcode_libdir_separator_CXX=':'
11506
 
    link_all_deplibs_CXX=yes
11507
 
 
11508
 
    if test "$GXX" = yes; then
11509
 
      case $host_os in aix4.[012]|aix4.[012].*)
11510
 
      # We only want to do this on AIX 4.2 and lower, the check
11511
 
      # below for broken collect2 doesn't work under 4.3+
11512
 
        collect2name=`${CC} -print-prog-name=collect2`
11513
 
        if test -f "$collect2name" && \
11514
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11515
 
        then
11516
 
          # We have reworked collect2
11517
 
          :
11518
 
        else
11519
 
          # We have old collect2
11520
 
          hardcode_direct_CXX=unsupported
11521
 
          # It fails to find uninstalled libraries when the uninstalled
11522
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11523
 
          # to unsupported forces relinking
11524
 
          hardcode_minus_L_CXX=yes
11525
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11526
 
          hardcode_libdir_separator_CXX=
11527
 
        fi
11528
 
        ;;
11529
 
      esac
11530
 
      shared_flag='-shared'
11531
 
      if test "$aix_use_runtimelinking" = yes; then
11532
 
        shared_flag="$shared_flag "'${wl}-G'
11533
 
      fi
11534
 
    else
11535
 
      # not using gcc
11536
 
      if test "$host_cpu" = ia64; then
11537
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11538
 
        # chokes on -Wl,-G. The following line is correct:
11539
 
        shared_flag='-G'
11540
 
      else
11541
 
        if test "$aix_use_runtimelinking" = yes; then
11542
 
          shared_flag='${wl}-G'
11543
 
        else
11544
 
          shared_flag='${wl}-bM:SRE'
11545
 
        fi
11546
 
      fi
11547
 
    fi
11548
 
 
11549
 
    # It seems that -bexpall does not export symbols beginning with
11550
 
    # underscore (_), so it is better to generate a list of symbols to export.
11551
 
    always_export_symbols_CXX=yes
11552
 
    if test "$aix_use_runtimelinking" = yes; then
11553
 
      # Warning - without using the other runtime loading flags (-brtl),
11554
 
      # -berok will link without error, but may produce a broken library.
11555
 
      allow_undefined_flag_CXX='-berok'
11556
 
      # Determine the default libpath from the value encoded in an empty executable.
11557
 
      cat >conftest.$ac_ext <<_ACEOF
11558
 
/* confdefs.h.  */
11559
 
_ACEOF
11560
 
cat confdefs.h >>conftest.$ac_ext
11561
 
cat >>conftest.$ac_ext <<_ACEOF
11562
 
/* end confdefs.h.  */
11563
 
 
11564
 
int
11565
 
main ()
11566
 
{
11567
 
 
11568
 
  ;
11569
 
  return 0;
11570
 
}
11571
 
_ACEOF
11572
 
rm -f conftest.$ac_objext conftest$ac_exeext
11573
 
if { (ac_try="$ac_link"
11574
 
case "(($ac_try" in
11575
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576
 
  *) ac_try_echo=$ac_try;;
11577
 
esac
11578
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579
 
$as_echo "$ac_try_echo") >&5
11580
 
  (eval "$ac_link") 2>conftest.er1
11581
 
  ac_status=$?
11582
 
  grep -v '^ *+' conftest.er1 >conftest.err
11583
 
  rm -f conftest.er1
11584
 
  cat conftest.err >&5
11585
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586
 
  (exit $ac_status); } && {
11587
 
         test -z "$ac_cxx_werror_flag" ||
11588
 
         test ! -s conftest.err
11589
 
       } && test -s conftest$ac_exeext && {
11590
 
         test "$cross_compiling" = yes ||
11591
 
         $as_test_x conftest$ac_exeext
11592
 
       }; then
11593
 
 
11594
 
lt_aix_libpath_sed='
11595
 
    /Import File Strings/,/^$/ {
11596
 
        /^0/ {
11597
 
            s/^0  *\(.*\)$/\1/
11598
 
            p
11599
 
        }
11600
 
    }'
11601
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11602
 
# Check for a 64-bit object if we didn't find anything.
11603
 
if test -z "$aix_libpath"; then
11604
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11605
 
fi
11606
 
else
11607
 
  $as_echo "$as_me: failed program was:" >&5
11608
 
sed 's/^/| /' conftest.$ac_ext >&5
11609
 
 
11610
 
 
11611
 
fi
11612
 
 
11613
 
rm -rf conftest.dSYM
11614
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11615
 
      conftest$ac_exeext conftest.$ac_ext
11616
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11617
 
 
11618
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11619
 
 
11620
 
      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"
11621
 
     else
11622
 
      if test "$host_cpu" = ia64; then
11623
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11624
 
        allow_undefined_flag_CXX="-z nodefs"
11625
 
        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"
11626
 
      else
11627
 
        # Determine the default libpath from the value encoded in an empty executable.
11628
 
        cat >conftest.$ac_ext <<_ACEOF
11629
 
/* confdefs.h.  */
11630
 
_ACEOF
11631
 
cat confdefs.h >>conftest.$ac_ext
11632
 
cat >>conftest.$ac_ext <<_ACEOF
11633
 
/* end confdefs.h.  */
11634
 
 
11635
 
int
11636
 
main ()
11637
 
{
11638
 
 
11639
 
  ;
11640
 
  return 0;
11641
 
}
11642
 
_ACEOF
11643
 
rm -f conftest.$ac_objext conftest$ac_exeext
11644
 
if { (ac_try="$ac_link"
11645
 
case "(($ac_try" in
11646
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647
 
  *) ac_try_echo=$ac_try;;
11648
 
esac
11649
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650
 
$as_echo "$ac_try_echo") >&5
11651
 
  (eval "$ac_link") 2>conftest.er1
11652
 
  ac_status=$?
11653
 
  grep -v '^ *+' conftest.er1 >conftest.err
11654
 
  rm -f conftest.er1
11655
 
  cat conftest.err >&5
11656
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657
 
  (exit $ac_status); } && {
11658
 
         test -z "$ac_cxx_werror_flag" ||
11659
 
         test ! -s conftest.err
11660
 
       } && test -s conftest$ac_exeext && {
11661
 
         test "$cross_compiling" = yes ||
11662
 
         $as_test_x conftest$ac_exeext
11663
 
       }; then
11664
 
 
11665
 
lt_aix_libpath_sed='
11666
 
    /Import File Strings/,/^$/ {
11667
 
        /^0/ {
11668
 
            s/^0  *\(.*\)$/\1/
11669
 
            p
11670
 
        }
11671
 
    }'
11672
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11673
 
# Check for a 64-bit object if we didn't find anything.
11674
 
if test -z "$aix_libpath"; then
11675
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676
 
fi
11677
 
else
11678
 
  $as_echo "$as_me: failed program was:" >&5
11679
 
sed 's/^/| /' conftest.$ac_ext >&5
11680
 
 
11681
 
 
11682
 
fi
11683
 
 
11684
 
rm -rf conftest.dSYM
11685
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11686
 
      conftest$ac_exeext conftest.$ac_ext
11687
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11688
 
 
11689
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690
 
        # Warning - without using the other run time loading flags,
11691
 
        # -berok will link without error, but may produce a broken library.
11692
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11693
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11694
 
        # Exported symbols can be pulled into shared objects from archives
11695
 
        whole_archive_flag_spec_CXX='$convenience'
11696
 
        archive_cmds_need_lc_CXX=yes
11697
 
        # This is similar to how AIX traditionally builds its shared libraries.
11698
 
        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'
11699
 
      fi
11700
 
    fi
11701
 
    ;;
11702
 
 
11703
 
  beos*)
11704
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11705
 
      allow_undefined_flag_CXX=unsupported
11706
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11707
 
      # support --undefined.  This deserves some investigation.  FIXME
11708
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11709
 
    else
11710
 
      ld_shlibs_CXX=no
11711
 
    fi
11712
 
    ;;
11713
 
 
11714
 
  chorus*)
11715
 
    case $cc_basename in
11716
 
      *)
11717
 
        # FIXME: insert proper C++ library support
11718
 
        ld_shlibs_CXX=no
11719
 
        ;;
11720
 
    esac
11721
 
    ;;
11722
 
 
11723
 
  cygwin* | mingw* | pw32*)
11724
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11725
 
    # as there is no search path for DLLs.
11726
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11727
 
    allow_undefined_flag_CXX=unsupported
11728
 
    always_export_symbols_CXX=no
11729
 
    enable_shared_with_static_runtimes_CXX=yes
11730
 
 
11731
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11732
 
      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'
11733
 
      # If the export-symbols file already is a .def file (1st line
11734
 
      # is EXPORTS), use it as is; otherwise, prepend...
11735
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11736
 
        cp $export_symbols $output_objdir/$soname.def;
11737
 
      else
11738
 
        echo EXPORTS > $output_objdir/$soname.def;
11739
 
        cat $export_symbols >> $output_objdir/$soname.def;
11740
 
      fi~
11741
 
      $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'
11742
 
    else
11743
 
      ld_shlibs_CXX=no
11744
 
    fi
11745
 
  ;;
11746
 
      darwin* | rhapsody*)
11747
 
      archive_cmds_need_lc_CXX=no
11748
 
      hardcode_direct_CXX=no
11749
 
      hardcode_automatic_CXX=yes
11750
 
      hardcode_shlibpath_var_CXX=unsupported
11751
 
      whole_archive_flag_spec_CXX=''
11752
 
      link_all_deplibs_CXX=yes
11753
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11754
 
      if test "$GXX" = yes ; then
11755
 
      output_verbose_link_cmd='echo'
11756
 
      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}"
11757
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11758
 
      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}"
11759
 
      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}"
11760
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11761
 
        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}"
11762
 
        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}"
11763
 
      fi
11764
 
      else
11765
 
      case $cc_basename in
11766
 
        xlc*)
11767
 
         output_verbose_link_cmd='echo'
11768
 
          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'
11769
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11770
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11771
 
          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}'
11772
 
          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}'
11773
 
          ;;
11774
 
       *)
11775
 
         ld_shlibs_CXX=no
11776
 
          ;;
11777
 
      esac
11778
 
      fi
11779
 
        ;;
11780
 
 
11781
 
  dgux*)
11782
 
    case $cc_basename in
11783
 
      ec++*)
11784
 
        # FIXME: insert proper C++ library support
11785
 
        ld_shlibs_CXX=no
11786
 
        ;;
11787
 
      ghcx*)
11788
 
        # Green Hills C++ Compiler
11789
 
        # FIXME: insert proper C++ library support
11790
 
        ld_shlibs_CXX=no
11791
 
        ;;
11792
 
      *)
11793
 
        # FIXME: insert proper C++ library support
11794
 
        ld_shlibs_CXX=no
11795
 
        ;;
11796
 
    esac
11797
 
    ;;
11798
 
  freebsd[12]*)
11799
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11800
 
    ld_shlibs_CXX=no
11801
 
    ;;
11802
 
  freebsd-elf*)
11803
 
    archive_cmds_need_lc_CXX=no
11804
 
    ;;
11805
 
  freebsd* | dragonfly*)
11806
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11807
 
    # conventions
11808
 
    ld_shlibs_CXX=yes
11809
 
    ;;
11810
 
  gnu*)
11811
 
    ;;
11812
 
  hpux9*)
11813
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814
 
    hardcode_libdir_separator_CXX=:
11815
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11816
 
    hardcode_direct_CXX=yes
11817
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11818
 
                                # but as the default
11819
 
                                # location of the library.
11820
 
 
11821
 
    case $cc_basename in
11822
 
    CC*)
11823
 
      # FIXME: insert proper C++ library support
11824
 
      ld_shlibs_CXX=no
11825
 
      ;;
11826
 
    aCC*)
11827
 
      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'
11828
 
      # Commands to make compiler produce verbose output that lists
11829
 
      # what "hidden" libraries, object files and flags are used when
11830
 
      # linking a shared library.
11831
 
      #
11832
 
      # There doesn't appear to be a way to prevent this compiler from
11833
 
      # explicitly linking system object files so we need to strip them
11834
 
      # from the output so that they don't get included in the library
11835
 
      # dependencies.
11836
 
      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'
11837
 
      ;;
11838
 
    *)
11839
 
      if test "$GXX" = yes; then
11840
 
        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'
11841
 
      else
11842
 
        # FIXME: insert proper C++ library support
11843
 
        ld_shlibs_CXX=no
11844
 
      fi
11845
 
      ;;
11846
 
    esac
11847
 
    ;;
11848
 
  hpux10*|hpux11*)
11849
 
    if test $with_gnu_ld = no; then
11850
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11851
 
      hardcode_libdir_separator_CXX=:
11852
 
 
11853
 
      case $host_cpu in
11854
 
      hppa*64*|ia64*) ;;
11855
 
      *)
11856
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11857
 
        ;;
11858
 
      esac
11859
 
    fi
11860
 
    case $host_cpu in
11861
 
    hppa*64*|ia64*)
11862
 
      hardcode_direct_CXX=no
11863
 
      hardcode_shlibpath_var_CXX=no
11864
 
      ;;
11865
 
    *)
11866
 
      hardcode_direct_CXX=yes
11867
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11868
 
                                              # but as the default
11869
 
                                              # location of the library.
11870
 
      ;;
11871
 
    esac
11872
 
 
11873
 
    case $cc_basename in
11874
 
      CC*)
11875
 
        # FIXME: insert proper C++ library support
11876
 
        ld_shlibs_CXX=no
11877
 
        ;;
11878
 
      aCC*)
11879
 
        case $host_cpu in
11880
 
        hppa*64*)
11881
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11882
 
          ;;
11883
 
        ia64*)
11884
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11885
 
          ;;
11886
 
        *)
11887
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11888
 
          ;;
11889
 
        esac
11890
 
        # Commands to make compiler produce verbose output that lists
11891
 
        # what "hidden" libraries, object files and flags are used when
11892
 
        # linking a shared library.
11893
 
        #
11894
 
        # There doesn't appear to be a way to prevent this compiler from
11895
 
        # explicitly linking system object files so we need to strip them
11896
 
        # from the output so that they don't get included in the library
11897
 
        # dependencies.
11898
 
        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'
11899
 
        ;;
11900
 
      *)
11901
 
        if test "$GXX" = yes; then
11902
 
          if test $with_gnu_ld = no; then
11903
 
            case $host_cpu in
11904
 
            hppa*64*)
11905
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11906
 
              ;;
11907
 
            ia64*)
11908
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11909
 
              ;;
11910
 
            *)
11911
 
              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'
11912
 
              ;;
11913
 
            esac
11914
 
          fi
11915
 
        else
11916
 
          # FIXME: insert proper C++ library support
11917
 
          ld_shlibs_CXX=no
11918
 
        fi
11919
 
        ;;
11920
 
    esac
11921
 
    ;;
11922
 
  interix[3-9]*)
11923
 
    hardcode_direct_CXX=no
11924
 
    hardcode_shlibpath_var_CXX=no
11925
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11926
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11927
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11928
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11929
 
    # default) and relocated if they conflict, which is a slow very memory
11930
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11931
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11932
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11933
 
    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'
11934
 
    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'
11935
 
    ;;
11936
 
  irix5* | irix6*)
11937
 
    case $cc_basename in
11938
 
      CC*)
11939
 
        # SGI C++
11940
 
        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'
11941
 
 
11942
 
        # Archives containing C++ object files must be created using
11943
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11944
 
        # necessary to make sure instantiated templates are included
11945
 
        # in the archive.
11946
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11947
 
        ;;
11948
 
      *)
11949
 
        if test "$GXX" = yes; then
11950
 
          if test "$with_gnu_ld" = no; then
11951
 
            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'
11952
 
          else
11953
 
            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'
11954
 
          fi
11955
 
        fi
11956
 
        link_all_deplibs_CXX=yes
11957
 
        ;;
11958
 
    esac
11959
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11960
 
    hardcode_libdir_separator_CXX=:
11961
 
    ;;
11962
 
  linux* | k*bsd*-gnu)
11963
 
    case $cc_basename in
11964
 
      KCC*)
11965
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11966
 
 
11967
 
        # KCC will only create a shared library if the output file
11968
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11969
 
        # to its proper name (with version) after linking.
11970
 
        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'
11971
 
        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'
11972
 
        # Commands to make compiler produce verbose output that lists
11973
 
        # what "hidden" libraries, object files and flags are used when
11974
 
        # linking a shared library.
11975
 
        #
11976
 
        # There doesn't appear to be a way to prevent this compiler from
11977
 
        # explicitly linking system object files so we need to strip them
11978
 
        # from the output so that they don't get included in the library
11979
 
        # dependencies.
11980
 
        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'
11981
 
 
11982
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11983
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984
 
 
11985
 
        # Archives containing C++ object files must be created using
11986
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11987
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11988
 
        ;;
11989
 
      icpc*)
11990
 
        # Intel C++
11991
 
        with_gnu_ld=yes
11992
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11993
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11994
 
        # earlier do not add the objects themselves.
11995
 
        case `$CC -V 2>&1` in
11996
 
        *"Version 7."*)
11997
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11998
 
          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'
11999
 
          ;;
12000
 
        *)  # Version 8.0 or newer
12001
 
          tmp_idyn=
12002
 
          case $host_cpu in
12003
 
            ia64*) tmp_idyn=' -i_dynamic';;
12004
 
          esac
12005
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12006
 
          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'
12007
 
          ;;
12008
 
        esac
12009
 
        archive_cmds_need_lc_CXX=no
12010
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12011
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12012
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12013
 
        ;;
12014
 
      pgCC* | pgcpp*)
12015
 
        # Portland Group C++ compiler
12016
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12017
 
        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'
12018
 
 
12019
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12020
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12021
 
        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'
12022
 
        ;;
12023
 
      cxx*)
12024
 
        # Compaq C++
12025
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12026
 
        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'
12027
 
 
12028
 
        runpath_var=LD_RUN_PATH
12029
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12030
 
        hardcode_libdir_separator_CXX=:
12031
 
 
12032
 
        # Commands to make compiler produce verbose output that lists
12033
 
        # what "hidden" libraries, object files and flags are used when
12034
 
        # linking a shared library.
12035
 
        #
12036
 
        # There doesn't appear to be a way to prevent this compiler from
12037
 
        # explicitly linking system object files so we need to strip them
12038
 
        # from the output so that they don't get included in the library
12039
 
        # dependencies.
12040
 
        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'
12041
 
        ;;
12042
 
      *)
12043
 
        case `$CC -V 2>&1 | sed 5q` in
12044
 
        *Sun\ C*)
12045
 
          # Sun C++ 5.9
12046
 
          no_undefined_flag_CXX=' -zdefs'
12047
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12048
 
          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'
12049
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12050
 
          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'
12051
 
 
12052
 
          # Not sure whether something based on
12053
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12054
 
          # would be better.
12055
 
          output_verbose_link_cmd='echo'
12056
 
 
12057
 
          # Archives containing C++ object files must be created using
12058
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12059
 
          # necessary to make sure instantiated templates are included
12060
 
          # in the archive.
12061
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12062
 
          ;;
12063
 
        esac
12064
 
        ;;
12065
 
    esac
12066
 
    ;;
12067
 
  lynxos*)
12068
 
    # FIXME: insert proper C++ library support
12069
 
    ld_shlibs_CXX=no
12070
 
    ;;
12071
 
  m88k*)
12072
 
    # FIXME: insert proper C++ library support
12073
 
    ld_shlibs_CXX=no
12074
 
    ;;
12075
 
  mvs*)
12076
 
    case $cc_basename in
12077
 
      cxx*)
12078
 
        # FIXME: insert proper C++ library support
12079
 
        ld_shlibs_CXX=no
12080
 
        ;;
12081
 
      *)
12082
 
        # FIXME: insert proper C++ library support
12083
 
        ld_shlibs_CXX=no
12084
 
        ;;
12085
 
    esac
12086
 
    ;;
12087
 
  netbsd*)
12088
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12089
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12090
 
      wlarc=
12091
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12092
 
      hardcode_direct_CXX=yes
12093
 
      hardcode_shlibpath_var_CXX=no
12094
 
    fi
12095
 
    # Workaround some broken pre-1.5 toolchains
12096
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12097
 
    ;;
12098
 
  openbsd2*)
12099
 
    # C++ shared libraries are fairly broken
12100
 
    ld_shlibs_CXX=no
12101
 
    ;;
12102
 
  openbsd*)
12103
 
    if test -f /usr/libexec/ld.so; then
12104
 
      hardcode_direct_CXX=yes
12105
 
      hardcode_shlibpath_var_CXX=no
12106
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12107
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12110
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12111
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12112
 
      fi
12113
 
      output_verbose_link_cmd='echo'
12114
 
    else
12115
 
      ld_shlibs_CXX=no
12116
 
    fi
12117
 
    ;;
12118
 
  osf3*)
12119
 
    case $cc_basename in
12120
 
      KCC*)
12121
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12122
 
 
12123
 
        # KCC will only create a shared library if the output file
12124
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12125
 
        # to its proper name (with version) after linking.
12126
 
        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'
12127
 
 
12128
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12129
 
        hardcode_libdir_separator_CXX=:
12130
 
 
12131
 
        # Archives containing C++ object files must be created using
12132
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12133
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12134
 
 
12135
 
        ;;
12136
 
      RCC*)
12137
 
        # Rational C++ 2.4.1
12138
 
        # FIXME: insert proper C++ library support
12139
 
        ld_shlibs_CXX=no
12140
 
        ;;
12141
 
      cxx*)
12142
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12143
 
        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'
12144
 
 
12145
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146
 
        hardcode_libdir_separator_CXX=:
12147
 
 
12148
 
        # Commands to make compiler produce verbose output that lists
12149
 
        # what "hidden" libraries, object files and flags are used when
12150
 
        # linking a shared library.
12151
 
        #
12152
 
        # There doesn't appear to be a way to prevent this compiler from
12153
 
        # explicitly linking system object files so we need to strip them
12154
 
        # from the output so that they don't get included in the library
12155
 
        # dependencies.
12156
 
        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'
12157
 
        ;;
12158
 
      *)
12159
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12160
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12161
 
          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'
12162
 
 
12163
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164
 
          hardcode_libdir_separator_CXX=:
12165
 
 
12166
 
          # Commands to make compiler produce verbose output that lists
12167
 
          # what "hidden" libraries, object files and flags are used when
12168
 
          # linking a shared library.
12169
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12170
 
 
12171
 
        else
12172
 
          # FIXME: insert proper C++ library support
12173
 
          ld_shlibs_CXX=no
12174
 
        fi
12175
 
        ;;
12176
 
    esac
12177
 
    ;;
12178
 
  osf4* | osf5*)
12179
 
    case $cc_basename in
12180
 
      KCC*)
12181
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12182
 
 
12183
 
        # KCC will only create a shared library if the output file
12184
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12185
 
        # to its proper name (with version) after linking.
12186
 
        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'
12187
 
 
12188
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189
 
        hardcode_libdir_separator_CXX=:
12190
 
 
12191
 
        # Archives containing C++ object files must be created using
12192
 
        # the KAI C++ compiler.
12193
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12194
 
        ;;
12195
 
      RCC*)
12196
 
        # Rational C++ 2.4.1
12197
 
        # FIXME: insert proper C++ library support
12198
 
        ld_shlibs_CXX=no
12199
 
        ;;
12200
 
      cxx*)
12201
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12202
 
        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'
12203
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12204
 
          echo "-hidden">> $lib.exp~
12205
 
          $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~
12206
 
          $rm $lib.exp'
12207
 
 
12208
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12209
 
        hardcode_libdir_separator_CXX=:
12210
 
 
12211
 
        # Commands to make compiler produce verbose output that lists
12212
 
        # what "hidden" libraries, object files and flags are used when
12213
 
        # linking a shared library.
12214
 
        #
12215
 
        # There doesn't appear to be a way to prevent this compiler from
12216
 
        # explicitly linking system object files so we need to strip them
12217
 
        # from the output so that they don't get included in the library
12218
 
        # dependencies.
12219
 
        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'
12220
 
        ;;
12221
 
      *)
12222
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12223
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12224
 
         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'
12225
 
 
12226
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12227
 
          hardcode_libdir_separator_CXX=:
12228
 
 
12229
 
          # Commands to make compiler produce verbose output that lists
12230
 
          # what "hidden" libraries, object files and flags are used when
12231
 
          # linking a shared library.
12232
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12233
 
 
12234
 
        else
12235
 
          # FIXME: insert proper C++ library support
12236
 
          ld_shlibs_CXX=no
12237
 
        fi
12238
 
        ;;
12239
 
    esac
12240
 
    ;;
12241
 
  psos*)
12242
 
    # FIXME: insert proper C++ library support
12243
 
    ld_shlibs_CXX=no
12244
 
    ;;
12245
 
  sunos4*)
12246
 
    case $cc_basename in
12247
 
      CC*)
12248
 
        # Sun C++ 4.x
12249
 
        # FIXME: insert proper C++ library support
12250
 
        ld_shlibs_CXX=no
12251
 
        ;;
12252
 
      lcc*)
12253
 
        # Lucid
12254
 
        # FIXME: insert proper C++ library support
12255
 
        ld_shlibs_CXX=no
12256
 
        ;;
12257
 
      *)
12258
 
        # FIXME: insert proper C++ library support
12259
 
        ld_shlibs_CXX=no
12260
 
        ;;
12261
 
    esac
12262
 
    ;;
12263
 
  solaris*)
12264
 
    case $cc_basename in
12265
 
      CC*)
12266
 
        # Sun C++ 4.2, 5.x and Centerline C++
12267
 
        archive_cmds_need_lc_CXX=yes
12268
 
        no_undefined_flag_CXX=' -zdefs'
12269
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12270
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271
 
        $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'
12272
 
 
12273
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12274
 
        hardcode_shlibpath_var_CXX=no
12275
 
        case $host_os in
12276
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12277
 
          *)
12278
 
            # The compiler driver will combine and reorder linker options,
12279
 
            # but understands `-z linker_flag'.
12280
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12281
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12282
 
            ;;
12283
 
        esac
12284
 
        link_all_deplibs_CXX=yes
12285
 
 
12286
 
        output_verbose_link_cmd='echo'
12287
 
 
12288
 
        # Archives containing C++ object files must be created using
12289
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12290
 
        # necessary to make sure instantiated templates are included
12291
 
        # in the archive.
12292
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12293
 
        ;;
12294
 
      gcx*)
12295
 
        # Green Hills C++ Compiler
12296
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12297
 
 
12298
 
        # The C++ compiler must be used to create the archive.
12299
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12300
 
        ;;
12301
 
      *)
12302
 
        # GNU C++ compiler with Solaris linker
12303
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12304
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12305
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12306
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12307
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12308
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12309
 
 
12310
 
            # Commands to make compiler produce verbose output that lists
12311
 
            # what "hidden" libraries, object files and flags are used when
12312
 
            # linking a shared library.
12313
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12314
 
          else
12315
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12316
 
            # platform.
12317
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12318
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12319
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12320
 
 
12321
 
            # Commands to make compiler produce verbose output that lists
12322
 
            # what "hidden" libraries, object files and flags are used when
12323
 
            # linking a shared library.
12324
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12325
 
          fi
12326
 
 
12327
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12328
 
          case $host_os in
12329
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12330
 
          *)
12331
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12332
 
            ;;
12333
 
          esac
12334
 
        fi
12335
 
        ;;
12336
 
    esac
12337
 
    ;;
12338
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12339
 
    no_undefined_flag_CXX='${wl}-z,text'
12340
 
    archive_cmds_need_lc_CXX=no
12341
 
    hardcode_shlibpath_var_CXX=no
12342
 
    runpath_var='LD_RUN_PATH'
12343
 
 
12344
 
    case $cc_basename in
12345
 
      CC*)
12346
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12348
 
        ;;
12349
 
      *)
12350
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12351
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12352
 
        ;;
12353
 
    esac
12354
 
    ;;
12355
 
  sysv5* | sco3.2v5* | sco5v6*)
12356
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12357
 
    # link with -lc, and that would cause any symbols used from libc to
12358
 
    # always be unresolved, which means just about no library would
12359
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12360
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12361
 
    # as -z defs.
12362
 
    # For security reasons, it is highly recommended that you always
12363
 
    # use absolute paths for naming shared libraries, and exclude the
12364
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12365
 
    # requires that you compile everything twice, which is a pain.
12366
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12367
 
    # non-empty value in the environment.  Most likely only useful for
12368
 
    # creating official distributions of packages.
12369
 
    # This is a hack until libtool officially supports absolute path
12370
 
    # names for shared libraries.
12371
 
    no_undefined_flag_CXX='${wl}-z,text'
12372
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12373
 
    archive_cmds_need_lc_CXX=no
12374
 
    hardcode_shlibpath_var_CXX=no
12375
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12376
 
    hardcode_libdir_separator_CXX=':'
12377
 
    link_all_deplibs_CXX=yes
12378
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12379
 
    runpath_var='LD_RUN_PATH'
12380
 
 
12381
 
    case $cc_basename in
12382
 
      CC*)
12383
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12384
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12385
 
        ;;
12386
 
      *)
12387
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12388
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12389
 
        ;;
12390
 
    esac
12391
 
    ;;
12392
 
  tandem*)
12393
 
    case $cc_basename in
12394
 
      NCC*)
12395
 
        # NonStop-UX NCC 3.20
12396
 
        # FIXME: insert proper C++ library support
12397
 
        ld_shlibs_CXX=no
12398
 
        ;;
12399
 
      *)
12400
 
        # FIXME: insert proper C++ library support
12401
 
        ld_shlibs_CXX=no
12402
 
        ;;
12403
 
    esac
12404
 
    ;;
12405
 
  vxworks*)
12406
 
    # FIXME: insert proper C++ library support
12407
 
    ld_shlibs_CXX=no
12408
 
    ;;
12409
 
  *)
12410
 
    # FIXME: insert proper C++ library support
12411
 
    ld_shlibs_CXX=no
12412
 
    ;;
12413
 
esac
12414
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12415
 
$as_echo "$ld_shlibs_CXX" >&6; }
12416
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12417
 
 
12418
 
GCC_CXX="$GXX"
12419
 
LD_CXX="$LD"
12420
 
 
12421
 
cat > conftest.$ac_ext <<EOF
12422
 
class Foo
12423
 
{
12424
 
public:
12425
 
  Foo (void) { a = 0; }
12426
 
private:
12427
 
  int a;
12428
 
};
12429
 
EOF
12430
 
 
12431
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432
 
  (eval $ac_compile) 2>&5
12433
 
  ac_status=$?
12434
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435
 
  (exit $ac_status); }; then
12436
 
  # Parse the compiler output and extract the necessary
12437
 
  # objects, libraries and library flags.
12438
 
 
12439
 
  # Sentinel used to keep track of whether or not we are before
12440
 
  # the conftest object file.
12441
 
  pre_test_object_deps_done=no
12442
 
 
12443
 
  # The `*' in the case matches for architectures that use `case' in
12444
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12445
 
  # eval without this substitution.
12446
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12447
 
 
12448
 
  for p in `eval $output_verbose_link_cmd`; do
12449
 
    case $p in
12450
 
 
12451
 
    -L* | -R* | -l*)
12452
 
       # Some compilers place space between "-{L,R}" and the path.
12453
 
       # Remove the space.
12454
 
       if test $p = "-L" \
12455
 
          || test $p = "-R"; then
12456
 
         prev=$p
12457
 
         continue
12458
 
       else
12459
 
         prev=
12460
 
       fi
12461
 
 
12462
 
       if test "$pre_test_object_deps_done" = no; then
12463
 
         case $p in
12464
 
         -L* | -R*)
12465
 
           # Internal compiler library paths should come after those
12466
 
           # provided the user.  The postdeps already come after the
12467
 
           # user supplied libs so there is no need to process them.
12468
 
           if test -z "$compiler_lib_search_path_CXX"; then
12469
 
             compiler_lib_search_path_CXX="${prev}${p}"
12470
 
           else
12471
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12472
 
           fi
12473
 
           ;;
12474
 
         # The "-l" case would never come before the object being
12475
 
         # linked, so don't bother handling this case.
12476
 
         esac
12477
 
       else
12478
 
         if test -z "$postdeps_CXX"; then
12479
 
           postdeps_CXX="${prev}${p}"
12480
 
         else
12481
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12482
 
         fi
12483
 
       fi
12484
 
       ;;
12485
 
 
12486
 
    *.$objext)
12487
 
       # This assumes that the test object file only shows up
12488
 
       # once in the compiler output.
12489
 
       if test "$p" = "conftest.$objext"; then
12490
 
         pre_test_object_deps_done=yes
12491
 
         continue
12492
 
       fi
12493
 
 
12494
 
       if test "$pre_test_object_deps_done" = no; then
12495
 
         if test -z "$predep_objects_CXX"; then
12496
 
           predep_objects_CXX="$p"
12497
 
         else
12498
 
           predep_objects_CXX="$predep_objects_CXX $p"
12499
 
         fi
12500
 
       else
12501
 
         if test -z "$postdep_objects_CXX"; then
12502
 
           postdep_objects_CXX="$p"
12503
 
         else
12504
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12505
 
         fi
12506
 
       fi
12507
 
       ;;
12508
 
 
12509
 
    *) ;; # Ignore the rest.
12510
 
 
12511
 
    esac
12512
 
  done
12513
 
 
12514
 
  # Clean up.
12515
 
  rm -f a.out a.exe
12516
 
else
12517
 
  echo "libtool.m4: error: problem compiling CXX test program"
12518
 
fi
12519
 
 
12520
 
$rm -f confest.$objext
12521
 
 
12522
 
compiler_lib_search_dirs_CXX=
12523
 
if test -n "$compiler_lib_search_path_CXX"; then
12524
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12525
 
fi
12526
 
 
12527
 
# PORTME: override above test on systems where it is broken
12528
 
case $host_os in
12529
 
interix[3-9]*)
12530
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12531
 
  # hack all around it, let's just trust "g++" to DTRT.
12532
 
  predep_objects_CXX=
12533
 
  postdep_objects_CXX=
12534
 
  postdeps_CXX=
12535
 
  ;;
12536
 
 
12537
 
linux*)
12538
 
  case `$CC -V 2>&1 | sed 5q` in
12539
 
  *Sun\ C*)
12540
 
    # Sun C++ 5.9
12541
 
    #
12542
 
    # The more standards-conforming stlport4 library is
12543
 
    # incompatible with the Cstd library. Avoid specifying
12544
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12545
 
    # -library=stlport4 depends on it.
12546
 
    case " $CXX $CXXFLAGS " in
12547
 
    *" -library=stlport4 "*)
12548
 
      solaris_use_stlport4=yes
12549
 
      ;;
12550
 
    esac
12551
 
    if test "$solaris_use_stlport4" != yes; then
12552
 
      postdeps_CXX='-library=Cstd -library=Crun'
12553
 
    fi
12554
 
    ;;
12555
 
  esac
12556
 
  ;;
12557
 
 
12558
 
solaris*)
12559
 
  case $cc_basename in
12560
 
  CC*)
12561
 
    # The more standards-conforming stlport4 library is
12562
 
    # incompatible with the Cstd library. Avoid specifying
12563
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12564
 
    # -library=stlport4 depends on it.
12565
 
    case " $CXX $CXXFLAGS " in
12566
 
    *" -library=stlport4 "*)
12567
 
      solaris_use_stlport4=yes
12568
 
      ;;
12569
 
    esac
12570
 
 
12571
 
    # Adding this requires a known-good setup of shared libraries for
12572
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12573
 
    # archive will be linked into the output, leading to subtle bugs.
12574
 
    if test "$solaris_use_stlport4" != yes; then
12575
 
      postdeps_CXX='-library=Cstd -library=Crun'
12576
 
    fi
12577
 
    ;;
12578
 
  esac
12579
 
  ;;
12580
 
esac
12581
 
 
12582
 
case " $postdeps_CXX " in
12583
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12584
 
esac
12585
 
 
12586
 
lt_prog_compiler_wl_CXX=
12587
 
lt_prog_compiler_pic_CXX=
12588
 
lt_prog_compiler_static_CXX=
12589
 
 
12590
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12591
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12592
 
 
12593
 
  # C++ specific cases for pic, static, wl, etc.
12594
 
  if test "$GXX" = yes; then
12595
 
    lt_prog_compiler_wl_CXX='-Wl,'
12596
 
    lt_prog_compiler_static_CXX='-static'
12597
 
 
12598
 
    case $host_os in
12599
 
    aix*)
12600
 
      # All AIX code is PIC.
12601
 
      if test "$host_cpu" = ia64; then
12602
 
        # AIX 5 now supports IA64 processor
12603
 
        lt_prog_compiler_static_CXX='-Bstatic'
12604
 
      fi
12605
 
      ;;
12606
 
    amigaos*)
12607
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12608
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12609
 
      # like `-m68040'.
12610
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12611
 
      ;;
12612
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12613
 
      # PIC is the default for these OSes.
12614
 
      ;;
12615
 
    mingw* | cygwin* | os2* | pw32*)
12616
 
      # This hack is so that the source file can tell whether it is being
12617
 
      # built for inclusion in a dll (and should export symbols for example).
12618
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12619
 
      # (--disable-auto-import) libraries
12620
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12621
 
      ;;
12622
 
    darwin* | rhapsody*)
12623
 
      # PIC is the default on this platform
12624
 
      # Common symbols not allowed in MH_DYLIB files
12625
 
      lt_prog_compiler_pic_CXX='-fno-common'
12626
 
      ;;
12627
 
    *djgpp*)
12628
 
      # DJGPP does not support shared libraries at all
12629
 
      lt_prog_compiler_pic_CXX=
12630
 
      ;;
12631
 
    interix[3-9]*)
12632
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12633
 
      # Instead, we relocate shared libraries at runtime.
12634
 
      ;;
12635
 
    sysv4*MP*)
12636
 
      if test -d /usr/nec; then
12637
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12638
 
      fi
12639
 
      ;;
12640
 
    hpux*)
12641
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12642
 
      # not for PA HP-UX.
12643
 
      case $host_cpu in
12644
 
      hppa*64*|ia64*)
12645
 
        ;;
12646
 
      *)
12647
 
        lt_prog_compiler_pic_CXX='-fPIC'
12648
 
        ;;
12649
 
      esac
12650
 
      ;;
12651
 
    *)
12652
 
      lt_prog_compiler_pic_CXX='-fPIC'
12653
 
      ;;
12654
 
    esac
12655
 
  else
12656
 
    case $host_os in
12657
 
      aix[4-9]*)
12658
 
        # All AIX code is PIC.
12659
 
        if test "$host_cpu" = ia64; then
12660
 
          # AIX 5 now supports IA64 processor
12661
 
          lt_prog_compiler_static_CXX='-Bstatic'
12662
 
        else
12663
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12664
 
        fi
12665
 
        ;;
12666
 
      chorus*)
12667
 
        case $cc_basename in
12668
 
        cxch68*)
12669
 
          # Green Hills C++ Compiler
12670
 
          # _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"
12671
 
          ;;
12672
 
        esac
12673
 
        ;;
12674
 
       darwin*)
12675
 
         # PIC is the default on this platform
12676
 
         # Common symbols not allowed in MH_DYLIB files
12677
 
         case $cc_basename in
12678
 
           xlc*)
12679
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12680
 
           lt_prog_compiler_wl_CXX='-Wl,'
12681
 
           ;;
12682
 
         esac
12683
 
       ;;
12684
 
      dgux*)
12685
 
        case $cc_basename in
12686
 
          ec++*)
12687
 
            lt_prog_compiler_pic_CXX='-KPIC'
12688
 
            ;;
12689
 
          ghcx*)
12690
 
            # Green Hills C++ Compiler
12691
 
            lt_prog_compiler_pic_CXX='-pic'
12692
 
            ;;
12693
 
          *)
12694
 
            ;;
12695
 
        esac
12696
 
        ;;
12697
 
      freebsd* | dragonfly*)
12698
 
        # FreeBSD uses GNU C++
12699
 
        ;;
12700
 
      hpux9* | hpux10* | hpux11*)
12701
 
        case $cc_basename in
12702
 
          CC*)
12703
 
            lt_prog_compiler_wl_CXX='-Wl,'
12704
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12705
 
            if test "$host_cpu" != ia64; then
12706
 
              lt_prog_compiler_pic_CXX='+Z'
12707
 
            fi
12708
 
            ;;
12709
 
          aCC*)
12710
 
            lt_prog_compiler_wl_CXX='-Wl,'
12711
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12712
 
            case $host_cpu in
12713
 
            hppa*64*|ia64*)
12714
 
              # +Z the default
12715
 
              ;;
12716
 
            *)
12717
 
              lt_prog_compiler_pic_CXX='+Z'
12718
 
              ;;
12719
 
            esac
12720
 
            ;;
12721
 
          *)
12722
 
            ;;
12723
 
        esac
12724
 
        ;;
12725
 
      interix*)
12726
 
        # This is c89, which is MS Visual C++ (no shared libs)
12727
 
        # Anyone wants to do a port?
12728
 
        ;;
12729
 
      irix5* | irix6* | nonstopux*)
12730
 
        case $cc_basename in
12731
 
          CC*)
12732
 
            lt_prog_compiler_wl_CXX='-Wl,'
12733
 
            lt_prog_compiler_static_CXX='-non_shared'
12734
 
            # CC pic flag -KPIC is the default.
12735
 
            ;;
12736
 
          *)
12737
 
            ;;
12738
 
        esac
12739
 
        ;;
12740
 
      linux* | k*bsd*-gnu)
12741
 
        case $cc_basename in
12742
 
          KCC*)
12743
 
            # KAI C++ Compiler
12744
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12745
 
            lt_prog_compiler_pic_CXX='-fPIC'
12746
 
            ;;
12747
 
          icpc* | ecpc*)
12748
 
            # Intel C++
12749
 
            lt_prog_compiler_wl_CXX='-Wl,'
12750
 
            lt_prog_compiler_pic_CXX='-KPIC'
12751
 
            lt_prog_compiler_static_CXX='-static'
12752
 
            ;;
12753
 
          pgCC* | pgcpp*)
12754
 
            # Portland Group C++ compiler.
12755
 
            lt_prog_compiler_wl_CXX='-Wl,'
12756
 
            lt_prog_compiler_pic_CXX='-fpic'
12757
 
            lt_prog_compiler_static_CXX='-Bstatic'
12758
 
            ;;
12759
 
          cxx*)
12760
 
            # Compaq C++
12761
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12762
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12763
 
            lt_prog_compiler_pic_CXX=
12764
 
            lt_prog_compiler_static_CXX='-non_shared'
12765
 
            ;;
12766
 
          *)
12767
 
            case `$CC -V 2>&1 | sed 5q` in
12768
 
            *Sun\ C*)
12769
 
              # Sun C++ 5.9
12770
 
              lt_prog_compiler_pic_CXX='-KPIC'
12771
 
              lt_prog_compiler_static_CXX='-Bstatic'
12772
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
12773
 
              ;;
12774
 
            esac
12775
 
            ;;
12776
 
        esac
12777
 
        ;;
12778
 
      lynxos*)
12779
 
        ;;
12780
 
      m88k*)
12781
 
        ;;
12782
 
      mvs*)
12783
 
        case $cc_basename in
12784
 
          cxx*)
12785
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12786
 
            ;;
12787
 
          *)
12788
 
            ;;
12789
 
        esac
12790
 
        ;;
12791
 
      netbsd*)
12792
 
        ;;
12793
 
      osf3* | osf4* | osf5*)
12794
 
        case $cc_basename in
12795
 
          KCC*)
12796
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12797
 
            ;;
12798
 
          RCC*)
12799
 
            # Rational C++ 2.4.1
12800
 
            lt_prog_compiler_pic_CXX='-pic'
12801
 
            ;;
12802
 
          cxx*)
12803
 
            # Digital/Compaq C++
12804
 
            lt_prog_compiler_wl_CXX='-Wl,'
12805
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12806
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12807
 
            lt_prog_compiler_pic_CXX=
12808
 
            lt_prog_compiler_static_CXX='-non_shared'
12809
 
            ;;
12810
 
          *)
12811
 
            ;;
12812
 
        esac
12813
 
        ;;
12814
 
      psos*)
12815
 
        ;;
12816
 
      solaris*)
12817
 
        case $cc_basename in
12818
 
          CC*)
12819
 
            # Sun C++ 4.2, 5.x and Centerline C++
12820
 
            lt_prog_compiler_pic_CXX='-KPIC'
12821
 
            lt_prog_compiler_static_CXX='-Bstatic'
12822
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12823
 
            ;;
12824
 
          gcx*)
12825
 
            # Green Hills C++ Compiler
12826
 
            lt_prog_compiler_pic_CXX='-PIC'
12827
 
            ;;
12828
 
          *)
12829
 
            ;;
12830
 
        esac
12831
 
        ;;
12832
 
      sunos4*)
12833
 
        case $cc_basename in
12834
 
          CC*)
12835
 
            # Sun C++ 4.x
12836
 
            lt_prog_compiler_pic_CXX='-pic'
12837
 
            lt_prog_compiler_static_CXX='-Bstatic'
12838
 
            ;;
12839
 
          lcc*)
12840
 
            # Lucid
12841
 
            lt_prog_compiler_pic_CXX='-pic'
12842
 
            ;;
12843
 
          *)
12844
 
            ;;
12845
 
        esac
12846
 
        ;;
12847
 
      tandem*)
12848
 
        case $cc_basename in
12849
 
          NCC*)
12850
 
            # NonStop-UX NCC 3.20
12851
 
            lt_prog_compiler_pic_CXX='-KPIC'
12852
 
            ;;
12853
 
          *)
12854
 
            ;;
12855
 
        esac
12856
 
        ;;
12857
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12858
 
        case $cc_basename in
12859
 
          CC*)
12860
 
            lt_prog_compiler_wl_CXX='-Wl,'
12861
 
            lt_prog_compiler_pic_CXX='-KPIC'
12862
 
            lt_prog_compiler_static_CXX='-Bstatic'
12863
 
            ;;
12864
 
        esac
12865
 
        ;;
12866
 
      vxworks*)
12867
 
        ;;
12868
 
      *)
12869
 
        lt_prog_compiler_can_build_shared_CXX=no
12870
 
        ;;
12871
 
    esac
12872
 
  fi
12873
 
 
12874
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12875
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12876
 
 
12877
 
#
12878
 
# Check to make sure the PIC flag actually works.
12879
 
#
12880
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12881
 
 
12882
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12883
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12884
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12885
 
  $as_echo_n "(cached) " >&6
12886
 
else
12887
 
  lt_cv_prog_compiler_pic_works_CXX=no
12888
 
  ac_outfile=conftest.$ac_objext
12889
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12890
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12891
 
   # Insert the option either (1) after the last *FLAGS variable, or
12892
 
   # (2) before a word containing "conftest.", or (3) at the end.
12893
 
   # Note that $ac_compile itself does not contain backslashes and begins
12894
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12895
 
   # The option is referenced via a variable to avoid confusing sed.
12896
 
   lt_compile=`echo "$ac_compile" | $SED \
12897
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12898
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12899
 
   -e 's:$: $lt_compiler_flag:'`
12900
 
   (eval echo "\"\$as_me:12900: $lt_compile\"" >&5)
12901
 
   (eval "$lt_compile" 2>conftest.err)
12902
 
   ac_status=$?
12903
 
   cat conftest.err >&5
12904
 
   echo "$as_me:12904: \$? = $ac_status" >&5
12905
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12906
 
     # The compiler can only warn and ignore the option if not recognized
12907
 
     # So say no if there are warnings other than the usual output.
12908
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12909
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12910
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12911
 
       lt_cv_prog_compiler_pic_works_CXX=yes
12912
 
     fi
12913
 
   fi
12914
 
   $rm conftest*
12915
 
 
12916
 
fi
12917
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12918
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12919
 
 
12920
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12921
 
    case $lt_prog_compiler_pic_CXX in
12922
 
     "" | " "*) ;;
12923
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12924
 
     esac
12925
 
else
12926
 
    lt_prog_compiler_pic_CXX=
12927
 
     lt_prog_compiler_can_build_shared_CXX=no
12928
 
fi
12929
 
 
12930
 
fi
12931
 
case $host_os in
12932
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12933
 
  *djgpp*)
12934
 
    lt_prog_compiler_pic_CXX=
12935
 
    ;;
12936
 
  *)
12937
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12938
 
    ;;
12939
 
esac
12940
 
 
12941
 
#
12942
 
# Check to make sure the static flag actually works.
12943
 
#
12944
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12945
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12946
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12947
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12948
 
  $as_echo_n "(cached) " >&6
12949
 
else
12950
 
  lt_cv_prog_compiler_static_works_CXX=no
12951
 
   save_LDFLAGS="$LDFLAGS"
12952
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12953
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12954
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12955
 
     # The linker can only warn and ignore the option if not recognized
12956
 
     # So say no if there are warnings
12957
 
     if test -s conftest.err; then
12958
 
       # Append any errors to the config.log.
12959
 
       cat conftest.err 1>&5
12960
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12961
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12962
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12963
 
         lt_cv_prog_compiler_static_works_CXX=yes
12964
 
       fi
12965
 
     else
12966
 
       lt_cv_prog_compiler_static_works_CXX=yes
12967
 
     fi
12968
 
   fi
12969
 
   $rm -r conftest*
12970
 
   LDFLAGS="$save_LDFLAGS"
12971
 
 
12972
 
fi
12973
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12974
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12975
 
 
12976
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12977
 
    :
12978
 
else
12979
 
    lt_prog_compiler_static_CXX=
12980
 
fi
12981
 
 
12982
 
 
12983
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12984
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12985
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12986
 
  $as_echo_n "(cached) " >&6
12987
 
else
12988
 
  lt_cv_prog_compiler_c_o_CXX=no
12989
 
   $rm -r conftest 2>/dev/null
12990
 
   mkdir conftest
12991
 
   cd conftest
12992
 
   mkdir out
12993
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12994
 
 
12995
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12996
 
   # Insert the option either (1) after the last *FLAGS variable, or
12997
 
   # (2) before a word containing "conftest.", or (3) at the end.
12998
 
   # Note that $ac_compile itself does not contain backslashes and begins
12999
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13000
 
   lt_compile=`echo "$ac_compile" | $SED \
13001
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13002
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13003
 
   -e 's:$: $lt_compiler_flag:'`
13004
 
   (eval echo "\"\$as_me:13004: $lt_compile\"" >&5)
13005
 
   (eval "$lt_compile" 2>out/conftest.err)
13006
 
   ac_status=$?
13007
 
   cat out/conftest.err >&5
13008
 
   echo "$as_me:13008: \$? = $ac_status" >&5
13009
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13010
 
   then
13011
 
     # The compiler can only warn and ignore the option if not recognized
13012
 
     # So say no if there are warnings
13013
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13014
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13015
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13016
 
       lt_cv_prog_compiler_c_o_CXX=yes
13017
 
     fi
13018
 
   fi
13019
 
   chmod u+w . 2>&5
13020
 
   $rm conftest*
13021
 
   # SGI C++ compiler will create directory out/ii_files/ for
13022
 
   # template instantiation
13023
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13024
 
   $rm out/* && rmdir out
13025
 
   cd ..
13026
 
   rmdir conftest
13027
 
   $rm conftest*
13028
 
 
13029
 
fi
13030
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13031
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13032
 
 
13033
 
 
13034
 
hard_links="nottested"
13035
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13036
 
  # do not overwrite the value of need_locks provided by the user
13037
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13038
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
13039
 
  hard_links=yes
13040
 
  $rm conftest*
13041
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13042
 
  touch conftest.a
13043
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13044
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13045
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13046
 
$as_echo "$hard_links" >&6; }
13047
 
  if test "$hard_links" = no; then
13048
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13049
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13050
 
    need_locks=warn
13051
 
  fi
13052
 
else
13053
 
  need_locks=no
13054
 
fi
13055
 
 
13056
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13057
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13058
 
 
13059
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13060
 
  case $host_os in
13061
 
  aix[4-9]*)
13062
 
    # If we're using GNU nm, then we don't want the "-C" option.
13063
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13064
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13065
 
      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'
13066
 
    else
13067
 
      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'
13068
 
    fi
13069
 
    ;;
13070
 
  pw32*)
13071
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13072
 
  ;;
13073
 
  cygwin* | mingw*)
13074
 
    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'
13075
 
  ;;
13076
 
  linux* | k*bsd*-gnu)
13077
 
    link_all_deplibs_CXX=no
13078
 
  ;;
13079
 
  *)
13080
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13081
 
  ;;
13082
 
  esac
13083
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13084
 
 
13085
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13086
 
$as_echo "$ld_shlibs_CXX" >&6; }
13087
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13088
 
 
13089
 
#
13090
 
# Do we need to explicitly link libc?
13091
 
#
13092
 
case "x$archive_cmds_need_lc_CXX" in
13093
 
x|xyes)
13094
 
  # Assume -lc should be added
13095
 
  archive_cmds_need_lc_CXX=yes
13096
 
 
13097
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13098
 
    case $archive_cmds_CXX in
13099
 
    *'~'*)
13100
 
      # FIXME: we may have to deal with multi-command sequences.
13101
 
      ;;
13102
 
    '$CC '*)
13103
 
      # Test whether the compiler implicitly links with -lc since on some
13104
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13105
 
      # to ld, don't add -lc before -lgcc.
13106
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13107
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13108
 
      $rm conftest*
13109
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13110
 
 
13111
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13112
 
  (eval $ac_compile) 2>&5
13113
 
  ac_status=$?
13114
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115
 
  (exit $ac_status); } 2>conftest.err; then
13116
 
        soname=conftest
13117
 
        lib=conftest
13118
 
        libobjs=conftest.$ac_objext
13119
 
        deplibs=
13120
 
        wl=$lt_prog_compiler_wl_CXX
13121
 
        pic_flag=$lt_prog_compiler_pic_CXX
13122
 
        compiler_flags=-v
13123
 
        linker_flags=-v
13124
 
        verstring=
13125
 
        output_objdir=.
13126
 
        libname=conftest
13127
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13128
 
        allow_undefined_flag_CXX=
13129
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13130
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13131
 
  ac_status=$?
13132
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133
 
  (exit $ac_status); }
13134
 
        then
13135
 
          archive_cmds_need_lc_CXX=no
13136
 
        else
13137
 
          archive_cmds_need_lc_CXX=yes
13138
 
        fi
13139
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13140
 
      else
13141
 
        cat conftest.err 1>&5
13142
 
      fi
13143
 
      $rm conftest*
13144
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13145
 
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13146
 
      ;;
13147
 
    esac
13148
 
  fi
13149
 
  ;;
13150
 
esac
13151
 
 
13152
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13153
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13154
 
library_names_spec=
13155
 
libname_spec='lib$name'
13156
 
soname_spec=
13157
 
shrext_cmds=".so"
13158
 
postinstall_cmds=
13159
 
postuninstall_cmds=
13160
 
finish_cmds=
13161
 
finish_eval=
13162
 
shlibpath_var=
13163
 
shlibpath_overrides_runpath=unknown
13164
 
version_type=none
13165
 
dynamic_linker="$host_os ld.so"
13166
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13167
 
 
13168
 
need_lib_prefix=unknown
13169
 
hardcode_into_libs=no
13170
 
 
13171
 
# when you set need_version to no, make sure it does not cause -set_version
13172
 
# flags to be left without arguments
13173
 
need_version=unknown
13174
 
 
13175
 
case $host_os in
13176
 
aix3*)
13177
 
  version_type=linux
13178
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13179
 
  shlibpath_var=LIBPATH
13180
 
 
13181
 
  # AIX 3 has no versioning support, so we append a major version to the name.
13182
 
  soname_spec='${libname}${release}${shared_ext}$major'
13183
 
  ;;
13184
 
 
13185
 
aix[4-9]*)
13186
 
  version_type=linux
13187
 
  need_lib_prefix=no
13188
 
  need_version=no
13189
 
  hardcode_into_libs=yes
13190
 
  if test "$host_cpu" = ia64; then
13191
 
    # AIX 5 supports IA64
13192
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13193
 
    shlibpath_var=LD_LIBRARY_PATH
13194
 
  else
13195
 
    # With GCC up to 2.95.x, collect2 would create an import file
13196
 
    # for dependence libraries.  The import file would start with
13197
 
    # the line `#! .'.  This would cause the generated library to
13198
 
    # depend on `.', always an invalid library.  This was fixed in
13199
 
    # development snapshots of GCC prior to 3.0.
13200
 
    case $host_os in
13201
 
      aix4 | aix4.[01] | aix4.[01].*)
13202
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13203
 
           echo ' yes '
13204
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13205
 
        :
13206
 
      else
13207
 
        can_build_shared=no
13208
 
      fi
13209
 
      ;;
13210
 
    esac
13211
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13212
 
    # soname into executable. Probably we can add versioning support to
13213
 
    # collect2, so additional links can be useful in future.
13214
 
    if test "$aix_use_runtimelinking" = yes; then
13215
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13216
 
      # instead of lib<name>.a to let people know that these are not
13217
 
      # typical AIX shared libraries.
13218
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219
 
    else
13220
 
      # We preserve .a as extension for shared libraries through AIX4.2
13221
 
      # and later when we are not doing run time linking.
13222
 
      library_names_spec='${libname}${release}.a $libname.a'
13223
 
      soname_spec='${libname}${release}${shared_ext}$major'
13224
 
    fi
13225
 
    shlibpath_var=LIBPATH
13226
 
  fi
13227
 
  ;;
13228
 
 
13229
 
amigaos*)
13230
 
  library_names_spec='$libname.ixlibrary $libname.a'
13231
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13232
 
  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'
13233
 
  ;;
13234
 
 
13235
 
beos*)
13236
 
  library_names_spec='${libname}${shared_ext}'
13237
 
  dynamic_linker="$host_os ld.so"
13238
 
  shlibpath_var=LIBRARY_PATH
13239
 
  ;;
13240
 
 
13241
 
bsdi[45]*)
13242
 
  version_type=linux
13243
 
  need_version=no
13244
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13245
 
  soname_spec='${libname}${release}${shared_ext}$major'
13246
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13247
 
  shlibpath_var=LD_LIBRARY_PATH
13248
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13249
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13250
 
  # the default ld.so.conf also contains /usr/contrib/lib and
13251
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13252
 
  # libtool to hard-code these into programs
13253
 
  ;;
13254
 
 
13255
 
cygwin* | mingw* | pw32*)
13256
 
  version_type=windows
13257
 
  shrext_cmds=".dll"
13258
 
  need_version=no
13259
 
  need_lib_prefix=no
13260
 
 
13261
 
  case $GCC,$host_os in
13262
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
13263
 
    library_names_spec='$libname.dll.a'
13264
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13265
 
    postinstall_cmds='base_file=`basename \${file}`~
13266
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13267
 
      dldir=$destdir/`dirname \$dlpath`~
13268
 
      test -d \$dldir || mkdir -p \$dldir~
13269
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13270
 
      chmod a+x \$dldir/$dlname'
13271
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13272
 
      dlpath=$dir/\$dldll~
13273
 
       $rm \$dlpath'
13274
 
    shlibpath_overrides_runpath=yes
13275
 
 
13276
 
    case $host_os in
13277
 
    cygwin*)
13278
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13279
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13280
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13281
 
      ;;
13282
 
    mingw*)
13283
 
      # MinGW DLLs use traditional 'lib' prefix
13284
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13285
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13286
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13287
 
        # It is most probably a Windows format PATH printed by
13288
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13289
 
        # path with ; separators, and with drive letters. We can handle the
13290
 
        # drive letters (cygwin fileutils understands them), so leave them,
13291
 
        # especially as we might pass files found there to a mingw objdump,
13292
 
        # which wouldn't understand a cygwinified path. Ahh.
13293
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13294
 
      else
13295
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13296
 
      fi
13297
 
      ;;
13298
 
    pw32*)
13299
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13300
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13301
 
      ;;
13302
 
    esac
13303
 
    ;;
13304
 
 
13305
 
  *)
13306
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13307
 
    ;;
13308
 
  esac
13309
 
  dynamic_linker='Win32 ld.exe'
13310
 
  # FIXME: first we should search . and the directory the executable is in
13311
 
  shlibpath_var=PATH
13312
 
  ;;
13313
 
 
13314
 
darwin* | rhapsody*)
13315
 
  dynamic_linker="$host_os dyld"
13316
 
  version_type=darwin
13317
 
  need_lib_prefix=no
13318
 
  need_version=no
13319
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13320
 
  soname_spec='${libname}${release}${major}$shared_ext'
13321
 
  shlibpath_overrides_runpath=yes
13322
 
  shlibpath_var=DYLD_LIBRARY_PATH
13323
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13324
 
 
13325
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13326
 
  ;;
13327
 
 
13328
 
dgux*)
13329
 
  version_type=linux
13330
 
  need_lib_prefix=no
13331
 
  need_version=no
13332
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13333
 
  soname_spec='${libname}${release}${shared_ext}$major'
13334
 
  shlibpath_var=LD_LIBRARY_PATH
13335
 
  ;;
13336
 
 
13337
 
freebsd1*)
13338
 
  dynamic_linker=no
13339
 
  ;;
13340
 
 
13341
 
freebsd* | dragonfly*)
13342
 
  # DragonFly does not have aout.  When/if they implement a new
13343
 
  # versioning mechanism, adjust this.
13344
 
  if test -x /usr/bin/objformat; then
13345
 
    objformat=`/usr/bin/objformat`
13346
 
  else
13347
 
    case $host_os in
13348
 
    freebsd[123]*) objformat=aout ;;
13349
 
    *) objformat=elf ;;
13350
 
    esac
13351
 
  fi
13352
 
  version_type=freebsd-$objformat
13353
 
  case $version_type in
13354
 
    freebsd-elf*)
13355
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13356
 
      need_version=no
13357
 
      need_lib_prefix=no
13358
 
      ;;
13359
 
    freebsd-*)
13360
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13361
 
      need_version=yes
13362
 
      ;;
13363
 
  esac
13364
 
  shlibpath_var=LD_LIBRARY_PATH
13365
 
  case $host_os in
13366
 
  freebsd2*)
13367
 
    shlibpath_overrides_runpath=yes
13368
 
    ;;
13369
 
  freebsd3.[01]* | freebsdelf3.[01]*)
13370
 
    shlibpath_overrides_runpath=yes
13371
 
    hardcode_into_libs=yes
13372
 
    ;;
13373
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13374
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13375
 
    shlibpath_overrides_runpath=no
13376
 
    hardcode_into_libs=yes
13377
 
    ;;
13378
 
  *) # from 4.6 on, and DragonFly
13379
 
    shlibpath_overrides_runpath=yes
13380
 
    hardcode_into_libs=yes
13381
 
    ;;
13382
 
  esac
13383
 
  ;;
13384
 
 
13385
 
gnu*)
13386
 
  version_type=linux
13387
 
  need_lib_prefix=no
13388
 
  need_version=no
13389
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13390
 
  soname_spec='${libname}${release}${shared_ext}$major'
13391
 
  shlibpath_var=LD_LIBRARY_PATH
13392
 
  hardcode_into_libs=yes
13393
 
  ;;
13394
 
 
13395
 
hpux9* | hpux10* | hpux11*)
13396
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13397
 
  # link against other versions.
13398
 
  version_type=sunos
13399
 
  need_lib_prefix=no
13400
 
  need_version=no
13401
 
  case $host_cpu in
13402
 
  ia64*)
13403
 
    shrext_cmds='.so'
13404
 
    hardcode_into_libs=yes
13405
 
    dynamic_linker="$host_os dld.so"
13406
 
    shlibpath_var=LD_LIBRARY_PATH
13407
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13408
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409
 
    soname_spec='${libname}${release}${shared_ext}$major'
13410
 
    if test "X$HPUX_IA64_MODE" = X32; then
13411
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13412
 
    else
13413
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13414
 
    fi
13415
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13416
 
    ;;
13417
 
   hppa*64*)
13418
 
     shrext_cmds='.sl'
13419
 
     hardcode_into_libs=yes
13420
 
     dynamic_linker="$host_os dld.sl"
13421
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13422
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13423
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13424
 
     soname_spec='${libname}${release}${shared_ext}$major'
13425
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13426
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13427
 
     ;;
13428
 
   *)
13429
 
    shrext_cmds='.sl'
13430
 
    dynamic_linker="$host_os dld.sl"
13431
 
    shlibpath_var=SHLIB_PATH
13432
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13433
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434
 
    soname_spec='${libname}${release}${shared_ext}$major'
13435
 
    ;;
13436
 
  esac
13437
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13438
 
  postinstall_cmds='chmod 555 $lib'
13439
 
  ;;
13440
 
 
13441
 
interix[3-9]*)
13442
 
  version_type=linux
13443
 
  need_lib_prefix=no
13444
 
  need_version=no
13445
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13446
 
  soname_spec='${libname}${release}${shared_ext}$major'
13447
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13448
 
  shlibpath_var=LD_LIBRARY_PATH
13449
 
  shlibpath_overrides_runpath=no
13450
 
  hardcode_into_libs=yes
13451
 
  ;;
13452
 
 
13453
 
irix5* | irix6* | nonstopux*)
13454
 
  case $host_os in
13455
 
    nonstopux*) version_type=nonstopux ;;
13456
 
    *)
13457
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
13458
 
                version_type=linux
13459
 
        else
13460
 
                version_type=irix
13461
 
        fi ;;
13462
 
  esac
13463
 
  need_lib_prefix=no
13464
 
  need_version=no
13465
 
  soname_spec='${libname}${release}${shared_ext}$major'
13466
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13467
 
  case $host_os in
13468
 
  irix5* | nonstopux*)
13469
 
    libsuff= shlibsuff=
13470
 
    ;;
13471
 
  *)
13472
 
    case $LD in # libtool.m4 will add one of these switches to LD
13473
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13474
 
      libsuff= shlibsuff= libmagic=32-bit;;
13475
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13476
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13477
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13478
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13479
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13480
 
    esac
13481
 
    ;;
13482
 
  esac
13483
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13484
 
  shlibpath_overrides_runpath=no
13485
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13486
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13487
 
  hardcode_into_libs=yes
13488
 
  ;;
13489
 
 
13490
 
# No shared lib support for Linux oldld, aout, or coff.
13491
 
linux*oldld* | linux*aout* | linux*coff*)
13492
 
  dynamic_linker=no
13493
 
  ;;
13494
 
 
13495
 
# This must be Linux ELF.
13496
 
linux* | k*bsd*-gnu)
13497
 
  version_type=linux
13498
 
  need_lib_prefix=no
13499
 
  need_version=no
13500
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501
 
  soname_spec='${libname}${release}${shared_ext}$major'
13502
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13503
 
  shlibpath_var=LD_LIBRARY_PATH
13504
 
  shlibpath_overrides_runpath=no
13505
 
  # This implies no fast_install, which is unacceptable.
13506
 
  # Some rework will be needed to allow for fast_install
13507
 
  # before this can be enabled.
13508
 
  hardcode_into_libs=yes
13509
 
 
13510
 
  # find out which ABI we are using
13511
 
  libsuff=
13512
 
  case "$host_cpu" in
13513
 
  x86_64*|s390x*|powerpc64*)
13514
 
    echo '#line 13514 "configure"' > conftest.$ac_ext
13515
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516
 
  (eval $ac_compile) 2>&5
13517
 
  ac_status=$?
13518
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519
 
  (exit $ac_status); }; then
13520
 
      case `/usr/bin/file conftest.$ac_objext` in
13521
 
      *64-bit*)
13522
 
        libsuff=64
13523
 
        ;;
13524
 
      esac
13525
 
    fi
13526
 
    rm -rf conftest*
13527
 
    ;;
13528
 
  esac
13529
 
 
13530
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13531
 
 
13532
 
  # Append ld.so.conf contents to the search path
13533
 
  if test -f /etc/ld.so.conf; then
13534
 
    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' ' '`
13535
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13536
 
  fi
13537
 
 
13538
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13539
 
  # powerpc, because MkLinux only supported shared libraries with the
13540
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13541
 
  # most powerpc-linux boxes support dynamic linking these days and
13542
 
  # people can always --disable-shared, the test was removed, and we
13543
 
  # assume the GNU/Linux dynamic linker is in use.
13544
 
  dynamic_linker='GNU/Linux ld.so'
13545
 
  ;;
13546
 
 
13547
 
netbsd*)
13548
 
  version_type=sunos
13549
 
  need_lib_prefix=no
13550
 
  need_version=no
13551
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13553
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13554
 
    dynamic_linker='NetBSD (a.out) ld.so'
13555
 
  else
13556
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13557
 
    soname_spec='${libname}${release}${shared_ext}$major'
13558
 
    dynamic_linker='NetBSD ld.elf_so'
13559
 
  fi
13560
 
  shlibpath_var=LD_LIBRARY_PATH
13561
 
  shlibpath_overrides_runpath=yes
13562
 
  hardcode_into_libs=yes
13563
 
  ;;
13564
 
 
13565
 
newsos6)
13566
 
  version_type=linux
13567
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13568
 
  shlibpath_var=LD_LIBRARY_PATH
13569
 
  shlibpath_overrides_runpath=yes
13570
 
  ;;
13571
 
 
13572
 
nto-qnx*)
13573
 
  version_type=linux
13574
 
  need_lib_prefix=no
13575
 
  need_version=no
13576
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577
 
  soname_spec='${libname}${release}${shared_ext}$major'
13578
 
  shlibpath_var=LD_LIBRARY_PATH
13579
 
  shlibpath_overrides_runpath=yes
13580
 
  ;;
13581
 
 
13582
 
openbsd*)
13583
 
  version_type=sunos
13584
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13585
 
  need_lib_prefix=no
13586
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13587
 
  case $host_os in
13588
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13589
 
    *)                         need_version=no  ;;
13590
 
  esac
13591
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593
 
  shlibpath_var=LD_LIBRARY_PATH
13594
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13595
 
    case $host_os in
13596
 
      openbsd2.[89] | openbsd2.[89].*)
13597
 
        shlibpath_overrides_runpath=no
13598
 
        ;;
13599
 
      *)
13600
 
        shlibpath_overrides_runpath=yes
13601
 
        ;;
13602
 
      esac
13603
 
  else
13604
 
    shlibpath_overrides_runpath=yes
13605
 
  fi
13606
 
  ;;
13607
 
 
13608
 
os2*)
13609
 
  libname_spec='$name'
13610
 
  shrext_cmds=".dll"
13611
 
  need_lib_prefix=no
13612
 
  library_names_spec='$libname${shared_ext} $libname.a'
13613
 
  dynamic_linker='OS/2 ld.exe'
13614
 
  shlibpath_var=LIBPATH
13615
 
  ;;
13616
 
 
13617
 
osf3* | osf4* | osf5*)
13618
 
  version_type=osf
13619
 
  need_lib_prefix=no
13620
 
  need_version=no
13621
 
  soname_spec='${libname}${release}${shared_ext}$major'
13622
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623
 
  shlibpath_var=LD_LIBRARY_PATH
13624
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13625
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13626
 
  ;;
13627
 
 
13628
 
rdos*)
13629
 
  dynamic_linker=no
13630
 
  ;;
13631
 
 
13632
 
solaris*)
13633
 
  version_type=linux
13634
 
  need_lib_prefix=no
13635
 
  need_version=no
13636
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13637
 
  soname_spec='${libname}${release}${shared_ext}$major'
13638
 
  shlibpath_var=LD_LIBRARY_PATH
13639
 
  shlibpath_overrides_runpath=yes
13640
 
  hardcode_into_libs=yes
13641
 
  # ldd complains unless libraries are executable
13642
 
  postinstall_cmds='chmod +x $lib'
13643
 
  ;;
13644
 
 
13645
 
sunos4*)
13646
 
  version_type=sunos
13647
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13648
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13649
 
  shlibpath_var=LD_LIBRARY_PATH
13650
 
  shlibpath_overrides_runpath=yes
13651
 
  if test "$with_gnu_ld" = yes; then
13652
 
    need_lib_prefix=no
13653
 
  fi
13654
 
  need_version=yes
13655
 
  ;;
13656
 
 
13657
 
sysv4 | sysv4.3*)
13658
 
  version_type=linux
13659
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13660
 
  soname_spec='${libname}${release}${shared_ext}$major'
13661
 
  shlibpath_var=LD_LIBRARY_PATH
13662
 
  case $host_vendor in
13663
 
    sni)
13664
 
      shlibpath_overrides_runpath=no
13665
 
      need_lib_prefix=no
13666
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13667
 
      runpath_var=LD_RUN_PATH
13668
 
      ;;
13669
 
    siemens)
13670
 
      need_lib_prefix=no
13671
 
      ;;
13672
 
    motorola)
13673
 
      need_lib_prefix=no
13674
 
      need_version=no
13675
 
      shlibpath_overrides_runpath=no
13676
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13677
 
      ;;
13678
 
  esac
13679
 
  ;;
13680
 
 
13681
 
sysv4*MP*)
13682
 
  if test -d /usr/nec ;then
13683
 
    version_type=linux
13684
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13685
 
    soname_spec='$libname${shared_ext}.$major'
13686
 
    shlibpath_var=LD_LIBRARY_PATH
13687
 
  fi
13688
 
  ;;
13689
 
 
13690
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13691
 
  version_type=freebsd-elf
13692
 
  need_lib_prefix=no
13693
 
  need_version=no
13694
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13695
 
  soname_spec='${libname}${release}${shared_ext}$major'
13696
 
  shlibpath_var=LD_LIBRARY_PATH
13697
 
  hardcode_into_libs=yes
13698
 
  if test "$with_gnu_ld" = yes; then
13699
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13700
 
    shlibpath_overrides_runpath=no
13701
 
  else
13702
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13703
 
    shlibpath_overrides_runpath=yes
13704
 
    case $host_os in
13705
 
      sco3.2v5*)
13706
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13707
 
        ;;
13708
 
    esac
13709
 
  fi
13710
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13711
 
  ;;
13712
 
 
13713
 
uts4*)
13714
 
  version_type=linux
13715
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716
 
  soname_spec='${libname}${release}${shared_ext}$major'
13717
 
  shlibpath_var=LD_LIBRARY_PATH
13718
 
  ;;
13719
 
 
13720
 
*)
13721
 
  dynamic_linker=no
13722
 
  ;;
13723
 
esac
13724
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13725
 
$as_echo "$dynamic_linker" >&6; }
13726
 
test "$dynamic_linker" = no && can_build_shared=no
13727
 
 
13728
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13729
 
  $as_echo_n "(cached) " >&6
13730
 
else
13731
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13732
 
fi
13733
 
 
13734
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13735
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13736
 
  $as_echo_n "(cached) " >&6
13737
 
else
13738
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13739
 
fi
13740
 
 
13741
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13742
 
 
13743
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13744
 
if test "$GCC" = yes; then
13745
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13746
 
fi
13747
 
 
13748
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13749
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13750
 
hardcode_action_CXX=
13751
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13752
 
   test -n "$runpath_var_CXX" || \
13753
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13754
 
 
13755
 
  # We can hardcode non-existant directories.
13756
 
  if test "$hardcode_direct_CXX" != no &&
13757
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13758
 
     # have to relink, otherwise we might link with an installed library
13759
 
     # when we should be linking with a yet-to-be-installed one
13760
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13761
 
     test "$hardcode_minus_L_CXX" != no; then
13762
 
    # Linking always hardcodes the temporary library directory.
13763
 
    hardcode_action_CXX=relink
13764
 
  else
13765
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13766
 
    hardcode_action_CXX=immediate
13767
 
  fi
13768
 
else
13769
 
  # We cannot hardcode anything, or else we can only hardcode existing
13770
 
  # directories.
13771
 
  hardcode_action_CXX=unsupported
13772
 
fi
13773
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13774
 
$as_echo "$hardcode_action_CXX" >&6; }
13775
 
 
13776
 
if test "$hardcode_action_CXX" = relink; then
13777
 
  # Fast installation is not supported
13778
 
  enable_fast_install=no
13779
 
elif test "$shlibpath_overrides_runpath" = yes ||
13780
 
     test "$enable_shared" = no; then
13781
 
  # Fast installation is not necessary
13782
 
  enable_fast_install=needless
13783
 
fi
13784
 
 
13785
 
 
13786
 
# The else clause should only fire when bootstrapping the
13787
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13788
 
# with your package, and you will get complaints that there are
13789
 
# no rules to generate ltmain.sh.
13790
 
if test -f "$ltmain"; then
13791
 
  # See if we are running on zsh, and set the options which allow our commands through
13792
 
  # without removal of \ escapes.
13793
 
  if test -n "${ZSH_VERSION+set}" ; then
13794
 
    setopt NO_GLOB_SUBST
13795
 
  fi
13796
 
  # Now quote all the things that may contain metacharacters while being
13797
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13798
 
  # variables and quote the copies for generation of the libtool script.
13799
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13800
 
    SED SHELL STRIP \
13801
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13802
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13803
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13804
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13805
 
    lt_cv_sys_global_symbol_to_c_name_address \
13806
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13807
 
    old_postinstall_cmds old_postuninstall_cmds \
13808
 
    compiler_CXX \
13809
 
    CC_CXX \
13810
 
    LD_CXX \
13811
 
    lt_prog_compiler_wl_CXX \
13812
 
    lt_prog_compiler_pic_CXX \
13813
 
    lt_prog_compiler_static_CXX \
13814
 
    lt_prog_compiler_no_builtin_flag_CXX \
13815
 
    export_dynamic_flag_spec_CXX \
13816
 
    thread_safe_flag_spec_CXX \
13817
 
    whole_archive_flag_spec_CXX \
13818
 
    enable_shared_with_static_runtimes_CXX \
13819
 
    old_archive_cmds_CXX \
13820
 
    old_archive_from_new_cmds_CXX \
13821
 
    predep_objects_CXX \
13822
 
    postdep_objects_CXX \
13823
 
    predeps_CXX \
13824
 
    postdeps_CXX \
13825
 
    compiler_lib_search_path_CXX \
13826
 
    compiler_lib_search_dirs_CXX \
13827
 
    archive_cmds_CXX \
13828
 
    archive_expsym_cmds_CXX \
13829
 
    postinstall_cmds_CXX \
13830
 
    postuninstall_cmds_CXX \
13831
 
    old_archive_from_expsyms_cmds_CXX \
13832
 
    allow_undefined_flag_CXX \
13833
 
    no_undefined_flag_CXX \
13834
 
    export_symbols_cmds_CXX \
13835
 
    hardcode_libdir_flag_spec_CXX \
13836
 
    hardcode_libdir_flag_spec_ld_CXX \
13837
 
    hardcode_libdir_separator_CXX \
13838
 
    hardcode_automatic_CXX \
13839
 
    module_cmds_CXX \
13840
 
    module_expsym_cmds_CXX \
13841
 
    lt_cv_prog_compiler_c_o_CXX \
13842
 
    fix_srcfile_path_CXX \
13843
 
    exclude_expsyms_CXX \
13844
 
    include_expsyms_CXX; do
13845
 
 
13846
 
    case $var in
13847
 
    old_archive_cmds_CXX | \
13848
 
    old_archive_from_new_cmds_CXX | \
13849
 
    archive_cmds_CXX | \
13850
 
    archive_expsym_cmds_CXX | \
13851
 
    module_cmds_CXX | \
13852
 
    module_expsym_cmds_CXX | \
13853
 
    old_archive_from_expsyms_cmds_CXX | \
13854
 
    export_symbols_cmds_CXX | \
13855
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13856
 
    postinstall_cmds | postuninstall_cmds | \
13857
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13858
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13859
 
      # Double-quote double-evaled strings.
13860
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13861
 
      ;;
13862
 
    *)
13863
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13864
 
      ;;
13865
 
    esac
13866
 
  done
13867
 
 
13868
 
  case $lt_echo in
13869
 
  *'\$0 --fallback-echo"')
13870
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13871
 
    ;;
13872
 
  esac
13873
 
 
13874
 
cfgfile="$ofile"
13875
 
 
13876
 
  cat <<__EOF__ >> "$cfgfile"
13877
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13878
 
 
13879
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13880
 
 
13881
 
# Shell to use when invoking shell scripts.
13882
 
SHELL=$lt_SHELL
13883
 
 
13884
 
# Whether or not to build shared libraries.
13885
 
build_libtool_libs=$enable_shared
13886
 
 
13887
 
# Whether or not to build static libraries.
13888
 
build_old_libs=$enable_static
13889
 
 
13890
 
# Whether or not to add -lc for building shared libraries.
13891
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13892
 
 
13893
 
# Whether or not to disallow shared libs when runtime libs are static
13894
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13895
 
 
13896
 
# Whether or not to optimize for fast installation.
13897
 
fast_install=$enable_fast_install
13898
 
 
13899
 
# The host system.
13900
 
host_alias=$host_alias
13901
 
host=$host
13902
 
host_os=$host_os
13903
 
 
13904
 
# The build system.
13905
 
build_alias=$build_alias
13906
 
build=$build
13907
 
build_os=$build_os
13908
 
 
13909
 
# An echo program that does not interpret backslashes.
13910
 
echo=$lt_echo
13911
 
 
13912
 
# The archiver.
13913
 
AR=$lt_AR
13914
 
AR_FLAGS=$lt_AR_FLAGS
13915
 
 
13916
 
# A C compiler.
13917
 
LTCC=$lt_LTCC
13918
 
 
13919
 
# LTCC compiler flags.
13920
 
LTCFLAGS=$lt_LTCFLAGS
13921
 
 
13922
 
# A language-specific compiler.
13923
 
CC=$lt_compiler_CXX
13924
 
 
13925
 
# Is the compiler the GNU C compiler?
13926
 
with_gcc=$GCC_CXX
13927
 
 
13928
 
# An ERE matcher.
13929
 
EGREP=$lt_EGREP
13930
 
 
13931
 
# The linker used to build libraries.
13932
 
LD=$lt_LD_CXX
13933
 
 
13934
 
# Whether we need hard or soft links.
13935
 
LN_S=$lt_LN_S
13936
 
 
13937
 
# A BSD-compatible nm program.
13938
 
NM=$lt_NM
13939
 
 
13940
 
# A symbol stripping program
13941
 
STRIP=$lt_STRIP
13942
 
 
13943
 
# Used to examine libraries when file_magic_cmd begins "file"
13944
 
MAGIC_CMD=$MAGIC_CMD
13945
 
 
13946
 
# Used on cygwin: DLL creation program.
13947
 
DLLTOOL="$DLLTOOL"
13948
 
 
13949
 
# Used on cygwin: object dumper.
13950
 
OBJDUMP="$OBJDUMP"
13951
 
 
13952
 
# Used on cygwin: assembler.
13953
 
AS="$AS"
13954
 
 
13955
 
# The name of the directory that contains temporary libtool files.
13956
 
objdir=$objdir
13957
 
 
13958
 
# How to create reloadable object files.
13959
 
reload_flag=$lt_reload_flag
13960
 
reload_cmds=$lt_reload_cmds
13961
 
 
13962
 
# How to pass a linker flag through the compiler.
13963
 
wl=$lt_lt_prog_compiler_wl_CXX
13964
 
 
13965
 
# Object file suffix (normally "o").
13966
 
objext="$ac_objext"
13967
 
 
13968
 
# Old archive suffix (normally "a").
13969
 
libext="$libext"
13970
 
 
13971
 
# Shared library suffix (normally ".so").
13972
 
shrext_cmds='$shrext_cmds'
13973
 
 
13974
 
# Executable file suffix (normally "").
13975
 
exeext="$exeext"
13976
 
 
13977
 
# Additional compiler flags for building library objects.
13978
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13979
 
pic_mode=$pic_mode
13980
 
 
13981
 
# What is the maximum length of a command?
13982
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13983
 
 
13984
 
# Does compiler simultaneously support -c and -o options?
13985
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13986
 
 
13987
 
# Must we lock files when doing compilation?
13988
 
need_locks=$lt_need_locks
13989
 
 
13990
 
# Do we need the lib prefix for modules?
13991
 
need_lib_prefix=$need_lib_prefix
13992
 
 
13993
 
# Do we need a version for libraries?
13994
 
need_version=$need_version
13995
 
 
13996
 
# Whether dlopen is supported.
13997
 
dlopen_support=$enable_dlopen
13998
 
 
13999
 
# Whether dlopen of programs is supported.
14000
 
dlopen_self=$enable_dlopen_self
14001
 
 
14002
 
# Whether dlopen of statically linked programs is supported.
14003
 
dlopen_self_static=$enable_dlopen_self_static
14004
 
 
14005
 
# Compiler flag to prevent dynamic linking.
14006
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14007
 
 
14008
 
# Compiler flag to turn off builtin functions.
14009
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14010
 
 
14011
 
# Compiler flag to allow reflexive dlopens.
14012
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14013
 
 
14014
 
# Compiler flag to generate shared objects directly from archives.
14015
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14016
 
 
14017
 
# Compiler flag to generate thread-safe objects.
14018
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14019
 
 
14020
 
# Library versioning type.
14021
 
version_type=$version_type
14022
 
 
14023
 
# Format of library name prefix.
14024
 
libname_spec=$lt_libname_spec
14025
 
 
14026
 
# List of archive names.  First name is the real one, the rest are links.
14027
 
# The last name is the one that the linker finds with -lNAME.
14028
 
library_names_spec=$lt_library_names_spec
14029
 
 
14030
 
# The coded name of the library, if different from the real name.
14031
 
soname_spec=$lt_soname_spec
14032
 
 
14033
 
# Commands used to build and install an old-style archive.
14034
 
RANLIB=$lt_RANLIB
14035
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14036
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14037
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14038
 
 
14039
 
# Create an old-style archive from a shared archive.
14040
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14041
 
 
14042
 
# Create a temporary old-style archive to link instead of a shared archive.
14043
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14044
 
 
14045
 
# Commands used to build and install a shared archive.
14046
 
archive_cmds=$lt_archive_cmds_CXX
14047
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14048
 
postinstall_cmds=$lt_postinstall_cmds
14049
 
postuninstall_cmds=$lt_postuninstall_cmds
14050
 
 
14051
 
# Commands used to build a loadable module (assumed same as above if empty)
14052
 
module_cmds=$lt_module_cmds_CXX
14053
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14054
 
 
14055
 
# Commands to strip libraries.
14056
 
old_striplib=$lt_old_striplib
14057
 
striplib=$lt_striplib
14058
 
 
14059
 
# Dependencies to place before the objects being linked to create a
14060
 
# shared library.
14061
 
predep_objects=$lt_predep_objects_CXX
14062
 
 
14063
 
# Dependencies to place after the objects being linked to create a
14064
 
# shared library.
14065
 
postdep_objects=$lt_postdep_objects_CXX
14066
 
 
14067
 
# Dependencies to place before the objects being linked to create a
14068
 
# shared library.
14069
 
predeps=$lt_predeps_CXX
14070
 
 
14071
 
# Dependencies to place after the objects being linked to create a
14072
 
# shared library.
14073
 
postdeps=$lt_postdeps_CXX
14074
 
 
14075
 
# The directories searched by this compiler when creating a shared
14076
 
# library
14077
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14078
 
 
14079
 
# The library search path used internally by the compiler when linking
14080
 
# a shared library.
14081
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14082
 
 
14083
 
# Method to check whether dependent libraries are shared objects.
14084
 
deplibs_check_method=$lt_deplibs_check_method
14085
 
 
14086
 
# Command to use when deplibs_check_method == file_magic.
14087
 
file_magic_cmd=$lt_file_magic_cmd
14088
 
 
14089
 
# Flag that allows shared libraries with undefined symbols to be built.
14090
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14091
 
 
14092
 
# Flag that forces no undefined symbols.
14093
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14094
 
 
14095
 
# Commands used to finish a libtool library installation in a directory.
14096
 
finish_cmds=$lt_finish_cmds
14097
 
 
14098
 
# Same as above, but a single script fragment to be evaled but not shown.
14099
 
finish_eval=$lt_finish_eval
14100
 
 
14101
 
# Take the output of nm and produce a listing of raw symbols and C names.
14102
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14103
 
 
14104
 
# Transform the output of nm in a proper C declaration
14105
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14106
 
 
14107
 
# Transform the output of nm in a C name address pair
14108
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14109
 
 
14110
 
# This is the shared library runtime path variable.
14111
 
runpath_var=$runpath_var
14112
 
 
14113
 
# This is the shared library path variable.
14114
 
shlibpath_var=$shlibpath_var
14115
 
 
14116
 
# Is shlibpath searched before the hard-coded library search path?
14117
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14118
 
 
14119
 
# How to hardcode a shared library path into an executable.
14120
 
hardcode_action=$hardcode_action_CXX
14121
 
 
14122
 
# Whether we should hardcode library paths into libraries.
14123
 
hardcode_into_libs=$hardcode_into_libs
14124
 
 
14125
 
# Flag to hardcode \$libdir into a binary during linking.
14126
 
# This must work even if \$libdir does not exist.
14127
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14128
 
 
14129
 
# If ld is used when linking, flag to hardcode \$libdir into
14130
 
# a binary during linking. This must work even if \$libdir does
14131
 
# not exist.
14132
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14133
 
 
14134
 
# Whether we need a single -rpath flag with a separated argument.
14135
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14136
 
 
14137
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14138
 
# resulting binary.
14139
 
hardcode_direct=$hardcode_direct_CXX
14140
 
 
14141
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14142
 
# resulting binary.
14143
 
hardcode_minus_L=$hardcode_minus_L_CXX
14144
 
 
14145
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14146
 
# the resulting binary.
14147
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14148
 
 
14149
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14150
 
# and all subsequent libraries and executables linked against it.
14151
 
hardcode_automatic=$hardcode_automatic_CXX
14152
 
 
14153
 
# Variables whose values should be saved in libtool wrapper scripts and
14154
 
# restored at relink time.
14155
 
variables_saved_for_relink="$variables_saved_for_relink"
14156
 
 
14157
 
# Whether libtool must link a program against all its dependency libraries.
14158
 
link_all_deplibs=$link_all_deplibs_CXX
14159
 
 
14160
 
# Compile-time system search path for libraries
14161
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14162
 
 
14163
 
# Run-time system search path for libraries
14164
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14165
 
 
14166
 
# Fix the shell variable \$srcfile for the compiler.
14167
 
fix_srcfile_path=$lt_fix_srcfile_path
14168
 
 
14169
 
# Set to yes if exported symbols are required.
14170
 
always_export_symbols=$always_export_symbols_CXX
14171
 
 
14172
 
# The commands to list exported symbols.
14173
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14174
 
 
14175
 
# The commands to extract the exported symbol list from a shared archive.
14176
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14177
 
 
14178
 
# Symbols that should not be listed in the preloaded symbols.
14179
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14180
 
 
14181
 
# Symbols that must always be exported.
14182
 
include_expsyms=$lt_include_expsyms_CXX
14183
 
 
14184
 
# ### END LIBTOOL TAG CONFIG: $tagname
14185
 
 
14186
 
__EOF__
14187
 
 
14188
 
 
14189
 
else
14190
 
  # If there is no Makefile yet, we rely on a make rule to execute
14191
 
  # `config.status --recheck' to rerun these tests and create the
14192
 
  # libtool script then.
14193
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14194
 
  if test -f "$ltmain_in"; then
14195
 
    test -f Makefile && make "$ltmain"
14196
 
  fi
14197
 
fi
14198
 
 
14199
 
 
14200
 
ac_ext=c
14201
 
ac_cpp='$CPP $CPPFLAGS'
14202
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14203
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14204
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14205
 
 
14206
 
CC=$lt_save_CC
14207
 
LDCXX=$LD
14208
 
LD=$lt_save_LD
14209
 
GCC=$lt_save_GCC
14210
 
with_gnu_ldcxx=$with_gnu_ld
14211
 
with_gnu_ld=$lt_save_with_gnu_ld
14212
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14213
 
lt_cv_path_LD=$lt_save_path_LD
14214
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14215
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14216
 
 
14217
 
        else
14218
 
          tagname=""
14219
 
        fi
14220
 
        ;;
14221
 
 
14222
 
      F77)
14223
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14224
 
 
14225
 
ac_ext=f
14226
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14227
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14229
 
 
14230
 
 
14231
 
archive_cmds_need_lc_F77=no
14232
 
allow_undefined_flag_F77=
14233
 
always_export_symbols_F77=no
14234
 
archive_expsym_cmds_F77=
14235
 
export_dynamic_flag_spec_F77=
14236
 
hardcode_direct_F77=no
14237
 
hardcode_libdir_flag_spec_F77=
14238
 
hardcode_libdir_flag_spec_ld_F77=
14239
 
hardcode_libdir_separator_F77=
14240
 
hardcode_minus_L_F77=no
14241
 
hardcode_automatic_F77=no
14242
 
module_cmds_F77=
14243
 
module_expsym_cmds_F77=
14244
 
link_all_deplibs_F77=unknown
14245
 
old_archive_cmds_F77=$old_archive_cmds
14246
 
no_undefined_flag_F77=
14247
 
whole_archive_flag_spec_F77=
14248
 
enable_shared_with_static_runtimes_F77=no
14249
 
 
14250
 
# Source file extension for f77 test sources.
14251
 
ac_ext=f
14252
 
 
14253
 
# Object file extension for compiled f77 test sources.
14254
 
objext=o
14255
 
objext_F77=$objext
14256
 
 
14257
 
# Code to be used in simple compile tests
14258
 
lt_simple_compile_test_code="\
14259
 
      subroutine t
14260
 
      return
14261
 
      end
14262
 
"
14263
 
 
14264
 
# Code to be used in simple link tests
14265
 
lt_simple_link_test_code="\
14266
 
      program t
14267
 
      end
14268
 
"
14269
 
 
14270
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14271
 
 
14272
 
# If no C compiler was specified, use CC.
14273
 
LTCC=${LTCC-"$CC"}
14274
 
 
14275
 
# If no C compiler flags were specified, use CFLAGS.
14276
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14277
 
 
14278
 
# Allow CC to be a program name with arguments.
14279
 
compiler=$CC
14280
 
 
14281
 
 
14282
 
# save warnings/boilerplate of simple test code
14283
 
ac_outfile=conftest.$ac_objext
14284
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14285
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14286
 
_lt_compiler_boilerplate=`cat conftest.err`
14287
 
$rm conftest*
14288
 
 
14289
 
ac_outfile=conftest.$ac_objext
14290
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14291
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14292
 
_lt_linker_boilerplate=`cat conftest.err`
14293
 
$rm -r conftest*
14294
 
 
14295
 
 
14296
 
# Allow CC to be a program name with arguments.
14297
 
lt_save_CC="$CC"
14298
 
CC=${F77-"f77"}
14299
 
compiler=$CC
14300
 
compiler_F77=$CC
14301
 
for cc_temp in $compiler""; do
14302
 
  case $cc_temp in
14303
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14304
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14305
 
    \-*) ;;
14306
 
    *) break;;
14307
 
  esac
14308
 
done
14309
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14310
 
 
14311
 
 
14312
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14313
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14314
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14315
 
$as_echo "$can_build_shared" >&6; }
14316
 
 
14317
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14318
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
14319
 
test "$can_build_shared" = "no" && enable_shared=no
14320
 
 
14321
 
# On AIX, shared libraries and static libraries use the same namespace, and
14322
 
# are all built from PIC.
14323
 
case $host_os in
14324
 
aix3*)
14325
 
  test "$enable_shared" = yes && enable_static=no
14326
 
  if test -n "$RANLIB"; then
14327
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14328
 
    postinstall_cmds='$RANLIB $lib'
14329
 
  fi
14330
 
  ;;
14331
 
aix[4-9]*)
14332
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14333
 
    test "$enable_shared" = yes && enable_static=no
14334
 
  fi
14335
 
  ;;
14336
 
esac
14337
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14338
 
$as_echo "$enable_shared" >&6; }
14339
 
 
14340
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14341
 
$as_echo_n "checking whether to build static libraries... " >&6; }
14342
 
# Make sure either enable_shared or enable_static is yes.
14343
 
test "$enable_shared" = yes || enable_static=yes
14344
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14345
 
$as_echo "$enable_static" >&6; }
14346
 
 
14347
 
GCC_F77="$G77"
14348
 
LD_F77="$LD"
14349
 
 
14350
 
lt_prog_compiler_wl_F77=
14351
 
lt_prog_compiler_pic_F77=
14352
 
lt_prog_compiler_static_F77=
14353
 
 
14354
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14355
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14356
 
 
14357
 
  if test "$GCC" = yes; then
14358
 
    lt_prog_compiler_wl_F77='-Wl,'
14359
 
    lt_prog_compiler_static_F77='-static'
14360
 
 
14361
 
    case $host_os in
14362
 
      aix*)
14363
 
      # All AIX code is PIC.
14364
 
      if test "$host_cpu" = ia64; then
14365
 
        # AIX 5 now supports IA64 processor
14366
 
        lt_prog_compiler_static_F77='-Bstatic'
14367
 
      fi
14368
 
      ;;
14369
 
 
14370
 
    amigaos*)
14371
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14372
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14373
 
      # like `-m68040'.
14374
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14375
 
      ;;
14376
 
 
14377
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14378
 
      # PIC is the default for these OSes.
14379
 
      ;;
14380
 
 
14381
 
    mingw* | cygwin* | pw32* | os2*)
14382
 
      # This hack is so that the source file can tell whether it is being
14383
 
      # built for inclusion in a dll (and should export symbols for example).
14384
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14385
 
      # (--disable-auto-import) libraries
14386
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14387
 
      ;;
14388
 
 
14389
 
    darwin* | rhapsody*)
14390
 
      # PIC is the default on this platform
14391
 
      # Common symbols not allowed in MH_DYLIB files
14392
 
      lt_prog_compiler_pic_F77='-fno-common'
14393
 
      ;;
14394
 
 
14395
 
    interix[3-9]*)
14396
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14397
 
      # Instead, we relocate shared libraries at runtime.
14398
 
      ;;
14399
 
 
14400
 
    msdosdjgpp*)
14401
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14402
 
      # on systems that don't support them.
14403
 
      lt_prog_compiler_can_build_shared_F77=no
14404
 
      enable_shared=no
14405
 
      ;;
14406
 
 
14407
 
    sysv4*MP*)
14408
 
      if test -d /usr/nec; then
14409
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14410
 
      fi
14411
 
      ;;
14412
 
 
14413
 
    hpux*)
14414
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14415
 
      # not for PA HP-UX.
14416
 
      case $host_cpu in
14417
 
      hppa*64*|ia64*)
14418
 
        # +Z the default
14419
 
        ;;
14420
 
      *)
14421
 
        lt_prog_compiler_pic_F77='-fPIC'
14422
 
        ;;
14423
 
      esac
14424
 
      ;;
14425
 
 
14426
 
    *)
14427
 
      lt_prog_compiler_pic_F77='-fPIC'
14428
 
      ;;
14429
 
    esac
14430
 
  else
14431
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14432
 
    case $host_os in
14433
 
    aix*)
14434
 
      lt_prog_compiler_wl_F77='-Wl,'
14435
 
      if test "$host_cpu" = ia64; then
14436
 
        # AIX 5 now supports IA64 processor
14437
 
        lt_prog_compiler_static_F77='-Bstatic'
14438
 
      else
14439
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14440
 
      fi
14441
 
      ;;
14442
 
      darwin*)
14443
 
        # PIC is the default on this platform
14444
 
        # Common symbols not allowed in MH_DYLIB files
14445
 
       case $cc_basename in
14446
 
         xlc*)
14447
 
         lt_prog_compiler_pic_F77='-qnocommon'
14448
 
         lt_prog_compiler_wl_F77='-Wl,'
14449
 
         ;;
14450
 
       esac
14451
 
       ;;
14452
 
 
14453
 
    mingw* | cygwin* | pw32* | os2*)
14454
 
      # This hack is so that the source file can tell whether it is being
14455
 
      # built for inclusion in a dll (and should export symbols for example).
14456
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14457
 
      ;;
14458
 
 
14459
 
    hpux9* | hpux10* | hpux11*)
14460
 
      lt_prog_compiler_wl_F77='-Wl,'
14461
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14462
 
      # not for PA HP-UX.
14463
 
      case $host_cpu in
14464
 
      hppa*64*|ia64*)
14465
 
        # +Z the default
14466
 
        ;;
14467
 
      *)
14468
 
        lt_prog_compiler_pic_F77='+Z'
14469
 
        ;;
14470
 
      esac
14471
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14472
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14473
 
      ;;
14474
 
 
14475
 
    irix5* | irix6* | nonstopux*)
14476
 
      lt_prog_compiler_wl_F77='-Wl,'
14477
 
      # PIC (with -KPIC) is the default.
14478
 
      lt_prog_compiler_static_F77='-non_shared'
14479
 
      ;;
14480
 
 
14481
 
    newsos6)
14482
 
      lt_prog_compiler_pic_F77='-KPIC'
14483
 
      lt_prog_compiler_static_F77='-Bstatic'
14484
 
      ;;
14485
 
 
14486
 
    linux* | k*bsd*-gnu)
14487
 
      case $cc_basename in
14488
 
      icc* | ecc*)
14489
 
        lt_prog_compiler_wl_F77='-Wl,'
14490
 
        lt_prog_compiler_pic_F77='-KPIC'
14491
 
        lt_prog_compiler_static_F77='-static'
14492
 
        ;;
14493
 
      pgcc* | pgf77* | pgf90* | pgf95*)
14494
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14495
 
        # which looks to be a dead project)
14496
 
        lt_prog_compiler_wl_F77='-Wl,'
14497
 
        lt_prog_compiler_pic_F77='-fpic'
14498
 
        lt_prog_compiler_static_F77='-Bstatic'
14499
 
        ;;
14500
 
      ccc*)
14501
 
        lt_prog_compiler_wl_F77='-Wl,'
14502
 
        # All Alpha code is PIC.
14503
 
        lt_prog_compiler_static_F77='-non_shared'
14504
 
        ;;
14505
 
      *)
14506
 
        case `$CC -V 2>&1 | sed 5q` in
14507
 
        *Sun\ C*)
14508
 
          # Sun C 5.9
14509
 
          lt_prog_compiler_pic_F77='-KPIC'
14510
 
          lt_prog_compiler_static_F77='-Bstatic'
14511
 
          lt_prog_compiler_wl_F77='-Wl,'
14512
 
          ;;
14513
 
        *Sun\ F*)
14514
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
14515
 
          lt_prog_compiler_pic_F77='-KPIC'
14516
 
          lt_prog_compiler_static_F77='-Bstatic'
14517
 
          lt_prog_compiler_wl_F77=''
14518
 
          ;;
14519
 
        esac
14520
 
        ;;
14521
 
      esac
14522
 
      ;;
14523
 
 
14524
 
    osf3* | osf4* | osf5*)
14525
 
      lt_prog_compiler_wl_F77='-Wl,'
14526
 
      # All OSF/1 code is PIC.
14527
 
      lt_prog_compiler_static_F77='-non_shared'
14528
 
      ;;
14529
 
 
14530
 
    rdos*)
14531
 
      lt_prog_compiler_static_F77='-non_shared'
14532
 
      ;;
14533
 
 
14534
 
    solaris*)
14535
 
      lt_prog_compiler_pic_F77='-KPIC'
14536
 
      lt_prog_compiler_static_F77='-Bstatic'
14537
 
      case $cc_basename in
14538
 
      f77* | f90* | f95*)
14539
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14540
 
      *)
14541
 
        lt_prog_compiler_wl_F77='-Wl,';;
14542
 
      esac
14543
 
      ;;
14544
 
 
14545
 
    sunos4*)
14546
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14547
 
      lt_prog_compiler_pic_F77='-PIC'
14548
 
      lt_prog_compiler_static_F77='-Bstatic'
14549
 
      ;;
14550
 
 
14551
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
14552
 
      lt_prog_compiler_wl_F77='-Wl,'
14553
 
      lt_prog_compiler_pic_F77='-KPIC'
14554
 
      lt_prog_compiler_static_F77='-Bstatic'
14555
 
      ;;
14556
 
 
14557
 
    sysv4*MP*)
14558
 
      if test -d /usr/nec ;then
14559
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14560
 
        lt_prog_compiler_static_F77='-Bstatic'
14561
 
      fi
14562
 
      ;;
14563
 
 
14564
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14565
 
      lt_prog_compiler_wl_F77='-Wl,'
14566
 
      lt_prog_compiler_pic_F77='-KPIC'
14567
 
      lt_prog_compiler_static_F77='-Bstatic'
14568
 
      ;;
14569
 
 
14570
 
    unicos*)
14571
 
      lt_prog_compiler_wl_F77='-Wl,'
14572
 
      lt_prog_compiler_can_build_shared_F77=no
14573
 
      ;;
14574
 
 
14575
 
    uts4*)
14576
 
      lt_prog_compiler_pic_F77='-pic'
14577
 
      lt_prog_compiler_static_F77='-Bstatic'
14578
 
      ;;
14579
 
 
14580
 
    *)
14581
 
      lt_prog_compiler_can_build_shared_F77=no
14582
 
      ;;
14583
 
    esac
14584
 
  fi
14585
 
 
14586
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14587
 
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14588
 
 
14589
 
#
14590
 
# Check to make sure the PIC flag actually works.
14591
 
#
14592
 
if test -n "$lt_prog_compiler_pic_F77"; then
14593
 
 
14594
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14595
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14596
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14597
 
  $as_echo_n "(cached) " >&6
14598
 
else
14599
 
  lt_cv_prog_compiler_pic_works_F77=no
14600
 
  ac_outfile=conftest.$ac_objext
14601
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14602
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14603
 
   # Insert the option either (1) after the last *FLAGS variable, or
14604
 
   # (2) before a word containing "conftest.", or (3) at the end.
14605
 
   # Note that $ac_compile itself does not contain backslashes and begins
14606
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14607
 
   # The option is referenced via a variable to avoid confusing sed.
14608
 
   lt_compile=`echo "$ac_compile" | $SED \
14609
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14610
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14611
 
   -e 's:$: $lt_compiler_flag:'`
14612
 
   (eval echo "\"\$as_me:14612: $lt_compile\"" >&5)
14613
 
   (eval "$lt_compile" 2>conftest.err)
14614
 
   ac_status=$?
14615
 
   cat conftest.err >&5
14616
 
   echo "$as_me:14616: \$? = $ac_status" >&5
14617
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14618
 
     # The compiler can only warn and ignore the option if not recognized
14619
 
     # So say no if there are warnings other than the usual output.
14620
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14621
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14622
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14623
 
       lt_cv_prog_compiler_pic_works_F77=yes
14624
 
     fi
14625
 
   fi
14626
 
   $rm conftest*
14627
 
 
14628
 
fi
14629
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14630
 
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14631
 
 
14632
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14633
 
    case $lt_prog_compiler_pic_F77 in
14634
 
     "" | " "*) ;;
14635
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14636
 
     esac
14637
 
else
14638
 
    lt_prog_compiler_pic_F77=
14639
 
     lt_prog_compiler_can_build_shared_F77=no
14640
 
fi
14641
 
 
14642
 
fi
14643
 
case $host_os in
14644
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14645
 
  *djgpp*)
14646
 
    lt_prog_compiler_pic_F77=
14647
 
    ;;
14648
 
  *)
14649
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14650
 
    ;;
14651
 
esac
14652
 
 
14653
 
#
14654
 
# Check to make sure the static flag actually works.
14655
 
#
14656
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14657
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14658
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14659
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14660
 
  $as_echo_n "(cached) " >&6
14661
 
else
14662
 
  lt_cv_prog_compiler_static_works_F77=no
14663
 
   save_LDFLAGS="$LDFLAGS"
14664
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14665
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14666
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14667
 
     # The linker can only warn and ignore the option if not recognized
14668
 
     # So say no if there are warnings
14669
 
     if test -s conftest.err; then
14670
 
       # Append any errors to the config.log.
14671
 
       cat conftest.err 1>&5
14672
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14673
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14674
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14675
 
         lt_cv_prog_compiler_static_works_F77=yes
14676
 
       fi
14677
 
     else
14678
 
       lt_cv_prog_compiler_static_works_F77=yes
14679
 
     fi
14680
 
   fi
14681
 
   $rm -r conftest*
14682
 
   LDFLAGS="$save_LDFLAGS"
14683
 
 
14684
 
fi
14685
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14686
 
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14687
 
 
14688
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14689
 
    :
14690
 
else
14691
 
    lt_prog_compiler_static_F77=
14692
 
fi
14693
 
 
14694
 
 
14695
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14696
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14697
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14698
 
  $as_echo_n "(cached) " >&6
14699
 
else
14700
 
  lt_cv_prog_compiler_c_o_F77=no
14701
 
   $rm -r conftest 2>/dev/null
14702
 
   mkdir conftest
14703
 
   cd conftest
14704
 
   mkdir out
14705
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14706
 
 
14707
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14708
 
   # Insert the option either (1) after the last *FLAGS variable, or
14709
 
   # (2) before a word containing "conftest.", or (3) at the end.
14710
 
   # Note that $ac_compile itself does not contain backslashes and begins
14711
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14712
 
   lt_compile=`echo "$ac_compile" | $SED \
14713
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14714
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14715
 
   -e 's:$: $lt_compiler_flag:'`
14716
 
   (eval echo "\"\$as_me:14716: $lt_compile\"" >&5)
14717
 
   (eval "$lt_compile" 2>out/conftest.err)
14718
 
   ac_status=$?
14719
 
   cat out/conftest.err >&5
14720
 
   echo "$as_me:14720: \$? = $ac_status" >&5
14721
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14722
 
   then
14723
 
     # The compiler can only warn and ignore the option if not recognized
14724
 
     # So say no if there are warnings
14725
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14726
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14727
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14728
 
       lt_cv_prog_compiler_c_o_F77=yes
14729
 
     fi
14730
 
   fi
14731
 
   chmod u+w . 2>&5
14732
 
   $rm conftest*
14733
 
   # SGI C++ compiler will create directory out/ii_files/ for
14734
 
   # template instantiation
14735
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14736
 
   $rm out/* && rmdir out
14737
 
   cd ..
14738
 
   rmdir conftest
14739
 
   $rm conftest*
14740
 
 
14741
 
fi
14742
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14743
 
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14744
 
 
14745
 
 
14746
 
hard_links="nottested"
14747
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14748
 
  # do not overwrite the value of need_locks provided by the user
14749
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14750
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
14751
 
  hard_links=yes
14752
 
  $rm conftest*
14753
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14754
 
  touch conftest.a
14755
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14756
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14757
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14758
 
$as_echo "$hard_links" >&6; }
14759
 
  if test "$hard_links" = no; then
14760
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14761
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14762
 
    need_locks=warn
14763
 
  fi
14764
 
else
14765
 
  need_locks=no
14766
 
fi
14767
 
 
14768
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14769
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14770
 
 
14771
 
  runpath_var=
14772
 
  allow_undefined_flag_F77=
14773
 
  enable_shared_with_static_runtimes_F77=no
14774
 
  archive_cmds_F77=
14775
 
  archive_expsym_cmds_F77=
14776
 
  old_archive_From_new_cmds_F77=
14777
 
  old_archive_from_expsyms_cmds_F77=
14778
 
  export_dynamic_flag_spec_F77=
14779
 
  whole_archive_flag_spec_F77=
14780
 
  thread_safe_flag_spec_F77=
14781
 
  hardcode_libdir_flag_spec_F77=
14782
 
  hardcode_libdir_flag_spec_ld_F77=
14783
 
  hardcode_libdir_separator_F77=
14784
 
  hardcode_direct_F77=no
14785
 
  hardcode_minus_L_F77=no
14786
 
  hardcode_shlibpath_var_F77=unsupported
14787
 
  link_all_deplibs_F77=unknown
14788
 
  hardcode_automatic_F77=no
14789
 
  module_cmds_F77=
14790
 
  module_expsym_cmds_F77=
14791
 
  always_export_symbols_F77=no
14792
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14793
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14794
 
  # included in the symbol list
14795
 
  include_expsyms_F77=
14796
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14797
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14798
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14799
 
  # as well as any symbol that contains `d'.
14800
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14801
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14802
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14803
 
  # the symbol is explicitly referenced.  Since portable code cannot
14804
 
  # rely on this symbol name, it's probably fine to never include it in
14805
 
  # preloaded symbol tables.
14806
 
  # Exclude shared library initialization/finalization symbols.
14807
 
  extract_expsyms_cmds=
14808
 
  # Just being paranoid about ensuring that cc_basename is set.
14809
 
  for cc_temp in $compiler""; do
14810
 
  case $cc_temp in
14811
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14812
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14813
 
    \-*) ;;
14814
 
    *) break;;
14815
 
  esac
14816
 
done
14817
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14818
 
 
14819
 
  case $host_os in
14820
 
  cygwin* | mingw* | pw32*)
14821
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14822
 
    # When not using gcc, we currently assume that we are using
14823
 
    # Microsoft Visual C++.
14824
 
    if test "$GCC" != yes; then
14825
 
      with_gnu_ld=no
14826
 
    fi
14827
 
    ;;
14828
 
  interix*)
14829
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14830
 
    with_gnu_ld=yes
14831
 
    ;;
14832
 
  openbsd*)
14833
 
    with_gnu_ld=no
14834
 
    ;;
14835
 
  esac
14836
 
 
14837
 
  ld_shlibs_F77=yes
14838
 
  if test "$with_gnu_ld" = yes; then
14839
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14840
 
    wlarc='${wl}'
14841
 
 
14842
 
    # Set some defaults for GNU ld with shared library support. These
14843
 
    # are reset later if shared libraries are not supported. Putting them
14844
 
    # here allows them to be overridden if necessary.
14845
 
    runpath_var=LD_RUN_PATH
14846
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14847
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14848
 
    # ancient GNU ld didn't support --whole-archive et. al.
14849
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14850
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14851
 
      else
14852
 
        whole_archive_flag_spec_F77=
14853
 
    fi
14854
 
    supports_anon_versioning=no
14855
 
    case `$LD -v 2>/dev/null` in
14856
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14857
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14858
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14859
 
      *\ 2.11.*) ;; # other 2.11 versions
14860
 
      *) supports_anon_versioning=yes ;;
14861
 
    esac
14862
 
 
14863
 
    # See if GNU ld supports shared libraries.
14864
 
    case $host_os in
14865
 
    aix[3-9]*)
14866
 
      # On AIX/PPC, the GNU linker is very broken
14867
 
      if test "$host_cpu" != ia64; then
14868
 
        ld_shlibs_F77=no
14869
 
        cat <<EOF 1>&2
14870
 
 
14871
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14872
 
*** to be unable to reliably create shared libraries on AIX.
14873
 
*** Therefore, libtool is disabling shared libraries support.  If you
14874
 
*** really care for shared libraries, you may want to modify your PATH
14875
 
*** so that a non-GNU linker is found, and then restart.
14876
 
 
14877
 
EOF
14878
 
      fi
14879
 
      ;;
14880
 
 
14881
 
    amigaos*)
14882
 
      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)'
14883
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14884
 
      hardcode_minus_L_F77=yes
14885
 
 
14886
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14887
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14888
 
      # to version 4, is to share data among multiple programs linked
14889
 
      # with the same dynamic library.  Since this doesn't match the
14890
 
      # behavior of shared libraries on other platforms, we can't use
14891
 
      # them.
14892
 
      ld_shlibs_F77=no
14893
 
      ;;
14894
 
 
14895
 
    beos*)
14896
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897
 
        allow_undefined_flag_F77=unsupported
14898
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14899
 
        # support --undefined.  This deserves some investigation.  FIXME
14900
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14901
 
      else
14902
 
        ld_shlibs_F77=no
14903
 
      fi
14904
 
      ;;
14905
 
 
14906
 
    cygwin* | mingw* | pw32*)
14907
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14908
 
      # as there is no search path for DLLs.
14909
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14910
 
      allow_undefined_flag_F77=unsupported
14911
 
      always_export_symbols_F77=no
14912
 
      enable_shared_with_static_runtimes_F77=yes
14913
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14914
 
 
14915
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14916
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14917
 
        # If the export-symbols file already is a .def file (1st line
14918
 
        # is EXPORTS), use it as is; otherwise, prepend...
14919
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14920
 
          cp $export_symbols $output_objdir/$soname.def;
14921
 
        else
14922
 
          echo EXPORTS > $output_objdir/$soname.def;
14923
 
          cat $export_symbols >> $output_objdir/$soname.def;
14924
 
        fi~
14925
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14926
 
      else
14927
 
        ld_shlibs_F77=no
14928
 
      fi
14929
 
      ;;
14930
 
 
14931
 
    interix[3-9]*)
14932
 
      hardcode_direct_F77=no
14933
 
      hardcode_shlibpath_var_F77=no
14934
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14935
 
      export_dynamic_flag_spec_F77='${wl}-E'
14936
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14937
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14938
 
      # default) and relocated if they conflict, which is a slow very memory
14939
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14940
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14941
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14942
 
      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'
14943
 
      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'
14944
 
      ;;
14945
 
 
14946
 
    gnu* | linux* | k*bsd*-gnu)
14947
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14948
 
        tmp_addflag=
14949
 
        case $cc_basename,$host_cpu in
14950
 
        pgcc*)                          # Portland Group C compiler
14951
 
          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'
14952
 
          tmp_addflag=' $pic_flag'
14953
 
          ;;
14954
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14955
 
          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'
14956
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14957
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14958
 
          tmp_addflag=' -i_dynamic' ;;
14959
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14960
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14961
 
        ifc* | ifort*)                  # Intel Fortran compiler
14962
 
          tmp_addflag=' -nofor_main' ;;
14963
 
        esac
14964
 
        case `$CC -V 2>&1 | sed 5q` in
14965
 
        *Sun\ C*)                       # Sun C 5.9
14966
 
          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'
14967
 
          tmp_sharedflag='-G' ;;
14968
 
        *Sun\ F*)                       # Sun Fortran 8.3
14969
 
          tmp_sharedflag='-G' ;;
14970
 
        *)
14971
 
          tmp_sharedflag='-shared' ;;
14972
 
        esac
14973
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14974
 
 
14975
 
        if test $supports_anon_versioning = yes; then
14976
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14977
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14978
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14979
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14980
 
        fi
14981
 
        link_all_deplibs_F77=no
14982
 
      else
14983
 
        ld_shlibs_F77=no
14984
 
      fi
14985
 
      ;;
14986
 
 
14987
 
    netbsd*)
14988
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14989
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14990
 
        wlarc=
14991
 
      else
14992
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14994
 
      fi
14995
 
      ;;
14996
 
 
14997
 
    solaris*)
14998
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14999
 
        ld_shlibs_F77=no
15000
 
        cat <<EOF 1>&2
15001
 
 
15002
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15003
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15004
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15005
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15006
 
*** your PATH or compiler configuration so that the native linker is
15007
 
*** used, and then restart.
15008
 
 
15009
 
EOF
15010
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15013
 
      else
15014
 
        ld_shlibs_F77=no
15015
 
      fi
15016
 
      ;;
15017
 
 
15018
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15019
 
      case `$LD -v 2>&1` in
15020
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15021
 
        ld_shlibs_F77=no
15022
 
        cat <<_LT_EOF 1>&2
15023
 
 
15024
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15025
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
15026
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15027
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15028
 
*** your PATH or compiler configuration so that the native linker is
15029
 
*** used, and then restart.
15030
 
 
15031
 
_LT_EOF
15032
 
        ;;
15033
 
        *)
15034
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15035
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15036
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15037
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15038
 
          else
15039
 
            ld_shlibs_F77=no
15040
 
          fi
15041
 
        ;;
15042
 
      esac
15043
 
      ;;
15044
 
 
15045
 
    sunos4*)
15046
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15047
 
      wlarc=
15048
 
      hardcode_direct_F77=yes
15049
 
      hardcode_shlibpath_var_F77=no
15050
 
      ;;
15051
 
 
15052
 
    *)
15053
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15056
 
      else
15057
 
        ld_shlibs_F77=no
15058
 
      fi
15059
 
      ;;
15060
 
    esac
15061
 
 
15062
 
    if test "$ld_shlibs_F77" = no; then
15063
 
      runpath_var=
15064
 
      hardcode_libdir_flag_spec_F77=
15065
 
      export_dynamic_flag_spec_F77=
15066
 
      whole_archive_flag_spec_F77=
15067
 
    fi
15068
 
  else
15069
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15070
 
    case $host_os in
15071
 
    aix3*)
15072
 
      allow_undefined_flag_F77=unsupported
15073
 
      always_export_symbols_F77=yes
15074
 
      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'
15075
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15076
 
      # are no directories specified by -L.
15077
 
      hardcode_minus_L_F77=yes
15078
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15079
 
        # Neither direct hardcoding nor static linking is supported with a
15080
 
        # broken collect2.
15081
 
        hardcode_direct_F77=unsupported
15082
 
      fi
15083
 
      ;;
15084
 
 
15085
 
    aix[4-9]*)
15086
 
      if test "$host_cpu" = ia64; then
15087
 
        # On IA64, the linker does run time linking by default, so we don't
15088
 
        # have to do anything special.
15089
 
        aix_use_runtimelinking=no
15090
 
        exp_sym_flag='-Bexport'
15091
 
        no_entry_flag=""
15092
 
      else
15093
 
        # If we're using GNU nm, then we don't want the "-C" option.
15094
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15095
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15096
 
          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'
15097
 
        else
15098
 
          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'
15099
 
        fi
15100
 
        aix_use_runtimelinking=no
15101
 
 
15102
 
        # Test if we are trying to use run time linking or normal
15103
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15104
 
        # need to do runtime linking.
15105
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15106
 
          for ld_flag in $LDFLAGS; do
15107
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15108
 
            aix_use_runtimelinking=yes
15109
 
            break
15110
 
          fi
15111
 
          done
15112
 
          ;;
15113
 
        esac
15114
 
 
15115
 
        exp_sym_flag='-bexport'
15116
 
        no_entry_flag='-bnoentry'
15117
 
      fi
15118
 
 
15119
 
      # When large executables or shared objects are built, AIX ld can
15120
 
      # have problems creating the table of contents.  If linking a library
15121
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15122
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15123
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15124
 
 
15125
 
      archive_cmds_F77=''
15126
 
      hardcode_direct_F77=yes
15127
 
      hardcode_libdir_separator_F77=':'
15128
 
      link_all_deplibs_F77=yes
15129
 
 
15130
 
      if test "$GCC" = yes; then
15131
 
        case $host_os in aix4.[012]|aix4.[012].*)
15132
 
        # We only want to do this on AIX 4.2 and lower, the check
15133
 
        # below for broken collect2 doesn't work under 4.3+
15134
 
          collect2name=`${CC} -print-prog-name=collect2`
15135
 
          if test -f "$collect2name" && \
15136
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15137
 
          then
15138
 
          # We have reworked collect2
15139
 
          :
15140
 
          else
15141
 
          # We have old collect2
15142
 
          hardcode_direct_F77=unsupported
15143
 
          # It fails to find uninstalled libraries when the uninstalled
15144
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15145
 
          # to unsupported forces relinking
15146
 
          hardcode_minus_L_F77=yes
15147
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15148
 
          hardcode_libdir_separator_F77=
15149
 
          fi
15150
 
          ;;
15151
 
        esac
15152
 
        shared_flag='-shared'
15153
 
        if test "$aix_use_runtimelinking" = yes; then
15154
 
          shared_flag="$shared_flag "'${wl}-G'
15155
 
        fi
15156
 
      else
15157
 
        # not using gcc
15158
 
        if test "$host_cpu" = ia64; then
15159
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15160
 
        # chokes on -Wl,-G. The following line is correct:
15161
 
          shared_flag='-G'
15162
 
        else
15163
 
          if test "$aix_use_runtimelinking" = yes; then
15164
 
            shared_flag='${wl}-G'
15165
 
          else
15166
 
            shared_flag='${wl}-bM:SRE'
15167
 
          fi
15168
 
        fi
15169
 
      fi
15170
 
 
15171
 
      # It seems that -bexpall does not export symbols beginning with
15172
 
      # underscore (_), so it is better to generate a list of symbols to export.
15173
 
      always_export_symbols_F77=yes
15174
 
      if test "$aix_use_runtimelinking" = yes; then
15175
 
        # Warning - without using the other runtime loading flags (-brtl),
15176
 
        # -berok will link without error, but may produce a broken library.
15177
 
        allow_undefined_flag_F77='-berok'
15178
 
       # Determine the default libpath from the value encoded in an empty executable.
15179
 
       cat >conftest.$ac_ext <<_ACEOF
15180
 
      program main
15181
 
 
15182
 
      end
15183
 
_ACEOF
15184
 
rm -f conftest.$ac_objext conftest$ac_exeext
15185
 
if { (ac_try="$ac_link"
15186
 
case "(($ac_try" in
15187
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188
 
  *) ac_try_echo=$ac_try;;
15189
 
esac
15190
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15191
 
$as_echo "$ac_try_echo") >&5
15192
 
  (eval "$ac_link") 2>conftest.er1
15193
 
  ac_status=$?
15194
 
  grep -v '^ *+' conftest.er1 >conftest.err
15195
 
  rm -f conftest.er1
15196
 
  cat conftest.err >&5
15197
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198
 
  (exit $ac_status); } && {
15199
 
         test -z "$ac_f77_werror_flag" ||
15200
 
         test ! -s conftest.err
15201
 
       } && test -s conftest$ac_exeext && {
15202
 
         test "$cross_compiling" = yes ||
15203
 
         $as_test_x conftest$ac_exeext
15204
 
       }; then
15205
 
 
15206
 
lt_aix_libpath_sed='
15207
 
    /Import File Strings/,/^$/ {
15208
 
        /^0/ {
15209
 
            s/^0  *\(.*\)$/\1/
15210
 
            p
15211
 
        }
15212
 
    }'
15213
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15214
 
# Check for a 64-bit object if we didn't find anything.
15215
 
if test -z "$aix_libpath"; then
15216
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15217
 
fi
15218
 
else
15219
 
  $as_echo "$as_me: failed program was:" >&5
15220
 
sed 's/^/| /' conftest.$ac_ext >&5
15221
 
 
15222
 
 
15223
 
fi
15224
 
 
15225
 
rm -rf conftest.dSYM
15226
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227
 
      conftest$ac_exeext conftest.$ac_ext
15228
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229
 
 
15230
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15231
 
        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"
15232
 
       else
15233
 
        if test "$host_cpu" = ia64; then
15234
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15235
 
          allow_undefined_flag_F77="-z nodefs"
15236
 
          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"
15237
 
        else
15238
 
         # Determine the default libpath from the value encoded in an empty executable.
15239
 
         cat >conftest.$ac_ext <<_ACEOF
15240
 
      program main
15241
 
 
15242
 
      end
15243
 
_ACEOF
15244
 
rm -f conftest.$ac_objext conftest$ac_exeext
15245
 
if { (ac_try="$ac_link"
15246
 
case "(($ac_try" in
15247
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248
 
  *) ac_try_echo=$ac_try;;
15249
 
esac
15250
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15251
 
$as_echo "$ac_try_echo") >&5
15252
 
  (eval "$ac_link") 2>conftest.er1
15253
 
  ac_status=$?
15254
 
  grep -v '^ *+' conftest.er1 >conftest.err
15255
 
  rm -f conftest.er1
15256
 
  cat conftest.err >&5
15257
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258
 
  (exit $ac_status); } && {
15259
 
         test -z "$ac_f77_werror_flag" ||
15260
 
         test ! -s conftest.err
15261
 
       } && test -s conftest$ac_exeext && {
15262
 
         test "$cross_compiling" = yes ||
15263
 
         $as_test_x conftest$ac_exeext
15264
 
       }; then
15265
 
 
15266
 
lt_aix_libpath_sed='
15267
 
    /Import File Strings/,/^$/ {
15268
 
        /^0/ {
15269
 
            s/^0  *\(.*\)$/\1/
15270
 
            p
15271
 
        }
15272
 
    }'
15273
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274
 
# Check for a 64-bit object if we didn't find anything.
15275
 
if test -z "$aix_libpath"; then
15276
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15277
 
fi
15278
 
else
15279
 
  $as_echo "$as_me: failed program was:" >&5
15280
 
sed 's/^/| /' conftest.$ac_ext >&5
15281
 
 
15282
 
 
15283
 
fi
15284
 
 
15285
 
rm -rf conftest.dSYM
15286
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287
 
      conftest$ac_exeext conftest.$ac_ext
15288
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15289
 
 
15290
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15291
 
          # Warning - without using the other run time loading flags,
15292
 
          # -berok will link without error, but may produce a broken library.
15293
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15294
 
          allow_undefined_flag_F77=' ${wl}-berok'
15295
 
          # Exported symbols can be pulled into shared objects from archives
15296
 
          whole_archive_flag_spec_F77='$convenience'
15297
 
          archive_cmds_need_lc_F77=yes
15298
 
          # This is similar to how AIX traditionally builds its shared libraries.
15299
 
          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'
15300
 
        fi
15301
 
      fi
15302
 
      ;;
15303
 
 
15304
 
    amigaos*)
15305
 
      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)'
15306
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15307
 
      hardcode_minus_L_F77=yes
15308
 
      # see comment about different semantics on the GNU ld section
15309
 
      ld_shlibs_F77=no
15310
 
      ;;
15311
 
 
15312
 
    bsdi[45]*)
15313
 
      export_dynamic_flag_spec_F77=-rdynamic
15314
 
      ;;
15315
 
 
15316
 
    cygwin* | mingw* | pw32*)
15317
 
      # When not using gcc, we currently assume that we are using
15318
 
      # Microsoft Visual C++.
15319
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15320
 
      # no search path for DLLs.
15321
 
      hardcode_libdir_flag_spec_F77=' '
15322
 
      allow_undefined_flag_F77=unsupported
15323
 
      # Tell ltmain to make .lib files, not .a files.
15324
 
      libext=lib
15325
 
      # Tell ltmain to make .dll files, not .so files.
15326
 
      shrext_cmds=".dll"
15327
 
      # FIXME: Setting linknames here is a bad hack.
15328
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15329
 
      # The linker will automatically build a .lib file if we build a DLL.
15330
 
      old_archive_From_new_cmds_F77='true'
15331
 
      # FIXME: Should let the user specify the lib program.
15332
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15333
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15334
 
      enable_shared_with_static_runtimes_F77=yes
15335
 
      ;;
15336
 
 
15337
 
    darwin* | rhapsody*)
15338
 
      case $host_os in
15339
 
        rhapsody* | darwin1.[012])
15340
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15341
 
         ;;
15342
 
       *) # Darwin 1.3 on
15343
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15344
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15345
 
         else
15346
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15347
 
             10.[012])
15348
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15349
 
               ;;
15350
 
             10.*)
15351
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15352
 
               ;;
15353
 
           esac
15354
 
         fi
15355
 
         ;;
15356
 
      esac
15357
 
      archive_cmds_need_lc_F77=no
15358
 
      hardcode_direct_F77=no
15359
 
      hardcode_automatic_F77=yes
15360
 
      hardcode_shlibpath_var_F77=unsupported
15361
 
      whole_archive_flag_spec_F77=''
15362
 
      link_all_deplibs_F77=yes
15363
 
    if test "$GCC" = yes ; then
15364
 
        output_verbose_link_cmd='echo'
15365
 
        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}"
15366
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15367
 
        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}"
15368
 
        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}"
15369
 
    else
15370
 
      case $cc_basename in
15371
 
        xlc*)
15372
 
         output_verbose_link_cmd='echo'
15373
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15374
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15375
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15376
 
         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}'
15377
 
          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}'
15378
 
          ;;
15379
 
       *)
15380
 
         ld_shlibs_F77=no
15381
 
          ;;
15382
 
      esac
15383
 
    fi
15384
 
      ;;
15385
 
 
15386
 
    dgux*)
15387
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15388
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15389
 
      hardcode_shlibpath_var_F77=no
15390
 
      ;;
15391
 
 
15392
 
    freebsd1*)
15393
 
      ld_shlibs_F77=no
15394
 
      ;;
15395
 
 
15396
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15397
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15398
 
    # does not break anything, and helps significantly (at the cost of a little
15399
 
    # extra space).
15400
 
    freebsd2.2*)
15401
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15402
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15403
 
      hardcode_direct_F77=yes
15404
 
      hardcode_shlibpath_var_F77=no
15405
 
      ;;
15406
 
 
15407
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15408
 
    freebsd2*)
15409
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15410
 
      hardcode_direct_F77=yes
15411
 
      hardcode_minus_L_F77=yes
15412
 
      hardcode_shlibpath_var_F77=no
15413
 
      ;;
15414
 
 
15415
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15416
 
    freebsd* | dragonfly*)
15417
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15418
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15419
 
      hardcode_direct_F77=yes
15420
 
      hardcode_shlibpath_var_F77=no
15421
 
      ;;
15422
 
 
15423
 
    hpux9*)
15424
 
      if test "$GCC" = yes; then
15425
 
        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'
15426
 
      else
15427
 
        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'
15428
 
      fi
15429
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15430
 
      hardcode_libdir_separator_F77=:
15431
 
      hardcode_direct_F77=yes
15432
 
 
15433
 
      # hardcode_minus_L: Not really in the search PATH,
15434
 
      # but as the default location of the library.
15435
 
      hardcode_minus_L_F77=yes
15436
 
      export_dynamic_flag_spec_F77='${wl}-E'
15437
 
      ;;
15438
 
 
15439
 
    hpux10*)
15440
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15441
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15442
 
      else
15443
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15444
 
      fi
15445
 
      if test "$with_gnu_ld" = no; then
15446
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15447
 
        hardcode_libdir_separator_F77=:
15448
 
 
15449
 
        hardcode_direct_F77=yes
15450
 
        export_dynamic_flag_spec_F77='${wl}-E'
15451
 
 
15452
 
        # hardcode_minus_L: Not really in the search PATH,
15453
 
        # but as the default location of the library.
15454
 
        hardcode_minus_L_F77=yes
15455
 
      fi
15456
 
      ;;
15457
 
 
15458
 
    hpux11*)
15459
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15460
 
        case $host_cpu in
15461
 
        hppa*64*)
15462
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15463
 
          ;;
15464
 
        ia64*)
15465
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15466
 
          ;;
15467
 
        *)
15468
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15469
 
          ;;
15470
 
        esac
15471
 
      else
15472
 
        case $host_cpu in
15473
 
        hppa*64*)
15474
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15475
 
          ;;
15476
 
        ia64*)
15477
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15478
 
          ;;
15479
 
        *)
15480
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15481
 
          ;;
15482
 
        esac
15483
 
      fi
15484
 
      if test "$with_gnu_ld" = no; then
15485
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15486
 
        hardcode_libdir_separator_F77=:
15487
 
 
15488
 
        case $host_cpu in
15489
 
        hppa*64*|ia64*)
15490
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15491
 
          hardcode_direct_F77=no
15492
 
          hardcode_shlibpath_var_F77=no
15493
 
          ;;
15494
 
        *)
15495
 
          hardcode_direct_F77=yes
15496
 
          export_dynamic_flag_spec_F77='${wl}-E'
15497
 
 
15498
 
          # hardcode_minus_L: Not really in the search PATH,
15499
 
          # but as the default location of the library.
15500
 
          hardcode_minus_L_F77=yes
15501
 
          ;;
15502
 
        esac
15503
 
      fi
15504
 
      ;;
15505
 
 
15506
 
    irix5* | irix6* | nonstopux*)
15507
 
      if test "$GCC" = yes; then
15508
 
        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'
15509
 
      else
15510
 
        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'
15511
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15512
 
      fi
15513
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15514
 
      hardcode_libdir_separator_F77=:
15515
 
      link_all_deplibs_F77=yes
15516
 
      ;;
15517
 
 
15518
 
    netbsd*)
15519
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15520
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15521
 
      else
15522
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15523
 
      fi
15524
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15525
 
      hardcode_direct_F77=yes
15526
 
      hardcode_shlibpath_var_F77=no
15527
 
      ;;
15528
 
 
15529
 
    newsos6)
15530
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531
 
      hardcode_direct_F77=yes
15532
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15533
 
      hardcode_libdir_separator_F77=:
15534
 
      hardcode_shlibpath_var_F77=no
15535
 
      ;;
15536
 
 
15537
 
    openbsd*)
15538
 
      if test -f /usr/libexec/ld.so; then
15539
 
        hardcode_direct_F77=yes
15540
 
        hardcode_shlibpath_var_F77=no
15541
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15542
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15543
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15544
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15545
 
          export_dynamic_flag_spec_F77='${wl}-E'
15546
 
        else
15547
 
          case $host_os in
15548
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15549
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15550
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
15551
 
             ;;
15552
 
           *)
15553
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15554
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15555
 
             ;;
15556
 
          esac
15557
 
        fi
15558
 
      else
15559
 
        ld_shlibs_F77=no
15560
 
      fi
15561
 
      ;;
15562
 
 
15563
 
    os2*)
15564
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15565
 
      hardcode_minus_L_F77=yes
15566
 
      allow_undefined_flag_F77=unsupported
15567
 
      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'
15568
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15569
 
      ;;
15570
 
 
15571
 
    osf3*)
15572
 
      if test "$GCC" = yes; then
15573
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15574
 
        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'
15575
 
      else
15576
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15577
 
        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'
15578
 
      fi
15579
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15580
 
      hardcode_libdir_separator_F77=:
15581
 
      ;;
15582
 
 
15583
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15584
 
      if test "$GCC" = yes; then
15585
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15586
 
        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'
15587
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15588
 
      else
15589
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15590
 
        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'
15591
 
        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~
15592
 
        $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'
15593
 
 
15594
 
        # Both c and cxx compiler support -rpath directly
15595
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15596
 
      fi
15597
 
      hardcode_libdir_separator_F77=:
15598
 
      ;;
15599
 
 
15600
 
    solaris*)
15601
 
      no_undefined_flag_F77=' -z text'
15602
 
      if test "$GCC" = yes; then
15603
 
        wlarc='${wl}'
15604
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15606
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15607
 
      else
15608
 
        wlarc=''
15609
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15611
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15612
 
      fi
15613
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15614
 
      hardcode_shlibpath_var_F77=no
15615
 
      case $host_os in
15616
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15617
 
      *)
15618
 
        # The compiler driver will combine and reorder linker options,
15619
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
15620
 
        # but is careful enough not to reorder.
15621
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15622
 
        if test "$GCC" = yes; then
15623
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15624
 
        else
15625
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15626
 
        fi
15627
 
        ;;
15628
 
      esac
15629
 
      link_all_deplibs_F77=yes
15630
 
      ;;
15631
 
 
15632
 
    sunos4*)
15633
 
      if test "x$host_vendor" = xsequent; then
15634
 
        # Use $CC to link under sequent, because it throws in some extra .o
15635
 
        # files that make .init and .fini sections work.
15636
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15637
 
      else
15638
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15639
 
      fi
15640
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15641
 
      hardcode_direct_F77=yes
15642
 
      hardcode_minus_L_F77=yes
15643
 
      hardcode_shlibpath_var_F77=no
15644
 
      ;;
15645
 
 
15646
 
    sysv4)
15647
 
      case $host_vendor in
15648
 
        sni)
15649
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15650
 
          hardcode_direct_F77=yes # is this really true???
15651
 
        ;;
15652
 
        siemens)
15653
 
          ## LD is ld it makes a PLAMLIB
15654
 
          ## CC just makes a GrossModule.
15655
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15656
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15657
 
          hardcode_direct_F77=no
15658
 
        ;;
15659
 
        motorola)
15660
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15662
 
        ;;
15663
 
      esac
15664
 
      runpath_var='LD_RUN_PATH'
15665
 
      hardcode_shlibpath_var_F77=no
15666
 
      ;;
15667
 
 
15668
 
    sysv4.3*)
15669
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15670
 
      hardcode_shlibpath_var_F77=no
15671
 
      export_dynamic_flag_spec_F77='-Bexport'
15672
 
      ;;
15673
 
 
15674
 
    sysv4*MP*)
15675
 
      if test -d /usr/nec; then
15676
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677
 
        hardcode_shlibpath_var_F77=no
15678
 
        runpath_var=LD_RUN_PATH
15679
 
        hardcode_runpath_var=yes
15680
 
        ld_shlibs_F77=yes
15681
 
      fi
15682
 
      ;;
15683
 
 
15684
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15685
 
      no_undefined_flag_F77='${wl}-z,text'
15686
 
      archive_cmds_need_lc_F77=no
15687
 
      hardcode_shlibpath_var_F77=no
15688
 
      runpath_var='LD_RUN_PATH'
15689
 
 
15690
 
      if test "$GCC" = yes; then
15691
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15692
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15693
 
      else
15694
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15695
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696
 
      fi
15697
 
      ;;
15698
 
 
15699
 
    sysv5* | sco3.2v5* | sco5v6*)
15700
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15701
 
      # link with -lc, and that would cause any symbols used from libc to
15702
 
      # always be unresolved, which means just about no library would
15703
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15704
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15705
 
      # as -z defs.
15706
 
      no_undefined_flag_F77='${wl}-z,text'
15707
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15708
 
      archive_cmds_need_lc_F77=no
15709
 
      hardcode_shlibpath_var_F77=no
15710
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15711
 
      hardcode_libdir_separator_F77=':'
15712
 
      link_all_deplibs_F77=yes
15713
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15714
 
      runpath_var='LD_RUN_PATH'
15715
 
 
15716
 
      if test "$GCC" = yes; then
15717
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15718
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15719
 
      else
15720
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15721
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722
 
      fi
15723
 
      ;;
15724
 
 
15725
 
    uts4*)
15726
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15728
 
      hardcode_shlibpath_var_F77=no
15729
 
      ;;
15730
 
 
15731
 
    *)
15732
 
      ld_shlibs_F77=no
15733
 
      ;;
15734
 
    esac
15735
 
  fi
15736
 
 
15737
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15738
 
$as_echo "$ld_shlibs_F77" >&6; }
15739
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15740
 
 
15741
 
#
15742
 
# Do we need to explicitly link libc?
15743
 
#
15744
 
case "x$archive_cmds_need_lc_F77" in
15745
 
x|xyes)
15746
 
  # Assume -lc should be added
15747
 
  archive_cmds_need_lc_F77=yes
15748
 
 
15749
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15750
 
    case $archive_cmds_F77 in
15751
 
    *'~'*)
15752
 
      # FIXME: we may have to deal with multi-command sequences.
15753
 
      ;;
15754
 
    '$CC '*)
15755
 
      # Test whether the compiler implicitly links with -lc since on some
15756
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15757
 
      # to ld, don't add -lc before -lgcc.
15758
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15759
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15760
 
      $rm conftest*
15761
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15762
 
 
15763
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15764
 
  (eval $ac_compile) 2>&5
15765
 
  ac_status=$?
15766
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767
 
  (exit $ac_status); } 2>conftest.err; then
15768
 
        soname=conftest
15769
 
        lib=conftest
15770
 
        libobjs=conftest.$ac_objext
15771
 
        deplibs=
15772
 
        wl=$lt_prog_compiler_wl_F77
15773
 
        pic_flag=$lt_prog_compiler_pic_F77
15774
 
        compiler_flags=-v
15775
 
        linker_flags=-v
15776
 
        verstring=
15777
 
        output_objdir=.
15778
 
        libname=conftest
15779
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15780
 
        allow_undefined_flag_F77=
15781
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15782
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15783
 
  ac_status=$?
15784
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785
 
  (exit $ac_status); }
15786
 
        then
15787
 
          archive_cmds_need_lc_F77=no
15788
 
        else
15789
 
          archive_cmds_need_lc_F77=yes
15790
 
        fi
15791
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15792
 
      else
15793
 
        cat conftest.err 1>&5
15794
 
      fi
15795
 
      $rm conftest*
15796
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15797
 
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15798
 
      ;;
15799
 
    esac
15800
 
  fi
15801
 
  ;;
15802
 
esac
15803
 
 
15804
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15805
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15806
 
library_names_spec=
15807
 
libname_spec='lib$name'
15808
 
soname_spec=
15809
 
shrext_cmds=".so"
15810
 
postinstall_cmds=
15811
 
postuninstall_cmds=
15812
 
finish_cmds=
15813
 
finish_eval=
15814
 
shlibpath_var=
15815
 
shlibpath_overrides_runpath=unknown
15816
 
version_type=none
15817
 
dynamic_linker="$host_os ld.so"
15818
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15819
 
 
15820
 
need_lib_prefix=unknown
15821
 
hardcode_into_libs=no
15822
 
 
15823
 
# when you set need_version to no, make sure it does not cause -set_version
15824
 
# flags to be left without arguments
15825
 
need_version=unknown
15826
 
 
15827
 
case $host_os in
15828
 
aix3*)
15829
 
  version_type=linux
15830
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15831
 
  shlibpath_var=LIBPATH
15832
 
 
15833
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15834
 
  soname_spec='${libname}${release}${shared_ext}$major'
15835
 
  ;;
15836
 
 
15837
 
aix[4-9]*)
15838
 
  version_type=linux
15839
 
  need_lib_prefix=no
15840
 
  need_version=no
15841
 
  hardcode_into_libs=yes
15842
 
  if test "$host_cpu" = ia64; then
15843
 
    # AIX 5 supports IA64
15844
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15845
 
    shlibpath_var=LD_LIBRARY_PATH
15846
 
  else
15847
 
    # With GCC up to 2.95.x, collect2 would create an import file
15848
 
    # for dependence libraries.  The import file would start with
15849
 
    # the line `#! .'.  This would cause the generated library to
15850
 
    # depend on `.', always an invalid library.  This was fixed in
15851
 
    # development snapshots of GCC prior to 3.0.
15852
 
    case $host_os in
15853
 
      aix4 | aix4.[01] | aix4.[01].*)
15854
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15855
 
           echo ' yes '
15856
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15857
 
        :
15858
 
      else
15859
 
        can_build_shared=no
15860
 
      fi
15861
 
      ;;
15862
 
    esac
15863
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15864
 
    # soname into executable. Probably we can add versioning support to
15865
 
    # collect2, so additional links can be useful in future.
15866
 
    if test "$aix_use_runtimelinking" = yes; then
15867
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15868
 
      # instead of lib<name>.a to let people know that these are not
15869
 
      # typical AIX shared libraries.
15870
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871
 
    else
15872
 
      # We preserve .a as extension for shared libraries through AIX4.2
15873
 
      # and later when we are not doing run time linking.
15874
 
      library_names_spec='${libname}${release}.a $libname.a'
15875
 
      soname_spec='${libname}${release}${shared_ext}$major'
15876
 
    fi
15877
 
    shlibpath_var=LIBPATH
15878
 
  fi
15879
 
  ;;
15880
 
 
15881
 
amigaos*)
15882
 
  library_names_spec='$libname.ixlibrary $libname.a'
15883
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15884
 
  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'
15885
 
  ;;
15886
 
 
15887
 
beos*)
15888
 
  library_names_spec='${libname}${shared_ext}'
15889
 
  dynamic_linker="$host_os ld.so"
15890
 
  shlibpath_var=LIBRARY_PATH
15891
 
  ;;
15892
 
 
15893
 
bsdi[45]*)
15894
 
  version_type=linux
15895
 
  need_version=no
15896
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15897
 
  soname_spec='${libname}${release}${shared_ext}$major'
15898
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15899
 
  shlibpath_var=LD_LIBRARY_PATH
15900
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15901
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15902
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15903
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15904
 
  # libtool to hard-code these into programs
15905
 
  ;;
15906
 
 
15907
 
cygwin* | mingw* | pw32*)
15908
 
  version_type=windows
15909
 
  shrext_cmds=".dll"
15910
 
  need_version=no
15911
 
  need_lib_prefix=no
15912
 
 
15913
 
  case $GCC,$host_os in
15914
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15915
 
    library_names_spec='$libname.dll.a'
15916
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15917
 
    postinstall_cmds='base_file=`basename \${file}`~
15918
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15919
 
      dldir=$destdir/`dirname \$dlpath`~
15920
 
      test -d \$dldir || mkdir -p \$dldir~
15921
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15922
 
      chmod a+x \$dldir/$dlname'
15923
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15924
 
      dlpath=$dir/\$dldll~
15925
 
       $rm \$dlpath'
15926
 
    shlibpath_overrides_runpath=yes
15927
 
 
15928
 
    case $host_os in
15929
 
    cygwin*)
15930
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15931
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15932
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15933
 
      ;;
15934
 
    mingw*)
15935
 
      # MinGW DLLs use traditional 'lib' prefix
15936
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15938
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15939
 
        # It is most probably a Windows format PATH printed by
15940
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15941
 
        # path with ; separators, and with drive letters. We can handle the
15942
 
        # drive letters (cygwin fileutils understands them), so leave them,
15943
 
        # especially as we might pass files found there to a mingw objdump,
15944
 
        # which wouldn't understand a cygwinified path. Ahh.
15945
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15946
 
      else
15947
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15948
 
      fi
15949
 
      ;;
15950
 
    pw32*)
15951
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15952
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953
 
      ;;
15954
 
    esac
15955
 
    ;;
15956
 
 
15957
 
  *)
15958
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15959
 
    ;;
15960
 
  esac
15961
 
  dynamic_linker='Win32 ld.exe'
15962
 
  # FIXME: first we should search . and the directory the executable is in
15963
 
  shlibpath_var=PATH
15964
 
  ;;
15965
 
 
15966
 
darwin* | rhapsody*)
15967
 
  dynamic_linker="$host_os dyld"
15968
 
  version_type=darwin
15969
 
  need_lib_prefix=no
15970
 
  need_version=no
15971
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15972
 
  soname_spec='${libname}${release}${major}$shared_ext'
15973
 
  shlibpath_overrides_runpath=yes
15974
 
  shlibpath_var=DYLD_LIBRARY_PATH
15975
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15976
 
 
15977
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15978
 
  ;;
15979
 
 
15980
 
dgux*)
15981
 
  version_type=linux
15982
 
  need_lib_prefix=no
15983
 
  need_version=no
15984
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15985
 
  soname_spec='${libname}${release}${shared_ext}$major'
15986
 
  shlibpath_var=LD_LIBRARY_PATH
15987
 
  ;;
15988
 
 
15989
 
freebsd1*)
15990
 
  dynamic_linker=no
15991
 
  ;;
15992
 
 
15993
 
freebsd* | dragonfly*)
15994
 
  # DragonFly does not have aout.  When/if they implement a new
15995
 
  # versioning mechanism, adjust this.
15996
 
  if test -x /usr/bin/objformat; then
15997
 
    objformat=`/usr/bin/objformat`
15998
 
  else
15999
 
    case $host_os in
16000
 
    freebsd[123]*) objformat=aout ;;
16001
 
    *) objformat=elf ;;
16002
 
    esac
16003
 
  fi
16004
 
  version_type=freebsd-$objformat
16005
 
  case $version_type in
16006
 
    freebsd-elf*)
16007
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16008
 
      need_version=no
16009
 
      need_lib_prefix=no
16010
 
      ;;
16011
 
    freebsd-*)
16012
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16013
 
      need_version=yes
16014
 
      ;;
16015
 
  esac
16016
 
  shlibpath_var=LD_LIBRARY_PATH
16017
 
  case $host_os in
16018
 
  freebsd2*)
16019
 
    shlibpath_overrides_runpath=yes
16020
 
    ;;
16021
 
  freebsd3.[01]* | freebsdelf3.[01]*)
16022
 
    shlibpath_overrides_runpath=yes
16023
 
    hardcode_into_libs=yes
16024
 
    ;;
16025
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16026
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16027
 
    shlibpath_overrides_runpath=no
16028
 
    hardcode_into_libs=yes
16029
 
    ;;
16030
 
  *) # from 4.6 on, and DragonFly
16031
 
    shlibpath_overrides_runpath=yes
16032
 
    hardcode_into_libs=yes
16033
 
    ;;
16034
 
  esac
16035
 
  ;;
16036
 
 
16037
 
gnu*)
16038
 
  version_type=linux
16039
 
  need_lib_prefix=no
16040
 
  need_version=no
16041
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16042
 
  soname_spec='${libname}${release}${shared_ext}$major'
16043
 
  shlibpath_var=LD_LIBRARY_PATH
16044
 
  hardcode_into_libs=yes
16045
 
  ;;
16046
 
 
16047
 
hpux9* | hpux10* | hpux11*)
16048
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16049
 
  # link against other versions.
16050
 
  version_type=sunos
16051
 
  need_lib_prefix=no
16052
 
  need_version=no
16053
 
  case $host_cpu in
16054
 
  ia64*)
16055
 
    shrext_cmds='.so'
16056
 
    hardcode_into_libs=yes
16057
 
    dynamic_linker="$host_os dld.so"
16058
 
    shlibpath_var=LD_LIBRARY_PATH
16059
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16060
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061
 
    soname_spec='${libname}${release}${shared_ext}$major'
16062
 
    if test "X$HPUX_IA64_MODE" = X32; then
16063
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16064
 
    else
16065
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16066
 
    fi
16067
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16068
 
    ;;
16069
 
   hppa*64*)
16070
 
     shrext_cmds='.sl'
16071
 
     hardcode_into_libs=yes
16072
 
     dynamic_linker="$host_os dld.sl"
16073
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16074
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16075
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076
 
     soname_spec='${libname}${release}${shared_ext}$major'
16077
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16078
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16079
 
     ;;
16080
 
   *)
16081
 
    shrext_cmds='.sl'
16082
 
    dynamic_linker="$host_os dld.sl"
16083
 
    shlibpath_var=SHLIB_PATH
16084
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16085
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086
 
    soname_spec='${libname}${release}${shared_ext}$major'
16087
 
    ;;
16088
 
  esac
16089
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16090
 
  postinstall_cmds='chmod 555 $lib'
16091
 
  ;;
16092
 
 
16093
 
interix[3-9]*)
16094
 
  version_type=linux
16095
 
  need_lib_prefix=no
16096
 
  need_version=no
16097
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098
 
  soname_spec='${libname}${release}${shared_ext}$major'
16099
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16100
 
  shlibpath_var=LD_LIBRARY_PATH
16101
 
  shlibpath_overrides_runpath=no
16102
 
  hardcode_into_libs=yes
16103
 
  ;;
16104
 
 
16105
 
irix5* | irix6* | nonstopux*)
16106
 
  case $host_os in
16107
 
    nonstopux*) version_type=nonstopux ;;
16108
 
    *)
16109
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16110
 
                version_type=linux
16111
 
        else
16112
 
                version_type=irix
16113
 
        fi ;;
16114
 
  esac
16115
 
  need_lib_prefix=no
16116
 
  need_version=no
16117
 
  soname_spec='${libname}${release}${shared_ext}$major'
16118
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16119
 
  case $host_os in
16120
 
  irix5* | nonstopux*)
16121
 
    libsuff= shlibsuff=
16122
 
    ;;
16123
 
  *)
16124
 
    case $LD in # libtool.m4 will add one of these switches to LD
16125
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16126
 
      libsuff= shlibsuff= libmagic=32-bit;;
16127
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16128
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16129
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16130
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16131
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16132
 
    esac
16133
 
    ;;
16134
 
  esac
16135
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16136
 
  shlibpath_overrides_runpath=no
16137
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16138
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16139
 
  hardcode_into_libs=yes
16140
 
  ;;
16141
 
 
16142
 
# No shared lib support for Linux oldld, aout, or coff.
16143
 
linux*oldld* | linux*aout* | linux*coff*)
16144
 
  dynamic_linker=no
16145
 
  ;;
16146
 
 
16147
 
# This must be Linux ELF.
16148
 
linux* | k*bsd*-gnu)
16149
 
  version_type=linux
16150
 
  need_lib_prefix=no
16151
 
  need_version=no
16152
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153
 
  soname_spec='${libname}${release}${shared_ext}$major'
16154
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16155
 
  shlibpath_var=LD_LIBRARY_PATH
16156
 
  shlibpath_overrides_runpath=no
16157
 
  # This implies no fast_install, which is unacceptable.
16158
 
  # Some rework will be needed to allow for fast_install
16159
 
  # before this can be enabled.
16160
 
  hardcode_into_libs=yes
16161
 
 
16162
 
  # find out which ABI we are using
16163
 
  libsuff=
16164
 
  case "$host_cpu" in
16165
 
  x86_64*|s390x*|powerpc64*)
16166
 
    echo '#line 16166 "configure"' > conftest.$ac_ext
16167
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16168
 
  (eval $ac_compile) 2>&5
16169
 
  ac_status=$?
16170
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171
 
  (exit $ac_status); }; then
16172
 
      case `/usr/bin/file conftest.$ac_objext` in
16173
 
      *64-bit*)
16174
 
        libsuff=64
16175
 
        ;;
16176
 
      esac
16177
 
    fi
16178
 
    rm -rf conftest*
16179
 
    ;;
16180
 
  esac
16181
 
 
16182
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16183
 
 
16184
 
  # Append ld.so.conf contents to the search path
16185
 
  if test -f /etc/ld.so.conf; then
16186
 
    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' ' '`
16187
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16188
 
  fi
16189
 
 
16190
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16191
 
  # powerpc, because MkLinux only supported shared libraries with the
16192
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16193
 
  # most powerpc-linux boxes support dynamic linking these days and
16194
 
  # people can always --disable-shared, the test was removed, and we
16195
 
  # assume the GNU/Linux dynamic linker is in use.
16196
 
  dynamic_linker='GNU/Linux ld.so'
16197
 
  ;;
16198
 
 
16199
 
netbsd*)
16200
 
  version_type=sunos
16201
 
  need_lib_prefix=no
16202
 
  need_version=no
16203
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16204
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16205
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16206
 
    dynamic_linker='NetBSD (a.out) ld.so'
16207
 
  else
16208
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16209
 
    soname_spec='${libname}${release}${shared_ext}$major'
16210
 
    dynamic_linker='NetBSD ld.elf_so'
16211
 
  fi
16212
 
  shlibpath_var=LD_LIBRARY_PATH
16213
 
  shlibpath_overrides_runpath=yes
16214
 
  hardcode_into_libs=yes
16215
 
  ;;
16216
 
 
16217
 
newsos6)
16218
 
  version_type=linux
16219
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220
 
  shlibpath_var=LD_LIBRARY_PATH
16221
 
  shlibpath_overrides_runpath=yes
16222
 
  ;;
16223
 
 
16224
 
nto-qnx*)
16225
 
  version_type=linux
16226
 
  need_lib_prefix=no
16227
 
  need_version=no
16228
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229
 
  soname_spec='${libname}${release}${shared_ext}$major'
16230
 
  shlibpath_var=LD_LIBRARY_PATH
16231
 
  shlibpath_overrides_runpath=yes
16232
 
  ;;
16233
 
 
16234
 
openbsd*)
16235
 
  version_type=sunos
16236
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16237
 
  need_lib_prefix=no
16238
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16239
 
  case $host_os in
16240
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16241
 
    *)                         need_version=no  ;;
16242
 
  esac
16243
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16245
 
  shlibpath_var=LD_LIBRARY_PATH
16246
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16247
 
    case $host_os in
16248
 
      openbsd2.[89] | openbsd2.[89].*)
16249
 
        shlibpath_overrides_runpath=no
16250
 
        ;;
16251
 
      *)
16252
 
        shlibpath_overrides_runpath=yes
16253
 
        ;;
16254
 
      esac
16255
 
  else
16256
 
    shlibpath_overrides_runpath=yes
16257
 
  fi
16258
 
  ;;
16259
 
 
16260
 
os2*)
16261
 
  libname_spec='$name'
16262
 
  shrext_cmds=".dll"
16263
 
  need_lib_prefix=no
16264
 
  library_names_spec='$libname${shared_ext} $libname.a'
16265
 
  dynamic_linker='OS/2 ld.exe'
16266
 
  shlibpath_var=LIBPATH
16267
 
  ;;
16268
 
 
16269
 
osf3* | osf4* | osf5*)
16270
 
  version_type=osf
16271
 
  need_lib_prefix=no
16272
 
  need_version=no
16273
 
  soname_spec='${libname}${release}${shared_ext}$major'
16274
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275
 
  shlibpath_var=LD_LIBRARY_PATH
16276
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16277
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16278
 
  ;;
16279
 
 
16280
 
rdos*)
16281
 
  dynamic_linker=no
16282
 
  ;;
16283
 
 
16284
 
solaris*)
16285
 
  version_type=linux
16286
 
  need_lib_prefix=no
16287
 
  need_version=no
16288
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289
 
  soname_spec='${libname}${release}${shared_ext}$major'
16290
 
  shlibpath_var=LD_LIBRARY_PATH
16291
 
  shlibpath_overrides_runpath=yes
16292
 
  hardcode_into_libs=yes
16293
 
  # ldd complains unless libraries are executable
16294
 
  postinstall_cmds='chmod +x $lib'
16295
 
  ;;
16296
 
 
16297
 
sunos4*)
16298
 
  version_type=sunos
16299
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16300
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16301
 
  shlibpath_var=LD_LIBRARY_PATH
16302
 
  shlibpath_overrides_runpath=yes
16303
 
  if test "$with_gnu_ld" = yes; then
16304
 
    need_lib_prefix=no
16305
 
  fi
16306
 
  need_version=yes
16307
 
  ;;
16308
 
 
16309
 
sysv4 | sysv4.3*)
16310
 
  version_type=linux
16311
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16312
 
  soname_spec='${libname}${release}${shared_ext}$major'
16313
 
  shlibpath_var=LD_LIBRARY_PATH
16314
 
  case $host_vendor in
16315
 
    sni)
16316
 
      shlibpath_overrides_runpath=no
16317
 
      need_lib_prefix=no
16318
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16319
 
      runpath_var=LD_RUN_PATH
16320
 
      ;;
16321
 
    siemens)
16322
 
      need_lib_prefix=no
16323
 
      ;;
16324
 
    motorola)
16325
 
      need_lib_prefix=no
16326
 
      need_version=no
16327
 
      shlibpath_overrides_runpath=no
16328
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16329
 
      ;;
16330
 
  esac
16331
 
  ;;
16332
 
 
16333
 
sysv4*MP*)
16334
 
  if test -d /usr/nec ;then
16335
 
    version_type=linux
16336
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16337
 
    soname_spec='$libname${shared_ext}.$major'
16338
 
    shlibpath_var=LD_LIBRARY_PATH
16339
 
  fi
16340
 
  ;;
16341
 
 
16342
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16343
 
  version_type=freebsd-elf
16344
 
  need_lib_prefix=no
16345
 
  need_version=no
16346
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16347
 
  soname_spec='${libname}${release}${shared_ext}$major'
16348
 
  shlibpath_var=LD_LIBRARY_PATH
16349
 
  hardcode_into_libs=yes
16350
 
  if test "$with_gnu_ld" = yes; then
16351
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16352
 
    shlibpath_overrides_runpath=no
16353
 
  else
16354
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16355
 
    shlibpath_overrides_runpath=yes
16356
 
    case $host_os in
16357
 
      sco3.2v5*)
16358
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16359
 
        ;;
16360
 
    esac
16361
 
  fi
16362
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16363
 
  ;;
16364
 
 
16365
 
uts4*)
16366
 
  version_type=linux
16367
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368
 
  soname_spec='${libname}${release}${shared_ext}$major'
16369
 
  shlibpath_var=LD_LIBRARY_PATH
16370
 
  ;;
16371
 
 
16372
 
*)
16373
 
  dynamic_linker=no
16374
 
  ;;
16375
 
esac
16376
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16377
 
$as_echo "$dynamic_linker" >&6; }
16378
 
test "$dynamic_linker" = no && can_build_shared=no
16379
 
 
16380
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16381
 
  $as_echo_n "(cached) " >&6
16382
 
else
16383
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16384
 
fi
16385
 
 
16386
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16387
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16388
 
  $as_echo_n "(cached) " >&6
16389
 
else
16390
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16391
 
fi
16392
 
 
16393
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16394
 
 
16395
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16396
 
if test "$GCC" = yes; then
16397
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16398
 
fi
16399
 
 
16400
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16401
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16402
 
hardcode_action_F77=
16403
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16404
 
   test -n "$runpath_var_F77" || \
16405
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16406
 
 
16407
 
  # We can hardcode non-existant directories.
16408
 
  if test "$hardcode_direct_F77" != no &&
16409
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16410
 
     # have to relink, otherwise we might link with an installed library
16411
 
     # when we should be linking with a yet-to-be-installed one
16412
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16413
 
     test "$hardcode_minus_L_F77" != no; then
16414
 
    # Linking always hardcodes the temporary library directory.
16415
 
    hardcode_action_F77=relink
16416
 
  else
16417
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16418
 
    hardcode_action_F77=immediate
16419
 
  fi
16420
 
else
16421
 
  # We cannot hardcode anything, or else we can only hardcode existing
16422
 
  # directories.
16423
 
  hardcode_action_F77=unsupported
16424
 
fi
16425
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16426
 
$as_echo "$hardcode_action_F77" >&6; }
16427
 
 
16428
 
if test "$hardcode_action_F77" = relink; then
16429
 
  # Fast installation is not supported
16430
 
  enable_fast_install=no
16431
 
elif test "$shlibpath_overrides_runpath" = yes ||
16432
 
     test "$enable_shared" = no; then
16433
 
  # Fast installation is not necessary
16434
 
  enable_fast_install=needless
16435
 
fi
16436
 
 
16437
 
 
16438
 
# The else clause should only fire when bootstrapping the
16439
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16440
 
# with your package, and you will get complaints that there are
16441
 
# no rules to generate ltmain.sh.
16442
 
if test -f "$ltmain"; then
16443
 
  # See if we are running on zsh, and set the options which allow our commands through
16444
 
  # without removal of \ escapes.
16445
 
  if test -n "${ZSH_VERSION+set}" ; then
16446
 
    setopt NO_GLOB_SUBST
16447
 
  fi
16448
 
  # Now quote all the things that may contain metacharacters while being
16449
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16450
 
  # variables and quote the copies for generation of the libtool script.
16451
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16452
 
    SED SHELL STRIP \
16453
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16454
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16455
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16456
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16457
 
    lt_cv_sys_global_symbol_to_c_name_address \
16458
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16459
 
    old_postinstall_cmds old_postuninstall_cmds \
16460
 
    compiler_F77 \
16461
 
    CC_F77 \
16462
 
    LD_F77 \
16463
 
    lt_prog_compiler_wl_F77 \
16464
 
    lt_prog_compiler_pic_F77 \
16465
 
    lt_prog_compiler_static_F77 \
16466
 
    lt_prog_compiler_no_builtin_flag_F77 \
16467
 
    export_dynamic_flag_spec_F77 \
16468
 
    thread_safe_flag_spec_F77 \
16469
 
    whole_archive_flag_spec_F77 \
16470
 
    enable_shared_with_static_runtimes_F77 \
16471
 
    old_archive_cmds_F77 \
16472
 
    old_archive_from_new_cmds_F77 \
16473
 
    predep_objects_F77 \
16474
 
    postdep_objects_F77 \
16475
 
    predeps_F77 \
16476
 
    postdeps_F77 \
16477
 
    compiler_lib_search_path_F77 \
16478
 
    compiler_lib_search_dirs_F77 \
16479
 
    archive_cmds_F77 \
16480
 
    archive_expsym_cmds_F77 \
16481
 
    postinstall_cmds_F77 \
16482
 
    postuninstall_cmds_F77 \
16483
 
    old_archive_from_expsyms_cmds_F77 \
16484
 
    allow_undefined_flag_F77 \
16485
 
    no_undefined_flag_F77 \
16486
 
    export_symbols_cmds_F77 \
16487
 
    hardcode_libdir_flag_spec_F77 \
16488
 
    hardcode_libdir_flag_spec_ld_F77 \
16489
 
    hardcode_libdir_separator_F77 \
16490
 
    hardcode_automatic_F77 \
16491
 
    module_cmds_F77 \
16492
 
    module_expsym_cmds_F77 \
16493
 
    lt_cv_prog_compiler_c_o_F77 \
16494
 
    fix_srcfile_path_F77 \
16495
 
    exclude_expsyms_F77 \
16496
 
    include_expsyms_F77; do
16497
 
 
16498
 
    case $var in
16499
 
    old_archive_cmds_F77 | \
16500
 
    old_archive_from_new_cmds_F77 | \
16501
 
    archive_cmds_F77 | \
16502
 
    archive_expsym_cmds_F77 | \
16503
 
    module_cmds_F77 | \
16504
 
    module_expsym_cmds_F77 | \
16505
 
    old_archive_from_expsyms_cmds_F77 | \
16506
 
    export_symbols_cmds_F77 | \
16507
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16508
 
    postinstall_cmds | postuninstall_cmds | \
16509
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16510
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16511
 
      # Double-quote double-evaled strings.
16512
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16513
 
      ;;
16514
 
    *)
16515
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16516
 
      ;;
16517
 
    esac
16518
 
  done
16519
 
 
16520
 
  case $lt_echo in
16521
 
  *'\$0 --fallback-echo"')
16522
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16523
 
    ;;
16524
 
  esac
16525
 
 
16526
 
cfgfile="$ofile"
16527
 
 
16528
 
  cat <<__EOF__ >> "$cfgfile"
16529
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16530
 
 
16531
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16532
 
 
16533
 
# Shell to use when invoking shell scripts.
16534
 
SHELL=$lt_SHELL
16535
 
 
16536
 
# Whether or not to build shared libraries.
16537
 
build_libtool_libs=$enable_shared
16538
 
 
16539
 
# Whether or not to build static libraries.
16540
 
build_old_libs=$enable_static
16541
 
 
16542
 
# Whether or not to add -lc for building shared libraries.
16543
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16544
 
 
16545
 
# Whether or not to disallow shared libs when runtime libs are static
16546
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16547
 
 
16548
 
# Whether or not to optimize for fast installation.
16549
 
fast_install=$enable_fast_install
16550
 
 
16551
 
# The host system.
16552
 
host_alias=$host_alias
16553
 
host=$host
16554
 
host_os=$host_os
16555
 
 
16556
 
# The build system.
16557
 
build_alias=$build_alias
16558
 
build=$build
16559
 
build_os=$build_os
16560
 
 
16561
 
# An echo program that does not interpret backslashes.
16562
 
echo=$lt_echo
16563
 
 
16564
 
# The archiver.
16565
 
AR=$lt_AR
16566
 
AR_FLAGS=$lt_AR_FLAGS
16567
 
 
16568
 
# A C compiler.
16569
 
LTCC=$lt_LTCC
16570
 
 
16571
 
# LTCC compiler flags.
16572
 
LTCFLAGS=$lt_LTCFLAGS
16573
 
 
16574
 
# A language-specific compiler.
16575
 
CC=$lt_compiler_F77
16576
 
 
16577
 
# Is the compiler the GNU C compiler?
16578
 
with_gcc=$GCC_F77
16579
 
 
16580
 
# An ERE matcher.
16581
 
EGREP=$lt_EGREP
16582
 
 
16583
 
# The linker used to build libraries.
16584
 
LD=$lt_LD_F77
16585
 
 
16586
 
# Whether we need hard or soft links.
16587
 
LN_S=$lt_LN_S
16588
 
 
16589
 
# A BSD-compatible nm program.
16590
 
NM=$lt_NM
16591
 
 
16592
 
# A symbol stripping program
16593
 
STRIP=$lt_STRIP
16594
 
 
16595
 
# Used to examine libraries when file_magic_cmd begins "file"
16596
 
MAGIC_CMD=$MAGIC_CMD
16597
 
 
16598
 
# Used on cygwin: DLL creation program.
16599
 
DLLTOOL="$DLLTOOL"
16600
 
 
16601
 
# Used on cygwin: object dumper.
16602
 
OBJDUMP="$OBJDUMP"
16603
 
 
16604
 
# Used on cygwin: assembler.
16605
 
AS="$AS"
16606
 
 
16607
 
# The name of the directory that contains temporary libtool files.
16608
 
objdir=$objdir
16609
 
 
16610
 
# How to create reloadable object files.
16611
 
reload_flag=$lt_reload_flag
16612
 
reload_cmds=$lt_reload_cmds
16613
 
 
16614
 
# How to pass a linker flag through the compiler.
16615
 
wl=$lt_lt_prog_compiler_wl_F77
16616
 
 
16617
 
# Object file suffix (normally "o").
16618
 
objext="$ac_objext"
16619
 
 
16620
 
# Old archive suffix (normally "a").
16621
 
libext="$libext"
16622
 
 
16623
 
# Shared library suffix (normally ".so").
16624
 
shrext_cmds='$shrext_cmds'
16625
 
 
16626
 
# Executable file suffix (normally "").
16627
 
exeext="$exeext"
16628
 
 
16629
 
# Additional compiler flags for building library objects.
16630
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16631
 
pic_mode=$pic_mode
16632
 
 
16633
 
# What is the maximum length of a command?
16634
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16635
 
 
16636
 
# Does compiler simultaneously support -c and -o options?
16637
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16638
 
 
16639
 
# Must we lock files when doing compilation?
16640
 
need_locks=$lt_need_locks
16641
 
 
16642
 
# Do we need the lib prefix for modules?
16643
 
need_lib_prefix=$need_lib_prefix
16644
 
 
16645
 
# Do we need a version for libraries?
16646
 
need_version=$need_version
16647
 
 
16648
 
# Whether dlopen is supported.
16649
 
dlopen_support=$enable_dlopen
16650
 
 
16651
 
# Whether dlopen of programs is supported.
16652
 
dlopen_self=$enable_dlopen_self
16653
 
 
16654
 
# Whether dlopen of statically linked programs is supported.
16655
 
dlopen_self_static=$enable_dlopen_self_static
16656
 
 
16657
 
# Compiler flag to prevent dynamic linking.
16658
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16659
 
 
16660
 
# Compiler flag to turn off builtin functions.
16661
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16662
 
 
16663
 
# Compiler flag to allow reflexive dlopens.
16664
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16665
 
 
16666
 
# Compiler flag to generate shared objects directly from archives.
16667
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16668
 
 
16669
 
# Compiler flag to generate thread-safe objects.
16670
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16671
 
 
16672
 
# Library versioning type.
16673
 
version_type=$version_type
16674
 
 
16675
 
# Format of library name prefix.
16676
 
libname_spec=$lt_libname_spec
16677
 
 
16678
 
# List of archive names.  First name is the real one, the rest are links.
16679
 
# The last name is the one that the linker finds with -lNAME.
16680
 
library_names_spec=$lt_library_names_spec
16681
 
 
16682
 
# The coded name of the library, if different from the real name.
16683
 
soname_spec=$lt_soname_spec
16684
 
 
16685
 
# Commands used to build and install an old-style archive.
16686
 
RANLIB=$lt_RANLIB
16687
 
old_archive_cmds=$lt_old_archive_cmds_F77
16688
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16689
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16690
 
 
16691
 
# Create an old-style archive from a shared archive.
16692
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16693
 
 
16694
 
# Create a temporary old-style archive to link instead of a shared archive.
16695
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16696
 
 
16697
 
# Commands used to build and install a shared archive.
16698
 
archive_cmds=$lt_archive_cmds_F77
16699
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16700
 
postinstall_cmds=$lt_postinstall_cmds
16701
 
postuninstall_cmds=$lt_postuninstall_cmds
16702
 
 
16703
 
# Commands used to build a loadable module (assumed same as above if empty)
16704
 
module_cmds=$lt_module_cmds_F77
16705
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16706
 
 
16707
 
# Commands to strip libraries.
16708
 
old_striplib=$lt_old_striplib
16709
 
striplib=$lt_striplib
16710
 
 
16711
 
# Dependencies to place before the objects being linked to create a
16712
 
# shared library.
16713
 
predep_objects=$lt_predep_objects_F77
16714
 
 
16715
 
# Dependencies to place after the objects being linked to create a
16716
 
# shared library.
16717
 
postdep_objects=$lt_postdep_objects_F77
16718
 
 
16719
 
# Dependencies to place before the objects being linked to create a
16720
 
# shared library.
16721
 
predeps=$lt_predeps_F77
16722
 
 
16723
 
# Dependencies to place after the objects being linked to create a
16724
 
# shared library.
16725
 
postdeps=$lt_postdeps_F77
16726
 
 
16727
 
# The directories searched by this compiler when creating a shared
16728
 
# library
16729
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16730
 
 
16731
 
# The library search path used internally by the compiler when linking
16732
 
# a shared library.
16733
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16734
 
 
16735
 
# Method to check whether dependent libraries are shared objects.
16736
 
deplibs_check_method=$lt_deplibs_check_method
16737
 
 
16738
 
# Command to use when deplibs_check_method == file_magic.
16739
 
file_magic_cmd=$lt_file_magic_cmd
16740
 
 
16741
 
# Flag that allows shared libraries with undefined symbols to be built.
16742
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16743
 
 
16744
 
# Flag that forces no undefined symbols.
16745
 
no_undefined_flag=$lt_no_undefined_flag_F77
16746
 
 
16747
 
# Commands used to finish a libtool library installation in a directory.
16748
 
finish_cmds=$lt_finish_cmds
16749
 
 
16750
 
# Same as above, but a single script fragment to be evaled but not shown.
16751
 
finish_eval=$lt_finish_eval
16752
 
 
16753
 
# Take the output of nm and produce a listing of raw symbols and C names.
16754
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16755
 
 
16756
 
# Transform the output of nm in a proper C declaration
16757
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16758
 
 
16759
 
# Transform the output of nm in a C name address pair
16760
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16761
 
 
16762
 
# This is the shared library runtime path variable.
16763
 
runpath_var=$runpath_var
16764
 
 
16765
 
# This is the shared library path variable.
16766
 
shlibpath_var=$shlibpath_var
16767
 
 
16768
 
# Is shlibpath searched before the hard-coded library search path?
16769
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16770
 
 
16771
 
# How to hardcode a shared library path into an executable.
16772
 
hardcode_action=$hardcode_action_F77
16773
 
 
16774
 
# Whether we should hardcode library paths into libraries.
16775
 
hardcode_into_libs=$hardcode_into_libs
16776
 
 
16777
 
# Flag to hardcode \$libdir into a binary during linking.
16778
 
# This must work even if \$libdir does not exist.
16779
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16780
 
 
16781
 
# If ld is used when linking, flag to hardcode \$libdir into
16782
 
# a binary during linking. This must work even if \$libdir does
16783
 
# not exist.
16784
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16785
 
 
16786
 
# Whether we need a single -rpath flag with a separated argument.
16787
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16788
 
 
16789
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16790
 
# resulting binary.
16791
 
hardcode_direct=$hardcode_direct_F77
16792
 
 
16793
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16794
 
# resulting binary.
16795
 
hardcode_minus_L=$hardcode_minus_L_F77
16796
 
 
16797
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16798
 
# the resulting binary.
16799
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16800
 
 
16801
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16802
 
# and all subsequent libraries and executables linked against it.
16803
 
hardcode_automatic=$hardcode_automatic_F77
16804
 
 
16805
 
# Variables whose values should be saved in libtool wrapper scripts and
16806
 
# restored at relink time.
16807
 
variables_saved_for_relink="$variables_saved_for_relink"
16808
 
 
16809
 
# Whether libtool must link a program against all its dependency libraries.
16810
 
link_all_deplibs=$link_all_deplibs_F77
16811
 
 
16812
 
# Compile-time system search path for libraries
16813
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16814
 
 
16815
 
# Run-time system search path for libraries
16816
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16817
 
 
16818
 
# Fix the shell variable \$srcfile for the compiler.
16819
 
fix_srcfile_path=$lt_fix_srcfile_path
16820
 
 
16821
 
# Set to yes if exported symbols are required.
16822
 
always_export_symbols=$always_export_symbols_F77
16823
 
 
16824
 
# The commands to list exported symbols.
16825
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16826
 
 
16827
 
# The commands to extract the exported symbol list from a shared archive.
16828
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16829
 
 
16830
 
# Symbols that should not be listed in the preloaded symbols.
16831
 
exclude_expsyms=$lt_exclude_expsyms_F77
16832
 
 
16833
 
# Symbols that must always be exported.
16834
 
include_expsyms=$lt_include_expsyms_F77
16835
 
 
16836
 
# ### END LIBTOOL TAG CONFIG: $tagname
16837
 
 
16838
 
__EOF__
16839
 
 
16840
 
 
16841
 
else
16842
 
  # If there is no Makefile yet, we rely on a make rule to execute
16843
 
  # `config.status --recheck' to rerun these tests and create the
16844
 
  # libtool script then.
16845
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16846
 
  if test -f "$ltmain_in"; then
16847
 
    test -f Makefile && make "$ltmain"
16848
 
  fi
16849
 
fi
16850
 
 
16851
 
 
16852
 
ac_ext=c
16853
 
ac_cpp='$CPP $CPPFLAGS'
16854
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16855
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16856
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16857
 
 
16858
 
CC="$lt_save_CC"
16859
 
 
16860
 
        else
16861
 
          tagname=""
16862
 
        fi
16863
 
        ;;
16864
 
 
16865
 
      GCJ)
16866
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16867
 
 
16868
 
 
16869
 
# Source file extension for Java test sources.
16870
 
ac_ext=java
16871
 
 
16872
 
# Object file extension for compiled Java test sources.
16873
 
objext=o
16874
 
objext_GCJ=$objext
16875
 
 
16876
 
# Code to be used in simple compile tests
16877
 
lt_simple_compile_test_code="class foo {}"
16878
 
 
16879
 
# Code to be used in simple link tests
16880
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16881
 
 
16882
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16883
 
 
16884
 
# If no C compiler was specified, use CC.
16885
 
LTCC=${LTCC-"$CC"}
16886
 
 
16887
 
# If no C compiler flags were specified, use CFLAGS.
16888
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16889
 
 
16890
 
# Allow CC to be a program name with arguments.
16891
 
compiler=$CC
16892
 
 
16893
 
 
16894
 
# save warnings/boilerplate of simple test code
16895
 
ac_outfile=conftest.$ac_objext
16896
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16897
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16898
 
_lt_compiler_boilerplate=`cat conftest.err`
16899
 
$rm conftest*
16900
 
 
16901
 
ac_outfile=conftest.$ac_objext
16902
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16903
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16904
 
_lt_linker_boilerplate=`cat conftest.err`
16905
 
$rm -r conftest*
16906
 
 
16907
 
 
16908
 
# Allow CC to be a program name with arguments.
16909
 
lt_save_CC="$CC"
16910
 
CC=${GCJ-"gcj"}
16911
 
compiler=$CC
16912
 
compiler_GCJ=$CC
16913
 
for cc_temp in $compiler""; do
16914
 
  case $cc_temp in
16915
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16916
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16917
 
    \-*) ;;
16918
 
    *) break;;
16919
 
  esac
16920
 
done
16921
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16922
 
 
16923
 
LD_GCJ="$LD"
16924
 
 
16925
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16926
 
archive_cmds_need_lc_GCJ=no
16927
 
 
16928
 
old_archive_cmds_GCJ=$old_archive_cmds
16929
 
 
16930
 
 
16931
 
lt_prog_compiler_no_builtin_flag_GCJ=
16932
 
 
16933
 
if test "$GCC" = yes; then
16934
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16935
 
 
16936
 
 
16937
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16938
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16939
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16940
 
  $as_echo_n "(cached) " >&6
16941
 
else
16942
 
  lt_cv_prog_compiler_rtti_exceptions=no
16943
 
  ac_outfile=conftest.$ac_objext
16944
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16945
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16946
 
   # Insert the option either (1) after the last *FLAGS variable, or
16947
 
   # (2) before a word containing "conftest.", or (3) at the end.
16948
 
   # Note that $ac_compile itself does not contain backslashes and begins
16949
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16950
 
   # The option is referenced via a variable to avoid confusing sed.
16951
 
   lt_compile=`echo "$ac_compile" | $SED \
16952
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16953
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16954
 
   -e 's:$: $lt_compiler_flag:'`
16955
 
   (eval echo "\"\$as_me:16955: $lt_compile\"" >&5)
16956
 
   (eval "$lt_compile" 2>conftest.err)
16957
 
   ac_status=$?
16958
 
   cat conftest.err >&5
16959
 
   echo "$as_me:16959: \$? = $ac_status" >&5
16960
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16961
 
     # The compiler can only warn and ignore the option if not recognized
16962
 
     # So say no if there are warnings other than the usual output.
16963
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16964
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16965
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16966
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16967
 
     fi
16968
 
   fi
16969
 
   $rm conftest*
16970
 
 
16971
 
fi
16972
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16973
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16974
 
 
16975
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16976
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16977
 
else
16978
 
    :
16979
 
fi
16980
 
 
16981
 
fi
16982
 
 
16983
 
lt_prog_compiler_wl_GCJ=
16984
 
lt_prog_compiler_pic_GCJ=
16985
 
lt_prog_compiler_static_GCJ=
16986
 
 
16987
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16988
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16989
 
 
16990
 
  if test "$GCC" = yes; then
16991
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16992
 
    lt_prog_compiler_static_GCJ='-static'
16993
 
 
16994
 
    case $host_os in
16995
 
      aix*)
16996
 
      # All AIX code is PIC.
16997
 
      if test "$host_cpu" = ia64; then
16998
 
        # AIX 5 now supports IA64 processor
16999
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17000
 
      fi
17001
 
      ;;
17002
 
 
17003
 
    amigaos*)
17004
 
      # FIXME: we need at least 68020 code to build shared libraries, but
17005
 
      # adding the `-m68020' flag to GCC prevents building anything better,
17006
 
      # like `-m68040'.
17007
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17008
 
      ;;
17009
 
 
17010
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17011
 
      # PIC is the default for these OSes.
17012
 
      ;;
17013
 
 
17014
 
    mingw* | cygwin* | pw32* | os2*)
17015
 
      # This hack is so that the source file can tell whether it is being
17016
 
      # built for inclusion in a dll (and should export symbols for example).
17017
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17018
 
      # (--disable-auto-import) libraries
17019
 
 
17020
 
      ;;
17021
 
 
17022
 
    darwin* | rhapsody*)
17023
 
      # PIC is the default on this platform
17024
 
      # Common symbols not allowed in MH_DYLIB files
17025
 
      lt_prog_compiler_pic_GCJ='-fno-common'
17026
 
      ;;
17027
 
 
17028
 
    interix[3-9]*)
17029
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17030
 
      # Instead, we relocate shared libraries at runtime.
17031
 
      ;;
17032
 
 
17033
 
    msdosdjgpp*)
17034
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
17035
 
      # on systems that don't support them.
17036
 
      lt_prog_compiler_can_build_shared_GCJ=no
17037
 
      enable_shared=no
17038
 
      ;;
17039
 
 
17040
 
    sysv4*MP*)
17041
 
      if test -d /usr/nec; then
17042
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
17043
 
      fi
17044
 
      ;;
17045
 
 
17046
 
    hpux*)
17047
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17048
 
      # not for PA HP-UX.
17049
 
      case $host_cpu in
17050
 
      hppa*64*|ia64*)
17051
 
        # +Z the default
17052
 
        ;;
17053
 
      *)
17054
 
        lt_prog_compiler_pic_GCJ='-fPIC'
17055
 
        ;;
17056
 
      esac
17057
 
      ;;
17058
 
 
17059
 
    *)
17060
 
      lt_prog_compiler_pic_GCJ='-fPIC'
17061
 
      ;;
17062
 
    esac
17063
 
  else
17064
 
    # PORTME Check for flag to pass linker flags through the system compiler.
17065
 
    case $host_os in
17066
 
    aix*)
17067
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17068
 
      if test "$host_cpu" = ia64; then
17069
 
        # AIX 5 now supports IA64 processor
17070
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17071
 
      else
17072
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17073
 
      fi
17074
 
      ;;
17075
 
      darwin*)
17076
 
        # PIC is the default on this platform
17077
 
        # Common symbols not allowed in MH_DYLIB files
17078
 
       case $cc_basename in
17079
 
         xlc*)
17080
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
17081
 
         lt_prog_compiler_wl_GCJ='-Wl,'
17082
 
         ;;
17083
 
       esac
17084
 
       ;;
17085
 
 
17086
 
    mingw* | cygwin* | pw32* | os2*)
17087
 
      # This hack is so that the source file can tell whether it is being
17088
 
      # built for inclusion in a dll (and should export symbols for example).
17089
 
 
17090
 
      ;;
17091
 
 
17092
 
    hpux9* | hpux10* | hpux11*)
17093
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17094
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17095
 
      # not for PA HP-UX.
17096
 
      case $host_cpu in
17097
 
      hppa*64*|ia64*)
17098
 
        # +Z the default
17099
 
        ;;
17100
 
      *)
17101
 
        lt_prog_compiler_pic_GCJ='+Z'
17102
 
        ;;
17103
 
      esac
17104
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17105
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17106
 
      ;;
17107
 
 
17108
 
    irix5* | irix6* | nonstopux*)
17109
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17110
 
      # PIC (with -KPIC) is the default.
17111
 
      lt_prog_compiler_static_GCJ='-non_shared'
17112
 
      ;;
17113
 
 
17114
 
    newsos6)
17115
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17116
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17117
 
      ;;
17118
 
 
17119
 
    linux* | k*bsd*-gnu)
17120
 
      case $cc_basename in
17121
 
      icc* | ecc*)
17122
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17123
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17124
 
        lt_prog_compiler_static_GCJ='-static'
17125
 
        ;;
17126
 
      pgcc* | pgf77* | pgf90* | pgf95*)
17127
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17128
 
        # which looks to be a dead project)
17129
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17130
 
        lt_prog_compiler_pic_GCJ='-fpic'
17131
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17132
 
        ;;
17133
 
      ccc*)
17134
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17135
 
        # All Alpha code is PIC.
17136
 
        lt_prog_compiler_static_GCJ='-non_shared'
17137
 
        ;;
17138
 
      *)
17139
 
        case `$CC -V 2>&1 | sed 5q` in
17140
 
        *Sun\ C*)
17141
 
          # Sun C 5.9
17142
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17143
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17144
 
          lt_prog_compiler_wl_GCJ='-Wl,'
17145
 
          ;;
17146
 
        *Sun\ F*)
17147
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
17148
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17149
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17150
 
          lt_prog_compiler_wl_GCJ=''
17151
 
          ;;
17152
 
        esac
17153
 
        ;;
17154
 
      esac
17155
 
      ;;
17156
 
 
17157
 
    osf3* | osf4* | osf5*)
17158
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17159
 
      # All OSF/1 code is PIC.
17160
 
      lt_prog_compiler_static_GCJ='-non_shared'
17161
 
      ;;
17162
 
 
17163
 
    rdos*)
17164
 
      lt_prog_compiler_static_GCJ='-non_shared'
17165
 
      ;;
17166
 
 
17167
 
    solaris*)
17168
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17169
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17170
 
      case $cc_basename in
17171
 
      f77* | f90* | f95*)
17172
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17173
 
      *)
17174
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17175
 
      esac
17176
 
      ;;
17177
 
 
17178
 
    sunos4*)
17179
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17180
 
      lt_prog_compiler_pic_GCJ='-PIC'
17181
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17182
 
      ;;
17183
 
 
17184
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
17185
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17186
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17187
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17188
 
      ;;
17189
 
 
17190
 
    sysv4*MP*)
17191
 
      if test -d /usr/nec ;then
17192
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17193
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17194
 
      fi
17195
 
      ;;
17196
 
 
17197
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17198
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17199
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17200
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17201
 
      ;;
17202
 
 
17203
 
    unicos*)
17204
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17205
 
      lt_prog_compiler_can_build_shared_GCJ=no
17206
 
      ;;
17207
 
 
17208
 
    uts4*)
17209
 
      lt_prog_compiler_pic_GCJ='-pic'
17210
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17211
 
      ;;
17212
 
 
17213
 
    *)
17214
 
      lt_prog_compiler_can_build_shared_GCJ=no
17215
 
      ;;
17216
 
    esac
17217
 
  fi
17218
 
 
17219
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17220
 
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17221
 
 
17222
 
#
17223
 
# Check to make sure the PIC flag actually works.
17224
 
#
17225
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17226
 
 
17227
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17228
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17229
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17230
 
  $as_echo_n "(cached) " >&6
17231
 
else
17232
 
  lt_cv_prog_compiler_pic_works_GCJ=no
17233
 
  ac_outfile=conftest.$ac_objext
17234
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17235
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17236
 
   # Insert the option either (1) after the last *FLAGS variable, or
17237
 
   # (2) before a word containing "conftest.", or (3) at the end.
17238
 
   # Note that $ac_compile itself does not contain backslashes and begins
17239
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17240
 
   # The option is referenced via a variable to avoid confusing sed.
17241
 
   lt_compile=`echo "$ac_compile" | $SED \
17242
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17243
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17244
 
   -e 's:$: $lt_compiler_flag:'`
17245
 
   (eval echo "\"\$as_me:17245: $lt_compile\"" >&5)
17246
 
   (eval "$lt_compile" 2>conftest.err)
17247
 
   ac_status=$?
17248
 
   cat conftest.err >&5
17249
 
   echo "$as_me:17249: \$? = $ac_status" >&5
17250
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17251
 
     # The compiler can only warn and ignore the option if not recognized
17252
 
     # So say no if there are warnings other than the usual output.
17253
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17254
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17255
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17256
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
17257
 
     fi
17258
 
   fi
17259
 
   $rm conftest*
17260
 
 
17261
 
fi
17262
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17263
 
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17264
 
 
17265
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17266
 
    case $lt_prog_compiler_pic_GCJ in
17267
 
     "" | " "*) ;;
17268
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17269
 
     esac
17270
 
else
17271
 
    lt_prog_compiler_pic_GCJ=
17272
 
     lt_prog_compiler_can_build_shared_GCJ=no
17273
 
fi
17274
 
 
17275
 
fi
17276
 
case $host_os in
17277
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17278
 
  *djgpp*)
17279
 
    lt_prog_compiler_pic_GCJ=
17280
 
    ;;
17281
 
  *)
17282
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17283
 
    ;;
17284
 
esac
17285
 
 
17286
 
#
17287
 
# Check to make sure the static flag actually works.
17288
 
#
17289
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17290
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17291
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17292
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17293
 
  $as_echo_n "(cached) " >&6
17294
 
else
17295
 
  lt_cv_prog_compiler_static_works_GCJ=no
17296
 
   save_LDFLAGS="$LDFLAGS"
17297
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17298
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17299
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17300
 
     # The linker can only warn and ignore the option if not recognized
17301
 
     # So say no if there are warnings
17302
 
     if test -s conftest.err; then
17303
 
       # Append any errors to the config.log.
17304
 
       cat conftest.err 1>&5
17305
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17306
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17307
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17308
 
         lt_cv_prog_compiler_static_works_GCJ=yes
17309
 
       fi
17310
 
     else
17311
 
       lt_cv_prog_compiler_static_works_GCJ=yes
17312
 
     fi
17313
 
   fi
17314
 
   $rm -r conftest*
17315
 
   LDFLAGS="$save_LDFLAGS"
17316
 
 
17317
 
fi
17318
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17319
 
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17320
 
 
17321
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17322
 
    :
17323
 
else
17324
 
    lt_prog_compiler_static_GCJ=
17325
 
fi
17326
 
 
17327
 
 
17328
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17329
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17330
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17331
 
  $as_echo_n "(cached) " >&6
17332
 
else
17333
 
  lt_cv_prog_compiler_c_o_GCJ=no
17334
 
   $rm -r conftest 2>/dev/null
17335
 
   mkdir conftest
17336
 
   cd conftest
17337
 
   mkdir out
17338
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17339
 
 
17340
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17341
 
   # Insert the option either (1) after the last *FLAGS variable, or
17342
 
   # (2) before a word containing "conftest.", or (3) at the end.
17343
 
   # Note that $ac_compile itself does not contain backslashes and begins
17344
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17345
 
   lt_compile=`echo "$ac_compile" | $SED \
17346
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17347
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17348
 
   -e 's:$: $lt_compiler_flag:'`
17349
 
   (eval echo "\"\$as_me:17349: $lt_compile\"" >&5)
17350
 
   (eval "$lt_compile" 2>out/conftest.err)
17351
 
   ac_status=$?
17352
 
   cat out/conftest.err >&5
17353
 
   echo "$as_me:17353: \$? = $ac_status" >&5
17354
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17355
 
   then
17356
 
     # The compiler can only warn and ignore the option if not recognized
17357
 
     # So say no if there are warnings
17358
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17359
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17360
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17361
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17362
 
     fi
17363
 
   fi
17364
 
   chmod u+w . 2>&5
17365
 
   $rm conftest*
17366
 
   # SGI C++ compiler will create directory out/ii_files/ for
17367
 
   # template instantiation
17368
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17369
 
   $rm out/* && rmdir out
17370
 
   cd ..
17371
 
   rmdir conftest
17372
 
   $rm conftest*
17373
 
 
17374
 
fi
17375
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17376
 
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17377
 
 
17378
 
 
17379
 
hard_links="nottested"
17380
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17381
 
  # do not overwrite the value of need_locks provided by the user
17382
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17383
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
17384
 
  hard_links=yes
17385
 
  $rm conftest*
17386
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17387
 
  touch conftest.a
17388
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17389
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17390
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17391
 
$as_echo "$hard_links" >&6; }
17392
 
  if test "$hard_links" = no; then
17393
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17394
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17395
 
    need_locks=warn
17396
 
  fi
17397
 
else
17398
 
  need_locks=no
17399
 
fi
17400
 
 
17401
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17402
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17403
 
 
17404
 
  runpath_var=
17405
 
  allow_undefined_flag_GCJ=
17406
 
  enable_shared_with_static_runtimes_GCJ=no
17407
 
  archive_cmds_GCJ=
17408
 
  archive_expsym_cmds_GCJ=
17409
 
  old_archive_From_new_cmds_GCJ=
17410
 
  old_archive_from_expsyms_cmds_GCJ=
17411
 
  export_dynamic_flag_spec_GCJ=
17412
 
  whole_archive_flag_spec_GCJ=
17413
 
  thread_safe_flag_spec_GCJ=
17414
 
  hardcode_libdir_flag_spec_GCJ=
17415
 
  hardcode_libdir_flag_spec_ld_GCJ=
17416
 
  hardcode_libdir_separator_GCJ=
17417
 
  hardcode_direct_GCJ=no
17418
 
  hardcode_minus_L_GCJ=no
17419
 
  hardcode_shlibpath_var_GCJ=unsupported
17420
 
  link_all_deplibs_GCJ=unknown
17421
 
  hardcode_automatic_GCJ=no
17422
 
  module_cmds_GCJ=
17423
 
  module_expsym_cmds_GCJ=
17424
 
  always_export_symbols_GCJ=no
17425
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17426
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17427
 
  # included in the symbol list
17428
 
  include_expsyms_GCJ=
17429
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17430
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17431
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17432
 
  # as well as any symbol that contains `d'.
17433
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17434
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17435
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17436
 
  # the symbol is explicitly referenced.  Since portable code cannot
17437
 
  # rely on this symbol name, it's probably fine to never include it in
17438
 
  # preloaded symbol tables.
17439
 
  # Exclude shared library initialization/finalization symbols.
17440
 
  extract_expsyms_cmds=
17441
 
  # Just being paranoid about ensuring that cc_basename is set.
17442
 
  for cc_temp in $compiler""; do
17443
 
  case $cc_temp in
17444
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17445
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17446
 
    \-*) ;;
17447
 
    *) break;;
17448
 
  esac
17449
 
done
17450
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17451
 
 
17452
 
  case $host_os in
17453
 
  cygwin* | mingw* | pw32*)
17454
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17455
 
    # When not using gcc, we currently assume that we are using
17456
 
    # Microsoft Visual C++.
17457
 
    if test "$GCC" != yes; then
17458
 
      with_gnu_ld=no
17459
 
    fi
17460
 
    ;;
17461
 
  interix*)
17462
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17463
 
    with_gnu_ld=yes
17464
 
    ;;
17465
 
  openbsd*)
17466
 
    with_gnu_ld=no
17467
 
    ;;
17468
 
  esac
17469
 
 
17470
 
  ld_shlibs_GCJ=yes
17471
 
  if test "$with_gnu_ld" = yes; then
17472
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17473
 
    wlarc='${wl}'
17474
 
 
17475
 
    # Set some defaults for GNU ld with shared library support. These
17476
 
    # are reset later if shared libraries are not supported. Putting them
17477
 
    # here allows them to be overridden if necessary.
17478
 
    runpath_var=LD_RUN_PATH
17479
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17480
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17481
 
    # ancient GNU ld didn't support --whole-archive et. al.
17482
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17483
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17484
 
      else
17485
 
        whole_archive_flag_spec_GCJ=
17486
 
    fi
17487
 
    supports_anon_versioning=no
17488
 
    case `$LD -v 2>/dev/null` in
17489
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17490
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17491
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17492
 
      *\ 2.11.*) ;; # other 2.11 versions
17493
 
      *) supports_anon_versioning=yes ;;
17494
 
    esac
17495
 
 
17496
 
    # See if GNU ld supports shared libraries.
17497
 
    case $host_os in
17498
 
    aix[3-9]*)
17499
 
      # On AIX/PPC, the GNU linker is very broken
17500
 
      if test "$host_cpu" != ia64; then
17501
 
        ld_shlibs_GCJ=no
17502
 
        cat <<EOF 1>&2
17503
 
 
17504
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17505
 
*** to be unable to reliably create shared libraries on AIX.
17506
 
*** Therefore, libtool is disabling shared libraries support.  If you
17507
 
*** really care for shared libraries, you may want to modify your PATH
17508
 
*** so that a non-GNU linker is found, and then restart.
17509
 
 
17510
 
EOF
17511
 
      fi
17512
 
      ;;
17513
 
 
17514
 
    amigaos*)
17515
 
      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)'
17516
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17517
 
      hardcode_minus_L_GCJ=yes
17518
 
 
17519
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17520
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17521
 
      # to version 4, is to share data among multiple programs linked
17522
 
      # with the same dynamic library.  Since this doesn't match the
17523
 
      # behavior of shared libraries on other platforms, we can't use
17524
 
      # them.
17525
 
      ld_shlibs_GCJ=no
17526
 
      ;;
17527
 
 
17528
 
    beos*)
17529
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17530
 
        allow_undefined_flag_GCJ=unsupported
17531
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17532
 
        # support --undefined.  This deserves some investigation.  FIXME
17533
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534
 
      else
17535
 
        ld_shlibs_GCJ=no
17536
 
      fi
17537
 
      ;;
17538
 
 
17539
 
    cygwin* | mingw* | pw32*)
17540
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17541
 
      # as there is no search path for DLLs.
17542
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17543
 
      allow_undefined_flag_GCJ=unsupported
17544
 
      always_export_symbols_GCJ=no
17545
 
      enable_shared_with_static_runtimes_GCJ=yes
17546
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17547
 
 
17548
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17549
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17550
 
        # If the export-symbols file already is a .def file (1st line
17551
 
        # is EXPORTS), use it as is; otherwise, prepend...
17552
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17553
 
          cp $export_symbols $output_objdir/$soname.def;
17554
 
        else
17555
 
          echo EXPORTS > $output_objdir/$soname.def;
17556
 
          cat $export_symbols >> $output_objdir/$soname.def;
17557
 
        fi~
17558
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17559
 
      else
17560
 
        ld_shlibs_GCJ=no
17561
 
      fi
17562
 
      ;;
17563
 
 
17564
 
    interix[3-9]*)
17565
 
      hardcode_direct_GCJ=no
17566
 
      hardcode_shlibpath_var_GCJ=no
17567
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17568
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17569
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17570
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17571
 
      # default) and relocated if they conflict, which is a slow very memory
17572
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17573
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17574
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17575
 
      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'
17576
 
      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'
17577
 
      ;;
17578
 
 
17579
 
    gnu* | linux* | k*bsd*-gnu)
17580
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17581
 
        tmp_addflag=
17582
 
        case $cc_basename,$host_cpu in
17583
 
        pgcc*)                          # Portland Group C compiler
17584
 
          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'
17585
 
          tmp_addflag=' $pic_flag'
17586
 
          ;;
17587
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17588
 
          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'
17589
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
17590
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17591
 
          tmp_addflag=' -i_dynamic' ;;
17592
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17593
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
17594
 
        ifc* | ifort*)                  # Intel Fortran compiler
17595
 
          tmp_addflag=' -nofor_main' ;;
17596
 
        esac
17597
 
        case `$CC -V 2>&1 | sed 5q` in
17598
 
        *Sun\ C*)                       # Sun C 5.9
17599
 
          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'
17600
 
          tmp_sharedflag='-G' ;;
17601
 
        *Sun\ F*)                       # Sun Fortran 8.3
17602
 
          tmp_sharedflag='-G' ;;
17603
 
        *)
17604
 
          tmp_sharedflag='-shared' ;;
17605
 
        esac
17606
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17607
 
 
17608
 
        if test $supports_anon_versioning = yes; then
17609
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17610
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17611
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17612
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17613
 
        fi
17614
 
        link_all_deplibs_GCJ=no
17615
 
      else
17616
 
        ld_shlibs_GCJ=no
17617
 
      fi
17618
 
      ;;
17619
 
 
17620
 
    netbsd*)
17621
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17622
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17623
 
        wlarc=
17624
 
      else
17625
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17626
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17627
 
      fi
17628
 
      ;;
17629
 
 
17630
 
    solaris*)
17631
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17632
 
        ld_shlibs_GCJ=no
17633
 
        cat <<EOF 1>&2
17634
 
 
17635
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17636
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17637
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17638
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17639
 
*** your PATH or compiler configuration so that the native linker is
17640
 
*** used, and then restart.
17641
 
 
17642
 
EOF
17643
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17646
 
      else
17647
 
        ld_shlibs_GCJ=no
17648
 
      fi
17649
 
      ;;
17650
 
 
17651
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17652
 
      case `$LD -v 2>&1` in
17653
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17654
 
        ld_shlibs_GCJ=no
17655
 
        cat <<_LT_EOF 1>&2
17656
 
 
17657
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17658
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17659
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17660
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17661
 
*** your PATH or compiler configuration so that the native linker is
17662
 
*** used, and then restart.
17663
 
 
17664
 
_LT_EOF
17665
 
        ;;
17666
 
        *)
17667
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17668
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17669
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17670
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17671
 
          else
17672
 
            ld_shlibs_GCJ=no
17673
 
          fi
17674
 
        ;;
17675
 
      esac
17676
 
      ;;
17677
 
 
17678
 
    sunos4*)
17679
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17680
 
      wlarc=
17681
 
      hardcode_direct_GCJ=yes
17682
 
      hardcode_shlibpath_var_GCJ=no
17683
 
      ;;
17684
 
 
17685
 
    *)
17686
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17688
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17689
 
      else
17690
 
        ld_shlibs_GCJ=no
17691
 
      fi
17692
 
      ;;
17693
 
    esac
17694
 
 
17695
 
    if test "$ld_shlibs_GCJ" = no; then
17696
 
      runpath_var=
17697
 
      hardcode_libdir_flag_spec_GCJ=
17698
 
      export_dynamic_flag_spec_GCJ=
17699
 
      whole_archive_flag_spec_GCJ=
17700
 
    fi
17701
 
  else
17702
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17703
 
    case $host_os in
17704
 
    aix3*)
17705
 
      allow_undefined_flag_GCJ=unsupported
17706
 
      always_export_symbols_GCJ=yes
17707
 
      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'
17708
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17709
 
      # are no directories specified by -L.
17710
 
      hardcode_minus_L_GCJ=yes
17711
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17712
 
        # Neither direct hardcoding nor static linking is supported with a
17713
 
        # broken collect2.
17714
 
        hardcode_direct_GCJ=unsupported
17715
 
      fi
17716
 
      ;;
17717
 
 
17718
 
    aix[4-9]*)
17719
 
      if test "$host_cpu" = ia64; then
17720
 
        # On IA64, the linker does run time linking by default, so we don't
17721
 
        # have to do anything special.
17722
 
        aix_use_runtimelinking=no
17723
 
        exp_sym_flag='-Bexport'
17724
 
        no_entry_flag=""
17725
 
      else
17726
 
        # If we're using GNU nm, then we don't want the "-C" option.
17727
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17728
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17729
 
          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'
17730
 
        else
17731
 
          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'
17732
 
        fi
17733
 
        aix_use_runtimelinking=no
17734
 
 
17735
 
        # Test if we are trying to use run time linking or normal
17736
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17737
 
        # need to do runtime linking.
17738
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17739
 
          for ld_flag in $LDFLAGS; do
17740
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17741
 
            aix_use_runtimelinking=yes
17742
 
            break
17743
 
          fi
17744
 
          done
17745
 
          ;;
17746
 
        esac
17747
 
 
17748
 
        exp_sym_flag='-bexport'
17749
 
        no_entry_flag='-bnoentry'
17750
 
      fi
17751
 
 
17752
 
      # When large executables or shared objects are built, AIX ld can
17753
 
      # have problems creating the table of contents.  If linking a library
17754
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17755
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17756
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17757
 
 
17758
 
      archive_cmds_GCJ=''
17759
 
      hardcode_direct_GCJ=yes
17760
 
      hardcode_libdir_separator_GCJ=':'
17761
 
      link_all_deplibs_GCJ=yes
17762
 
 
17763
 
      if test "$GCC" = yes; then
17764
 
        case $host_os in aix4.[012]|aix4.[012].*)
17765
 
        # We only want to do this on AIX 4.2 and lower, the check
17766
 
        # below for broken collect2 doesn't work under 4.3+
17767
 
          collect2name=`${CC} -print-prog-name=collect2`
17768
 
          if test -f "$collect2name" && \
17769
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17770
 
          then
17771
 
          # We have reworked collect2
17772
 
          :
17773
 
          else
17774
 
          # We have old collect2
17775
 
          hardcode_direct_GCJ=unsupported
17776
 
          # It fails to find uninstalled libraries when the uninstalled
17777
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17778
 
          # to unsupported forces relinking
17779
 
          hardcode_minus_L_GCJ=yes
17780
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17781
 
          hardcode_libdir_separator_GCJ=
17782
 
          fi
17783
 
          ;;
17784
 
        esac
17785
 
        shared_flag='-shared'
17786
 
        if test "$aix_use_runtimelinking" = yes; then
17787
 
          shared_flag="$shared_flag "'${wl}-G'
17788
 
        fi
17789
 
      else
17790
 
        # not using gcc
17791
 
        if test "$host_cpu" = ia64; then
17792
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17793
 
        # chokes on -Wl,-G. The following line is correct:
17794
 
          shared_flag='-G'
17795
 
        else
17796
 
          if test "$aix_use_runtimelinking" = yes; then
17797
 
            shared_flag='${wl}-G'
17798
 
          else
17799
 
            shared_flag='${wl}-bM:SRE'
17800
 
          fi
17801
 
        fi
17802
 
      fi
17803
 
 
17804
 
      # It seems that -bexpall does not export symbols beginning with
17805
 
      # underscore (_), so it is better to generate a list of symbols to export.
17806
 
      always_export_symbols_GCJ=yes
17807
 
      if test "$aix_use_runtimelinking" = yes; then
17808
 
        # Warning - without using the other runtime loading flags (-brtl),
17809
 
        # -berok will link without error, but may produce a broken library.
17810
 
        allow_undefined_flag_GCJ='-berok'
17811
 
       # Determine the default libpath from the value encoded in an empty executable.
17812
 
       cat >conftest.$ac_ext <<_ACEOF
17813
 
/* confdefs.h.  */
17814
 
_ACEOF
17815
 
cat confdefs.h >>conftest.$ac_ext
17816
 
cat >>conftest.$ac_ext <<_ACEOF
17817
 
/* end confdefs.h.  */
17818
 
 
17819
 
int
17820
 
main ()
17821
 
{
17822
 
 
17823
 
  ;
17824
 
  return 0;
17825
 
}
17826
 
_ACEOF
17827
 
rm -f conftest.$ac_objext conftest$ac_exeext
17828
 
if { (ac_try="$ac_link"
17829
 
case "(($ac_try" in
17830
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831
 
  *) ac_try_echo=$ac_try;;
17832
 
esac
17833
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17834
 
$as_echo "$ac_try_echo") >&5
17835
 
  (eval "$ac_link") 2>conftest.er1
17836
 
  ac_status=$?
17837
 
  grep -v '^ *+' conftest.er1 >conftest.err
17838
 
  rm -f conftest.er1
17839
 
  cat conftest.err >&5
17840
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841
 
  (exit $ac_status); } && {
17842
 
         test -z "$ac_c_werror_flag" ||
17843
 
         test ! -s conftest.err
17844
 
       } && test -s conftest$ac_exeext && {
17845
 
         test "$cross_compiling" = yes ||
17846
 
         $as_test_x conftest$ac_exeext
17847
 
       }; then
17848
 
 
17849
 
lt_aix_libpath_sed='
17850
 
    /Import File Strings/,/^$/ {
17851
 
        /^0/ {
17852
 
            s/^0  *\(.*\)$/\1/
17853
 
            p
17854
 
        }
17855
 
    }'
17856
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17857
 
# Check for a 64-bit object if we didn't find anything.
17858
 
if test -z "$aix_libpath"; then
17859
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17860
 
fi
17861
 
else
17862
 
  $as_echo "$as_me: failed program was:" >&5
17863
 
sed 's/^/| /' conftest.$ac_ext >&5
17864
 
 
17865
 
 
17866
 
fi
17867
 
 
17868
 
rm -rf conftest.dSYM
17869
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870
 
      conftest$ac_exeext conftest.$ac_ext
17871
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17872
 
 
17873
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17874
 
        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"
17875
 
       else
17876
 
        if test "$host_cpu" = ia64; then
17877
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17878
 
          allow_undefined_flag_GCJ="-z nodefs"
17879
 
          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"
17880
 
        else
17881
 
         # Determine the default libpath from the value encoded in an empty executable.
17882
 
         cat >conftest.$ac_ext <<_ACEOF
17883
 
/* confdefs.h.  */
17884
 
_ACEOF
17885
 
cat confdefs.h >>conftest.$ac_ext
17886
 
cat >>conftest.$ac_ext <<_ACEOF
17887
 
/* end confdefs.h.  */
17888
 
 
17889
 
int
17890
 
main ()
17891
 
{
17892
 
 
17893
 
  ;
17894
 
  return 0;
17895
 
}
17896
 
_ACEOF
17897
 
rm -f conftest.$ac_objext conftest$ac_exeext
17898
 
if { (ac_try="$ac_link"
17899
 
case "(($ac_try" in
17900
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901
 
  *) ac_try_echo=$ac_try;;
17902
 
esac
17903
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904
 
$as_echo "$ac_try_echo") >&5
17905
 
  (eval "$ac_link") 2>conftest.er1
17906
 
  ac_status=$?
17907
 
  grep -v '^ *+' conftest.er1 >conftest.err
17908
 
  rm -f conftest.er1
17909
 
  cat conftest.err >&5
17910
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911
 
  (exit $ac_status); } && {
17912
 
         test -z "$ac_c_werror_flag" ||
17913
 
         test ! -s conftest.err
17914
 
       } && test -s conftest$ac_exeext && {
17915
 
         test "$cross_compiling" = yes ||
17916
 
         $as_test_x conftest$ac_exeext
17917
 
       }; then
17918
 
 
17919
 
lt_aix_libpath_sed='
17920
 
    /Import File Strings/,/^$/ {
17921
 
        /^0/ {
17922
 
            s/^0  *\(.*\)$/\1/
17923
 
            p
17924
 
        }
17925
 
    }'
17926
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17927
 
# Check for a 64-bit object if we didn't find anything.
17928
 
if test -z "$aix_libpath"; then
17929
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930
 
fi
17931
 
else
17932
 
  $as_echo "$as_me: failed program was:" >&5
17933
 
sed 's/^/| /' conftest.$ac_ext >&5
17934
 
 
17935
 
 
17936
 
fi
17937
 
 
17938
 
rm -rf conftest.dSYM
17939
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17940
 
      conftest$ac_exeext conftest.$ac_ext
17941
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17942
 
 
17943
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17944
 
          # Warning - without using the other run time loading flags,
17945
 
          # -berok will link without error, but may produce a broken library.
17946
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17947
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17948
 
          # Exported symbols can be pulled into shared objects from archives
17949
 
          whole_archive_flag_spec_GCJ='$convenience'
17950
 
          archive_cmds_need_lc_GCJ=yes
17951
 
          # This is similar to how AIX traditionally builds its shared libraries.
17952
 
          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'
17953
 
        fi
17954
 
      fi
17955
 
      ;;
17956
 
 
17957
 
    amigaos*)
17958
 
      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)'
17959
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17960
 
      hardcode_minus_L_GCJ=yes
17961
 
      # see comment about different semantics on the GNU ld section
17962
 
      ld_shlibs_GCJ=no
17963
 
      ;;
17964
 
 
17965
 
    bsdi[45]*)
17966
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17967
 
      ;;
17968
 
 
17969
 
    cygwin* | mingw* | pw32*)
17970
 
      # When not using gcc, we currently assume that we are using
17971
 
      # Microsoft Visual C++.
17972
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17973
 
      # no search path for DLLs.
17974
 
      hardcode_libdir_flag_spec_GCJ=' '
17975
 
      allow_undefined_flag_GCJ=unsupported
17976
 
      # Tell ltmain to make .lib files, not .a files.
17977
 
      libext=lib
17978
 
      # Tell ltmain to make .dll files, not .so files.
17979
 
      shrext_cmds=".dll"
17980
 
      # FIXME: Setting linknames here is a bad hack.
17981
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17982
 
      # The linker will automatically build a .lib file if we build a DLL.
17983
 
      old_archive_From_new_cmds_GCJ='true'
17984
 
      # FIXME: Should let the user specify the lib program.
17985
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17986
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17987
 
      enable_shared_with_static_runtimes_GCJ=yes
17988
 
      ;;
17989
 
 
17990
 
    darwin* | rhapsody*)
17991
 
      case $host_os in
17992
 
        rhapsody* | darwin1.[012])
17993
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17994
 
         ;;
17995
 
       *) # Darwin 1.3 on
17996
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17997
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17998
 
         else
17999
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
18000
 
             10.[012])
18001
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18002
 
               ;;
18003
 
             10.*)
18004
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18005
 
               ;;
18006
 
           esac
18007
 
         fi
18008
 
         ;;
18009
 
      esac
18010
 
      archive_cmds_need_lc_GCJ=no
18011
 
      hardcode_direct_GCJ=no
18012
 
      hardcode_automatic_GCJ=yes
18013
 
      hardcode_shlibpath_var_GCJ=unsupported
18014
 
      whole_archive_flag_spec_GCJ=''
18015
 
      link_all_deplibs_GCJ=yes
18016
 
    if test "$GCC" = yes ; then
18017
 
        output_verbose_link_cmd='echo'
18018
 
        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}"
18019
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18020
 
        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}"
18021
 
        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}"
18022
 
    else
18023
 
      case $cc_basename in
18024
 
        xlc*)
18025
 
         output_verbose_link_cmd='echo'
18026
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18027
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18028
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18029
 
         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}'
18030
 
          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}'
18031
 
          ;;
18032
 
       *)
18033
 
         ld_shlibs_GCJ=no
18034
 
          ;;
18035
 
      esac
18036
 
    fi
18037
 
      ;;
18038
 
 
18039
 
    dgux*)
18040
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18042
 
      hardcode_shlibpath_var_GCJ=no
18043
 
      ;;
18044
 
 
18045
 
    freebsd1*)
18046
 
      ld_shlibs_GCJ=no
18047
 
      ;;
18048
 
 
18049
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18050
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
18051
 
    # does not break anything, and helps significantly (at the cost of a little
18052
 
    # extra space).
18053
 
    freebsd2.2*)
18054
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18055
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18056
 
      hardcode_direct_GCJ=yes
18057
 
      hardcode_shlibpath_var_GCJ=no
18058
 
      ;;
18059
 
 
18060
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18061
 
    freebsd2*)
18062
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18063
 
      hardcode_direct_GCJ=yes
18064
 
      hardcode_minus_L_GCJ=yes
18065
 
      hardcode_shlibpath_var_GCJ=no
18066
 
      ;;
18067
 
 
18068
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18069
 
    freebsd* | dragonfly*)
18070
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18071
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072
 
      hardcode_direct_GCJ=yes
18073
 
      hardcode_shlibpath_var_GCJ=no
18074
 
      ;;
18075
 
 
18076
 
    hpux9*)
18077
 
      if test "$GCC" = yes; then
18078
 
        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'
18079
 
      else
18080
 
        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'
18081
 
      fi
18082
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18083
 
      hardcode_libdir_separator_GCJ=:
18084
 
      hardcode_direct_GCJ=yes
18085
 
 
18086
 
      # hardcode_minus_L: Not really in the search PATH,
18087
 
      # but as the default location of the library.
18088
 
      hardcode_minus_L_GCJ=yes
18089
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18090
 
      ;;
18091
 
 
18092
 
    hpux10*)
18093
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18094
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18095
 
      else
18096
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18097
 
      fi
18098
 
      if test "$with_gnu_ld" = no; then
18099
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18100
 
        hardcode_libdir_separator_GCJ=:
18101
 
 
18102
 
        hardcode_direct_GCJ=yes
18103
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18104
 
 
18105
 
        # hardcode_minus_L: Not really in the search PATH,
18106
 
        # but as the default location of the library.
18107
 
        hardcode_minus_L_GCJ=yes
18108
 
      fi
18109
 
      ;;
18110
 
 
18111
 
    hpux11*)
18112
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18113
 
        case $host_cpu in
18114
 
        hppa*64*)
18115
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18116
 
          ;;
18117
 
        ia64*)
18118
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18119
 
          ;;
18120
 
        *)
18121
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18122
 
          ;;
18123
 
        esac
18124
 
      else
18125
 
        case $host_cpu in
18126
 
        hppa*64*)
18127
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128
 
          ;;
18129
 
        ia64*)
18130
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18131
 
          ;;
18132
 
        *)
18133
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18134
 
          ;;
18135
 
        esac
18136
 
      fi
18137
 
      if test "$with_gnu_ld" = no; then
18138
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18139
 
        hardcode_libdir_separator_GCJ=:
18140
 
 
18141
 
        case $host_cpu in
18142
 
        hppa*64*|ia64*)
18143
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18144
 
          hardcode_direct_GCJ=no
18145
 
          hardcode_shlibpath_var_GCJ=no
18146
 
          ;;
18147
 
        *)
18148
 
          hardcode_direct_GCJ=yes
18149
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18150
 
 
18151
 
          # hardcode_minus_L: Not really in the search PATH,
18152
 
          # but as the default location of the library.
18153
 
          hardcode_minus_L_GCJ=yes
18154
 
          ;;
18155
 
        esac
18156
 
      fi
18157
 
      ;;
18158
 
 
18159
 
    irix5* | irix6* | nonstopux*)
18160
 
      if test "$GCC" = yes; then
18161
 
        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'
18162
 
      else
18163
 
        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'
18164
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18165
 
      fi
18166
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18167
 
      hardcode_libdir_separator_GCJ=:
18168
 
      link_all_deplibs_GCJ=yes
18169
 
      ;;
18170
 
 
18171
 
    netbsd*)
18172
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18173
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18174
 
      else
18175
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18176
 
      fi
18177
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18178
 
      hardcode_direct_GCJ=yes
18179
 
      hardcode_shlibpath_var_GCJ=no
18180
 
      ;;
18181
 
 
18182
 
    newsos6)
18183
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18184
 
      hardcode_direct_GCJ=yes
18185
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18186
 
      hardcode_libdir_separator_GCJ=:
18187
 
      hardcode_shlibpath_var_GCJ=no
18188
 
      ;;
18189
 
 
18190
 
    openbsd*)
18191
 
      if test -f /usr/libexec/ld.so; then
18192
 
        hardcode_direct_GCJ=yes
18193
 
        hardcode_shlibpath_var_GCJ=no
18194
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18195
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18196
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18197
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18198
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18199
 
        else
18200
 
          case $host_os in
18201
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18202
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18203
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
18204
 
             ;;
18205
 
           *)
18206
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18207
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18208
 
             ;;
18209
 
          esac
18210
 
        fi
18211
 
      else
18212
 
        ld_shlibs_GCJ=no
18213
 
      fi
18214
 
      ;;
18215
 
 
18216
 
    os2*)
18217
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18218
 
      hardcode_minus_L_GCJ=yes
18219
 
      allow_undefined_flag_GCJ=unsupported
18220
 
      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'
18221
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18222
 
      ;;
18223
 
 
18224
 
    osf3*)
18225
 
      if test "$GCC" = yes; then
18226
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18227
 
        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'
18228
 
      else
18229
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18230
 
        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'
18231
 
      fi
18232
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18233
 
      hardcode_libdir_separator_GCJ=:
18234
 
      ;;
18235
 
 
18236
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18237
 
      if test "$GCC" = yes; then
18238
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18239
 
        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'
18240
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18241
 
      else
18242
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18243
 
        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'
18244
 
        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~
18245
 
        $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'
18246
 
 
18247
 
        # Both c and cxx compiler support -rpath directly
18248
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18249
 
      fi
18250
 
      hardcode_libdir_separator_GCJ=:
18251
 
      ;;
18252
 
 
18253
 
    solaris*)
18254
 
      no_undefined_flag_GCJ=' -z text'
18255
 
      if test "$GCC" = yes; then
18256
 
        wlarc='${wl}'
18257
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18258
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18259
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18260
 
      else
18261
 
        wlarc=''
18262
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18264
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18265
 
      fi
18266
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18267
 
      hardcode_shlibpath_var_GCJ=no
18268
 
      case $host_os in
18269
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18270
 
      *)
18271
 
        # The compiler driver will combine and reorder linker options,
18272
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18273
 
        # but is careful enough not to reorder.
18274
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18275
 
        if test "$GCC" = yes; then
18276
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18277
 
        else
18278
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18279
 
        fi
18280
 
        ;;
18281
 
      esac
18282
 
      link_all_deplibs_GCJ=yes
18283
 
      ;;
18284
 
 
18285
 
    sunos4*)
18286
 
      if test "x$host_vendor" = xsequent; then
18287
 
        # Use $CC to link under sequent, because it throws in some extra .o
18288
 
        # files that make .init and .fini sections work.
18289
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18290
 
      else
18291
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18292
 
      fi
18293
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18294
 
      hardcode_direct_GCJ=yes
18295
 
      hardcode_minus_L_GCJ=yes
18296
 
      hardcode_shlibpath_var_GCJ=no
18297
 
      ;;
18298
 
 
18299
 
    sysv4)
18300
 
      case $host_vendor in
18301
 
        sni)
18302
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18303
 
          hardcode_direct_GCJ=yes # is this really true???
18304
 
        ;;
18305
 
        siemens)
18306
 
          ## LD is ld it makes a PLAMLIB
18307
 
          ## CC just makes a GrossModule.
18308
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18309
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18310
 
          hardcode_direct_GCJ=no
18311
 
        ;;
18312
 
        motorola)
18313
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18315
 
        ;;
18316
 
      esac
18317
 
      runpath_var='LD_RUN_PATH'
18318
 
      hardcode_shlibpath_var_GCJ=no
18319
 
      ;;
18320
 
 
18321
 
    sysv4.3*)
18322
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18323
 
      hardcode_shlibpath_var_GCJ=no
18324
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18325
 
      ;;
18326
 
 
18327
 
    sysv4*MP*)
18328
 
      if test -d /usr/nec; then
18329
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18330
 
        hardcode_shlibpath_var_GCJ=no
18331
 
        runpath_var=LD_RUN_PATH
18332
 
        hardcode_runpath_var=yes
18333
 
        ld_shlibs_GCJ=yes
18334
 
      fi
18335
 
      ;;
18336
 
 
18337
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18338
 
      no_undefined_flag_GCJ='${wl}-z,text'
18339
 
      archive_cmds_need_lc_GCJ=no
18340
 
      hardcode_shlibpath_var_GCJ=no
18341
 
      runpath_var='LD_RUN_PATH'
18342
 
 
18343
 
      if test "$GCC" = yes; then
18344
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18345
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18346
 
      else
18347
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18348
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18349
 
      fi
18350
 
      ;;
18351
 
 
18352
 
    sysv5* | sco3.2v5* | sco5v6*)
18353
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18354
 
      # link with -lc, and that would cause any symbols used from libc to
18355
 
      # always be unresolved, which means just about no library would
18356
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18357
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18358
 
      # as -z defs.
18359
 
      no_undefined_flag_GCJ='${wl}-z,text'
18360
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18361
 
      archive_cmds_need_lc_GCJ=no
18362
 
      hardcode_shlibpath_var_GCJ=no
18363
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18364
 
      hardcode_libdir_separator_GCJ=':'
18365
 
      link_all_deplibs_GCJ=yes
18366
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18367
 
      runpath_var='LD_RUN_PATH'
18368
 
 
18369
 
      if test "$GCC" = yes; then
18370
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18372
 
      else
18373
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18374
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18375
 
      fi
18376
 
      ;;
18377
 
 
18378
 
    uts4*)
18379
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18380
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18381
 
      hardcode_shlibpath_var_GCJ=no
18382
 
      ;;
18383
 
 
18384
 
    *)
18385
 
      ld_shlibs_GCJ=no
18386
 
      ;;
18387
 
    esac
18388
 
  fi
18389
 
 
18390
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18391
 
$as_echo "$ld_shlibs_GCJ" >&6; }
18392
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18393
 
 
18394
 
#
18395
 
# Do we need to explicitly link libc?
18396
 
#
18397
 
case "x$archive_cmds_need_lc_GCJ" in
18398
 
x|xyes)
18399
 
  # Assume -lc should be added
18400
 
  archive_cmds_need_lc_GCJ=yes
18401
 
 
18402
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18403
 
    case $archive_cmds_GCJ in
18404
 
    *'~'*)
18405
 
      # FIXME: we may have to deal with multi-command sequences.
18406
 
      ;;
18407
 
    '$CC '*)
18408
 
      # Test whether the compiler implicitly links with -lc since on some
18409
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18410
 
      # to ld, don't add -lc before -lgcc.
18411
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18412
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18413
 
      $rm conftest*
18414
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18415
 
 
18416
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18417
 
  (eval $ac_compile) 2>&5
18418
 
  ac_status=$?
18419
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420
 
  (exit $ac_status); } 2>conftest.err; then
18421
 
        soname=conftest
18422
 
        lib=conftest
18423
 
        libobjs=conftest.$ac_objext
18424
 
        deplibs=
18425
 
        wl=$lt_prog_compiler_wl_GCJ
18426
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18427
 
        compiler_flags=-v
18428
 
        linker_flags=-v
18429
 
        verstring=
18430
 
        output_objdir=.
18431
 
        libname=conftest
18432
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18433
 
        allow_undefined_flag_GCJ=
18434
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18435
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18436
 
  ac_status=$?
18437
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438
 
  (exit $ac_status); }
18439
 
        then
18440
 
          archive_cmds_need_lc_GCJ=no
18441
 
        else
18442
 
          archive_cmds_need_lc_GCJ=yes
18443
 
        fi
18444
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18445
 
      else
18446
 
        cat conftest.err 1>&5
18447
 
      fi
18448
 
      $rm conftest*
18449
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18450
 
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18451
 
      ;;
18452
 
    esac
18453
 
  fi
18454
 
  ;;
18455
 
esac
18456
 
 
18457
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18458
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18459
 
library_names_spec=
18460
 
libname_spec='lib$name'
18461
 
soname_spec=
18462
 
shrext_cmds=".so"
18463
 
postinstall_cmds=
18464
 
postuninstall_cmds=
18465
 
finish_cmds=
18466
 
finish_eval=
18467
 
shlibpath_var=
18468
 
shlibpath_overrides_runpath=unknown
18469
 
version_type=none
18470
 
dynamic_linker="$host_os ld.so"
18471
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18472
 
 
18473
 
need_lib_prefix=unknown
18474
 
hardcode_into_libs=no
18475
 
 
18476
 
# when you set need_version to no, make sure it does not cause -set_version
18477
 
# flags to be left without arguments
18478
 
need_version=unknown
18479
 
 
18480
 
case $host_os in
18481
 
aix3*)
18482
 
  version_type=linux
18483
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18484
 
  shlibpath_var=LIBPATH
18485
 
 
18486
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18487
 
  soname_spec='${libname}${release}${shared_ext}$major'
18488
 
  ;;
18489
 
 
18490
 
aix[4-9]*)
18491
 
  version_type=linux
18492
 
  need_lib_prefix=no
18493
 
  need_version=no
18494
 
  hardcode_into_libs=yes
18495
 
  if test "$host_cpu" = ia64; then
18496
 
    # AIX 5 supports IA64
18497
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18498
 
    shlibpath_var=LD_LIBRARY_PATH
18499
 
  else
18500
 
    # With GCC up to 2.95.x, collect2 would create an import file
18501
 
    # for dependence libraries.  The import file would start with
18502
 
    # the line `#! .'.  This would cause the generated library to
18503
 
    # depend on `.', always an invalid library.  This was fixed in
18504
 
    # development snapshots of GCC prior to 3.0.
18505
 
    case $host_os in
18506
 
      aix4 | aix4.[01] | aix4.[01].*)
18507
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18508
 
           echo ' yes '
18509
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18510
 
        :
18511
 
      else
18512
 
        can_build_shared=no
18513
 
      fi
18514
 
      ;;
18515
 
    esac
18516
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18517
 
    # soname into executable. Probably we can add versioning support to
18518
 
    # collect2, so additional links can be useful in future.
18519
 
    if test "$aix_use_runtimelinking" = yes; then
18520
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18521
 
      # instead of lib<name>.a to let people know that these are not
18522
 
      # typical AIX shared libraries.
18523
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18524
 
    else
18525
 
      # We preserve .a as extension for shared libraries through AIX4.2
18526
 
      # and later when we are not doing run time linking.
18527
 
      library_names_spec='${libname}${release}.a $libname.a'
18528
 
      soname_spec='${libname}${release}${shared_ext}$major'
18529
 
    fi
18530
 
    shlibpath_var=LIBPATH
18531
 
  fi
18532
 
  ;;
18533
 
 
18534
 
amigaos*)
18535
 
  library_names_spec='$libname.ixlibrary $libname.a'
18536
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18537
 
  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'
18538
 
  ;;
18539
 
 
18540
 
beos*)
18541
 
  library_names_spec='${libname}${shared_ext}'
18542
 
  dynamic_linker="$host_os ld.so"
18543
 
  shlibpath_var=LIBRARY_PATH
18544
 
  ;;
18545
 
 
18546
 
bsdi[45]*)
18547
 
  version_type=linux
18548
 
  need_version=no
18549
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18550
 
  soname_spec='${libname}${release}${shared_ext}$major'
18551
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18552
 
  shlibpath_var=LD_LIBRARY_PATH
18553
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18554
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18555
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18556
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18557
 
  # libtool to hard-code these into programs
18558
 
  ;;
18559
 
 
18560
 
cygwin* | mingw* | pw32*)
18561
 
  version_type=windows
18562
 
  shrext_cmds=".dll"
18563
 
  need_version=no
18564
 
  need_lib_prefix=no
18565
 
 
18566
 
  case $GCC,$host_os in
18567
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18568
 
    library_names_spec='$libname.dll.a'
18569
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18570
 
    postinstall_cmds='base_file=`basename \${file}`~
18571
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18572
 
      dldir=$destdir/`dirname \$dlpath`~
18573
 
      test -d \$dldir || mkdir -p \$dldir~
18574
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18575
 
      chmod a+x \$dldir/$dlname'
18576
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18577
 
      dlpath=$dir/\$dldll~
18578
 
       $rm \$dlpath'
18579
 
    shlibpath_overrides_runpath=yes
18580
 
 
18581
 
    case $host_os in
18582
 
    cygwin*)
18583
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18584
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18585
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18586
 
      ;;
18587
 
    mingw*)
18588
 
      # MinGW DLLs use traditional 'lib' prefix
18589
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18590
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18591
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18592
 
        # It is most probably a Windows format PATH printed by
18593
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18594
 
        # path with ; separators, and with drive letters. We can handle the
18595
 
        # drive letters (cygwin fileutils understands them), so leave them,
18596
 
        # especially as we might pass files found there to a mingw objdump,
18597
 
        # which wouldn't understand a cygwinified path. Ahh.
18598
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18599
 
      else
18600
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18601
 
      fi
18602
 
      ;;
18603
 
    pw32*)
18604
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18605
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606
 
      ;;
18607
 
    esac
18608
 
    ;;
18609
 
 
18610
 
  *)
18611
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18612
 
    ;;
18613
 
  esac
18614
 
  dynamic_linker='Win32 ld.exe'
18615
 
  # FIXME: first we should search . and the directory the executable is in
18616
 
  shlibpath_var=PATH
18617
 
  ;;
18618
 
 
18619
 
darwin* | rhapsody*)
18620
 
  dynamic_linker="$host_os dyld"
18621
 
  version_type=darwin
18622
 
  need_lib_prefix=no
18623
 
  need_version=no
18624
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18625
 
  soname_spec='${libname}${release}${major}$shared_ext'
18626
 
  shlibpath_overrides_runpath=yes
18627
 
  shlibpath_var=DYLD_LIBRARY_PATH
18628
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18629
 
 
18630
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18631
 
  ;;
18632
 
 
18633
 
dgux*)
18634
 
  version_type=linux
18635
 
  need_lib_prefix=no
18636
 
  need_version=no
18637
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18638
 
  soname_spec='${libname}${release}${shared_ext}$major'
18639
 
  shlibpath_var=LD_LIBRARY_PATH
18640
 
  ;;
18641
 
 
18642
 
freebsd1*)
18643
 
  dynamic_linker=no
18644
 
  ;;
18645
 
 
18646
 
freebsd* | dragonfly*)
18647
 
  # DragonFly does not have aout.  When/if they implement a new
18648
 
  # versioning mechanism, adjust this.
18649
 
  if test -x /usr/bin/objformat; then
18650
 
    objformat=`/usr/bin/objformat`
18651
 
  else
18652
 
    case $host_os in
18653
 
    freebsd[123]*) objformat=aout ;;
18654
 
    *) objformat=elf ;;
18655
 
    esac
18656
 
  fi
18657
 
  version_type=freebsd-$objformat
18658
 
  case $version_type in
18659
 
    freebsd-elf*)
18660
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18661
 
      need_version=no
18662
 
      need_lib_prefix=no
18663
 
      ;;
18664
 
    freebsd-*)
18665
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18666
 
      need_version=yes
18667
 
      ;;
18668
 
  esac
18669
 
  shlibpath_var=LD_LIBRARY_PATH
18670
 
  case $host_os in
18671
 
  freebsd2*)
18672
 
    shlibpath_overrides_runpath=yes
18673
 
    ;;
18674
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18675
 
    shlibpath_overrides_runpath=yes
18676
 
    hardcode_into_libs=yes
18677
 
    ;;
18678
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18679
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18680
 
    shlibpath_overrides_runpath=no
18681
 
    hardcode_into_libs=yes
18682
 
    ;;
18683
 
  *) # from 4.6 on, and DragonFly
18684
 
    shlibpath_overrides_runpath=yes
18685
 
    hardcode_into_libs=yes
18686
 
    ;;
18687
 
  esac
18688
 
  ;;
18689
 
 
18690
 
gnu*)
18691
 
  version_type=linux
18692
 
  need_lib_prefix=no
18693
 
  need_version=no
18694
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18695
 
  soname_spec='${libname}${release}${shared_ext}$major'
18696
 
  shlibpath_var=LD_LIBRARY_PATH
18697
 
  hardcode_into_libs=yes
18698
 
  ;;
18699
 
 
18700
 
hpux9* | hpux10* | hpux11*)
18701
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18702
 
  # link against other versions.
18703
 
  version_type=sunos
18704
 
  need_lib_prefix=no
18705
 
  need_version=no
18706
 
  case $host_cpu in
18707
 
  ia64*)
18708
 
    shrext_cmds='.so'
18709
 
    hardcode_into_libs=yes
18710
 
    dynamic_linker="$host_os dld.so"
18711
 
    shlibpath_var=LD_LIBRARY_PATH
18712
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18713
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18714
 
    soname_spec='${libname}${release}${shared_ext}$major'
18715
 
    if test "X$HPUX_IA64_MODE" = X32; then
18716
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18717
 
    else
18718
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18719
 
    fi
18720
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18721
 
    ;;
18722
 
   hppa*64*)
18723
 
     shrext_cmds='.sl'
18724
 
     hardcode_into_libs=yes
18725
 
     dynamic_linker="$host_os dld.sl"
18726
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18727
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18728
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729
 
     soname_spec='${libname}${release}${shared_ext}$major'
18730
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18731
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18732
 
     ;;
18733
 
   *)
18734
 
    shrext_cmds='.sl'
18735
 
    dynamic_linker="$host_os dld.sl"
18736
 
    shlibpath_var=SHLIB_PATH
18737
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18738
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739
 
    soname_spec='${libname}${release}${shared_ext}$major'
18740
 
    ;;
18741
 
  esac
18742
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18743
 
  postinstall_cmds='chmod 555 $lib'
18744
 
  ;;
18745
 
 
18746
 
interix[3-9]*)
18747
 
  version_type=linux
18748
 
  need_lib_prefix=no
18749
 
  need_version=no
18750
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751
 
  soname_spec='${libname}${release}${shared_ext}$major'
18752
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18753
 
  shlibpath_var=LD_LIBRARY_PATH
18754
 
  shlibpath_overrides_runpath=no
18755
 
  hardcode_into_libs=yes
18756
 
  ;;
18757
 
 
18758
 
irix5* | irix6* | nonstopux*)
18759
 
  case $host_os in
18760
 
    nonstopux*) version_type=nonstopux ;;
18761
 
    *)
18762
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18763
 
                version_type=linux
18764
 
        else
18765
 
                version_type=irix
18766
 
        fi ;;
18767
 
  esac
18768
 
  need_lib_prefix=no
18769
 
  need_version=no
18770
 
  soname_spec='${libname}${release}${shared_ext}$major'
18771
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18772
 
  case $host_os in
18773
 
  irix5* | nonstopux*)
18774
 
    libsuff= shlibsuff=
18775
 
    ;;
18776
 
  *)
18777
 
    case $LD in # libtool.m4 will add one of these switches to LD
18778
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18779
 
      libsuff= shlibsuff= libmagic=32-bit;;
18780
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18781
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18782
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18783
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18784
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18785
 
    esac
18786
 
    ;;
18787
 
  esac
18788
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18789
 
  shlibpath_overrides_runpath=no
18790
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18791
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18792
 
  hardcode_into_libs=yes
18793
 
  ;;
18794
 
 
18795
 
# No shared lib support for Linux oldld, aout, or coff.
18796
 
linux*oldld* | linux*aout* | linux*coff*)
18797
 
  dynamic_linker=no
18798
 
  ;;
18799
 
 
18800
 
# This must be Linux ELF.
18801
 
linux* | k*bsd*-gnu)
18802
 
  version_type=linux
18803
 
  need_lib_prefix=no
18804
 
  need_version=no
18805
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806
 
  soname_spec='${libname}${release}${shared_ext}$major'
18807
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18808
 
  shlibpath_var=LD_LIBRARY_PATH
18809
 
  shlibpath_overrides_runpath=no
18810
 
  # This implies no fast_install, which is unacceptable.
18811
 
  # Some rework will be needed to allow for fast_install
18812
 
  # before this can be enabled.
18813
 
  hardcode_into_libs=yes
18814
 
 
18815
 
  # find out which ABI we are using
18816
 
  libsuff=
18817
 
  case "$host_cpu" in
18818
 
  x86_64*|s390x*|powerpc64*)
18819
 
    echo '#line 18819 "configure"' > conftest.$ac_ext
18820
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821
 
  (eval $ac_compile) 2>&5
18822
 
  ac_status=$?
18823
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824
 
  (exit $ac_status); }; then
18825
 
      case `/usr/bin/file conftest.$ac_objext` in
18826
 
      *64-bit*)
18827
 
        libsuff=64
18828
 
        ;;
18829
 
      esac
18830
 
    fi
18831
 
    rm -rf conftest*
18832
 
    ;;
18833
 
  esac
18834
 
 
18835
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18836
 
 
18837
 
  # Append ld.so.conf contents to the search path
18838
 
  if test -f /etc/ld.so.conf; then
18839
 
    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' ' '`
18840
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18841
 
  fi
18842
 
 
18843
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18844
 
  # powerpc, because MkLinux only supported shared libraries with the
18845
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18846
 
  # most powerpc-linux boxes support dynamic linking these days and
18847
 
  # people can always --disable-shared, the test was removed, and we
18848
 
  # assume the GNU/Linux dynamic linker is in use.
18849
 
  dynamic_linker='GNU/Linux ld.so'
18850
 
  ;;
18851
 
 
18852
 
netbsd*)
18853
 
  version_type=sunos
18854
 
  need_lib_prefix=no
18855
 
  need_version=no
18856
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18857
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18859
 
    dynamic_linker='NetBSD (a.out) ld.so'
18860
 
  else
18861
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18862
 
    soname_spec='${libname}${release}${shared_ext}$major'
18863
 
    dynamic_linker='NetBSD ld.elf_so'
18864
 
  fi
18865
 
  shlibpath_var=LD_LIBRARY_PATH
18866
 
  shlibpath_overrides_runpath=yes
18867
 
  hardcode_into_libs=yes
18868
 
  ;;
18869
 
 
18870
 
newsos6)
18871
 
  version_type=linux
18872
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873
 
  shlibpath_var=LD_LIBRARY_PATH
18874
 
  shlibpath_overrides_runpath=yes
18875
 
  ;;
18876
 
 
18877
 
nto-qnx*)
18878
 
  version_type=linux
18879
 
  need_lib_prefix=no
18880
 
  need_version=no
18881
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882
 
  soname_spec='${libname}${release}${shared_ext}$major'
18883
 
  shlibpath_var=LD_LIBRARY_PATH
18884
 
  shlibpath_overrides_runpath=yes
18885
 
  ;;
18886
 
 
18887
 
openbsd*)
18888
 
  version_type=sunos
18889
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18890
 
  need_lib_prefix=no
18891
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18892
 
  case $host_os in
18893
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18894
 
    *)                         need_version=no  ;;
18895
 
  esac
18896
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18897
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18898
 
  shlibpath_var=LD_LIBRARY_PATH
18899
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18900
 
    case $host_os in
18901
 
      openbsd2.[89] | openbsd2.[89].*)
18902
 
        shlibpath_overrides_runpath=no
18903
 
        ;;
18904
 
      *)
18905
 
        shlibpath_overrides_runpath=yes
18906
 
        ;;
18907
 
      esac
18908
 
  else
18909
 
    shlibpath_overrides_runpath=yes
18910
 
  fi
18911
 
  ;;
18912
 
 
18913
 
os2*)
18914
 
  libname_spec='$name'
18915
 
  shrext_cmds=".dll"
18916
 
  need_lib_prefix=no
18917
 
  library_names_spec='$libname${shared_ext} $libname.a'
18918
 
  dynamic_linker='OS/2 ld.exe'
18919
 
  shlibpath_var=LIBPATH
18920
 
  ;;
18921
 
 
18922
 
osf3* | osf4* | osf5*)
18923
 
  version_type=osf
18924
 
  need_lib_prefix=no
18925
 
  need_version=no
18926
 
  soname_spec='${libname}${release}${shared_ext}$major'
18927
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18928
 
  shlibpath_var=LD_LIBRARY_PATH
18929
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18930
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18931
 
  ;;
18932
 
 
18933
 
rdos*)
18934
 
  dynamic_linker=no
18935
 
  ;;
18936
 
 
18937
 
solaris*)
18938
 
  version_type=linux
18939
 
  need_lib_prefix=no
18940
 
  need_version=no
18941
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942
 
  soname_spec='${libname}${release}${shared_ext}$major'
18943
 
  shlibpath_var=LD_LIBRARY_PATH
18944
 
  shlibpath_overrides_runpath=yes
18945
 
  hardcode_into_libs=yes
18946
 
  # ldd complains unless libraries are executable
18947
 
  postinstall_cmds='chmod +x $lib'
18948
 
  ;;
18949
 
 
18950
 
sunos4*)
18951
 
  version_type=sunos
18952
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18953
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18954
 
  shlibpath_var=LD_LIBRARY_PATH
18955
 
  shlibpath_overrides_runpath=yes
18956
 
  if test "$with_gnu_ld" = yes; then
18957
 
    need_lib_prefix=no
18958
 
  fi
18959
 
  need_version=yes
18960
 
  ;;
18961
 
 
18962
 
sysv4 | sysv4.3*)
18963
 
  version_type=linux
18964
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18965
 
  soname_spec='${libname}${release}${shared_ext}$major'
18966
 
  shlibpath_var=LD_LIBRARY_PATH
18967
 
  case $host_vendor in
18968
 
    sni)
18969
 
      shlibpath_overrides_runpath=no
18970
 
      need_lib_prefix=no
18971
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18972
 
      runpath_var=LD_RUN_PATH
18973
 
      ;;
18974
 
    siemens)
18975
 
      need_lib_prefix=no
18976
 
      ;;
18977
 
    motorola)
18978
 
      need_lib_prefix=no
18979
 
      need_version=no
18980
 
      shlibpath_overrides_runpath=no
18981
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18982
 
      ;;
18983
 
  esac
18984
 
  ;;
18985
 
 
18986
 
sysv4*MP*)
18987
 
  if test -d /usr/nec ;then
18988
 
    version_type=linux
18989
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18990
 
    soname_spec='$libname${shared_ext}.$major'
18991
 
    shlibpath_var=LD_LIBRARY_PATH
18992
 
  fi
18993
 
  ;;
18994
 
 
18995
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18996
 
  version_type=freebsd-elf
18997
 
  need_lib_prefix=no
18998
 
  need_version=no
18999
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19000
 
  soname_spec='${libname}${release}${shared_ext}$major'
19001
 
  shlibpath_var=LD_LIBRARY_PATH
19002
 
  hardcode_into_libs=yes
19003
 
  if test "$with_gnu_ld" = yes; then
19004
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19005
 
    shlibpath_overrides_runpath=no
19006
 
  else
19007
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19008
 
    shlibpath_overrides_runpath=yes
19009
 
    case $host_os in
19010
 
      sco3.2v5*)
19011
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19012
 
        ;;
19013
 
    esac
19014
 
  fi
19015
 
  sys_lib_dlsearch_path_spec='/usr/lib'
19016
 
  ;;
19017
 
 
19018
 
uts4*)
19019
 
  version_type=linux
19020
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19021
 
  soname_spec='${libname}${release}${shared_ext}$major'
19022
 
  shlibpath_var=LD_LIBRARY_PATH
19023
 
  ;;
19024
 
 
19025
 
*)
19026
 
  dynamic_linker=no
19027
 
  ;;
19028
 
esac
19029
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19030
 
$as_echo "$dynamic_linker" >&6; }
19031
 
test "$dynamic_linker" = no && can_build_shared=no
19032
 
 
19033
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19034
 
  $as_echo_n "(cached) " >&6
19035
 
else
19036
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19037
 
fi
19038
 
 
19039
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19040
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19041
 
  $as_echo_n "(cached) " >&6
19042
 
else
19043
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19044
 
fi
19045
 
 
19046
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19047
 
 
19048
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19049
 
if test "$GCC" = yes; then
19050
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19051
 
fi
19052
 
 
19053
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19054
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19055
 
hardcode_action_GCJ=
19056
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19057
 
   test -n "$runpath_var_GCJ" || \
19058
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19059
 
 
19060
 
  # We can hardcode non-existant directories.
19061
 
  if test "$hardcode_direct_GCJ" != no &&
19062
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19063
 
     # have to relink, otherwise we might link with an installed library
19064
 
     # when we should be linking with a yet-to-be-installed one
19065
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19066
 
     test "$hardcode_minus_L_GCJ" != no; then
19067
 
    # Linking always hardcodes the temporary library directory.
19068
 
    hardcode_action_GCJ=relink
19069
 
  else
19070
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19071
 
    hardcode_action_GCJ=immediate
19072
 
  fi
19073
 
else
19074
 
  # We cannot hardcode anything, or else we can only hardcode existing
19075
 
  # directories.
19076
 
  hardcode_action_GCJ=unsupported
19077
 
fi
19078
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19079
 
$as_echo "$hardcode_action_GCJ" >&6; }
19080
 
 
19081
 
if test "$hardcode_action_GCJ" = relink; then
19082
 
  # Fast installation is not supported
19083
 
  enable_fast_install=no
19084
 
elif test "$shlibpath_overrides_runpath" = yes ||
19085
 
     test "$enable_shared" = no; then
19086
 
  # Fast installation is not necessary
19087
 
  enable_fast_install=needless
19088
 
fi
19089
 
 
19090
 
 
19091
 
# The else clause should only fire when bootstrapping the
19092
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19093
 
# with your package, and you will get complaints that there are
19094
 
# no rules to generate ltmain.sh.
19095
 
if test -f "$ltmain"; then
19096
 
  # See if we are running on zsh, and set the options which allow our commands through
19097
 
  # without removal of \ escapes.
19098
 
  if test -n "${ZSH_VERSION+set}" ; then
19099
 
    setopt NO_GLOB_SUBST
19100
 
  fi
19101
 
  # Now quote all the things that may contain metacharacters while being
19102
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19103
 
  # variables and quote the copies for generation of the libtool script.
19104
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19105
 
    SED SHELL STRIP \
19106
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19107
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19108
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19109
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19110
 
    lt_cv_sys_global_symbol_to_c_name_address \
19111
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19112
 
    old_postinstall_cmds old_postuninstall_cmds \
19113
 
    compiler_GCJ \
19114
 
    CC_GCJ \
19115
 
    LD_GCJ \
19116
 
    lt_prog_compiler_wl_GCJ \
19117
 
    lt_prog_compiler_pic_GCJ \
19118
 
    lt_prog_compiler_static_GCJ \
19119
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19120
 
    export_dynamic_flag_spec_GCJ \
19121
 
    thread_safe_flag_spec_GCJ \
19122
 
    whole_archive_flag_spec_GCJ \
19123
 
    enable_shared_with_static_runtimes_GCJ \
19124
 
    old_archive_cmds_GCJ \
19125
 
    old_archive_from_new_cmds_GCJ \
19126
 
    predep_objects_GCJ \
19127
 
    postdep_objects_GCJ \
19128
 
    predeps_GCJ \
19129
 
    postdeps_GCJ \
19130
 
    compiler_lib_search_path_GCJ \
19131
 
    compiler_lib_search_dirs_GCJ \
19132
 
    archive_cmds_GCJ \
19133
 
    archive_expsym_cmds_GCJ \
19134
 
    postinstall_cmds_GCJ \
19135
 
    postuninstall_cmds_GCJ \
19136
 
    old_archive_from_expsyms_cmds_GCJ \
19137
 
    allow_undefined_flag_GCJ \
19138
 
    no_undefined_flag_GCJ \
19139
 
    export_symbols_cmds_GCJ \
19140
 
    hardcode_libdir_flag_spec_GCJ \
19141
 
    hardcode_libdir_flag_spec_ld_GCJ \
19142
 
    hardcode_libdir_separator_GCJ \
19143
 
    hardcode_automatic_GCJ \
19144
 
    module_cmds_GCJ \
19145
 
    module_expsym_cmds_GCJ \
19146
 
    lt_cv_prog_compiler_c_o_GCJ \
19147
 
    fix_srcfile_path_GCJ \
19148
 
    exclude_expsyms_GCJ \
19149
 
    include_expsyms_GCJ; do
19150
 
 
19151
 
    case $var in
19152
 
    old_archive_cmds_GCJ | \
19153
 
    old_archive_from_new_cmds_GCJ | \
19154
 
    archive_cmds_GCJ | \
19155
 
    archive_expsym_cmds_GCJ | \
19156
 
    module_cmds_GCJ | \
19157
 
    module_expsym_cmds_GCJ | \
19158
 
    old_archive_from_expsyms_cmds_GCJ | \
19159
 
    export_symbols_cmds_GCJ | \
19160
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19161
 
    postinstall_cmds | postuninstall_cmds | \
19162
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19163
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19164
 
      # Double-quote double-evaled strings.
19165
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19166
 
      ;;
19167
 
    *)
19168
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19169
 
      ;;
19170
 
    esac
19171
 
  done
19172
 
 
19173
 
  case $lt_echo in
19174
 
  *'\$0 --fallback-echo"')
19175
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19176
 
    ;;
19177
 
  esac
19178
 
 
19179
 
cfgfile="$ofile"
19180
 
 
19181
 
  cat <<__EOF__ >> "$cfgfile"
19182
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19183
 
 
19184
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19185
 
 
19186
 
# Shell to use when invoking shell scripts.
19187
 
SHELL=$lt_SHELL
19188
 
 
19189
 
# Whether or not to build shared libraries.
19190
 
build_libtool_libs=$enable_shared
19191
 
 
19192
 
# Whether or not to build static libraries.
19193
 
build_old_libs=$enable_static
19194
 
 
19195
 
# Whether or not to add -lc for building shared libraries.
19196
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19197
 
 
19198
 
# Whether or not to disallow shared libs when runtime libs are static
19199
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19200
 
 
19201
 
# Whether or not to optimize for fast installation.
19202
 
fast_install=$enable_fast_install
19203
 
 
19204
 
# The host system.
19205
 
host_alias=$host_alias
19206
 
host=$host
19207
 
host_os=$host_os
19208
 
 
19209
 
# The build system.
19210
 
build_alias=$build_alias
19211
 
build=$build
19212
 
build_os=$build_os
19213
 
 
19214
 
# An echo program that does not interpret backslashes.
19215
 
echo=$lt_echo
19216
 
 
19217
 
# The archiver.
19218
 
AR=$lt_AR
19219
 
AR_FLAGS=$lt_AR_FLAGS
19220
 
 
19221
 
# A C compiler.
19222
 
LTCC=$lt_LTCC
19223
 
 
19224
 
# LTCC compiler flags.
19225
 
LTCFLAGS=$lt_LTCFLAGS
19226
 
 
19227
 
# A language-specific compiler.
19228
 
CC=$lt_compiler_GCJ
19229
 
 
19230
 
# Is the compiler the GNU C compiler?
19231
 
with_gcc=$GCC_GCJ
19232
 
 
19233
 
# An ERE matcher.
19234
 
EGREP=$lt_EGREP
19235
 
 
19236
 
# The linker used to build libraries.
19237
 
LD=$lt_LD_GCJ
19238
 
 
19239
 
# Whether we need hard or soft links.
19240
 
LN_S=$lt_LN_S
19241
 
 
19242
 
# A BSD-compatible nm program.
19243
 
NM=$lt_NM
19244
 
 
19245
 
# A symbol stripping program
19246
 
STRIP=$lt_STRIP
19247
 
 
19248
 
# Used to examine libraries when file_magic_cmd begins "file"
19249
 
MAGIC_CMD=$MAGIC_CMD
19250
 
 
19251
 
# Used on cygwin: DLL creation program.
19252
 
DLLTOOL="$DLLTOOL"
19253
 
 
19254
 
# Used on cygwin: object dumper.
19255
 
OBJDUMP="$OBJDUMP"
19256
 
 
19257
 
# Used on cygwin: assembler.
19258
 
AS="$AS"
19259
 
 
19260
 
# The name of the directory that contains temporary libtool files.
19261
 
objdir=$objdir
19262
 
 
19263
 
# How to create reloadable object files.
19264
 
reload_flag=$lt_reload_flag
19265
 
reload_cmds=$lt_reload_cmds
19266
 
 
19267
 
# How to pass a linker flag through the compiler.
19268
 
wl=$lt_lt_prog_compiler_wl_GCJ
19269
 
 
19270
 
# Object file suffix (normally "o").
19271
 
objext="$ac_objext"
19272
 
 
19273
 
# Old archive suffix (normally "a").
19274
 
libext="$libext"
19275
 
 
19276
 
# Shared library suffix (normally ".so").
19277
 
shrext_cmds='$shrext_cmds'
19278
 
 
19279
 
# Executable file suffix (normally "").
19280
 
exeext="$exeext"
19281
 
 
19282
 
# Additional compiler flags for building library objects.
19283
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19284
 
pic_mode=$pic_mode
19285
 
 
19286
 
# What is the maximum length of a command?
19287
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19288
 
 
19289
 
# Does compiler simultaneously support -c and -o options?
19290
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19291
 
 
19292
 
# Must we lock files when doing compilation?
19293
 
need_locks=$lt_need_locks
19294
 
 
19295
 
# Do we need the lib prefix for modules?
19296
 
need_lib_prefix=$need_lib_prefix
19297
 
 
19298
 
# Do we need a version for libraries?
19299
 
need_version=$need_version
19300
 
 
19301
 
# Whether dlopen is supported.
19302
 
dlopen_support=$enable_dlopen
19303
 
 
19304
 
# Whether dlopen of programs is supported.
19305
 
dlopen_self=$enable_dlopen_self
19306
 
 
19307
 
# Whether dlopen of statically linked programs is supported.
19308
 
dlopen_self_static=$enable_dlopen_self_static
19309
 
 
19310
 
# Compiler flag to prevent dynamic linking.
19311
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19312
 
 
19313
 
# Compiler flag to turn off builtin functions.
19314
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19315
 
 
19316
 
# Compiler flag to allow reflexive dlopens.
19317
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19318
 
 
19319
 
# Compiler flag to generate shared objects directly from archives.
19320
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19321
 
 
19322
 
# Compiler flag to generate thread-safe objects.
19323
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19324
 
 
19325
 
# Library versioning type.
19326
 
version_type=$version_type
19327
 
 
19328
 
# Format of library name prefix.
19329
 
libname_spec=$lt_libname_spec
19330
 
 
19331
 
# List of archive names.  First name is the real one, the rest are links.
19332
 
# The last name is the one that the linker finds with -lNAME.
19333
 
library_names_spec=$lt_library_names_spec
19334
 
 
19335
 
# The coded name of the library, if different from the real name.
19336
 
soname_spec=$lt_soname_spec
19337
 
 
19338
 
# Commands used to build and install an old-style archive.
19339
 
RANLIB=$lt_RANLIB
19340
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19341
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19342
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19343
 
 
19344
 
# Create an old-style archive from a shared archive.
19345
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19346
 
 
19347
 
# Create a temporary old-style archive to link instead of a shared archive.
19348
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19349
 
 
19350
 
# Commands used to build and install a shared archive.
19351
 
archive_cmds=$lt_archive_cmds_GCJ
19352
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19353
 
postinstall_cmds=$lt_postinstall_cmds
19354
 
postuninstall_cmds=$lt_postuninstall_cmds
19355
 
 
19356
 
# Commands used to build a loadable module (assumed same as above if empty)
19357
 
module_cmds=$lt_module_cmds_GCJ
19358
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19359
 
 
19360
 
# Commands to strip libraries.
19361
 
old_striplib=$lt_old_striplib
19362
 
striplib=$lt_striplib
19363
 
 
19364
 
# Dependencies to place before the objects being linked to create a
19365
 
# shared library.
19366
 
predep_objects=$lt_predep_objects_GCJ
19367
 
 
19368
 
# Dependencies to place after the objects being linked to create a
19369
 
# shared library.
19370
 
postdep_objects=$lt_postdep_objects_GCJ
19371
 
 
19372
 
# Dependencies to place before the objects being linked to create a
19373
 
# shared library.
19374
 
predeps=$lt_predeps_GCJ
19375
 
 
19376
 
# Dependencies to place after the objects being linked to create a
19377
 
# shared library.
19378
 
postdeps=$lt_postdeps_GCJ
19379
 
 
19380
 
# The directories searched by this compiler when creating a shared
19381
 
# library
19382
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19383
 
 
19384
 
# The library search path used internally by the compiler when linking
19385
 
# a shared library.
19386
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19387
 
 
19388
 
# Method to check whether dependent libraries are shared objects.
19389
 
deplibs_check_method=$lt_deplibs_check_method
19390
 
 
19391
 
# Command to use when deplibs_check_method == file_magic.
19392
 
file_magic_cmd=$lt_file_magic_cmd
19393
 
 
19394
 
# Flag that allows shared libraries with undefined symbols to be built.
19395
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19396
 
 
19397
 
# Flag that forces no undefined symbols.
19398
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19399
 
 
19400
 
# Commands used to finish a libtool library installation in a directory.
19401
 
finish_cmds=$lt_finish_cmds
19402
 
 
19403
 
# Same as above, but a single script fragment to be evaled but not shown.
19404
 
finish_eval=$lt_finish_eval
19405
 
 
19406
 
# Take the output of nm and produce a listing of raw symbols and C names.
19407
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19408
 
 
19409
 
# Transform the output of nm in a proper C declaration
19410
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19411
 
 
19412
 
# Transform the output of nm in a C name address pair
19413
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19414
 
 
19415
 
# This is the shared library runtime path variable.
19416
 
runpath_var=$runpath_var
19417
 
 
19418
 
# This is the shared library path variable.
19419
 
shlibpath_var=$shlibpath_var
19420
 
 
19421
 
# Is shlibpath searched before the hard-coded library search path?
19422
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19423
 
 
19424
 
# How to hardcode a shared library path into an executable.
19425
 
hardcode_action=$hardcode_action_GCJ
19426
 
 
19427
 
# Whether we should hardcode library paths into libraries.
19428
 
hardcode_into_libs=$hardcode_into_libs
19429
 
 
19430
 
# Flag to hardcode \$libdir into a binary during linking.
19431
 
# This must work even if \$libdir does not exist.
19432
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19433
 
 
19434
 
# If ld is used when linking, flag to hardcode \$libdir into
19435
 
# a binary during linking. This must work even if \$libdir does
19436
 
# not exist.
19437
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19438
 
 
19439
 
# Whether we need a single -rpath flag with a separated argument.
19440
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19441
 
 
19442
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19443
 
# resulting binary.
19444
 
hardcode_direct=$hardcode_direct_GCJ
19445
 
 
19446
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19447
 
# resulting binary.
19448
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19449
 
 
19450
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19451
 
# the resulting binary.
19452
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19453
 
 
19454
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19455
 
# and all subsequent libraries and executables linked against it.
19456
 
hardcode_automatic=$hardcode_automatic_GCJ
19457
 
 
19458
 
# Variables whose values should be saved in libtool wrapper scripts and
19459
 
# restored at relink time.
19460
 
variables_saved_for_relink="$variables_saved_for_relink"
19461
 
 
19462
 
# Whether libtool must link a program against all its dependency libraries.
19463
 
link_all_deplibs=$link_all_deplibs_GCJ
19464
 
 
19465
 
# Compile-time system search path for libraries
19466
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19467
 
 
19468
 
# Run-time system search path for libraries
19469
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19470
 
 
19471
 
# Fix the shell variable \$srcfile for the compiler.
19472
 
fix_srcfile_path=$lt_fix_srcfile_path
19473
 
 
19474
 
# Set to yes if exported symbols are required.
19475
 
always_export_symbols=$always_export_symbols_GCJ
19476
 
 
19477
 
# The commands to list exported symbols.
19478
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19479
 
 
19480
 
# The commands to extract the exported symbol list from a shared archive.
19481
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19482
 
 
19483
 
# Symbols that should not be listed in the preloaded symbols.
19484
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19485
 
 
19486
 
# Symbols that must always be exported.
19487
 
include_expsyms=$lt_include_expsyms_GCJ
19488
 
 
19489
 
# ### END LIBTOOL TAG CONFIG: $tagname
19490
 
 
19491
 
__EOF__
19492
 
 
19493
 
 
19494
 
else
19495
 
  # If there is no Makefile yet, we rely on a make rule to execute
19496
 
  # `config.status --recheck' to rerun these tests and create the
19497
 
  # libtool script then.
19498
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19499
 
  if test -f "$ltmain_in"; then
19500
 
    test -f Makefile && make "$ltmain"
19501
 
  fi
19502
 
fi
19503
 
 
19504
 
 
19505
 
ac_ext=c
19506
 
ac_cpp='$CPP $CPPFLAGS'
19507
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19510
 
 
19511
 
CC="$lt_save_CC"
19512
 
 
19513
 
        else
19514
 
          tagname=""
19515
 
        fi
19516
 
        ;;
19517
 
 
19518
 
      RC)
19519
 
 
19520
 
 
19521
 
# Source file extension for RC test sources.
19522
 
ac_ext=rc
19523
 
 
19524
 
# Object file extension for compiled RC test sources.
19525
 
objext=o
19526
 
objext_RC=$objext
19527
 
 
19528
 
# Code to be used in simple compile tests
19529
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19530
 
 
19531
 
# Code to be used in simple link tests
19532
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
19533
 
 
19534
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19535
 
 
19536
 
# If no C compiler was specified, use CC.
19537
 
LTCC=${LTCC-"$CC"}
19538
 
 
19539
 
# If no C compiler flags were specified, use CFLAGS.
19540
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19541
 
 
19542
 
# Allow CC to be a program name with arguments.
19543
 
compiler=$CC
19544
 
 
19545
 
 
19546
 
# save warnings/boilerplate of simple test code
19547
 
ac_outfile=conftest.$ac_objext
19548
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19549
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550
 
_lt_compiler_boilerplate=`cat conftest.err`
19551
 
$rm conftest*
19552
 
 
19553
 
ac_outfile=conftest.$ac_objext
19554
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19555
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556
 
_lt_linker_boilerplate=`cat conftest.err`
19557
 
$rm -r conftest*
19558
 
 
19559
 
 
19560
 
# Allow CC to be a program name with arguments.
19561
 
lt_save_CC="$CC"
19562
 
CC=${RC-"windres"}
19563
 
compiler=$CC
19564
 
compiler_RC=$CC
19565
 
for cc_temp in $compiler""; do
19566
 
  case $cc_temp in
19567
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19568
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19569
 
    \-*) ;;
19570
 
    *) break;;
19571
 
  esac
19572
 
done
19573
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19574
 
 
19575
 
lt_cv_prog_compiler_c_o_RC=yes
19576
 
 
19577
 
# The else clause should only fire when bootstrapping the
19578
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19579
 
# with your package, and you will get complaints that there are
19580
 
# no rules to generate ltmain.sh.
19581
 
if test -f "$ltmain"; then
19582
 
  # See if we are running on zsh, and set the options which allow our commands through
19583
 
  # without removal of \ escapes.
19584
 
  if test -n "${ZSH_VERSION+set}" ; then
19585
 
    setopt NO_GLOB_SUBST
19586
 
  fi
19587
 
  # Now quote all the things that may contain metacharacters while being
19588
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19589
 
  # variables and quote the copies for generation of the libtool script.
19590
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19591
 
    SED SHELL STRIP \
19592
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19593
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19594
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19595
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19596
 
    lt_cv_sys_global_symbol_to_c_name_address \
19597
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19598
 
    old_postinstall_cmds old_postuninstall_cmds \
19599
 
    compiler_RC \
19600
 
    CC_RC \
19601
 
    LD_RC \
19602
 
    lt_prog_compiler_wl_RC \
19603
 
    lt_prog_compiler_pic_RC \
19604
 
    lt_prog_compiler_static_RC \
19605
 
    lt_prog_compiler_no_builtin_flag_RC \
19606
 
    export_dynamic_flag_spec_RC \
19607
 
    thread_safe_flag_spec_RC \
19608
 
    whole_archive_flag_spec_RC \
19609
 
    enable_shared_with_static_runtimes_RC \
19610
 
    old_archive_cmds_RC \
19611
 
    old_archive_from_new_cmds_RC \
19612
 
    predep_objects_RC \
19613
 
    postdep_objects_RC \
19614
 
    predeps_RC \
19615
 
    postdeps_RC \
19616
 
    compiler_lib_search_path_RC \
19617
 
    compiler_lib_search_dirs_RC \
19618
 
    archive_cmds_RC \
19619
 
    archive_expsym_cmds_RC \
19620
 
    postinstall_cmds_RC \
19621
 
    postuninstall_cmds_RC \
19622
 
    old_archive_from_expsyms_cmds_RC \
19623
 
    allow_undefined_flag_RC \
19624
 
    no_undefined_flag_RC \
19625
 
    export_symbols_cmds_RC \
19626
 
    hardcode_libdir_flag_spec_RC \
19627
 
    hardcode_libdir_flag_spec_ld_RC \
19628
 
    hardcode_libdir_separator_RC \
19629
 
    hardcode_automatic_RC \
19630
 
    module_cmds_RC \
19631
 
    module_expsym_cmds_RC \
19632
 
    lt_cv_prog_compiler_c_o_RC \
19633
 
    fix_srcfile_path_RC \
19634
 
    exclude_expsyms_RC \
19635
 
    include_expsyms_RC; do
19636
 
 
19637
 
    case $var in
19638
 
    old_archive_cmds_RC | \
19639
 
    old_archive_from_new_cmds_RC | \
19640
 
    archive_cmds_RC | \
19641
 
    archive_expsym_cmds_RC | \
19642
 
    module_cmds_RC | \
19643
 
    module_expsym_cmds_RC | \
19644
 
    old_archive_from_expsyms_cmds_RC | \
19645
 
    export_symbols_cmds_RC | \
19646
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19647
 
    postinstall_cmds | postuninstall_cmds | \
19648
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19649
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19650
 
      # Double-quote double-evaled strings.
19651
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19652
 
      ;;
19653
 
    *)
19654
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19655
 
      ;;
19656
 
    esac
19657
 
  done
19658
 
 
19659
 
  case $lt_echo in
19660
 
  *'\$0 --fallback-echo"')
19661
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19662
 
    ;;
19663
 
  esac
19664
 
 
19665
 
cfgfile="$ofile"
19666
 
 
19667
 
  cat <<__EOF__ >> "$cfgfile"
19668
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19669
 
 
19670
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19671
 
 
19672
 
# Shell to use when invoking shell scripts.
19673
 
SHELL=$lt_SHELL
19674
 
 
19675
 
# Whether or not to build shared libraries.
19676
 
build_libtool_libs=$enable_shared
19677
 
 
19678
 
# Whether or not to build static libraries.
19679
 
build_old_libs=$enable_static
19680
 
 
19681
 
# Whether or not to add -lc for building shared libraries.
19682
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
19683
 
 
19684
 
# Whether or not to disallow shared libs when runtime libs are static
19685
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19686
 
 
19687
 
# Whether or not to optimize for fast installation.
19688
 
fast_install=$enable_fast_install
19689
 
 
19690
 
# The host system.
19691
 
host_alias=$host_alias
19692
 
host=$host
19693
 
host_os=$host_os
19694
 
 
19695
 
# The build system.
19696
 
build_alias=$build_alias
19697
 
build=$build
19698
 
build_os=$build_os
19699
 
 
19700
 
# An echo program that does not interpret backslashes.
19701
 
echo=$lt_echo
19702
 
 
19703
 
# The archiver.
19704
 
AR=$lt_AR
19705
 
AR_FLAGS=$lt_AR_FLAGS
19706
 
 
19707
 
# A C compiler.
19708
 
LTCC=$lt_LTCC
19709
 
 
19710
 
# LTCC compiler flags.
19711
 
LTCFLAGS=$lt_LTCFLAGS
19712
 
 
19713
 
# A language-specific compiler.
19714
 
CC=$lt_compiler_RC
19715
 
 
19716
 
# Is the compiler the GNU C compiler?
19717
 
with_gcc=$GCC_RC
19718
 
 
19719
 
# An ERE matcher.
19720
 
EGREP=$lt_EGREP
19721
 
 
19722
 
# The linker used to build libraries.
19723
 
LD=$lt_LD_RC
19724
 
 
19725
 
# Whether we need hard or soft links.
19726
 
LN_S=$lt_LN_S
19727
 
 
19728
 
# A BSD-compatible nm program.
19729
 
NM=$lt_NM
19730
 
 
19731
 
# A symbol stripping program
19732
 
STRIP=$lt_STRIP
19733
 
 
19734
 
# Used to examine libraries when file_magic_cmd begins "file"
19735
 
MAGIC_CMD=$MAGIC_CMD
19736
 
 
19737
 
# Used on cygwin: DLL creation program.
19738
 
DLLTOOL="$DLLTOOL"
19739
 
 
19740
 
# Used on cygwin: object dumper.
19741
 
OBJDUMP="$OBJDUMP"
19742
 
 
19743
 
# Used on cygwin: assembler.
19744
 
AS="$AS"
19745
 
 
19746
 
# The name of the directory that contains temporary libtool files.
19747
 
objdir=$objdir
19748
 
 
19749
 
# How to create reloadable object files.
19750
 
reload_flag=$lt_reload_flag
19751
 
reload_cmds=$lt_reload_cmds
19752
 
 
19753
 
# How to pass a linker flag through the compiler.
19754
 
wl=$lt_lt_prog_compiler_wl_RC
19755
 
 
19756
 
# Object file suffix (normally "o").
19757
 
objext="$ac_objext"
19758
 
 
19759
 
# Old archive suffix (normally "a").
19760
 
libext="$libext"
19761
 
 
19762
 
# Shared library suffix (normally ".so").
19763
 
shrext_cmds='$shrext_cmds'
19764
 
 
19765
 
# Executable file suffix (normally "").
19766
 
exeext="$exeext"
19767
 
 
19768
 
# Additional compiler flags for building library objects.
19769
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19770
 
pic_mode=$pic_mode
19771
 
 
19772
 
# What is the maximum length of a command?
19773
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19774
 
 
19775
 
# Does compiler simultaneously support -c and -o options?
19776
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19777
 
 
19778
 
# Must we lock files when doing compilation?
19779
 
need_locks=$lt_need_locks
19780
 
 
19781
 
# Do we need the lib prefix for modules?
19782
 
need_lib_prefix=$need_lib_prefix
19783
 
 
19784
 
# Do we need a version for libraries?
19785
 
need_version=$need_version
19786
 
 
19787
 
# Whether dlopen is supported.
19788
 
dlopen_support=$enable_dlopen
19789
 
 
19790
 
# Whether dlopen of programs is supported.
19791
 
dlopen_self=$enable_dlopen_self
19792
 
 
19793
 
# Whether dlopen of statically linked programs is supported.
19794
 
dlopen_self_static=$enable_dlopen_self_static
19795
 
 
19796
 
# Compiler flag to prevent dynamic linking.
19797
 
link_static_flag=$lt_lt_prog_compiler_static_RC
19798
 
 
19799
 
# Compiler flag to turn off builtin functions.
19800
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19801
 
 
19802
 
# Compiler flag to allow reflexive dlopens.
19803
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19804
 
 
19805
 
# Compiler flag to generate shared objects directly from archives.
19806
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19807
 
 
19808
 
# Compiler flag to generate thread-safe objects.
19809
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19810
 
 
19811
 
# Library versioning type.
19812
 
version_type=$version_type
19813
 
 
19814
 
# Format of library name prefix.
19815
 
libname_spec=$lt_libname_spec
19816
 
 
19817
 
# List of archive names.  First name is the real one, the rest are links.
19818
 
# The last name is the one that the linker finds with -lNAME.
19819
 
library_names_spec=$lt_library_names_spec
19820
 
 
19821
 
# The coded name of the library, if different from the real name.
19822
 
soname_spec=$lt_soname_spec
19823
 
 
19824
 
# Commands used to build and install an old-style archive.
19825
 
RANLIB=$lt_RANLIB
19826
 
old_archive_cmds=$lt_old_archive_cmds_RC
19827
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19828
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19829
 
 
19830
 
# Create an old-style archive from a shared archive.
19831
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19832
 
 
19833
 
# Create a temporary old-style archive to link instead of a shared archive.
19834
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19835
 
 
19836
 
# Commands used to build and install a shared archive.
19837
 
archive_cmds=$lt_archive_cmds_RC
19838
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19839
 
postinstall_cmds=$lt_postinstall_cmds
19840
 
postuninstall_cmds=$lt_postuninstall_cmds
19841
 
 
19842
 
# Commands used to build a loadable module (assumed same as above if empty)
19843
 
module_cmds=$lt_module_cmds_RC
19844
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
19845
 
 
19846
 
# Commands to strip libraries.
19847
 
old_striplib=$lt_old_striplib
19848
 
striplib=$lt_striplib
19849
 
 
19850
 
# Dependencies to place before the objects being linked to create a
19851
 
# shared library.
19852
 
predep_objects=$lt_predep_objects_RC
19853
 
 
19854
 
# Dependencies to place after the objects being linked to create a
19855
 
# shared library.
19856
 
postdep_objects=$lt_postdep_objects_RC
19857
 
 
19858
 
# Dependencies to place before the objects being linked to create a
19859
 
# shared library.
19860
 
predeps=$lt_predeps_RC
19861
 
 
19862
 
# Dependencies to place after the objects being linked to create a
19863
 
# shared library.
19864
 
postdeps=$lt_postdeps_RC
19865
 
 
19866
 
# The directories searched by this compiler when creating a shared
19867
 
# library
19868
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19869
 
 
19870
 
# The library search path used internally by the compiler when linking
19871
 
# a shared library.
19872
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19873
 
 
19874
 
# Method to check whether dependent libraries are shared objects.
19875
 
deplibs_check_method=$lt_deplibs_check_method
19876
 
 
19877
 
# Command to use when deplibs_check_method == file_magic.
19878
 
file_magic_cmd=$lt_file_magic_cmd
19879
 
 
19880
 
# Flag that allows shared libraries with undefined symbols to be built.
19881
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
19882
 
 
19883
 
# Flag that forces no undefined symbols.
19884
 
no_undefined_flag=$lt_no_undefined_flag_RC
19885
 
 
19886
 
# Commands used to finish a libtool library installation in a directory.
19887
 
finish_cmds=$lt_finish_cmds
19888
 
 
19889
 
# Same as above, but a single script fragment to be evaled but not shown.
19890
 
finish_eval=$lt_finish_eval
19891
 
 
19892
 
# Take the output of nm and produce a listing of raw symbols and C names.
19893
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19894
 
 
19895
 
# Transform the output of nm in a proper C declaration
19896
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19897
 
 
19898
 
# Transform the output of nm in a C name address pair
19899
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19900
 
 
19901
 
# This is the shared library runtime path variable.
19902
 
runpath_var=$runpath_var
19903
 
 
19904
 
# This is the shared library path variable.
19905
 
shlibpath_var=$shlibpath_var
19906
 
 
19907
 
# Is shlibpath searched before the hard-coded library search path?
19908
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19909
 
 
19910
 
# How to hardcode a shared library path into an executable.
19911
 
hardcode_action=$hardcode_action_RC
19912
 
 
19913
 
# Whether we should hardcode library paths into libraries.
19914
 
hardcode_into_libs=$hardcode_into_libs
19915
 
 
19916
 
# Flag to hardcode \$libdir into a binary during linking.
19917
 
# This must work even if \$libdir does not exist.
19918
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19919
 
 
19920
 
# If ld is used when linking, flag to hardcode \$libdir into
19921
 
# a binary during linking. This must work even if \$libdir does
19922
 
# not exist.
19923
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19924
 
 
19925
 
# Whether we need a single -rpath flag with a separated argument.
19926
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19927
 
 
19928
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19929
 
# resulting binary.
19930
 
hardcode_direct=$hardcode_direct_RC
19931
 
 
19932
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19933
 
# resulting binary.
19934
 
hardcode_minus_L=$hardcode_minus_L_RC
19935
 
 
19936
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19937
 
# the resulting binary.
19938
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19939
 
 
19940
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19941
 
# and all subsequent libraries and executables linked against it.
19942
 
hardcode_automatic=$hardcode_automatic_RC
19943
 
 
19944
 
# Variables whose values should be saved in libtool wrapper scripts and
19945
 
# restored at relink time.
19946
 
variables_saved_for_relink="$variables_saved_for_relink"
19947
 
 
19948
 
# Whether libtool must link a program against all its dependency libraries.
19949
 
link_all_deplibs=$link_all_deplibs_RC
19950
 
 
19951
 
# Compile-time system search path for libraries
19952
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19953
 
 
19954
 
# Run-time system search path for libraries
19955
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19956
 
 
19957
 
# Fix the shell variable \$srcfile for the compiler.
19958
 
fix_srcfile_path=$lt_fix_srcfile_path
19959
 
 
19960
 
# Set to yes if exported symbols are required.
19961
 
always_export_symbols=$always_export_symbols_RC
19962
 
 
19963
 
# The commands to list exported symbols.
19964
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
19965
 
 
19966
 
# The commands to extract the exported symbol list from a shared archive.
19967
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19968
 
 
19969
 
# Symbols that should not be listed in the preloaded symbols.
19970
 
exclude_expsyms=$lt_exclude_expsyms_RC
19971
 
 
19972
 
# Symbols that must always be exported.
19973
 
include_expsyms=$lt_include_expsyms_RC
19974
 
 
19975
 
# ### END LIBTOOL TAG CONFIG: $tagname
19976
 
 
19977
 
__EOF__
19978
 
 
19979
 
 
19980
 
else
19981
 
  # If there is no Makefile yet, we rely on a make rule to execute
19982
 
  # `config.status --recheck' to rerun these tests and create the
19983
 
  # libtool script then.
19984
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19985
 
  if test -f "$ltmain_in"; then
19986
 
    test -f Makefile && make "$ltmain"
19987
 
  fi
19988
 
fi
19989
 
 
19990
 
 
19991
 
ac_ext=c
19992
 
ac_cpp='$CPP $CPPFLAGS'
19993
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19994
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19995
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996
 
 
19997
 
CC="$lt_save_CC"
19998
 
 
19999
 
        ;;
20000
 
 
20001
 
      *)
20002
 
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20003
 
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20004
 
   { (exit 1); exit 1; }; }
20005
 
        ;;
20006
 
      esac
20007
 
 
20008
 
      # Append the new tag name to the list of available tags.
20009
 
      if test -n "$tagname" ; then
20010
 
      available_tags="$available_tags $tagname"
20011
 
    fi
20012
 
    fi
20013
 
  done
20014
 
  IFS="$lt_save_ifs"
20015
 
 
20016
 
  # Now substitute the updated list of available tags.
20017
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20018
 
    mv "${ofile}T" "$ofile"
20019
 
    chmod +x "$ofile"
20020
 
  else
20021
 
    rm -f "${ofile}T"
20022
 
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20023
 
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20024
 
   { (exit 1); exit 1; }; }
20025
 
  fi
20026
 
fi
20027
 
 
20028
 
 
20029
 
 
20030
 
# This can be used to rebuild libtool when needed
20031
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20032
 
 
20033
 
# Always use our own libtool.
20034
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20035
 
 
20036
 
# Prevent multiple expansion
20037
 
 
20038
 
 
20039
 
 
20040
 
 
20041
 
 
20042
 
 
20043
 
 
20044
 
 
20045
 
 
20046
 
 
20047
 
 
20048
 
 
20049
 
 
20050
 
 
20051
 
 
20052
 
 
20053
 
 
20054
 
 
 
11027
 
 
11028
 
 
11029
 
 
11030
 
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
striplib=
 
11043
old_striplib=
 
11044
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11045
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11046
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11047
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11048
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11049
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11050
$as_echo "yes" >&6; }
 
11051
else
 
11052
# FIXME - insert some real tests, host_os isn't really good enough
 
11053
  case $host_os in
 
11054
  darwin*)
 
11055
    if test -n "$STRIP" ; then
 
11056
      striplib="$STRIP -x"
 
11057
      old_striplib="$STRIP -S"
 
11058
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11059
$as_echo "yes" >&6; }
 
11060
    else
 
11061
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
11062
$as_echo "no" >&6; }
 
11063
    fi
 
11064
    ;;
 
11065
  *)
 
11066
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
11067
$as_echo "no" >&6; }
 
11068
    ;;
 
11069
  esac
 
11070
fi
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
  # Report which library types will actually be built
 
11084
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11085
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11086
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11087
$as_echo "$can_build_shared" >&6; }
 
11088
 
 
11089
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11090
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11091
  test "$can_build_shared" = "no" && enable_shared=no
 
11092
 
 
11093
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11094
  # are all built from PIC.
 
11095
  case $host_os in
 
11096
  aix3*)
 
11097
    test "$enable_shared" = yes && enable_static=no
 
11098
    if test -n "$RANLIB"; then
 
11099
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11100
      postinstall_cmds='$RANLIB $lib'
 
11101
    fi
 
11102
    ;;
 
11103
 
 
11104
  aix[4-9]*)
 
11105
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11106
      test "$enable_shared" = yes && enable_static=no
 
11107
    fi
 
11108
    ;;
 
11109
  esac
 
11110
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11111
$as_echo "$enable_shared" >&6; }
 
11112
 
 
11113
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11114
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11115
  # Make sure either enable_shared or enable_static is yes.
 
11116
  test "$enable_shared" = yes || enable_static=yes
 
11117
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11118
$as_echo "$enable_static" >&6; }
 
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
fi
 
11124
ac_ext=c
 
11125
ac_cpp='$CPP $CPPFLAGS'
 
11126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11129
 
 
11130
CC="$lt_save_CC"
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
 
 
11143
 
 
11144
        ac_config_commands="$ac_config_commands libtool"
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
# Only expand once:
20055
11150
 
20056
11151
 
20057
11152
ac_ext=c
20767
11862
  if test "$am_compiler_list" = ""; then
20768
11863
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20769
11864
  fi
 
11865
  am__universal=false
 
11866
  case " $depcc " in #(
 
11867
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
11868
     esac
 
11869
 
20770
11870
  for depmode in $am_compiler_list; do
20771
11871
    # Setup a source with many dependencies, because some compilers
20772
11872
    # like to wrap large dependency lists on column 80 (with \), and
20784
11884
    done
20785
11885
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20786
11886
 
 
11887
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
11888
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
11889
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
11890
    # versions had trouble with output in subdirs
 
11891
    am__obj=sub/conftest.${OBJEXT-o}
 
11892
    am__minus_obj="-o $am__obj"
20787
11893
    case $depmode in
 
11894
    gcc)
 
11895
      # This depmode causes a compiler race in universal mode.
 
11896
      test "$am__universal" = false || continue
 
11897
      ;;
20788
11898
    nosideeffect)
20789
11899
      # after this tag, mechanisms are not by side-effect, so they'll
20790
11900
      # only be used when explicitly requested
20794
11904
        break
20795
11905
      fi
20796
11906
      ;;
 
11907
    msvisualcpp | msvcmsys)
 
11908
      # This compiler won't grok `-c -o', but also, the minuso test has
 
11909
      # not run yet.  These depmodes are late enough in the game, and
 
11910
      # so weak that their functioning should not be impacted.
 
11911
      am__obj=conftest.${OBJEXT-o}
 
11912
      am__minus_obj=
 
11913
      ;;
20797
11914
    none) break ;;
20798
11915
    esac
20799
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20800
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
20801
 
    # handle `-M -o', and we need to detect this.
20802
11916
    if depmode=$depmode \
20803
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
11917
       source=sub/conftest.c object=$am__obj \
20804
11918
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20805
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
11919
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20806
11920
         >/dev/null 2>conftest.err &&
20807
11921
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20808
11922
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20809
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
11923
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20810
11924
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20811
11925
      # icc doesn't choke on unknown options, it will just issue warnings
20812
11926
      # or remarks (even with -Werror).  So we grep stderr for any message
20846
11960
 
20847
11961
 
20848
11962
 
 
11963
 
 
11964
if  test "x$GCC" = xyes ; then
 
11965
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
 
11966
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
 
11967
-Wbad-function-cast"
 
11968
    case `$CC -dumpversion` in
 
11969
    3.4.* | 4.*)
 
11970
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
 
11971
        ;;
 
11972
    esac
 
11973
else
 
11974
    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
11975
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
11976
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
11977
  $as_echo_n "(cached) " >&6
 
11978
else
 
11979
  cat >conftest.$ac_ext <<_ACEOF
 
11980
/* confdefs.h.  */
 
11981
_ACEOF
 
11982
cat confdefs.h >>conftest.$ac_ext
 
11983
cat >>conftest.$ac_ext <<_ACEOF
 
11984
/* end confdefs.h.  */
 
11985
$ac_includes_default
 
11986
int
 
11987
main ()
 
11988
{
 
11989
#ifndef __SUNPRO_C
 
11990
  (void) __SUNPRO_C;
 
11991
#endif
 
11992
 
 
11993
  ;
 
11994
  return 0;
 
11995
}
 
11996
_ACEOF
 
11997
rm -f conftest.$ac_objext
 
11998
if { (ac_try="$ac_compile"
 
11999
case "(($ac_try" in
 
12000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12001
  *) ac_try_echo=$ac_try;;
 
12002
esac
 
12003
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12004
$as_echo "$ac_try_echo") >&5
 
12005
  (eval "$ac_compile") 2>conftest.er1
 
12006
  ac_status=$?
 
12007
  grep -v '^ *+' conftest.er1 >conftest.err
 
12008
  rm -f conftest.er1
 
12009
  cat conftest.err >&5
 
12010
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12011
  (exit $ac_status); } && {
 
12012
         test -z "$ac_c_werror_flag" ||
 
12013
         test ! -s conftest.err
 
12014
       } && test -s conftest.$ac_objext; then
 
12015
  ac_cv_have_decl___SUNPRO_C=yes
 
12016
else
 
12017
  $as_echo "$as_me: failed program was:" >&5
 
12018
sed 's/^/| /' conftest.$ac_ext >&5
 
12019
 
 
12020
        ac_cv_have_decl___SUNPRO_C=no
 
12021
fi
 
12022
 
 
12023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12024
fi
 
12025
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
12026
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
12027
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
12028
  SUNCC="yes"
 
12029
else
 
12030
  SUNCC="no"
 
12031
fi
 
12032
 
 
12033
    if test "x$SUNCC" = "xyes"; then
 
12034
        CWARNFLAGS="-v"
 
12035
    fi
 
12036
fi
 
12037
 
 
12038
# Check whether --enable-silent-rules was given.
 
12039
if test "${enable_silent_rules+set}" = set; then
 
12040
  enableval=$enable_silent_rules;
 
12041
fi
 
12042
 
 
12043
case $enable_silent_rules in
 
12044
yes) AM_DEFAULT_VERBOSITY=0;;
 
12045
no)  AM_DEFAULT_VERBOSITY=1;;
 
12046
*)   AM_DEFAULT_VERBOSITY=0;;
 
12047
esac
 
12048
AM_BACKSLASH='\'
 
12049
 
 
12050
 
 
12051
 
20849
12052
# Checks for pkg-config packages
20850
12053
 
20851
12054
 
21072
12275
$as_echo "yes" >&6; }
21073
12276
        :
21074
12277
fi
 
12278
ICE_CFLAGS="$CWARNFLAGS $ICE_CFLAGS"
21075
12279
 
21076
12280
 
21077
12281
 
21465
12669
fi
21466
12670
 
21467
12671
 
 
12672
{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5
 
12673
$as_echo_n "checking for main in -lws2_32... " >&6; }
 
12674
if test "${ac_cv_lib_ws2_32_main+set}" = set; then
 
12675
  $as_echo_n "(cached) " >&6
 
12676
else
 
12677
  ac_check_lib_save_LIBS=$LIBS
 
12678
LIBS="-lws2_32  $LIBS"
 
12679
cat >conftest.$ac_ext <<_ACEOF
 
12680
/* confdefs.h.  */
 
12681
_ACEOF
 
12682
cat confdefs.h >>conftest.$ac_ext
 
12683
cat >>conftest.$ac_ext <<_ACEOF
 
12684
/* end confdefs.h.  */
 
12685
 
 
12686
 
 
12687
int
 
12688
main ()
 
12689
{
 
12690
return main ();
 
12691
  ;
 
12692
  return 0;
 
12693
}
 
12694
_ACEOF
 
12695
rm -f conftest.$ac_objext conftest$ac_exeext
 
12696
if { (ac_try="$ac_link"
 
12697
case "(($ac_try" in
 
12698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12699
  *) ac_try_echo=$ac_try;;
 
12700
esac
 
12701
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
12702
$as_echo "$ac_try_echo") >&5
 
12703
  (eval "$ac_link") 2>conftest.er1
 
12704
  ac_status=$?
 
12705
  grep -v '^ *+' conftest.er1 >conftest.err
 
12706
  rm -f conftest.er1
 
12707
  cat conftest.err >&5
 
12708
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12709
  (exit $ac_status); } && {
 
12710
         test -z "$ac_c_werror_flag" ||
 
12711
         test ! -s conftest.err
 
12712
       } && test -s conftest$ac_exeext && {
 
12713
         test "$cross_compiling" = yes ||
 
12714
         $as_test_x conftest$ac_exeext
 
12715
       }; then
 
12716
  ac_cv_lib_ws2_32_main=yes
 
12717
else
 
12718
  $as_echo "$as_me: failed program was:" >&5
 
12719
sed 's/^/| /' conftest.$ac_ext >&5
 
12720
 
 
12721
        ac_cv_lib_ws2_32_main=no
 
12722
fi
 
12723
 
 
12724
rm -rf conftest.dSYM
 
12725
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12726
      conftest$ac_exeext conftest.$ac_ext
 
12727
LIBS=$ac_check_lib_save_LIBS
 
12728
fi
 
12729
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5
 
12730
$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
 
12731
if test "x$ac_cv_lib_ws2_32_main" = x""yes; then
 
12732
  cat >>confdefs.h <<_ACEOF
 
12733
#define HAVE_LIBWS2_32 1
 
12734
_ACEOF
 
12735
 
 
12736
  LIBS="-lws2_32 $LIBS"
 
12737
 
 
12738
fi
 
12739
ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
 
12740
 
 
12741
 
21468
12742
 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21469
12743
 # Check whether --enable-ipv6 was given.
21470
12744
if test "${enable_ipv6+set}" = set; then
22015
13289
fi
22016
13290
 
22017
13291
 
22018
 
# Require xorg-macros at least 1.2.1
22019
 
 
22020
 
        XORG_MACROS_needed_version=1.2.1
22021
 
        XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
22022
 
        XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22023
 
        { $as_echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
22024
 
$as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
22025
 
        XORG_MACROS_version=1.2.1
22026
 
        XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
22027
 
        XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
22028
 
        if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
22029
 
                { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
22030
 
$as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
22031
 
   { (exit 1); exit 1; }; }
22032
 
        fi
22033
 
        if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
22034
 
                { { $as_echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
22035
 
$as_echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
22036
 
   { (exit 1); exit 1; }; }
22037
 
        fi
22038
 
        { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
22039
 
$as_echo "yes, $XORG_MACROS_version" >&6; }
22040
 
 
22041
 
 
22042
 
 
22043
13292
 
22044
13293
 
22045
13294
# Allow checking code with lint, sparse, etc.
22116
13365
LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
22117
13366
 
22118
13367
 
22119
 
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22120
 
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22121
 
echo 'git directory not found: installing possibly empty changelog.' >&2)"
22122
 
 
22123
 
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22124
 
 
22125
 
 
22126
 
 
22127
 
 
22128
 
 
22129
 
if  test "x$GCC" = xyes ; then
22130
 
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
22131
 
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
22132
 
-Wbad-function-cast"
22133
 
    case `gcc -dumpversion` in
22134
 
    3.4.* | 4.*)
22135
 
        CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
22136
 
        ;;
22137
 
    esac
22138
 
else
22139
 
    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
22140
 
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
22141
 
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
22142
 
  $as_echo_n "(cached) " >&6
22143
 
else
22144
 
  cat >conftest.$ac_ext <<_ACEOF
22145
 
/* confdefs.h.  */
22146
 
_ACEOF
22147
 
cat confdefs.h >>conftest.$ac_ext
22148
 
cat >>conftest.$ac_ext <<_ACEOF
22149
 
/* end confdefs.h.  */
22150
 
$ac_includes_default
22151
 
int
22152
 
main ()
22153
 
{
22154
 
#ifndef __SUNPRO_C
22155
 
  (void) __SUNPRO_C;
22156
 
#endif
22157
 
 
22158
 
  ;
22159
 
  return 0;
22160
 
}
22161
 
_ACEOF
22162
 
rm -f conftest.$ac_objext
22163
 
if { (ac_try="$ac_compile"
22164
 
case "(($ac_try" in
22165
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166
 
  *) ac_try_echo=$ac_try;;
22167
 
esac
22168
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22169
 
$as_echo "$ac_try_echo") >&5
22170
 
  (eval "$ac_compile") 2>conftest.er1
22171
 
  ac_status=$?
22172
 
  grep -v '^ *+' conftest.er1 >conftest.err
22173
 
  rm -f conftest.er1
22174
 
  cat conftest.err >&5
22175
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176
 
  (exit $ac_status); } && {
22177
 
         test -z "$ac_c_werror_flag" ||
22178
 
         test ! -s conftest.err
22179
 
       } && test -s conftest.$ac_objext; then
22180
 
  ac_cv_have_decl___SUNPRO_C=yes
22181
 
else
22182
 
  $as_echo "$as_me: failed program was:" >&5
22183
 
sed 's/^/| /' conftest.$ac_ext >&5
22184
 
 
22185
 
        ac_cv_have_decl___SUNPRO_C=no
22186
 
fi
22187
 
 
22188
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22189
 
fi
22190
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
22191
 
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
22192
 
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
22193
 
  SUNCC="yes"
22194
 
else
22195
 
  SUNCC="no"
22196
 
fi
22197
 
 
22198
 
    if test "x$SUNCC" = "xyes"; then
22199
 
        CWARNFLAGS="-v"
22200
 
    fi
22201
 
fi
22202
 
 
22203
 
 
22204
 
 
22205
 
 
22206
13368
 
22207
13369
# Check whether --with-release-version was given.
22208
13370
if test "${with_release_version+set}" = set; then
22242
13404
 
22243
13405
 
22244
13406
 
 
13407
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
 
13408
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
 
13409
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
13410
 
 
13411
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
 
13412
 
 
13413
 
 
13414
 
22245
13415
ac_config_files="$ac_config_files Makefile src/Makefile ice.pc"
22246
13416
 
22247
13417
cat >confcache <<\_ACEOF
22341
13511
LTLIBOBJS=$ac_ltlibobjs
22342
13512
 
22343
13513
 
 
13514
 if test -n "$EXEEXT"; then
 
13515
  am__EXEEXT_TRUE=
 
13516
  am__EXEEXT_FALSE='#'
 
13517
else
 
13518
  am__EXEEXT_TRUE='#'
 
13519
  am__EXEEXT_FALSE=
 
13520
fi
 
13521
 
22344
13522
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22345
13523
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22346
13524
Usually this means the macro was only invoked conditionally." >&5
22362
13540
Usually this means the macro was only invoked conditionally." >&2;}
22363
13541
   { (exit 1); exit 1; }; }
22364
13542
fi
22365
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22366
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22367
 
Usually this means the macro was only invoked conditionally." >&5
22368
 
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22369
 
Usually this means the macro was only invoked conditionally." >&2;}
22370
 
   { (exit 1); exit 1; }; }
22371
 
fi
22372
13543
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22373
13544
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22374
13545
Usually this means the macro was only invoked conditionally." >&5
22712
13883
# report actual input values of CONFIG_FILES etc. instead of their
22713
13884
# values after options handling.
22714
13885
ac_log="
22715
 
This file was extended by libICE $as_me 1.0.5, which was
 
13886
This file was extended by libICE $as_me 1.0.6, which was
22716
13887
generated by GNU Autoconf 2.63.  Invocation command line was
22717
13888
 
22718
13889
  CONFIG_FILES    = $CONFIG_FILES
22737
13908
 
22738
13909
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22739
13910
# Files that config.status was made for.
22740
 
config_files="`echo $ac_config_files`"
22741
 
config_headers="`echo $ac_config_headers`"
22742
 
config_commands="`echo $ac_config_commands`"
 
13911
config_files="$ac_config_files"
 
13912
config_headers="$ac_config_headers"
 
13913
config_commands="$ac_config_commands"
22743
13914
 
22744
13915
_ACEOF
22745
13916
 
22775
13946
_ACEOF
22776
13947
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22777
13948
ac_cs_version="\\
22778
 
libICE config.status 1.0.5
 
13949
libICE config.status 1.0.6
22779
13950
configured by $0, generated by GNU Autoconf 2.63,
22780
13951
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22781
13952
 
22890
14061
#
22891
14062
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22892
14063
 
 
14064
 
 
14065
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
14066
# if CDPATH is set.
 
14067
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
14068
 
 
14069
sed_quote_subst='$sed_quote_subst'
 
14070
double_quote_subst='$double_quote_subst'
 
14071
delay_variable_subst='$delay_variable_subst'
 
14072
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14073
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
14074
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
14075
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14076
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
14077
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
14078
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14079
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
14080
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14081
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
14082
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
14083
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
14084
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
14085
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
14086
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14087
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14088
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
14089
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
14090
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
14091
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
14092
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
14093
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
14094
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
14095
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
14096
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
14097
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
14098
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14099
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14100
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
14101
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
14102
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
14103
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
14104
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14105
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
14106
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
14107
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14108
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14109
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14110
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
14111
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
14112
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
14113
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
14114
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
14115
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
14116
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"`'
 
14117
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"`'
 
14118
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
14119
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
14120
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
14121
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
14122
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14123
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
14124
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
14125
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14126
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
14127
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
14128
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
14129
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
14130
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
14131
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
14132
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
14133
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
14134
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14135
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14136
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
14137
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
14138
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14139
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14140
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
14141
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14142
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14143
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14144
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14145
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14146
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14147
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14148
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14149
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
14150
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14151
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
14152
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
14153
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
14154
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
14155
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
14156
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14157
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
14158
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14159
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
14160
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
14161
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
14162
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14163
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14164
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
14165
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14166
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14167
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
14168
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
14169
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
14170
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
14171
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14172
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
14173
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
14174
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14175
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14176
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14177
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14178
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14179
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
14180
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
14181
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
14182
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14183
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
14184
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
14185
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
14186
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
14187
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
14188
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14189
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
14190
 
 
14191
LTCC='$LTCC'
 
14192
LTCFLAGS='$LTCFLAGS'
 
14193
compiler='$compiler_DEFAULT'
 
14194
 
 
14195
# Quote evaled strings.
 
14196
for var in SED \
 
14197
GREP \
 
14198
EGREP \
 
14199
FGREP \
 
14200
LD \
 
14201
NM \
 
14202
LN_S \
 
14203
lt_SP2NL \
 
14204
lt_NL2SP \
 
14205
reload_flag \
 
14206
OBJDUMP \
 
14207
deplibs_check_method \
 
14208
file_magic_cmd \
 
14209
AR \
 
14210
AR_FLAGS \
 
14211
STRIP \
 
14212
RANLIB \
 
14213
CC \
 
14214
CFLAGS \
 
14215
compiler \
 
14216
lt_cv_sys_global_symbol_pipe \
 
14217
lt_cv_sys_global_symbol_to_cdecl \
 
14218
lt_cv_sys_global_symbol_to_c_name_address \
 
14219
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
14220
SHELL \
 
14221
ECHO \
 
14222
lt_prog_compiler_no_builtin_flag \
 
14223
lt_prog_compiler_wl \
 
14224
lt_prog_compiler_pic \
 
14225
lt_prog_compiler_static \
 
14226
lt_cv_prog_compiler_c_o \
 
14227
need_locks \
 
14228
DSYMUTIL \
 
14229
NMEDIT \
 
14230
LIPO \
 
14231
OTOOL \
 
14232
OTOOL64 \
 
14233
shrext_cmds \
 
14234
export_dynamic_flag_spec \
 
14235
whole_archive_flag_spec \
 
14236
compiler_needs_object \
 
14237
with_gnu_ld \
 
14238
allow_undefined_flag \
 
14239
no_undefined_flag \
 
14240
hardcode_libdir_flag_spec \
 
14241
hardcode_libdir_flag_spec_ld \
 
14242
hardcode_libdir_separator \
 
14243
fix_srcfile_path \
 
14244
exclude_expsyms \
 
14245
include_expsyms \
 
14246
file_list_spec \
 
14247
variables_saved_for_relink \
 
14248
libname_spec \
 
14249
library_names_spec \
 
14250
soname_spec \
 
14251
finish_eval \
 
14252
old_striplib \
 
14253
striplib; do
 
14254
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14255
    *[\\\\\\\`\\"\\\$]*)
 
14256
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
14257
      ;;
 
14258
    *)
 
14259
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14260
      ;;
 
14261
    esac
 
14262
done
 
14263
 
 
14264
# Double-quote double-evaled strings.
 
14265
for var in reload_cmds \
 
14266
old_postinstall_cmds \
 
14267
old_postuninstall_cmds \
 
14268
old_archive_cmds \
 
14269
extract_expsyms_cmds \
 
14270
old_archive_from_new_cmds \
 
14271
old_archive_from_expsyms_cmds \
 
14272
archive_cmds \
 
14273
archive_expsym_cmds \
 
14274
module_cmds \
 
14275
module_expsym_cmds \
 
14276
export_symbols_cmds \
 
14277
prelink_cmds \
 
14278
postinstall_cmds \
 
14279
postuninstall_cmds \
 
14280
finish_cmds \
 
14281
sys_lib_search_path_spec \
 
14282
sys_lib_dlsearch_path_spec; do
 
14283
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
14284
    *[\\\\\\\`\\"\\\$]*)
 
14285
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
14286
      ;;
 
14287
    *)
 
14288
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
14289
      ;;
 
14290
    esac
 
14291
done
 
14292
 
 
14293
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
14294
case \$lt_ECHO in
 
14295
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
14296
  ;;
 
14297
esac
 
14298
 
 
14299
ac_aux_dir='$ac_aux_dir'
 
14300
xsi_shell='$xsi_shell'
 
14301
lt_shell_append='$lt_shell_append'
 
14302
 
 
14303
# See if we are running on zsh, and set the options which allow our
 
14304
# commands through without removal of \ escapes INIT.
 
14305
if test -n "\${ZSH_VERSION+set}" ; then
 
14306
   setopt NO_GLOB_SUBST
 
14307
fi
 
14308
 
 
14309
 
 
14310
    PACKAGE='$PACKAGE'
 
14311
    VERSION='$VERSION'
 
14312
    TIMESTAMP='$TIMESTAMP'
 
14313
    RM='$RM'
 
14314
    ofile='$ofile'
 
14315
 
 
14316
 
 
14317
 
 
14318
 
22893
14319
_ACEOF
22894
14320
 
22895
14321
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22900
14326
  case $ac_config_target in
22901
14327
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22902
14328
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
14329
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22903
14330
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22904
14331
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22905
14332
    "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
23557
14984
 
23558
14985
 
23559
14986
  case $ac_file$ac_mode in
23560
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
23561
 
# are listed without --file.  Let's play safe and only enable the eval
23562
 
# if we detect the quoting.
23563
 
case $CONFIG_FILES in
23564
 
*\'*) eval set x "$CONFIG_FILES" ;;
23565
 
*)   set x $CONFIG_FILES ;;
23566
 
esac
23567
 
shift
23568
 
for mf
23569
 
do
23570
 
  # Strip MF so we end up with the name of the file.
23571
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
23572
 
  # Check whether this is an Automake generated Makefile or not.
23573
 
  # We used to match only the files named `Makefile.in', but
23574
 
  # some people rename them; so instead we look at the file content.
23575
 
  # Grep'ing the first line is not enough: some people post-process
23576
 
  # each Makefile.in and add a new line on top of each file to say so.
23577
 
  # Grep'ing the whole file is not good either: AIX grep has a line
23578
 
  # limit of 2048, but all sed's we know have understand at least 4000.
23579
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23580
 
    dirpart=`$as_dirname -- "$mf" ||
 
14987
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
14988
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
14989
  # are listed without --file.  Let's play safe and only enable the eval
 
14990
  # if we detect the quoting.
 
14991
  case $CONFIG_FILES in
 
14992
  *\'*) eval set x "$CONFIG_FILES" ;;
 
14993
  *)   set x $CONFIG_FILES ;;
 
14994
  esac
 
14995
  shift
 
14996
  for mf
 
14997
  do
 
14998
    # Strip MF so we end up with the name of the file.
 
14999
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
15000
    # Check whether this is an Automake generated Makefile or not.
 
15001
    # We used to match only the files named `Makefile.in', but
 
15002
    # some people rename them; so instead we look at the file content.
 
15003
    # Grep'ing the first line is not enough: some people post-process
 
15004
    # each Makefile.in and add a new line on top of each file to say so.
 
15005
    # Grep'ing the whole file is not good either: AIX grep has a line
 
15006
    # limit of 2048, but all sed's we know have understand at least 4000.
 
15007
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
15008
      dirpart=`$as_dirname -- "$mf" ||
23581
15009
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23582
15010
         X"$mf" : 'X\(//\)[^/]' \| \
23583
15011
         X"$mf" : 'X\(//\)$' \| \
23600
15028
            q
23601
15029
          }
23602
15030
          s/.*/./; q'`
23603
 
  else
23604
 
    continue
23605
 
  fi
23606
 
  # Extract the definition of DEPDIR, am__include, and am__quote
23607
 
  # from the Makefile without running `make'.
23608
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23609
 
  test -z "$DEPDIR" && continue
23610
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
23611
 
  test -z "am__include" && continue
23612
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23613
 
  # When using ansi2knr, U may be empty or an underscore; expand it
23614
 
  U=`sed -n 's/^U = //p' < "$mf"`
23615
 
  # Find all dependency output files, they are included files with
23616
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
23617
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
23618
 
  # expansion.
23619
 
  for file in `sed -n "
23620
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23621
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23622
 
    # Make sure the directory exists.
23623
 
    test -f "$dirpart/$file" && continue
23624
 
    fdir=`$as_dirname -- "$file" ||
 
15031
    else
 
15032
      continue
 
15033
    fi
 
15034
    # Extract the definition of DEPDIR, am__include, and am__quote
 
15035
    # from the Makefile without running `make'.
 
15036
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
15037
    test -z "$DEPDIR" && continue
 
15038
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
15039
    test -z "am__include" && continue
 
15040
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
15041
    # When using ansi2knr, U may be empty or an underscore; expand it
 
15042
    U=`sed -n 's/^U = //p' < "$mf"`
 
15043
    # Find all dependency output files, they are included files with
 
15044
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
15045
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
15046
    # expansion.
 
15047
    for file in `sed -n "
 
15048
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
15049
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
15050
      # Make sure the directory exists.
 
15051
      test -f "$dirpart/$file" && continue
 
15052
      fdir=`$as_dirname -- "$file" ||
23625
15053
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23626
15054
         X"$file" : 'X\(//\)[^/]' \| \
23627
15055
         X"$file" : 'X\(//\)$' \| \
23644
15072
            q
23645
15073
          }
23646
15074
          s/.*/./; q'`
23647
 
    { as_dir=$dirpart/$fdir
 
15075
      { as_dir=$dirpart/$fdir
23648
15076
  case $as_dir in #(
23649
15077
  -*) as_dir=./$as_dir;;
23650
15078
  esac
23685
15113
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23686
15114
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23687
15115
   { (exit 1); exit 1; }; }; }
23688
 
    # echo "creating $dirpart/$file"
23689
 
    echo '# dummy' > "$dirpart/$file"
 
15116
      # echo "creating $dirpart/$file"
 
15117
      echo '# dummy' > "$dirpart/$file"
 
15118
    done
23690
15119
  done
23691
 
done
 
15120
}
 
15121
 ;;
 
15122
    "libtool":C)
 
15123
 
 
15124
    # See if we are running on zsh, and set the options which allow our
 
15125
    # commands through without removal of \ escapes.
 
15126
    if test -n "${ZSH_VERSION+set}" ; then
 
15127
      setopt NO_GLOB_SUBST
 
15128
    fi
 
15129
 
 
15130
    cfgfile="${ofile}T"
 
15131
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
15132
    $RM "$cfgfile"
 
15133
 
 
15134
    cat <<_LT_EOF >> "$cfgfile"
 
15135
#! $SHELL
 
15136
 
 
15137
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
15138
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
15139
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15140
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
15141
#
 
15142
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
15143
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
15144
#   Written by Gordon Matzigkeit, 1996
 
15145
#
 
15146
#   This file is part of GNU Libtool.
 
15147
#
 
15148
# GNU Libtool is free software; you can redistribute it and/or
 
15149
# modify it under the terms of the GNU General Public License as
 
15150
# published by the Free Software Foundation; either version 2 of
 
15151
# the License, or (at your option) any later version.
 
15152
#
 
15153
# As a special exception to the GNU General Public License,
 
15154
# if you distribute this file as part of a program or library that
 
15155
# is built using GNU Libtool, you may include this file under the
 
15156
# same distribution terms that you use for the rest of that program.
 
15157
#
 
15158
# GNU Libtool is distributed in the hope that it will be useful,
 
15159
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15160
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15161
# GNU General Public License for more details.
 
15162
#
 
15163
# You should have received a copy of the GNU General Public License
 
15164
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
15165
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
15166
# obtained by writing to the Free Software Foundation, Inc.,
 
15167
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
15168
 
 
15169
 
 
15170
# The names of the tagged configurations supported by this script.
 
15171
available_tags=""
 
15172
 
 
15173
# ### BEGIN LIBTOOL CONFIG
 
15174
 
 
15175
# Which release of libtool.m4 was used?
 
15176
macro_version=$macro_version
 
15177
macro_revision=$macro_revision
 
15178
 
 
15179
# Whether or not to build shared libraries.
 
15180
build_libtool_libs=$enable_shared
 
15181
 
 
15182
# Whether or not to build static libraries.
 
15183
build_old_libs=$enable_static
 
15184
 
 
15185
# What type of objects to build.
 
15186
pic_mode=$pic_mode
 
15187
 
 
15188
# Whether or not to optimize for fast installation.
 
15189
fast_install=$enable_fast_install
 
15190
 
 
15191
# The host system.
 
15192
host_alias=$host_alias
 
15193
host=$host
 
15194
host_os=$host_os
 
15195
 
 
15196
# The build system.
 
15197
build_alias=$build_alias
 
15198
build=$build
 
15199
build_os=$build_os
 
15200
 
 
15201
# A sed program that does not truncate output.
 
15202
SED=$lt_SED
 
15203
 
 
15204
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
15205
Xsed="\$SED -e 1s/^X//"
 
15206
 
 
15207
# A grep program that handles long lines.
 
15208
GREP=$lt_GREP
 
15209
 
 
15210
# An ERE matcher.
 
15211
EGREP=$lt_EGREP
 
15212
 
 
15213
# A literal string matcher.
 
15214
FGREP=$lt_FGREP
 
15215
 
 
15216
# A BSD- or MS-compatible name lister.
 
15217
NM=$lt_NM
 
15218
 
 
15219
# Whether we need soft or hard links.
 
15220
LN_S=$lt_LN_S
 
15221
 
 
15222
# What is the maximum length of a command?
 
15223
max_cmd_len=$max_cmd_len
 
15224
 
 
15225
# Object file suffix (normally "o").
 
15226
objext=$ac_objext
 
15227
 
 
15228
# Executable file suffix (normally "").
 
15229
exeext=$exeext
 
15230
 
 
15231
# whether the shell understands "unset".
 
15232
lt_unset=$lt_unset
 
15233
 
 
15234
# turn spaces into newlines.
 
15235
SP2NL=$lt_lt_SP2NL
 
15236
 
 
15237
# turn newlines into spaces.
 
15238
NL2SP=$lt_lt_NL2SP
 
15239
 
 
15240
# How to create reloadable object files.
 
15241
reload_flag=$lt_reload_flag
 
15242
reload_cmds=$lt_reload_cmds
 
15243
 
 
15244
# An object symbol dumper.
 
15245
OBJDUMP=$lt_OBJDUMP
 
15246
 
 
15247
# Method to check whether dependent libraries are shared objects.
 
15248
deplibs_check_method=$lt_deplibs_check_method
 
15249
 
 
15250
# Command to use when deplibs_check_method == "file_magic".
 
15251
file_magic_cmd=$lt_file_magic_cmd
 
15252
 
 
15253
# The archiver.
 
15254
AR=$lt_AR
 
15255
AR_FLAGS=$lt_AR_FLAGS
 
15256
 
 
15257
# A symbol stripping program.
 
15258
STRIP=$lt_STRIP
 
15259
 
 
15260
# Commands used to install an old-style archive.
 
15261
RANLIB=$lt_RANLIB
 
15262
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15263
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15264
 
 
15265
# A C compiler.
 
15266
LTCC=$lt_CC
 
15267
 
 
15268
# LTCC compiler flags.
 
15269
LTCFLAGS=$lt_CFLAGS
 
15270
 
 
15271
# Take the output of nm and produce a listing of raw symbols and C names.
 
15272
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15273
 
 
15274
# Transform the output of nm in a proper C declaration.
 
15275
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15276
 
 
15277
# Transform the output of nm in a C name address pair.
 
15278
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15279
 
 
15280
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
15281
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
15282
 
 
15283
# The name of the directory that contains temporary libtool files.
 
15284
objdir=$objdir
 
15285
 
 
15286
# Shell to use when invoking shell scripts.
 
15287
SHELL=$lt_SHELL
 
15288
 
 
15289
# An echo program that does not interpret backslashes.
 
15290
ECHO=$lt_ECHO
 
15291
 
 
15292
# Used to examine libraries when file_magic_cmd begins with "file".
 
15293
MAGIC_CMD=$MAGIC_CMD
 
15294
 
 
15295
# Must we lock files when doing compilation?
 
15296
need_locks=$lt_need_locks
 
15297
 
 
15298
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
15299
DSYMUTIL=$lt_DSYMUTIL
 
15300
 
 
15301
# Tool to change global to local symbols on Mac OS X.
 
15302
NMEDIT=$lt_NMEDIT
 
15303
 
 
15304
# Tool to manipulate fat objects and archives on Mac OS X.
 
15305
LIPO=$lt_LIPO
 
15306
 
 
15307
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
15308
OTOOL=$lt_OTOOL
 
15309
 
 
15310
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
15311
OTOOL64=$lt_OTOOL64
 
15312
 
 
15313
# Old archive suffix (normally "a").
 
15314
libext=$libext
 
15315
 
 
15316
# Shared library suffix (normally ".so").
 
15317
shrext_cmds=$lt_shrext_cmds
 
15318
 
 
15319
# The commands to extract the exported symbol list from a shared archive.
 
15320
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15321
 
 
15322
# Variables whose values should be saved in libtool wrapper scripts and
 
15323
# restored at link time.
 
15324
variables_saved_for_relink=$lt_variables_saved_for_relink
 
15325
 
 
15326
# Do we need the "lib" prefix for modules?
 
15327
need_lib_prefix=$need_lib_prefix
 
15328
 
 
15329
# Do we need a version for libraries?
 
15330
need_version=$need_version
 
15331
 
 
15332
# Library versioning type.
 
15333
version_type=$version_type
 
15334
 
 
15335
# Shared library runtime path variable.
 
15336
runpath_var=$runpath_var
 
15337
 
 
15338
# Shared library path variable.
 
15339
shlibpath_var=$shlibpath_var
 
15340
 
 
15341
# Is shlibpath searched before the hard-coded library search path?
 
15342
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15343
 
 
15344
# Format of library name prefix.
 
15345
libname_spec=$lt_libname_spec
 
15346
 
 
15347
# List of archive names.  First name is the real one, the rest are links.
 
15348
# The last name is the one that the linker finds with -lNAME
 
15349
library_names_spec=$lt_library_names_spec
 
15350
 
 
15351
# The coded name of the library, if different from the real name.
 
15352
soname_spec=$lt_soname_spec
 
15353
 
 
15354
# Command to use after installation of a shared archive.
 
15355
postinstall_cmds=$lt_postinstall_cmds
 
15356
 
 
15357
# Command to use after uninstallation of a shared archive.
 
15358
postuninstall_cmds=$lt_postuninstall_cmds
 
15359
 
 
15360
# Commands used to finish a libtool library installation in a directory.
 
15361
finish_cmds=$lt_finish_cmds
 
15362
 
 
15363
# As "finish_cmds", except a single script fragment to be evaled but
 
15364
# not shown.
 
15365
finish_eval=$lt_finish_eval
 
15366
 
 
15367
# Whether we should hardcode library paths into libraries.
 
15368
hardcode_into_libs=$hardcode_into_libs
 
15369
 
 
15370
# Compile-time system search path for libraries.
 
15371
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15372
 
 
15373
# Run-time system search path for libraries.
 
15374
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15375
 
 
15376
# Whether dlopen is supported.
 
15377
dlopen_support=$enable_dlopen
 
15378
 
 
15379
# Whether dlopen of programs is supported.
 
15380
dlopen_self=$enable_dlopen_self
 
15381
 
 
15382
# Whether dlopen of statically linked programs is supported.
 
15383
dlopen_self_static=$enable_dlopen_self_static
 
15384
 
 
15385
# Commands to strip libraries.
 
15386
old_striplib=$lt_old_striplib
 
15387
striplib=$lt_striplib
 
15388
 
 
15389
 
 
15390
# The linker used to build libraries.
 
15391
LD=$lt_LD
 
15392
 
 
15393
# Commands used to build an old-style archive.
 
15394
old_archive_cmds=$lt_old_archive_cmds
 
15395
 
 
15396
# A language specific compiler.
 
15397
CC=$lt_compiler
 
15398
 
 
15399
# Is the compiler the GNU compiler?
 
15400
with_gcc=$GCC
 
15401
 
 
15402
# Compiler flag to turn off builtin functions.
 
15403
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
15404
 
 
15405
# How to pass a linker flag through the compiler.
 
15406
wl=$lt_lt_prog_compiler_wl
 
15407
 
 
15408
# Additional compiler flags for building library objects.
 
15409
pic_flag=$lt_lt_prog_compiler_pic
 
15410
 
 
15411
# Compiler flag to prevent dynamic linking.
 
15412
link_static_flag=$lt_lt_prog_compiler_static
 
15413
 
 
15414
# Does compiler simultaneously support -c and -o options?
 
15415
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
15416
 
 
15417
# Whether or not to add -lc for building shared libraries.
 
15418
build_libtool_need_lc=$archive_cmds_need_lc
 
15419
 
 
15420
# Whether or not to disallow shared libs when runtime libs are static.
 
15421
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15422
 
 
15423
# Compiler flag to allow reflexive dlopens.
 
15424
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15425
 
 
15426
# Compiler flag to generate shared objects directly from archives.
 
15427
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15428
 
 
15429
# Whether the compiler copes with passing no objects directly.
 
15430
compiler_needs_object=$lt_compiler_needs_object
 
15431
 
 
15432
# Create an old-style archive from a shared archive.
 
15433
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15434
 
 
15435
# Create a temporary old-style archive to link instead of a shared archive.
 
15436
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15437
 
 
15438
# Commands used to build a shared archive.
 
15439
archive_cmds=$lt_archive_cmds
 
15440
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15441
 
 
15442
# Commands used to build a loadable module if different from building
 
15443
# a shared archive.
 
15444
module_cmds=$lt_module_cmds
 
15445
module_expsym_cmds=$lt_module_expsym_cmds
 
15446
 
 
15447
# Whether we are building with GNU ld or not.
 
15448
with_gnu_ld=$lt_with_gnu_ld
 
15449
 
 
15450
# Flag that allows shared libraries with undefined symbols to be built.
 
15451
allow_undefined_flag=$lt_allow_undefined_flag
 
15452
 
 
15453
# Flag that enforces no undefined symbols.
 
15454
no_undefined_flag=$lt_no_undefined_flag
 
15455
 
 
15456
# Flag to hardcode \$libdir into a binary during linking.
 
15457
# This must work even if \$libdir does not exist
 
15458
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15459
 
 
15460
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
15461
# during linking.  This must work even if \$libdir does not exist.
 
15462
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
15463
 
 
15464
# Whether we need a single "-rpath" flag with a separated argument.
 
15465
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15466
 
 
15467
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15468
# DIR into the resulting binary.
 
15469
hardcode_direct=$hardcode_direct
 
15470
 
 
15471
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15472
# DIR into the resulting binary and the resulting library dependency is
 
15473
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15474
# library is relocated.
 
15475
hardcode_direct_absolute=$hardcode_direct_absolute
 
15476
 
 
15477
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15478
# into the resulting binary.
 
15479
hardcode_minus_L=$hardcode_minus_L
 
15480
 
 
15481
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15482
# into the resulting binary.
 
15483
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15484
 
 
15485
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15486
# into the library and all subsequent libraries and executables linked
 
15487
# against it.
 
15488
hardcode_automatic=$hardcode_automatic
 
15489
 
 
15490
# Set to yes if linker adds runtime paths of dependent libraries
 
15491
# to runtime path list.
 
15492
inherit_rpath=$inherit_rpath
 
15493
 
 
15494
# Whether libtool must link a program against all its dependency libraries.
 
15495
link_all_deplibs=$link_all_deplibs
 
15496
 
 
15497
# Fix the shell variable \$srcfile for the compiler.
 
15498
fix_srcfile_path=$lt_fix_srcfile_path
 
15499
 
 
15500
# Set to "yes" if exported symbols are required.
 
15501
always_export_symbols=$always_export_symbols
 
15502
 
 
15503
# The commands to list exported symbols.
 
15504
export_symbols_cmds=$lt_export_symbols_cmds
 
15505
 
 
15506
# Symbols that should not be listed in the preloaded symbols.
 
15507
exclude_expsyms=$lt_exclude_expsyms
 
15508
 
 
15509
# Symbols that must always be exported.
 
15510
include_expsyms=$lt_include_expsyms
 
15511
 
 
15512
# Commands necessary for linking programs (against libraries) with templates.
 
15513
prelink_cmds=$lt_prelink_cmds
 
15514
 
 
15515
# Specify filename containing input files.
 
15516
file_list_spec=$lt_file_list_spec
 
15517
 
 
15518
# How to hardcode a shared library path into an executable.
 
15519
hardcode_action=$hardcode_action
 
15520
 
 
15521
# ### END LIBTOOL CONFIG
 
15522
 
 
15523
_LT_EOF
 
15524
 
 
15525
  case $host_os in
 
15526
  aix3*)
 
15527
    cat <<\_LT_EOF >> "$cfgfile"
 
15528
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15529
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15530
# vanish in a puff of smoke.
 
15531
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15532
  COLLECT_NAMES=
 
15533
  export COLLECT_NAMES
 
15534
fi
 
15535
_LT_EOF
 
15536
    ;;
 
15537
  esac
 
15538
 
 
15539
 
 
15540
ltmain="$ac_aux_dir/ltmain.sh"
 
15541
 
 
15542
 
 
15543
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15544
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15545
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15546
  # is reportedly fixed, but why not run on old versions too?
 
15547
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
15548
    || (rm -f "$cfgfile"; exit 1)
 
15549
 
 
15550
  case $xsi_shell in
 
15551
  yes)
 
15552
    cat << \_LT_EOF >> "$cfgfile"
 
15553
 
 
15554
# func_dirname file append nondir_replacement
 
15555
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15556
# otherwise set result to NONDIR_REPLACEMENT.
 
15557
func_dirname ()
 
15558
{
 
15559
  case ${1} in
 
15560
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15561
    *  ) func_dirname_result="${3}" ;;
 
15562
  esac
 
15563
}
 
15564
 
 
15565
# func_basename file
 
15566
func_basename ()
 
15567
{
 
15568
  func_basename_result="${1##*/}"
 
15569
}
 
15570
 
 
15571
# func_dirname_and_basename file append nondir_replacement
 
15572
# perform func_basename and func_dirname in a single function
 
15573
# call:
 
15574
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
15575
#             add APPEND to the result, otherwise set result
 
15576
#             to NONDIR_REPLACEMENT.
 
15577
#             value returned in "$func_dirname_result"
 
15578
#   basename: Compute filename of FILE.
 
15579
#             value retuned in "$func_basename_result"
 
15580
# Implementation must be kept synchronized with func_dirname
 
15581
# and func_basename. For efficiency, we do not delegate to
 
15582
# those functions but instead duplicate the functionality here.
 
15583
func_dirname_and_basename ()
 
15584
{
 
15585
  case ${1} in
 
15586
    */*) func_dirname_result="${1%/*}${2}" ;;
 
15587
    *  ) func_dirname_result="${3}" ;;
 
15588
  esac
 
15589
  func_basename_result="${1##*/}"
 
15590
}
 
15591
 
 
15592
# func_stripname prefix suffix name
 
15593
# strip PREFIX and SUFFIX off of NAME.
 
15594
# PREFIX and SUFFIX must not contain globbing or regex special
 
15595
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15596
# dot (in which case that matches only a dot).
 
15597
func_stripname ()
 
15598
{
 
15599
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
15600
  # positional parameters, so assign one to ordinary parameter first.
 
15601
  func_stripname_result=${3}
 
15602
  func_stripname_result=${func_stripname_result#"${1}"}
 
15603
  func_stripname_result=${func_stripname_result%"${2}"}
 
15604
}
 
15605
 
 
15606
# func_opt_split
 
15607
func_opt_split ()
 
15608
{
 
15609
  func_opt_split_opt=${1%%=*}
 
15610
  func_opt_split_arg=${1#*=}
 
15611
}
 
15612
 
 
15613
# func_lo2o object
 
15614
func_lo2o ()
 
15615
{
 
15616
  case ${1} in
 
15617
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
15618
    *)    func_lo2o_result=${1} ;;
 
15619
  esac
 
15620
}
 
15621
 
 
15622
# func_xform libobj-or-source
 
15623
func_xform ()
 
15624
{
 
15625
  func_xform_result=${1%.*}.lo
 
15626
}
 
15627
 
 
15628
# func_arith arithmetic-term...
 
15629
func_arith ()
 
15630
{
 
15631
  func_arith_result=$(( $* ))
 
15632
}
 
15633
 
 
15634
# func_len string
 
15635
# STRING may not start with a hyphen.
 
15636
func_len ()
 
15637
{
 
15638
  func_len_result=${#1}
 
15639
}
 
15640
 
 
15641
_LT_EOF
 
15642
    ;;
 
15643
  *) # Bourne compatible functions.
 
15644
    cat << \_LT_EOF >> "$cfgfile"
 
15645
 
 
15646
# func_dirname file append nondir_replacement
 
15647
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
15648
# otherwise set result to NONDIR_REPLACEMENT.
 
15649
func_dirname ()
 
15650
{
 
15651
  # Extract subdirectory from the argument.
 
15652
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
15653
  if test "X$func_dirname_result" = "X${1}"; then
 
15654
    func_dirname_result="${3}"
 
15655
  else
 
15656
    func_dirname_result="$func_dirname_result${2}"
 
15657
  fi
 
15658
}
 
15659
 
 
15660
# func_basename file
 
15661
func_basename ()
 
15662
{
 
15663
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
15664
}
 
15665
 
 
15666
 
 
15667
# func_stripname prefix suffix name
 
15668
# strip PREFIX and SUFFIX off of NAME.
 
15669
# PREFIX and SUFFIX must not contain globbing or regex special
 
15670
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
15671
# dot (in which case that matches only a dot).
 
15672
# func_strip_suffix prefix name
 
15673
func_stripname ()
 
15674
{
 
15675
  case ${2} in
 
15676
    .*) func_stripname_result=`$ECHO "X${3}" \
 
15677
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
15678
    *)  func_stripname_result=`$ECHO "X${3}" \
 
15679
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
15680
  esac
 
15681
}
 
15682
 
 
15683
# sed scripts:
 
15684
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
15685
my_sed_long_arg='1s/^-[^=]*=//'
 
15686
 
 
15687
# func_opt_split
 
15688
func_opt_split ()
 
15689
{
 
15690
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
15691
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
15692
}
 
15693
 
 
15694
# func_lo2o object
 
15695
func_lo2o ()
 
15696
{
 
15697
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
15698
}
 
15699
 
 
15700
# func_xform libobj-or-source
 
15701
func_xform ()
 
15702
{
 
15703
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
15704
}
 
15705
 
 
15706
# func_arith arithmetic-term...
 
15707
func_arith ()
 
15708
{
 
15709
  func_arith_result=`expr "$@"`
 
15710
}
 
15711
 
 
15712
# func_len string
 
15713
# STRING may not start with a hyphen.
 
15714
func_len ()
 
15715
{
 
15716
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
15717
}
 
15718
 
 
15719
_LT_EOF
 
15720
esac
 
15721
 
 
15722
case $lt_shell_append in
 
15723
  yes)
 
15724
    cat << \_LT_EOF >> "$cfgfile"
 
15725
 
 
15726
# func_append var value
 
15727
# Append VALUE to the end of shell variable VAR.
 
15728
func_append ()
 
15729
{
 
15730
  eval "$1+=\$2"
 
15731
}
 
15732
_LT_EOF
 
15733
    ;;
 
15734
  *)
 
15735
    cat << \_LT_EOF >> "$cfgfile"
 
15736
 
 
15737
# func_append var value
 
15738
# Append VALUE to the end of shell variable VAR.
 
15739
func_append ()
 
15740
{
 
15741
  eval "$1=\$$1\$2"
 
15742
}
 
15743
 
 
15744
_LT_EOF
 
15745
    ;;
 
15746
  esac
 
15747
 
 
15748
 
 
15749
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
15750
    || (rm -f "$cfgfile"; exit 1)
 
15751
 
 
15752
  mv -f "$cfgfile" "$ofile" ||
 
15753
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15754
  chmod +x "$ofile"
 
15755
 
23692
15756
 ;;
23693
15757
 
23694
15758
  esac