~ubuntu-branches/ubuntu/lucid/xserver-xorg-video-savage/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-12-07 22:51:08 UTC
  • mfrom: (7.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091207225108-uay55hyp17mzub1y
Tags: 1:2.3.1-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - 10_bustype_pci_by_default.diff (LP: 33617, 37218)

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 xf86-video-savage 2.3.0.
 
3
# Generated by GNU Autoconf 2.63 for xf86-video-savage 2.3.1.
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$lt_ECHO in
 
580
case X$ECHO in
581
581
X*--fallback-echo)
582
582
  # Remove one level of quotation (which was required for Make).
583
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
583
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
584
  ;;
585
585
esac
586
586
 
587
 
ECHO=${lt_ECHO-echo}
 
587
echo=${ECHO-echo}
588
588
if test "X$1" = X--no-reexec; then
589
589
  # Discard the --no-reexec flag, and continue.
590
590
  shift
591
591
elif test "X$1" = X--fallback-echo; then
592
592
  # Avoid inline document here, it may be left over
593
593
  :
594
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595
 
  # Yippee, $ECHO works!
 
594
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $echo works!
596
596
  :
597
597
else
598
598
  # Restart under the correct shell.
602
602
if test "X$1" = X--fallback-echo; then
603
603
  # used as fallback echo
604
604
  shift
605
 
  cat <<_LT_EOF
 
605
  cat <<EOF
606
606
$*
607
 
_LT_EOF
 
607
EOF
608
608
  exit 0
609
609
fi
610
610
 
612
612
# if CDPATH is set.
613
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
614
 
615
 
if test -z "$lt_ECHO"; then
616
 
  if test "X${echo_test_string+set}" != Xset; then
617
 
    # find a string as large as possible, as long as the shell can cope with it
618
 
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622
 
      then
623
 
        break
624
 
      fi
625
 
    done
626
 
  fi
627
 
 
628
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
631
 
    :
632
 
  else
633
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
634
 
    # backslashes.  This makes it impossible to quote backslashes using
635
 
    #   echo "$something" | sed 's/\\/\\\\/g'
636
 
    #
637
 
    # So, first we look for a working echo in the user's PATH.
638
 
 
639
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640
 
    for dir in $PATH /usr/ucb; do
641
 
      IFS="$lt_save_ifs"
642
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
646
 
        ECHO="$dir/echo"
647
 
        break
648
 
      fi
649
 
    done
 
615
if test -z "$ECHO"; then
 
616
if test "X${echo_test_string+set}" != Xset; then
 
617
# find a string as large as possible, as long as the shell can cope with it
 
618
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
621
       echo_test_string=`eval $cmd` &&
 
622
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
623
    then
 
624
      break
 
625
    fi
 
626
  done
 
627
fi
 
628
 
 
629
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
630
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
631
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
632
  :
 
633
else
 
634
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
635
  # backslashes.  This makes it impossible to quote backslashes using
 
636
  #   echo "$something" | sed 's/\\/\\\\/g'
 
637
  #
 
638
  # So, first we look for a working echo in the user's PATH.
 
639
 
 
640
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
641
  for dir in $PATH /usr/ucb; do
650
642
    IFS="$lt_save_ifs"
 
643
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
644
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
645
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
646
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
647
      echo="$dir/echo"
 
648
      break
 
649
    fi
 
650
  done
 
651
  IFS="$lt_save_ifs"
651
652
 
652
 
    if test "X$ECHO" = Xecho; then
653
 
      # We didn't find a better echo, so look for alternatives.
654
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
657
 
        # This shell has a builtin print -r that does the trick.
658
 
        ECHO='print -r'
659
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
661
 
        # If we have ksh, try running configure again with it.
662
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663
 
        export ORIGINAL_CONFIG_SHELL
664
 
        CONFIG_SHELL=/bin/ksh
665
 
        export CONFIG_SHELL
666
 
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
653
  if test "X$echo" = Xecho; then
 
654
    # We didn't find a better echo, so look for alternatives.
 
655
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
656
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
657
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
      # This shell has a builtin print -r that does the trick.
 
659
      echo='print -r'
 
660
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
661
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
662
      # If we have ksh, try running configure again with it.
 
663
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
664
      export ORIGINAL_CONFIG_SHELL
 
665
      CONFIG_SHELL=/bin/ksh
 
666
      export CONFIG_SHELL
 
667
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
668
    else
 
669
      # Try using printf.
 
670
      echo='printf %s\n'
 
671
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
672
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
673
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
674
        # Cool, printf works
 
675
        :
 
676
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
677
           test "X$echo_testing_string" = 'X\t' &&
 
678
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
679
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
680
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
681
        export CONFIG_SHELL
 
682
        SHELL="$CONFIG_SHELL"
 
683
        export SHELL
 
684
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
685
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
686
           test "X$echo_testing_string" = 'X\t' &&
 
687
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
688
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
689
        echo="$CONFIG_SHELL $0 --fallback-echo"
667
690
      else
668
 
        # Try using printf.
669
 
        ECHO='printf %s\n'
670
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
673
 
          # Cool, printf works
674
 
          :
675
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676
 
             test "X$echo_testing_string" = 'X\t' &&
677
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
679
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680
 
          export CONFIG_SHELL
681
 
          SHELL="$CONFIG_SHELL"
682
 
          export SHELL
683
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
684
 
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685
 
             test "X$echo_testing_string" = 'X\t' &&
686
 
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
688
 
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
689
 
        else
690
 
          # maybe with a smaller string...
691
 
          prev=:
692
 
 
693
 
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695
 
            then
696
 
              break
697
 
            fi
698
 
            prev="$cmd"
699
 
          done
700
 
 
701
 
          if test "$prev" != 'sed 50q "$0"'; then
702
 
            echo_test_string=`eval $prev`
703
 
            export echo_test_string
704
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705
 
          else
706
 
            # Oops.  We lost completely, so just stick with echo.
707
 
            ECHO=echo
 
691
        # maybe with a smaller string...
 
692
        prev=:
 
693
 
 
694
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
695
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
696
          then
 
697
            break
708
698
          fi
709
 
        fi
 
699
          prev="$cmd"
 
700
        done
 
701
 
 
702
        if test "$prev" != 'sed 50q "$0"'; then
 
703
          echo_test_string=`eval $prev`
 
704
          export echo_test_string
 
705
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
706
        else
 
707
          # Oops.  We lost completely, so just stick with echo.
 
708
          echo=echo
 
709
        fi
710
710
      fi
711
711
    fi
712
712
  fi
713
713
fi
 
714
fi
714
715
 
715
716
# Copy echo and quote the copy suitably for passing to libtool from
716
717
# the Makefile, instead of quoting the original, which is used later.
717
 
lt_ECHO=$ECHO
718
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719
 
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
718
ECHO=$echo
 
719
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
720
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720
721
fi
721
722
 
722
723
 
723
724
 
724
725
 
 
726
tagnames=${tagnames+${tagnames},}CXX
 
727
 
 
728
tagnames=${tagnames+${tagnames},}F77
 
729
 
725
730
exec 7<&0 </dev/null 6>&1
726
731
 
727
732
# Name of the host.
745
750
# Identity of this package.
746
751
PACKAGE_NAME='xf86-video-savage'
747
752
PACKAGE_TARNAME='xf86-video-savage'
748
 
PACKAGE_VERSION='2.3.0'
749
 
PACKAGE_STRING='xf86-video-savage 2.3.0'
 
753
PACKAGE_VERSION='2.3.1'
 
754
PACKAGE_STRING='xf86-video-savage 2.3.1'
750
755
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
751
756
 
752
757
ac_unique_file="Makefile.am"
786
791
# include <unistd.h>
787
792
#endif"
788
793
 
789
 
ac_subst_vars='LTLIBOBJS
 
794
ac_subst_vars='am__EXEEXT_FALSE
 
795
am__EXEEXT_TRUE
 
796
LTLIBOBJS
790
797
LIBOBJS
791
798
ADMIN_MAN_DIR
792
799
DRIVER_MAN_DIR
810
817
DRI_CFLAGS
811
818
DRI_FALSE
812
819
DRI_TRUE
 
820
HAVE_XEXTPROTO_71_FALSE
 
821
HAVE_XEXTPROTO_71_TRUE
 
822
XEXT_LIBS
 
823
XEXT_CFLAGS
813
824
XORG_LIBS
814
825
XORG_CFLAGS
815
826
PKG_CONFIG
 
827
LIBTOOL
 
828
ac_ct_F77
 
829
FFLAGS
 
830
F77
 
831
CXXCPP
 
832
am__fastdepCXX_FALSE
 
833
am__fastdepCXX_TRUE
 
834
CXXDEPMODE
 
835
ac_ct_CXX
 
836
CXXFLAGS
 
837
CXX
816
838
CPP
817
 
OTOOL64
818
 
OTOOL
819
 
LIPO
820
839
NMEDIT
821
840
DSYMUTIL
822
 
lt_ECHO
823
841
RANLIB
824
842
AR
825
 
OBJDUMP
 
843
ECHO
826
844
LN_S
827
 
NM
828
 
ac_ct_DUMPBIN
829
 
DUMPBIN
830
 
LD
831
 
FGREP
832
845
EGREP
833
846
GREP
834
847
SED
856
869
build_vendor
857
870
build_cpu
858
871
build
859
 
LIBTOOL
860
872
MAINT
861
873
MAINTAINER_MODE_FALSE
862
874
MAINTAINER_MODE_TRUE
926
938
enable_maintainer_mode
927
939
enable_static
928
940
enable_shared
929
 
with_pic
930
941
enable_fast_install
931
942
enable_dependency_tracking
932
943
with_gnu_ld
933
944
enable_libtool_lock
 
945
with_pic
 
946
with_tags
934
947
with_xorg_module_dir
935
948
enable_dri
936
949
with_release_version
944
957
LIBS
945
958
CPPFLAGS
946
959
CPP
 
960
CXX
 
961
CXXFLAGS
 
962
CCC
 
963
CXXCPP
 
964
F77
 
965
FFLAGS
947
966
PKG_CONFIG
948
967
XORG_CFLAGS
949
968
XORG_LIBS
 
969
XEXT_CFLAGS
 
970
XEXT_LIBS
950
971
DRI_CFLAGS
951
972
DRI_LIBS
952
973
PCIACCESS_CFLAGS
1503
1524
  # Omit some internal or obsolete options to make the list less imposing.
1504
1525
  # This message is too long to be a string in the A/UX 3.1 sh.
1505
1526
  cat <<_ACEOF
1506
 
\`configure' configures xf86-video-savage 2.3.0 to adapt to many kinds of systems.
 
1527
\`configure' configures xf86-video-savage 2.3.1 to adapt to many kinds of systems.
1507
1528
 
1508
1529
Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1530
 
1574
1595
 
1575
1596
if test -n "$ac_init_help"; then
1576
1597
  case $ac_init_help in
1577
 
     short | recursive ) echo "Configuration of xf86-video-savage 2.3.0:";;
 
1598
     short | recursive ) echo "Configuration of xf86-video-savage 2.3.1:";;
1578
1599
   esac
1579
1600
  cat <<\_ACEOF
1580
1601
 
1596
1617
Optional Packages:
1597
1618
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1598
1619
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1620
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1599
1621
  --with-pic              try to use only PIC/non-PIC objects [default=use
1600
1622
                          both]
1601
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1623
  --with-tags[=TAGS]      include additional configurations [automatic]
1602
1624
  --with-xorg-module-dir=DIR
1603
1625
                          Default xorg module directory
1604
1626
                          [default=$libdir/xorg/modules]
1614
1636
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1615
1637
              you have headers in a nonstandard directory <include dir>
1616
1638
  CPP         C preprocessor
 
1639
  CXX         C++ compiler command
 
1640
  CXXFLAGS    C++ compiler flags
 
1641
  CXXCPP      C++ preprocessor
 
1642
  F77         Fortran 77 compiler command
 
1643
  FFLAGS      Fortran 77 compiler flags
1617
1644
  PKG_CONFIG  path to pkg-config utility
1618
1645
  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1619
1646
  XORG_LIBS   linker flags for XORG, overriding pkg-config
 
1647
  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
 
1648
  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1620
1649
  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1621
1650
  DRI_LIBS    linker flags for DRI, overriding pkg-config
1622
1651
  PCIACCESS_CFLAGS
1690
1719
test -n "$ac_init_help" && exit $ac_status
1691
1720
if $ac_init_version; then
1692
1721
  cat <<\_ACEOF
1693
 
xf86-video-savage configure 2.3.0
 
1722
xf86-video-savage configure 2.3.1
1694
1723
generated by GNU Autoconf 2.63
1695
1724
 
1696
1725
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1704
1733
This file contains any messages produced by compilers while
1705
1734
running configure, to aid debugging if configure makes a mistake.
1706
1735
 
1707
 
It was created by xf86-video-savage $as_me 2.3.0, which was
 
1736
It was created by xf86-video-savage $as_me 2.3.1, which was
1708
1737
generated by GNU Autoconf 2.63.  Invocation command line was
1709
1738
 
1710
1739
  $ $0 $@
2108
2137
 
2109
2138
 
2110
2139
 
2111
 
am__api_version='1.10'
 
2140
am__api_version='1.11'
2112
2141
 
2113
2142
# Find a good install program.  We prefer a C program (faster),
2114
2143
# so one script is as good as another.  But avoid the broken or
2208
2237
# Just in case
2209
2238
sleep 1
2210
2239
echo timestamp > conftest.file
 
2240
# Reject unsafe characters in $srcdir or the absolute working directory
 
2241
# name.  Accept space and tab only in the latter.
 
2242
am_lf='
 
2243
'
 
2244
case `pwd` in
 
2245
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2246
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2247
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2248
   { (exit 1); exit 1; }; };;
 
2249
esac
 
2250
case $srcdir in
 
2251
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2252
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2253
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2254
   { (exit 1); exit 1; }; };;
 
2255
esac
 
2256
 
2211
2257
# Do `set' in a subshell so we don't clobber the current shell's
2212
2258
# arguments.  Must try -L first in case configure is actually a
2213
2259
# symlink; some systems play weird games with the mod time of symlinks
2214
2260
# (eg FreeBSD returns the mod time of the symlink's containing
2215
2261
# directory).
2216
2262
if (
2217
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2263
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2218
2264
   if test "$*" = "X"; then
2219
2265
      # -L didn't work.
2220
 
      set X `ls -t $srcdir/configure conftest.file`
 
2266
      set X `ls -t "$srcdir/configure" conftest.file`
2221
2267
   fi
2222
2268
   rm -f conftest.file
2223
2269
   if test "$*" != "X $srcdir/configure conftest.file" \
2261
2307
# expand $ac_aux_dir to an absolute path
2262
2308
am_aux_dir=`cd $ac_aux_dir && pwd`
2263
2309
 
2264
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2310
if test x"${MISSING+set}" != xset; then
 
2311
  case $am_aux_dir in
 
2312
  *\ * | *\     *)
 
2313
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2314
  *)
 
2315
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2316
  esac
 
2317
fi
2265
2318
# Use eval to expand $SHELL
2266
2319
if eval "$MISSING --run true"; then
2267
2320
  am_missing_run="$MISSING --run "
2271
2324
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2272
2325
fi
2273
2326
 
 
2327
if test x"${install_sh}" != xset; then
 
2328
  case $am_aux_dir in
 
2329
  *\ * | *\     *)
 
2330
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2331
  *)
 
2332
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2333
  esac
 
2334
fi
 
2335
 
 
2336
# Installed binaries are usually stripped using `strip' when the user
 
2337
# run `make install-strip'.  However `strip' might not be the right
 
2338
# tool to use in cross-compilation environments, therefore Automake
 
2339
# will honor the `STRIP' environment variable to overrule this program.
 
2340
if test "$cross_compiling" != no; then
 
2341
  if test -n "$ac_tool_prefix"; then
 
2342
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2343
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2344
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2345
$as_echo_n "checking for $ac_word... " >&6; }
 
2346
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2347
  $as_echo_n "(cached) " >&6
 
2348
else
 
2349
  if test -n "$STRIP"; then
 
2350
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2351
else
 
2352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2353
for as_dir in $PATH
 
2354
do
 
2355
  IFS=$as_save_IFS
 
2356
  test -z "$as_dir" && as_dir=.
 
2357
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2358
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2359
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2360
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2361
    break 2
 
2362
  fi
 
2363
done
 
2364
done
 
2365
IFS=$as_save_IFS
 
2366
 
 
2367
fi
 
2368
fi
 
2369
STRIP=$ac_cv_prog_STRIP
 
2370
if test -n "$STRIP"; then
 
2371
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2372
$as_echo "$STRIP" >&6; }
 
2373
else
 
2374
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2375
$as_echo "no" >&6; }
 
2376
fi
 
2377
 
 
2378
 
 
2379
fi
 
2380
if test -z "$ac_cv_prog_STRIP"; then
 
2381
  ac_ct_STRIP=$STRIP
 
2382
  # Extract the first word of "strip", so it can be a program name with args.
 
2383
set dummy strip; ac_word=$2
 
2384
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2385
$as_echo_n "checking for $ac_word... " >&6; }
 
2386
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2387
  $as_echo_n "(cached) " >&6
 
2388
else
 
2389
  if test -n "$ac_ct_STRIP"; then
 
2390
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2391
else
 
2392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2393
for as_dir in $PATH
 
2394
do
 
2395
  IFS=$as_save_IFS
 
2396
  test -z "$as_dir" && as_dir=.
 
2397
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2399
    ac_cv_prog_ac_ct_STRIP="strip"
 
2400
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2401
    break 2
 
2402
  fi
 
2403
done
 
2404
done
 
2405
IFS=$as_save_IFS
 
2406
 
 
2407
fi
 
2408
fi
 
2409
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2410
if test -n "$ac_ct_STRIP"; then
 
2411
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2412
$as_echo "$ac_ct_STRIP" >&6; }
 
2413
else
 
2414
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2415
$as_echo "no" >&6; }
 
2416
fi
 
2417
 
 
2418
  if test "x$ac_ct_STRIP" = x; then
 
2419
    STRIP=":"
 
2420
  else
 
2421
    case $cross_compiling:$ac_tool_warned in
 
2422
yes:)
 
2423
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2424
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2425
ac_tool_warned=yes ;;
 
2426
esac
 
2427
    STRIP=$ac_ct_STRIP
 
2428
  fi
 
2429
else
 
2430
  STRIP="$ac_cv_prog_STRIP"
 
2431
fi
 
2432
 
 
2433
fi
 
2434
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2435
 
2274
2436
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2275
2437
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2276
2438
if test -z "$MKDIR_P"; then
2425
2587
 
2426
2588
# Define the identity of the package.
2427
2589
 PACKAGE='xf86-video-savage'
2428
 
 VERSION='2.3.0'
 
2590
 VERSION='2.3.1'
2429
2591
 
2430
2592
 
2431
2593
cat >>confdefs.h <<_ACEOF
2453
2615
 
2454
2616
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2455
2617
 
2456
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2457
 
 
2458
 
# Installed binaries are usually stripped using `strip' when the user
2459
 
# run `make install-strip'.  However `strip' might not be the right
2460
 
# tool to use in cross-compilation environments, therefore Automake
2461
 
# will honor the `STRIP' environment variable to overrule this program.
2462
 
if test "$cross_compiling" != no; then
2463
 
  if test -n "$ac_tool_prefix"; then
2464
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2466
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467
 
$as_echo_n "checking for $ac_word... " >&6; }
2468
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2469
 
  $as_echo_n "(cached) " >&6
2470
 
else
2471
 
  if test -n "$STRIP"; then
2472
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2473
 
else
2474
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475
 
for as_dir in $PATH
2476
 
do
2477
 
  IFS=$as_save_IFS
2478
 
  test -z "$as_dir" && as_dir=.
2479
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2480
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483
 
    break 2
2484
 
  fi
2485
 
done
2486
 
done
2487
 
IFS=$as_save_IFS
2488
 
 
2489
 
fi
2490
 
fi
2491
 
STRIP=$ac_cv_prog_STRIP
2492
 
if test -n "$STRIP"; then
2493
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2494
 
$as_echo "$STRIP" >&6; }
2495
 
else
2496
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2497
 
$as_echo "no" >&6; }
2498
 
fi
2499
 
 
2500
 
 
2501
 
fi
2502
 
if test -z "$ac_cv_prog_STRIP"; then
2503
 
  ac_ct_STRIP=$STRIP
2504
 
  # Extract the first word of "strip", so it can be a program name with args.
2505
 
set dummy strip; ac_word=$2
2506
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2507
 
$as_echo_n "checking for $ac_word... " >&6; }
2508
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2509
 
  $as_echo_n "(cached) " >&6
2510
 
else
2511
 
  if test -n "$ac_ct_STRIP"; then
2512
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2513
 
else
2514
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515
 
for as_dir in $PATH
2516
 
do
2517
 
  IFS=$as_save_IFS
2518
 
  test -z "$as_dir" && as_dir=.
2519
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2520
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521
 
    ac_cv_prog_ac_ct_STRIP="strip"
2522
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523
 
    break 2
2524
 
  fi
2525
 
done
2526
 
done
2527
 
IFS=$as_save_IFS
2528
 
 
2529
 
fi
2530
 
fi
2531
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532
 
if test -n "$ac_ct_STRIP"; then
2533
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2534
 
$as_echo "$ac_ct_STRIP" >&6; }
2535
 
else
2536
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2537
 
$as_echo "no" >&6; }
2538
 
fi
2539
 
 
2540
 
  if test "x$ac_ct_STRIP" = x; then
2541
 
    STRIP=":"
2542
 
  else
2543
 
    case $cross_compiling:$ac_tool_warned in
2544
 
yes:)
2545
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2546
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547
 
ac_tool_warned=yes ;;
2548
 
esac
2549
 
    STRIP=$ac_ct_STRIP
2550
 
  fi
2551
 
else
2552
 
  STRIP="$ac_cv_prog_STRIP"
2553
 
fi
2554
 
 
2555
 
fi
2556
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2557
 
 
2558
2618
# We need awk for the "check" target.  The system "awk" is bad on
2559
2619
# some platforms.
2560
2620
# Always define AMTAR for backward compatibility.
2568
2628
 
2569
2629
 
2570
2630
 
 
2631
 
2571
2632
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2572
2633
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2573
2634
    # Check whether --enable-maintainer-mode was given.
2617
2678
 
2618
2679
 
2619
2680
 
2620
 
 
2621
 
 
2622
 
 
2623
 
 
2624
 
 
2625
 
 
2626
 
case `pwd` in
2627
 
  *\ * | *\     *)
2628
 
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2629
 
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2630
 
esac
2631
 
 
2632
 
 
2633
 
 
2634
 
macro_version='2.2.6'
2635
 
macro_revision='1.3012'
2636
 
 
2637
 
 
2638
 
 
2639
 
 
2640
 
 
2641
 
 
2642
 
 
2643
 
 
2644
 
 
2645
 
 
2646
 
 
2647
 
 
2648
 
 
2649
 
ltmain="$ac_aux_dir/ltmain.sh"
 
2681
# Check whether --enable-shared was given.
 
2682
if test "${enable_shared+set}" = set; then
 
2683
  enableval=$enable_shared; p=${PACKAGE-default}
 
2684
    case $enableval in
 
2685
    yes) enable_shared=yes ;;
 
2686
    no) enable_shared=no ;;
 
2687
    *)
 
2688
      enable_shared=no
 
2689
      # Look at the argument we got.  We use all the common list separators.
 
2690
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2691
      for pkg in $enableval; do
 
2692
        IFS="$lt_save_ifs"
 
2693
        if test "X$pkg" = "X$p"; then
 
2694
          enable_shared=yes
 
2695
        fi
 
2696
      done
 
2697
      IFS="$lt_save_ifs"
 
2698
      ;;
 
2699
    esac
 
2700
else
 
2701
  enable_shared=yes
 
2702
fi
 
2703
 
 
2704
 
 
2705
# Check whether --enable-fast-install was given.
 
2706
if test "${enable_fast_install+set}" = set; then
 
2707
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
2708
    case $enableval in
 
2709
    yes) enable_fast_install=yes ;;
 
2710
    no) enable_fast_install=no ;;
 
2711
    *)
 
2712
      enable_fast_install=no
 
2713
      # Look at the argument we got.  We use all the common list separators.
 
2714
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2715
      for pkg in $enableval; do
 
2716
        IFS="$lt_save_ifs"
 
2717
        if test "X$pkg" = "X$p"; then
 
2718
          enable_fast_install=yes
 
2719
        fi
 
2720
      done
 
2721
      IFS="$lt_save_ifs"
 
2722
      ;;
 
2723
    esac
 
2724
else
 
2725
  enable_fast_install=yes
 
2726
fi
 
2727
 
2650
2728
 
2651
2729
# Make sure we can run config.sub.
2652
2730
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2739
2817
am_make=${MAKE-make}
2740
2818
cat > confinc << 'END'
2741
2819
am__doit:
2742
 
        @echo done
 
2820
        @echo this is the am__doit target
2743
2821
.PHONY: am__doit
2744
2822
END
2745
2823
# If we don't find an include directive, just comment out the code.
2750
2828
_am_result=none
2751
2829
# First try GNU make style include.
2752
2830
echo "include confinc" > confmf
2753
 
# We grep out `Entering directory' and `Leaving directory'
2754
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2755
 
# In particular we don't look at `^make:' because GNU make might
2756
 
# be invoked under some other name (usually "gmake"), in which
2757
 
# case it prints its new name instead of `make'.
2758
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2759
 
   am__include=include
2760
 
   am__quote=
2761
 
   _am_result=GNU
2762
 
fi
 
2831
# Ignore all kinds of additional output from `make'.
 
2832
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2833
*the\ am__doit\ target*)
 
2834
  am__include=include
 
2835
  am__quote=
 
2836
  _am_result=GNU
 
2837
  ;;
 
2838
esac
2763
2839
# Now try BSD make style include.
2764
2840
if test "$am__include" = "#"; then
2765
2841
   echo '.include "confinc"' > confmf
2766
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2767
 
      am__include=.include
2768
 
      am__quote="\""
2769
 
      _am_result=BSD
2770
 
   fi
 
2842
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2843
   *the\ am__doit\ target*)
 
2844
     am__include=.include
 
2845
     am__quote="\""
 
2846
     _am_result=BSD
 
2847
     ;;
 
2848
   esac
2771
2849
fi
2772
2850
 
2773
2851
 
3756
3834
  if test "$am_compiler_list" = ""; then
3757
3835
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3758
3836
  fi
 
3837
  am__universal=false
 
3838
  case " $depcc " in #(
 
3839
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3840
     esac
 
3841
 
3759
3842
  for depmode in $am_compiler_list; do
3760
3843
    # Setup a source with many dependencies, because some compilers
3761
3844
    # like to wrap large dependency lists on column 80 (with \), and
3773
3856
    done
3774
3857
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3858
 
 
3859
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3860
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3861
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3862
    # versions had trouble with output in subdirs
 
3863
    am__obj=sub/conftest.${OBJEXT-o}
 
3864
    am__minus_obj="-o $am__obj"
3776
3865
    case $depmode in
 
3866
    gcc)
 
3867
      # This depmode causes a compiler race in universal mode.
 
3868
      test "$am__universal" = false || continue
 
3869
      ;;
3777
3870
    nosideeffect)
3778
3871
      # after this tag, mechanisms are not by side-effect, so they'll
3779
3872
      # only be used when explicitly requested
3783
3876
        break
3784
3877
      fi
3785
3878
      ;;
 
3879
    msvisualcpp | msvcmsys)
 
3880
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3881
      # not run yet.  These depmodes are late enough in the game, and
 
3882
      # so weak that their functioning should not be impacted.
 
3883
      am__obj=conftest.${OBJEXT-o}
 
3884
      am__minus_obj=
 
3885
      ;;
3786
3886
    none) break ;;
3787
3887
    esac
3788
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3789
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3790
 
    # handle `-M -o', and we need to detect this.
3791
3888
    if depmode=$depmode \
3792
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3889
       source=sub/conftest.c object=$am__obj \
3793
3890
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3891
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3795
3892
         >/dev/null 2>conftest.err &&
3796
3893
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797
3894
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3895
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3799
3896
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800
3897
      # icc doesn't choke on unknown options, it will just issue warnings
3801
3898
      # or remarks (even with -Werror).  So we grep stderr for any message
3836
3933
 
3837
3934
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3838
3935
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3839
 
if test "${ac_cv_path_SED+set}" = set; then
 
3936
if test "${lt_cv_path_SED+set}" = set; then
3840
3937
  $as_echo_n "(cached) " >&6
3841
3938
else
3842
 
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3843
 
     for ac_i in 1 2 3 4 5 6 7; do
3844
 
       ac_script="$ac_script$as_nl$ac_script"
3845
 
     done
3846
 
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3847
 
     $as_unset ac_script || ac_script=
3848
 
     if test -z "$SED"; then
3849
 
  ac_path_SED_found=false
3850
 
  # Loop through the user's path and test for each of PROGNAME-LIST
3851
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3939
  # Loop through the user's path and test for sed and gsed.
 
3940
# Then use that list of sed's as ones to test for truncation.
 
3941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852
3942
for as_dir in $PATH
3853
3943
do
3854
3944
  IFS=$as_save_IFS
3855
3945
  test -z "$as_dir" && as_dir=.
3856
 
  for ac_prog in sed gsed; do
 
3946
  for lt_ac_prog in sed gsed; do
3857
3947
    for ac_exec_ext in '' $ac_executable_extensions; do
3858
 
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3859
 
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3860
 
# Check for GNU ac_path_SED and select it if it is found.
3861
 
  # Check for GNU $ac_path_SED
3862
 
case `"$ac_path_SED" --version 2>&1` in
3863
 
*GNU*)
3864
 
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3865
 
*)
3866
 
  ac_count=0
3867
 
  $as_echo_n 0123456789 >"conftest.in"
3868
 
  while :
3869
 
  do
3870
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3871
 
    mv "conftest.tmp" "conftest.in"
3872
 
    cp "conftest.in" "conftest.nl"
3873
 
    $as_echo '' >> "conftest.nl"
3874
 
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876
 
    ac_count=`expr $ac_count + 1`
3877
 
    if test $ac_count -gt ${ac_path_SED_max-0}; then
3878
 
      # Best one so far, save it but keep looking for a better one
3879
 
      ac_cv_path_SED="$ac_path_SED"
3880
 
      ac_path_SED_max=$ac_count
3881
 
    fi
3882
 
    # 10*(2^10) chars as input seems more than enough
3883
 
    test $ac_count -gt 10 && break
3884
 
  done
3885
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886
 
esac
3887
 
 
3888
 
      $ac_path_SED_found && break 3
 
3948
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3949
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3950
      fi
3889
3951
    done
3890
3952
  done
3891
3953
done
3892
3954
IFS=$as_save_IFS
3893
 
  if test -z "$ac_cv_path_SED"; then
3894
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3895
 
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3896
 
   { (exit 1); exit 1; }; }
 
3955
lt_ac_max=0
 
3956
lt_ac_count=0
 
3957
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3958
# along with /bin/sed that truncates output.
 
3959
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3960
  test ! -f $lt_ac_sed && continue
 
3961
  cat /dev/null > conftest.in
 
3962
  lt_ac_count=0
 
3963
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3964
  # Check for GNU sed and select it if it is found.
 
3965
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3966
    lt_cv_path_SED=$lt_ac_sed
 
3967
    break
3897
3968
  fi
3898
 
else
3899
 
  ac_cv_path_SED=$SED
3900
 
fi
3901
 
 
3902
 
fi
3903
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3904
 
$as_echo "$ac_cv_path_SED" >&6; }
3905
 
 SED="$ac_cv_path_SED"
3906
 
  rm -f conftest.sed
3907
 
 
3908
 
test -z "$SED" && SED=sed
3909
 
Xsed="$SED -e 1s/^X//"
3910
 
 
3911
 
 
3912
 
 
3913
 
 
3914
 
 
3915
 
 
3916
 
 
3917
 
 
3918
 
 
3919
 
 
 
3969
  while true; do
 
3970
    cat conftest.in conftest.in >conftest.tmp
 
3971
    mv conftest.tmp conftest.in
 
3972
    cp conftest.in conftest.nl
 
3973
    echo >>conftest.nl
 
3974
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3975
    cmp -s conftest.out conftest.nl || break
 
3976
    # 10000 chars as input seems more than enough
 
3977
    test $lt_ac_count -gt 10 && break
 
3978
    lt_ac_count=`expr $lt_ac_count + 1`
 
3979
    if test $lt_ac_count -gt $lt_ac_max; then
 
3980
      lt_ac_max=$lt_ac_count
 
3981
      lt_cv_path_SED=$lt_ac_sed
 
3982
    fi
 
3983
  done
 
3984
done
 
3985
 
 
3986
fi
 
3987
 
 
3988
SED=$lt_cv_path_SED
 
3989
 
 
3990
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
3991
$as_echo "$SED" >&6; }
3920
3992
 
3921
3993
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3922
3994
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4052
4124
 EGREP="$ac_cv_path_EGREP"
4053
4125
 
4054
4126
 
4055
 
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4056
 
$as_echo_n "checking for fgrep... " >&6; }
4057
 
if test "${ac_cv_path_FGREP+set}" = set; then
4058
 
  $as_echo_n "(cached) " >&6
4059
 
else
4060
 
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4061
 
   then ac_cv_path_FGREP="$GREP -F"
4062
 
   else
4063
 
     if test -z "$FGREP"; then
4064
 
  ac_path_FGREP_found=false
4065
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4066
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068
 
do
4069
 
  IFS=$as_save_IFS
4070
 
  test -z "$as_dir" && as_dir=.
4071
 
  for ac_prog in fgrep; do
4072
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4073
 
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4074
 
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4075
 
# Check for GNU ac_path_FGREP and select it if it is found.
4076
 
  # Check for GNU $ac_path_FGREP
4077
 
case `"$ac_path_FGREP" --version 2>&1` in
4078
 
*GNU*)
4079
 
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4080
 
*)
4081
 
  ac_count=0
4082
 
  $as_echo_n 0123456789 >"conftest.in"
4083
 
  while :
4084
 
  do
4085
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4086
 
    mv "conftest.tmp" "conftest.in"
4087
 
    cp "conftest.in" "conftest.nl"
4088
 
    $as_echo 'FGREP' >> "conftest.nl"
4089
 
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4090
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4091
 
    ac_count=`expr $ac_count + 1`
4092
 
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4093
 
      # Best one so far, save it but keep looking for a better one
4094
 
      ac_cv_path_FGREP="$ac_path_FGREP"
4095
 
      ac_path_FGREP_max=$ac_count
4096
 
    fi
4097
 
    # 10*(2^10) chars as input seems more than enough
4098
 
    test $ac_count -gt 10 && break
4099
 
  done
4100
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4101
 
esac
4102
 
 
4103
 
      $ac_path_FGREP_found && break 3
4104
 
    done
4105
 
  done
4106
 
done
4107
 
IFS=$as_save_IFS
4108
 
  if test -z "$ac_cv_path_FGREP"; then
4109
 
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110
 
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111
 
   { (exit 1); exit 1; }; }
4112
 
  fi
4113
 
else
4114
 
  ac_cv_path_FGREP=$FGREP
4115
 
fi
4116
 
 
4117
 
   fi
4118
 
fi
4119
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4120
 
$as_echo "$ac_cv_path_FGREP" >&6; }
4121
 
 FGREP="$ac_cv_path_FGREP"
4122
 
 
4123
 
 
4124
 
test -z "$GREP" && GREP=grep
4125
 
 
4126
 
 
4127
 
 
4128
 
 
4129
 
 
4130
 
 
4131
 
 
4132
 
 
4133
 
 
4134
 
 
4135
 
 
4136
 
 
4137
 
 
4138
 
 
4139
 
 
4140
 
 
4141
 
 
4142
 
 
4143
4127
 
4144
4128
# Check whether --with-gnu-ld was given.
4145
4129
if test "${with_gnu_ld+set}" = set; then
4165
4149
    [\\/]* | ?:[\\/]*)
4166
4150
      re_direlt='/[^/][^/]*/\.\./'
4167
4151
      # Canonicalize the pathname of ld
4168
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4169
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4170
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4152
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4153
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4154
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4171
4155
      done
4172
4156
      test -z "$LD" && LD="$ac_prog"
4173
4157
      ;;
4247
4231
with_gnu_ld=$lt_cv_prog_gnu_ld
4248
4232
 
4249
4233
 
4250
 
 
4251
 
 
4252
 
 
4253
 
 
4254
 
 
4255
 
 
4256
 
 
4257
 
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4258
 
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4234
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4235
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4236
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4237
  $as_echo_n "(cached) " >&6
 
4238
else
 
4239
  lt_cv_ld_reload_flag='-r'
 
4240
fi
 
4241
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4242
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4243
reload_flag=$lt_cv_ld_reload_flag
 
4244
case $reload_flag in
 
4245
"" | " "*) ;;
 
4246
*) reload_flag=" $reload_flag" ;;
 
4247
esac
 
4248
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4249
case $host_os in
 
4250
  darwin*)
 
4251
    if test "$GCC" = yes; then
 
4252
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4253
    else
 
4254
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4255
    fi
 
4256
    ;;
 
4257
esac
 
4258
 
 
4259
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4260
$as_echo_n "checking for BSD-compatible nm... " >&6; }
4259
4261
if test "${lt_cv_path_NM+set}" = set; then
4260
4262
  $as_echo_n "(cached) " >&6
4261
4263
else
4300
4302
    done
4301
4303
    IFS="$lt_save_ifs"
4302
4304
  done
4303
 
  : ${lt_cv_path_NM=no}
 
4305
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4304
4306
fi
4305
4307
fi
4306
4308
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4307
4309
$as_echo "$lt_cv_path_NM" >&6; }
4308
 
if test "$lt_cv_path_NM" != "no"; then
4309
 
  NM="$lt_cv_path_NM"
4310
 
else
4311
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
4312
 
  if test -n "$ac_tool_prefix"; then
4313
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4314
 
  do
4315
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4316
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4317
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4318
 
$as_echo_n "checking for $ac_word... " >&6; }
4319
 
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4320
 
  $as_echo_n "(cached) " >&6
4321
 
else
4322
 
  if test -n "$DUMPBIN"; then
4323
 
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4324
 
else
4325
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326
 
for as_dir in $PATH
4327
 
do
4328
 
  IFS=$as_save_IFS
4329
 
  test -z "$as_dir" && as_dir=.
4330
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4331
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332
 
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4333
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334
 
    break 2
4335
 
  fi
4336
 
done
4337
 
done
4338
 
IFS=$as_save_IFS
4339
 
 
4340
 
fi
4341
 
fi
4342
 
DUMPBIN=$ac_cv_prog_DUMPBIN
4343
 
if test -n "$DUMPBIN"; then
4344
 
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4345
 
$as_echo "$DUMPBIN" >&6; }
4346
 
else
4347
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4348
 
$as_echo "no" >&6; }
4349
 
fi
4350
 
 
4351
 
 
4352
 
    test -n "$DUMPBIN" && break
4353
 
  done
4354
 
fi
4355
 
if test -z "$DUMPBIN"; then
4356
 
  ac_ct_DUMPBIN=$DUMPBIN
4357
 
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4358
 
do
4359
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4360
 
set dummy $ac_prog; ac_word=$2
4361
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4362
 
$as_echo_n "checking for $ac_word... " >&6; }
4363
 
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4364
 
  $as_echo_n "(cached) " >&6
4365
 
else
4366
 
  if test -n "$ac_ct_DUMPBIN"; then
4367
 
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4368
 
else
4369
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370
 
for as_dir in $PATH
4371
 
do
4372
 
  IFS=$as_save_IFS
4373
 
  test -z "$as_dir" && as_dir=.
4374
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4375
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376
 
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4377
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378
 
    break 2
4379
 
  fi
4380
 
done
4381
 
done
4382
 
IFS=$as_save_IFS
4383
 
 
4384
 
fi
4385
 
fi
4386
 
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4387
 
if test -n "$ac_ct_DUMPBIN"; then
4388
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4389
 
$as_echo "$ac_ct_DUMPBIN" >&6; }
4390
 
else
4391
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4392
 
$as_echo "no" >&6; }
4393
 
fi
4394
 
 
4395
 
 
4396
 
  test -n "$ac_ct_DUMPBIN" && break
4397
 
done
4398
 
 
4399
 
  if test "x$ac_ct_DUMPBIN" = x; then
4400
 
    DUMPBIN=":"
4401
 
  else
4402
 
    case $cross_compiling:$ac_tool_warned in
4403
 
yes:)
4404
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4405
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4406
 
ac_tool_warned=yes ;;
4407
 
esac
4408
 
    DUMPBIN=$ac_ct_DUMPBIN
4409
 
  fi
4410
 
fi
4411
 
 
4412
 
 
4413
 
  if test "$DUMPBIN" != ":"; then
4414
 
    NM="$DUMPBIN"
4415
 
  fi
4416
 
fi
4417
 
test -z "$NM" && NM=nm
4418
 
 
4419
 
 
4420
 
 
4421
 
 
4422
 
 
4423
 
 
4424
 
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4425
 
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4426
 
if test "${lt_cv_nm_interface+set}" = set; then
4427
 
  $as_echo_n "(cached) " >&6
4428
 
else
4429
 
  lt_cv_nm_interface="BSD nm"
4430
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4431
 
  (eval echo "\"\$as_me:4431: $ac_compile\"" >&5)
4432
 
  (eval "$ac_compile" 2>conftest.err)
4433
 
  cat conftest.err >&5
4434
 
  (eval echo "\"\$as_me:4434: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4435
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4436
 
  cat conftest.err >&5
4437
 
  (eval echo "\"\$as_me:4437: output\"" >&5)
4438
 
  cat conftest.out >&5
4439
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4440
 
    lt_cv_nm_interface="MS dumpbin"
4441
 
  fi
4442
 
  rm -f conftest*
4443
 
fi
4444
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4445
 
$as_echo "$lt_cv_nm_interface" >&6; }
 
4310
NM="$lt_cv_path_NM"
4446
4311
 
4447
4312
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4448
4313
$as_echo_n "checking whether ln -s works... " >&6; }
4455
4320
$as_echo "no, using $LN_S" >&6; }
4456
4321
fi
4457
4322
 
4458
 
# find the maximum length of command line arguments
4459
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4460
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4461
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4462
 
  $as_echo_n "(cached) " >&6
4463
 
else
4464
 
    i=0
4465
 
  teststring="ABCD"
4466
 
 
4467
 
  case $build_os in
4468
 
  msdosdjgpp*)
4469
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4470
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4471
 
    # during glob expansion).  Even if it were fixed, the result of this
4472
 
    # check would be larger than it should be.
4473
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4474
 
    ;;
4475
 
 
4476
 
  gnu*)
4477
 
    # Under GNU Hurd, this test is not required because there is
4478
 
    # no limit to the length of command line arguments.
4479
 
    # Libtool will interpret -1 as no limit whatsoever
4480
 
    lt_cv_sys_max_cmd_len=-1;
4481
 
    ;;
4482
 
 
4483
 
  cygwin* | mingw* | cegcc*)
4484
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4485
 
    # about 5 minutes as the teststring grows exponentially.
4486
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
4487
 
    # you end up with a "frozen" computer, even though with patience
4488
 
    # the test eventually succeeds (with a max line length of 256k).
4489
 
    # Instead, let's just punt: use the minimum linelength reported by
4490
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
4491
 
    lt_cv_sys_max_cmd_len=8192;
4492
 
    ;;
4493
 
 
4494
 
  amigaos*)
4495
 
    # On AmigaOS with pdksh, this test takes hours, literally.
4496
 
    # So we just punt and use a minimum line length of 8192.
4497
 
    lt_cv_sys_max_cmd_len=8192;
4498
 
    ;;
4499
 
 
4500
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4501
 
    # This has been around since 386BSD, at least.  Likely further.
4502
 
    if test -x /sbin/sysctl; then
4503
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4504
 
    elif test -x /usr/sbin/sysctl; then
4505
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4506
 
    else
4507
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4508
 
    fi
4509
 
    # And add a safety zone
4510
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4511
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4512
 
    ;;
4513
 
 
4514
 
  interix*)
4515
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4516
 
    lt_cv_sys_max_cmd_len=196608
4517
 
    ;;
4518
 
 
4519
 
  osf*)
4520
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4521
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4522
 
    # nice to cause kernel panics so lets avoid the loop below.
4523
 
    # First set a reasonable default.
4524
 
    lt_cv_sys_max_cmd_len=16384
4525
 
    #
4526
 
    if test -x /sbin/sysconfig; then
4527
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4528
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4529
 
      esac
4530
 
    fi
4531
 
    ;;
4532
 
  sco3.2v5*)
4533
 
    lt_cv_sys_max_cmd_len=102400
4534
 
    ;;
4535
 
  sysv5* | sco5v6* | sysv4.2uw2*)
4536
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4537
 
    if test -n "$kargmax"; then
4538
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4539
 
    else
4540
 
      lt_cv_sys_max_cmd_len=32768
4541
 
    fi
4542
 
    ;;
4543
 
  *)
4544
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4545
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
4546
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4547
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4548
 
    else
4549
 
      # Make teststring a little bigger before we do anything with it.
4550
 
      # a 1K string should be a reasonable start.
4551
 
      for i in 1 2 3 4 5 6 7 8 ; do
4552
 
        teststring=$teststring$teststring
4553
 
      done
4554
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4555
 
      # If test is not a shell built-in, we'll probably end up computing a
4556
 
      # maximum length that is only half of the actual maximum length, but
4557
 
      # we can't tell.
4558
 
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4559
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4560
 
              test $i != 17 # 1/2 MB should be enough
4561
 
      do
4562
 
        i=`expr $i + 1`
4563
 
        teststring=$teststring$teststring
4564
 
      done
4565
 
      # Only check the string length outside the loop.
4566
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4567
 
      teststring=
4568
 
      # Add a significant safety factor because C++ compilers can tack on
4569
 
      # massive amounts of additional arguments before passing them to the
4570
 
      # linker.  It appears as though 1/2 is a usable value.
4571
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4572
 
    fi
4573
 
    ;;
4574
 
  esac
4575
 
 
4576
 
fi
4577
 
 
4578
 
if test -n $lt_cv_sys_max_cmd_len ; then
4579
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4580
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4581
 
else
4582
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
4583
 
$as_echo "none" >&6; }
4584
 
fi
4585
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4586
 
 
4587
 
 
4588
 
 
4589
 
 
4590
 
 
4591
 
 
4592
 
: ${CP="cp -f"}
4593
 
: ${MV="mv -f"}
4594
 
: ${RM="rm -f"}
4595
 
 
4596
 
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4597
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4598
 
# Try some XSI features
4599
 
xsi_shell=no
4600
 
( _lt_dummy="a/b/c"
4601
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4602
 
      = c,a/b,, \
4603
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
4604
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4605
 
  && xsi_shell=yes
4606
 
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4607
 
$as_echo "$xsi_shell" >&6; }
4608
 
 
4609
 
 
4610
 
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4611
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4612
 
lt_shell_append=no
4613
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4614
 
    >/dev/null 2>&1 \
4615
 
  && lt_shell_append=yes
4616
 
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4617
 
$as_echo "$lt_shell_append" >&6; }
4618
 
 
4619
 
 
4620
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4621
 
  lt_unset=unset
4622
 
else
4623
 
  lt_unset=false
4624
 
fi
4625
 
 
4626
 
 
4627
 
 
4628
 
 
4629
 
 
4630
 
# test EBCDIC or ASCII
4631
 
case `echo X|tr X '\101'` in
4632
 
 A) # ASCII based system
4633
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4634
 
  lt_SP2NL='tr \040 \012'
4635
 
  lt_NL2SP='tr \015\012 \040\040'
4636
 
  ;;
4637
 
 *) # EBCDIC based system
4638
 
  lt_SP2NL='tr \100 \n'
4639
 
  lt_NL2SP='tr \r\n \100\100'
4640
 
  ;;
4641
 
esac
4642
 
 
4643
 
 
4644
 
 
4645
 
 
4646
 
 
4647
 
 
4648
 
 
4649
 
 
4650
 
 
4651
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4652
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4653
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4654
 
  $as_echo_n "(cached) " >&6
4655
 
else
4656
 
  lt_cv_ld_reload_flag='-r'
4657
 
fi
4658
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4659
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4660
 
reload_flag=$lt_cv_ld_reload_flag
4661
 
case $reload_flag in
4662
 
"" | " "*) ;;
4663
 
*) reload_flag=" $reload_flag" ;;
4664
 
esac
4665
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4666
 
case $host_os in
4667
 
  darwin*)
4668
 
    if test "$GCC" = yes; then
4669
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4670
 
    else
4671
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4672
 
    fi
4673
 
    ;;
4674
 
esac
4675
 
 
4676
 
 
4677
 
 
4678
 
 
4679
 
 
4680
 
 
4681
 
 
4682
 
 
4683
 
 
4684
 
if test -n "$ac_tool_prefix"; then
4685
 
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4686
 
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4687
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4688
 
$as_echo_n "checking for $ac_word... " >&6; }
4689
 
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4690
 
  $as_echo_n "(cached) " >&6
4691
 
else
4692
 
  if test -n "$OBJDUMP"; then
4693
 
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4694
 
else
4695
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696
 
for as_dir in $PATH
4697
 
do
4698
 
  IFS=$as_save_IFS
4699
 
  test -z "$as_dir" && as_dir=.
4700
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4701
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702
 
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4703
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704
 
    break 2
4705
 
  fi
4706
 
done
4707
 
done
4708
 
IFS=$as_save_IFS
4709
 
 
4710
 
fi
4711
 
fi
4712
 
OBJDUMP=$ac_cv_prog_OBJDUMP
4713
 
if test -n "$OBJDUMP"; then
4714
 
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4715
 
$as_echo "$OBJDUMP" >&6; }
4716
 
else
4717
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4718
 
$as_echo "no" >&6; }
4719
 
fi
4720
 
 
4721
 
 
4722
 
fi
4723
 
if test -z "$ac_cv_prog_OBJDUMP"; then
4724
 
  ac_ct_OBJDUMP=$OBJDUMP
4725
 
  # Extract the first word of "objdump", so it can be a program name with args.
4726
 
set dummy objdump; ac_word=$2
4727
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4728
 
$as_echo_n "checking for $ac_word... " >&6; }
4729
 
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4730
 
  $as_echo_n "(cached) " >&6
4731
 
else
4732
 
  if test -n "$ac_ct_OBJDUMP"; then
4733
 
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4734
 
else
4735
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736
 
for as_dir in $PATH
4737
 
do
4738
 
  IFS=$as_save_IFS
4739
 
  test -z "$as_dir" && as_dir=.
4740
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4741
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742
 
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4743
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744
 
    break 2
4745
 
  fi
4746
 
done
4747
 
done
4748
 
IFS=$as_save_IFS
4749
 
 
4750
 
fi
4751
 
fi
4752
 
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4753
 
if test -n "$ac_ct_OBJDUMP"; then
4754
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4755
 
$as_echo "$ac_ct_OBJDUMP" >&6; }
4756
 
else
4757
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
4758
 
$as_echo "no" >&6; }
4759
 
fi
4760
 
 
4761
 
  if test "x$ac_ct_OBJDUMP" = x; then
4762
 
    OBJDUMP="false"
4763
 
  else
4764
 
    case $cross_compiling:$ac_tool_warned in
4765
 
yes:)
4766
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4767
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768
 
ac_tool_warned=yes ;;
4769
 
esac
4770
 
    OBJDUMP=$ac_ct_OBJDUMP
4771
 
  fi
4772
 
else
4773
 
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4774
 
fi
4775
 
 
4776
 
test -z "$OBJDUMP" && OBJDUMP=objdump
4777
 
 
4778
 
 
4779
 
 
4780
 
 
4781
 
 
4782
 
 
4783
 
 
4784
 
 
4785
 
 
4786
4323
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4787
4324
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4788
4325
if test "${lt_cv_deplibs_check_method+set}" = set; then
4836
4373
  fi
4837
4374
  ;;
4838
4375
 
4839
 
cegcc)
4840
 
  # use the weaker test based on 'objdump'. See mingw*.
4841
 
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4842
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4843
 
  ;;
4844
 
 
4845
4376
darwin* | rhapsody*)
4846
4377
  lt_cv_deplibs_check_method=pass_all
4847
4378
  ;;
4848
4379
 
4849
4380
freebsd* | dragonfly*)
4850
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4381
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4851
4382
    case $host_cpu in
4852
4383
    i*86 )
4853
4384
      # Not sure whether the presence of OpenBSD here was a mistake.
4905
4436
  ;;
4906
4437
 
4907
4438
netbsd*)
4908
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4439
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4909
4440
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4910
4441
  else
4911
4442
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4918
4449
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4919
4450
  ;;
4920
4451
 
4921
 
*nto* | *qnx*)
4922
 
  lt_cv_deplibs_check_method=pass_all
 
4452
nto-qnx*)
 
4453
  lt_cv_deplibs_check_method=unknown
4923
4454
  ;;
4924
4455
 
4925
4456
openbsd*)
4926
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4457
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4927
4458
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4928
4459
  else
4929
4460
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4942
4473
  lt_cv_deplibs_check_method=pass_all
4943
4474
  ;;
4944
4475
 
4945
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4946
 
  lt_cv_deplibs_check_method=pass_all
4947
 
  ;;
4948
 
 
4949
4476
sysv4 | sysv4.3*)
4950
4477
  case $host_vendor in
4951
4478
  motorola)
4973
4500
  esac
4974
4501
  ;;
4975
4502
 
4976
 
tpf*)
 
4503
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4977
4504
  lt_cv_deplibs_check_method=pass_all
4978
4505
  ;;
4979
4506
esac
4988
4515
 
4989
4516
 
4990
4517
 
4991
 
 
4992
 
 
4993
 
 
4994
 
 
4995
 
 
4996
 
 
4997
 
 
4998
 
 
4999
 
if test -n "$ac_tool_prefix"; then
5000
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5001
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
5002
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5003
 
$as_echo_n "checking for $ac_word... " >&6; }
5004
 
if test "${ac_cv_prog_AR+set}" = set; then
5005
 
  $as_echo_n "(cached) " >&6
5006
 
else
5007
 
  if test -n "$AR"; then
5008
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
5009
 
else
5010
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011
 
for as_dir in $PATH
5012
 
do
5013
 
  IFS=$as_save_IFS
5014
 
  test -z "$as_dir" && as_dir=.
5015
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5016
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5018
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019
 
    break 2
5020
 
  fi
5021
 
done
5022
 
done
5023
 
IFS=$as_save_IFS
5024
 
 
5025
 
fi
5026
 
fi
5027
 
AR=$ac_cv_prog_AR
5028
 
if test -n "$AR"; then
5029
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5030
 
$as_echo "$AR" >&6; }
5031
 
else
5032
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5033
 
$as_echo "no" >&6; }
5034
 
fi
5035
 
 
5036
 
 
5037
 
fi
5038
 
if test -z "$ac_cv_prog_AR"; then
5039
 
  ac_ct_AR=$AR
5040
 
  # Extract the first word of "ar", so it can be a program name with args.
5041
 
set dummy ar; ac_word=$2
5042
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5043
 
$as_echo_n "checking for $ac_word... " >&6; }
5044
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5045
 
  $as_echo_n "(cached) " >&6
5046
 
else
5047
 
  if test -n "$ac_ct_AR"; then
5048
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5049
 
else
5050
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051
 
for as_dir in $PATH
5052
 
do
5053
 
  IFS=$as_save_IFS
5054
 
  test -z "$as_dir" && as_dir=.
5055
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5056
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057
 
    ac_cv_prog_ac_ct_AR="ar"
5058
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059
 
    break 2
5060
 
  fi
5061
 
done
5062
 
done
5063
 
IFS=$as_save_IFS
5064
 
 
5065
 
fi
5066
 
fi
5067
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5068
 
if test -n "$ac_ct_AR"; then
5069
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5070
 
$as_echo "$ac_ct_AR" >&6; }
5071
 
else
5072
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5073
 
$as_echo "no" >&6; }
5074
 
fi
5075
 
 
5076
 
  if test "x$ac_ct_AR" = x; then
5077
 
    AR="false"
5078
 
  else
5079
 
    case $cross_compiling:$ac_tool_warned in
5080
 
yes:)
5081
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5082
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083
 
ac_tool_warned=yes ;;
5084
 
esac
5085
 
    AR=$ac_ct_AR
5086
 
  fi
5087
 
else
5088
 
  AR="$ac_cv_prog_AR"
5089
 
fi
5090
 
 
5091
 
test -z "$AR" && AR=ar
5092
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
 
5101
 
 
5102
 
 
5103
 
 
5104
 
if test -n "$ac_tool_prefix"; then
5105
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5106
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
5107
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5108
 
$as_echo_n "checking for $ac_word... " >&6; }
5109
 
if test "${ac_cv_prog_STRIP+set}" = set; then
5110
 
  $as_echo_n "(cached) " >&6
5111
 
else
5112
 
  if test -n "$STRIP"; then
5113
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5114
 
else
5115
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116
 
for as_dir in $PATH
5117
 
do
5118
 
  IFS=$as_save_IFS
5119
 
  test -z "$as_dir" && as_dir=.
5120
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5121
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5123
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124
 
    break 2
5125
 
  fi
5126
 
done
5127
 
done
5128
 
IFS=$as_save_IFS
5129
 
 
5130
 
fi
5131
 
fi
5132
 
STRIP=$ac_cv_prog_STRIP
5133
 
if test -n "$STRIP"; then
5134
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5135
 
$as_echo "$STRIP" >&6; }
5136
 
else
5137
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5138
 
$as_echo "no" >&6; }
5139
 
fi
5140
 
 
5141
 
 
5142
 
fi
5143
 
if test -z "$ac_cv_prog_STRIP"; then
5144
 
  ac_ct_STRIP=$STRIP
5145
 
  # Extract the first word of "strip", so it can be a program name with args.
5146
 
set dummy strip; ac_word=$2
5147
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5148
 
$as_echo_n "checking for $ac_word... " >&6; }
5149
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5150
 
  $as_echo_n "(cached) " >&6
5151
 
else
5152
 
  if test -n "$ac_ct_STRIP"; then
5153
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5154
 
else
5155
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156
 
for as_dir in $PATH
5157
 
do
5158
 
  IFS=$as_save_IFS
5159
 
  test -z "$as_dir" && as_dir=.
5160
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5161
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162
 
    ac_cv_prog_ac_ct_STRIP="strip"
5163
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164
 
    break 2
5165
 
  fi
5166
 
done
5167
 
done
5168
 
IFS=$as_save_IFS
5169
 
 
5170
 
fi
5171
 
fi
5172
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5173
 
if test -n "$ac_ct_STRIP"; then
5174
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5175
 
$as_echo "$ac_ct_STRIP" >&6; }
5176
 
else
5177
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5178
 
$as_echo "no" >&6; }
5179
 
fi
5180
 
 
5181
 
  if test "x$ac_ct_STRIP" = x; then
5182
 
    STRIP=":"
5183
 
  else
5184
 
    case $cross_compiling:$ac_tool_warned in
5185
 
yes:)
5186
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5187
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5188
 
ac_tool_warned=yes ;;
5189
 
esac
5190
 
    STRIP=$ac_ct_STRIP
5191
 
  fi
5192
 
else
5193
 
  STRIP="$ac_cv_prog_STRIP"
5194
 
fi
5195
 
 
5196
 
test -z "$STRIP" && STRIP=:
5197
 
 
5198
 
 
5199
 
 
5200
 
 
5201
 
 
5202
 
 
5203
 
if test -n "$ac_tool_prefix"; then
5204
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5205
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5206
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5207
 
$as_echo_n "checking for $ac_word... " >&6; }
5208
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
5209
 
  $as_echo_n "(cached) " >&6
5210
 
else
5211
 
  if test -n "$RANLIB"; then
5212
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5213
 
else
5214
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215
 
for as_dir in $PATH
5216
 
do
5217
 
  IFS=$as_save_IFS
5218
 
  test -z "$as_dir" && as_dir=.
5219
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5220
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5222
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223
 
    break 2
5224
 
  fi
5225
 
done
5226
 
done
5227
 
IFS=$as_save_IFS
5228
 
 
5229
 
fi
5230
 
fi
5231
 
RANLIB=$ac_cv_prog_RANLIB
5232
 
if test -n "$RANLIB"; then
5233
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5234
 
$as_echo "$RANLIB" >&6; }
5235
 
else
5236
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5237
 
$as_echo "no" >&6; }
5238
 
fi
5239
 
 
5240
 
 
5241
 
fi
5242
 
if test -z "$ac_cv_prog_RANLIB"; then
5243
 
  ac_ct_RANLIB=$RANLIB
5244
 
  # Extract the first word of "ranlib", so it can be a program name with args.
5245
 
set dummy ranlib; ac_word=$2
5246
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5247
 
$as_echo_n "checking for $ac_word... " >&6; }
5248
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5249
 
  $as_echo_n "(cached) " >&6
5250
 
else
5251
 
  if test -n "$ac_ct_RANLIB"; then
5252
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5253
 
else
5254
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255
 
for as_dir in $PATH
5256
 
do
5257
 
  IFS=$as_save_IFS
5258
 
  test -z "$as_dir" && as_dir=.
5259
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5260
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5262
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263
 
    break 2
5264
 
  fi
5265
 
done
5266
 
done
5267
 
IFS=$as_save_IFS
5268
 
 
5269
 
fi
5270
 
fi
5271
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5272
 
if test -n "$ac_ct_RANLIB"; then
5273
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5274
 
$as_echo "$ac_ct_RANLIB" >&6; }
5275
 
else
5276
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5277
 
$as_echo "no" >&6; }
5278
 
fi
5279
 
 
5280
 
  if test "x$ac_ct_RANLIB" = x; then
5281
 
    RANLIB=":"
5282
 
  else
5283
 
    case $cross_compiling:$ac_tool_warned in
5284
 
yes:)
5285
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5286
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287
 
ac_tool_warned=yes ;;
5288
 
esac
5289
 
    RANLIB=$ac_ct_RANLIB
5290
 
  fi
5291
 
else
5292
 
  RANLIB="$ac_cv_prog_RANLIB"
5293
 
fi
5294
 
 
5295
 
test -z "$RANLIB" && RANLIB=:
5296
 
 
5297
 
 
5298
 
 
5299
 
 
5300
 
 
5301
 
 
5302
 
# Determine commands to create old-style static archives.
5303
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5304
 
old_postinstall_cmds='chmod 644 $oldlib'
5305
 
old_postuninstall_cmds=
5306
 
 
5307
 
if test -n "$RANLIB"; then
5308
 
  case $host_os in
5309
 
  openbsd*)
5310
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5311
 
    ;;
5312
 
  *)
5313
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5314
 
    ;;
5315
 
  esac
5316
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5317
 
fi
5318
 
 
5319
 
 
5320
 
 
5321
 
 
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
 
 
5330
 
 
5331
 
 
5332
 
 
5333
 
 
5334
 
 
5335
 
 
5336
 
 
5337
 
 
5338
 
 
5339
 
 
5340
 
 
5341
 
 
5342
 
 
5343
 
 
5344
 
 
5345
 
 
5346
 
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
4518
# If no C compiler was specified, use CC.
5353
4519
LTCC=${LTCC-"$CC"}
5354
4520
 
5359
4525
compiler=$CC
5360
4526
 
5361
4527
 
 
4528
# Check whether --enable-libtool-lock was given.
 
4529
if test "${enable_libtool_lock+set}" = set; then
 
4530
  enableval=$enable_libtool_lock;
 
4531
fi
 
4532
 
 
4533
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4534
 
 
4535
# Some flags need to be propagated to the compiler or linker for good
 
4536
# libtool support.
 
4537
case $host in
 
4538
ia64-*-hpux*)
 
4539
  # Find out which ABI we are using.
 
4540
  echo 'int i;' > conftest.$ac_ext
 
4541
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4542
  (eval $ac_compile) 2>&5
 
4543
  ac_status=$?
 
4544
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4545
  (exit $ac_status); }; then
 
4546
    case `/usr/bin/file conftest.$ac_objext` in
 
4547
    *ELF-32*)
 
4548
      HPUX_IA64_MODE="32"
 
4549
      ;;
 
4550
    *ELF-64*)
 
4551
      HPUX_IA64_MODE="64"
 
4552
      ;;
 
4553
    esac
 
4554
  fi
 
4555
  rm -rf conftest*
 
4556
  ;;
 
4557
*-*-irix6*)
 
4558
  # Find out which ABI we are using.
 
4559
  echo '#line 4559 "configure"' > conftest.$ac_ext
 
4560
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4561
  (eval $ac_compile) 2>&5
 
4562
  ac_status=$?
 
4563
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4564
  (exit $ac_status); }; then
 
4565
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4566
    case `/usr/bin/file conftest.$ac_objext` in
 
4567
    *32-bit*)
 
4568
      LD="${LD-ld} -melf32bsmip"
 
4569
      ;;
 
4570
    *N32*)
 
4571
      LD="${LD-ld} -melf32bmipn32"
 
4572
      ;;
 
4573
    *64-bit*)
 
4574
      LD="${LD-ld} -melf64bmip"
 
4575
      ;;
 
4576
    esac
 
4577
   else
 
4578
    case `/usr/bin/file conftest.$ac_objext` in
 
4579
    *32-bit*)
 
4580
      LD="${LD-ld} -32"
 
4581
      ;;
 
4582
    *N32*)
 
4583
      LD="${LD-ld} -n32"
 
4584
      ;;
 
4585
    *64-bit*)
 
4586
      LD="${LD-ld} -64"
 
4587
      ;;
 
4588
    esac
 
4589
   fi
 
4590
  fi
 
4591
  rm -rf conftest*
 
4592
  ;;
 
4593
 
 
4594
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4595
s390*-*linux*|sparc*-*linux*)
 
4596
  # Find out which ABI we are using.
 
4597
  echo 'int i;' > conftest.$ac_ext
 
4598
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4599
  (eval $ac_compile) 2>&5
 
4600
  ac_status=$?
 
4601
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4602
  (exit $ac_status); }; then
 
4603
    case `/usr/bin/file conftest.o` in
 
4604
    *32-bit*)
 
4605
      case $host in
 
4606
        x86_64-*kfreebsd*-gnu)
 
4607
          LD="${LD-ld} -m elf_i386_fbsd"
 
4608
          ;;
 
4609
        x86_64-*linux*)
 
4610
          LD="${LD-ld} -m elf_i386"
 
4611
          ;;
 
4612
        ppc64-*linux*|powerpc64-*linux*)
 
4613
          LD="${LD-ld} -m elf32ppclinux"
 
4614
          ;;
 
4615
        s390x-*linux*)
 
4616
          LD="${LD-ld} -m elf_s390"
 
4617
          ;;
 
4618
        sparc64-*linux*)
 
4619
          LD="${LD-ld} -m elf32_sparc"
 
4620
          ;;
 
4621
      esac
 
4622
      ;;
 
4623
    *64-bit*)
 
4624
      libsuff=64
 
4625
      case $host in
 
4626
        x86_64-*kfreebsd*-gnu)
 
4627
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4628
          ;;
 
4629
        x86_64-*linux*)
 
4630
          LD="${LD-ld} -m elf_x86_64"
 
4631
          ;;
 
4632
        ppc*-*linux*|powerpc*-*linux*)
 
4633
          LD="${LD-ld} -m elf64ppc"
 
4634
          ;;
 
4635
        s390*-*linux*)
 
4636
          LD="${LD-ld} -m elf64_s390"
 
4637
          ;;
 
4638
        sparc*-*linux*)
 
4639
          LD="${LD-ld} -m elf64_sparc"
 
4640
          ;;
 
4641
      esac
 
4642
      ;;
 
4643
    esac
 
4644
  fi
 
4645
  rm -rf conftest*
 
4646
  ;;
 
4647
 
 
4648
*-*-sco3.2v5*)
 
4649
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4650
  SAVE_CFLAGS="$CFLAGS"
 
4651
  CFLAGS="$CFLAGS -belf"
 
4652
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4653
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
4654
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4655
  $as_echo_n "(cached) " >&6
 
4656
else
 
4657
  ac_ext=c
 
4658
ac_cpp='$CPP $CPPFLAGS'
 
4659
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4660
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4661
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4662
 
 
4663
     cat >conftest.$ac_ext <<_ACEOF
 
4664
/* confdefs.h.  */
 
4665
_ACEOF
 
4666
cat confdefs.h >>conftest.$ac_ext
 
4667
cat >>conftest.$ac_ext <<_ACEOF
 
4668
/* end confdefs.h.  */
 
4669
 
 
4670
int
 
4671
main ()
 
4672
{
 
4673
 
 
4674
  ;
 
4675
  return 0;
 
4676
}
 
4677
_ACEOF
 
4678
rm -f conftest.$ac_objext conftest$ac_exeext
 
4679
if { (ac_try="$ac_link"
 
4680
case "(($ac_try" in
 
4681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4682
  *) ac_try_echo=$ac_try;;
 
4683
esac
 
4684
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4685
$as_echo "$ac_try_echo") >&5
 
4686
  (eval "$ac_link") 2>conftest.er1
 
4687
  ac_status=$?
 
4688
  grep -v '^ *+' conftest.er1 >conftest.err
 
4689
  rm -f conftest.er1
 
4690
  cat conftest.err >&5
 
4691
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4692
  (exit $ac_status); } && {
 
4693
         test -z "$ac_c_werror_flag" ||
 
4694
         test ! -s conftest.err
 
4695
       } && test -s conftest$ac_exeext && {
 
4696
         test "$cross_compiling" = yes ||
 
4697
         $as_test_x conftest$ac_exeext
 
4698
       }; then
 
4699
  lt_cv_cc_needs_belf=yes
 
4700
else
 
4701
  $as_echo "$as_me: failed program was:" >&5
 
4702
sed 's/^/| /' conftest.$ac_ext >&5
 
4703
 
 
4704
        lt_cv_cc_needs_belf=no
 
4705
fi
 
4706
 
 
4707
rm -rf conftest.dSYM
 
4708
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4709
      conftest$ac_exeext conftest.$ac_ext
 
4710
     ac_ext=c
 
4711
ac_cpp='$CPP $CPPFLAGS'
 
4712
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4713
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4714
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4715
 
 
4716
fi
 
4717
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4718
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
4719
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4720
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4721
    CFLAGS="$SAVE_CFLAGS"
 
4722
  fi
 
4723
  ;;
 
4724
sparc*-*solaris*)
 
4725
  # Find out which ABI we are using.
 
4726
  echo 'int i;' > conftest.$ac_ext
 
4727
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4728
  (eval $ac_compile) 2>&5
 
4729
  ac_status=$?
 
4730
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4731
  (exit $ac_status); }; then
 
4732
    case `/usr/bin/file conftest.o` in
 
4733
    *64-bit*)
 
4734
      case $lt_cv_prog_gnu_ld in
 
4735
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4736
      *)
 
4737
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4738
          LD="${LD-ld} -64"
 
4739
        fi
 
4740
        ;;
 
4741
      esac
 
4742
      ;;
 
4743
    esac
 
4744
  fi
 
4745
  rm -rf conftest*
 
4746
  ;;
 
4747
 
 
4748
 
 
4749
esac
 
4750
 
 
4751
need_locks="$enable_libtool_lock"
 
4752
 
 
4753
 
 
4754
ac_ext=c
 
4755
ac_cpp='$CPP $CPPFLAGS'
 
4756
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4757
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4758
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4759
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4760
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4761
# On Suns, sometimes $CPP names a directory.
 
4762
if test -n "$CPP" && test -d "$CPP"; then
 
4763
  CPP=
 
4764
fi
 
4765
if test -z "$CPP"; then
 
4766
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4767
  $as_echo_n "(cached) " >&6
 
4768
else
 
4769
      # Double quotes because CPP needs to be expanded
 
4770
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4771
    do
 
4772
      ac_preproc_ok=false
 
4773
for ac_c_preproc_warn_flag in '' yes
 
4774
do
 
4775
  # Use a header file that comes with gcc, so configuring glibc
 
4776
  # with a fresh cross-compiler works.
 
4777
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4778
  # <limits.h> exists even on freestanding compilers.
 
4779
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4780
  # not just through cpp. "Syntax error" is here to catch this case.
 
4781
  cat >conftest.$ac_ext <<_ACEOF
 
4782
/* confdefs.h.  */
 
4783
_ACEOF
 
4784
cat confdefs.h >>conftest.$ac_ext
 
4785
cat >>conftest.$ac_ext <<_ACEOF
 
4786
/* end confdefs.h.  */
 
4787
#ifdef __STDC__
 
4788
# include <limits.h>
 
4789
#else
 
4790
# include <assert.h>
 
4791
#endif
 
4792
                     Syntax error
 
4793
_ACEOF
 
4794
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4795
case "(($ac_try" in
 
4796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4797
  *) ac_try_echo=$ac_try;;
 
4798
esac
 
4799
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4800
$as_echo "$ac_try_echo") >&5
 
4801
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4802
  ac_status=$?
 
4803
  grep -v '^ *+' conftest.er1 >conftest.err
 
4804
  rm -f conftest.er1
 
4805
  cat conftest.err >&5
 
4806
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4807
  (exit $ac_status); } >/dev/null && {
 
4808
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4809
         test ! -s conftest.err
 
4810
       }; then
 
4811
  :
 
4812
else
 
4813
  $as_echo "$as_me: failed program was:" >&5
 
4814
sed 's/^/| /' conftest.$ac_ext >&5
 
4815
 
 
4816
  # Broken: fails on valid input.
 
4817
continue
 
4818
fi
 
4819
 
 
4820
rm -f conftest.err conftest.$ac_ext
 
4821
 
 
4822
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4823
  # can be detected and how.
 
4824
  cat >conftest.$ac_ext <<_ACEOF
 
4825
/* confdefs.h.  */
 
4826
_ACEOF
 
4827
cat confdefs.h >>conftest.$ac_ext
 
4828
cat >>conftest.$ac_ext <<_ACEOF
 
4829
/* end confdefs.h.  */
 
4830
#include <ac_nonexistent.h>
 
4831
_ACEOF
 
4832
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4833
case "(($ac_try" in
 
4834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4835
  *) ac_try_echo=$ac_try;;
 
4836
esac
 
4837
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4838
$as_echo "$ac_try_echo") >&5
 
4839
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4840
  ac_status=$?
 
4841
  grep -v '^ *+' conftest.er1 >conftest.err
 
4842
  rm -f conftest.er1
 
4843
  cat conftest.err >&5
 
4844
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4845
  (exit $ac_status); } >/dev/null && {
 
4846
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4847
         test ! -s conftest.err
 
4848
       }; then
 
4849
  # Broken: success on invalid input.
 
4850
continue
 
4851
else
 
4852
  $as_echo "$as_me: failed program was:" >&5
 
4853
sed 's/^/| /' conftest.$ac_ext >&5
 
4854
 
 
4855
  # Passes both tests.
 
4856
ac_preproc_ok=:
 
4857
break
 
4858
fi
 
4859
 
 
4860
rm -f conftest.err conftest.$ac_ext
 
4861
 
 
4862
done
 
4863
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4864
rm -f conftest.err conftest.$ac_ext
 
4865
if $ac_preproc_ok; then
 
4866
  break
 
4867
fi
 
4868
 
 
4869
    done
 
4870
    ac_cv_prog_CPP=$CPP
 
4871
 
 
4872
fi
 
4873
  CPP=$ac_cv_prog_CPP
 
4874
else
 
4875
  ac_cv_prog_CPP=$CPP
 
4876
fi
 
4877
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
4878
$as_echo "$CPP" >&6; }
 
4879
ac_preproc_ok=false
 
4880
for ac_c_preproc_warn_flag in '' yes
 
4881
do
 
4882
  # Use a header file that comes with gcc, so configuring glibc
 
4883
  # with a fresh cross-compiler works.
 
4884
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4885
  # <limits.h> exists even on freestanding compilers.
 
4886
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4887
  # not just through cpp. "Syntax error" is here to catch this case.
 
4888
  cat >conftest.$ac_ext <<_ACEOF
 
4889
/* confdefs.h.  */
 
4890
_ACEOF
 
4891
cat confdefs.h >>conftest.$ac_ext
 
4892
cat >>conftest.$ac_ext <<_ACEOF
 
4893
/* end confdefs.h.  */
 
4894
#ifdef __STDC__
 
4895
# include <limits.h>
 
4896
#else
 
4897
# include <assert.h>
 
4898
#endif
 
4899
                     Syntax error
 
4900
_ACEOF
 
4901
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4902
case "(($ac_try" in
 
4903
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4904
  *) ac_try_echo=$ac_try;;
 
4905
esac
 
4906
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4907
$as_echo "$ac_try_echo") >&5
 
4908
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4909
  ac_status=$?
 
4910
  grep -v '^ *+' conftest.er1 >conftest.err
 
4911
  rm -f conftest.er1
 
4912
  cat conftest.err >&5
 
4913
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4914
  (exit $ac_status); } >/dev/null && {
 
4915
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4916
         test ! -s conftest.err
 
4917
       }; then
 
4918
  :
 
4919
else
 
4920
  $as_echo "$as_me: failed program was:" >&5
 
4921
sed 's/^/| /' conftest.$ac_ext >&5
 
4922
 
 
4923
  # Broken: fails on valid input.
 
4924
continue
 
4925
fi
 
4926
 
 
4927
rm -f conftest.err conftest.$ac_ext
 
4928
 
 
4929
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4930
  # can be detected and how.
 
4931
  cat >conftest.$ac_ext <<_ACEOF
 
4932
/* confdefs.h.  */
 
4933
_ACEOF
 
4934
cat confdefs.h >>conftest.$ac_ext
 
4935
cat >>conftest.$ac_ext <<_ACEOF
 
4936
/* end confdefs.h.  */
 
4937
#include <ac_nonexistent.h>
 
4938
_ACEOF
 
4939
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4940
case "(($ac_try" in
 
4941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4942
  *) ac_try_echo=$ac_try;;
 
4943
esac
 
4944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4945
$as_echo "$ac_try_echo") >&5
 
4946
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4947
  ac_status=$?
 
4948
  grep -v '^ *+' conftest.er1 >conftest.err
 
4949
  rm -f conftest.er1
 
4950
  cat conftest.err >&5
 
4951
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4952
  (exit $ac_status); } >/dev/null && {
 
4953
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4954
         test ! -s conftest.err
 
4955
       }; then
 
4956
  # Broken: success on invalid input.
 
4957
continue
 
4958
else
 
4959
  $as_echo "$as_me: failed program was:" >&5
 
4960
sed 's/^/| /' conftest.$ac_ext >&5
 
4961
 
 
4962
  # Passes both tests.
 
4963
ac_preproc_ok=:
 
4964
break
 
4965
fi
 
4966
 
 
4967
rm -f conftest.err conftest.$ac_ext
 
4968
 
 
4969
done
 
4970
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4971
rm -f conftest.err conftest.$ac_ext
 
4972
if $ac_preproc_ok; then
 
4973
  :
 
4974
else
 
4975
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4976
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4977
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4978
See \`config.log' for more details." >&5
 
4979
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4980
See \`config.log' for more details." >&2;}
 
4981
   { (exit 1); exit 1; }; }; }
 
4982
fi
 
4983
 
 
4984
ac_ext=c
 
4985
ac_cpp='$CPP $CPPFLAGS'
 
4986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4989
 
 
4990
 
 
4991
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4992
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4993
if test "${ac_cv_header_stdc+set}" = set; then
 
4994
  $as_echo_n "(cached) " >&6
 
4995
else
 
4996
  cat >conftest.$ac_ext <<_ACEOF
 
4997
/* confdefs.h.  */
 
4998
_ACEOF
 
4999
cat confdefs.h >>conftest.$ac_ext
 
5000
cat >>conftest.$ac_ext <<_ACEOF
 
5001
/* end confdefs.h.  */
 
5002
#include <stdlib.h>
 
5003
#include <stdarg.h>
 
5004
#include <string.h>
 
5005
#include <float.h>
 
5006
 
 
5007
int
 
5008
main ()
 
5009
{
 
5010
 
 
5011
  ;
 
5012
  return 0;
 
5013
}
 
5014
_ACEOF
 
5015
rm -f conftest.$ac_objext
 
5016
if { (ac_try="$ac_compile"
 
5017
case "(($ac_try" in
 
5018
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5019
  *) ac_try_echo=$ac_try;;
 
5020
esac
 
5021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5022
$as_echo "$ac_try_echo") >&5
 
5023
  (eval "$ac_compile") 2>conftest.er1
 
5024
  ac_status=$?
 
5025
  grep -v '^ *+' conftest.er1 >conftest.err
 
5026
  rm -f conftest.er1
 
5027
  cat conftest.err >&5
 
5028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5029
  (exit $ac_status); } && {
 
5030
         test -z "$ac_c_werror_flag" ||
 
5031
         test ! -s conftest.err
 
5032
       } && test -s conftest.$ac_objext; then
 
5033
  ac_cv_header_stdc=yes
 
5034
else
 
5035
  $as_echo "$as_me: failed program was:" >&5
 
5036
sed 's/^/| /' conftest.$ac_ext >&5
 
5037
 
 
5038
        ac_cv_header_stdc=no
 
5039
fi
 
5040
 
 
5041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5042
 
 
5043
if test $ac_cv_header_stdc = yes; then
 
5044
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5045
  cat >conftest.$ac_ext <<_ACEOF
 
5046
/* confdefs.h.  */
 
5047
_ACEOF
 
5048
cat confdefs.h >>conftest.$ac_ext
 
5049
cat >>conftest.$ac_ext <<_ACEOF
 
5050
/* end confdefs.h.  */
 
5051
#include <string.h>
 
5052
 
 
5053
_ACEOF
 
5054
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5055
  $EGREP "memchr" >/dev/null 2>&1; then
 
5056
  :
 
5057
else
 
5058
  ac_cv_header_stdc=no
 
5059
fi
 
5060
rm -f conftest*
 
5061
 
 
5062
fi
 
5063
 
 
5064
if test $ac_cv_header_stdc = yes; then
 
5065
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5066
  cat >conftest.$ac_ext <<_ACEOF
 
5067
/* confdefs.h.  */
 
5068
_ACEOF
 
5069
cat confdefs.h >>conftest.$ac_ext
 
5070
cat >>conftest.$ac_ext <<_ACEOF
 
5071
/* end confdefs.h.  */
 
5072
#include <stdlib.h>
 
5073
 
 
5074
_ACEOF
 
5075
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5076
  $EGREP "free" >/dev/null 2>&1; then
 
5077
  :
 
5078
else
 
5079
  ac_cv_header_stdc=no
 
5080
fi
 
5081
rm -f conftest*
 
5082
 
 
5083
fi
 
5084
 
 
5085
if test $ac_cv_header_stdc = yes; then
 
5086
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5087
  if test "$cross_compiling" = yes; then
 
5088
  :
 
5089
else
 
5090
  cat >conftest.$ac_ext <<_ACEOF
 
5091
/* confdefs.h.  */
 
5092
_ACEOF
 
5093
cat confdefs.h >>conftest.$ac_ext
 
5094
cat >>conftest.$ac_ext <<_ACEOF
 
5095
/* end confdefs.h.  */
 
5096
#include <ctype.h>
 
5097
#include <stdlib.h>
 
5098
#if ((' ' & 0x0FF) == 0x020)
 
5099
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5100
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5101
#else
 
5102
# define ISLOWER(c) \
 
5103
                   (('a' <= (c) && (c) <= 'i') \
 
5104
                     || ('j' <= (c) && (c) <= 'r') \
 
5105
                     || ('s' <= (c) && (c) <= 'z'))
 
5106
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5107
#endif
 
5108
 
 
5109
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5110
int
 
5111
main ()
 
5112
{
 
5113
  int i;
 
5114
  for (i = 0; i < 256; i++)
 
5115
    if (XOR (islower (i), ISLOWER (i))
 
5116
        || toupper (i) != TOUPPER (i))
 
5117
      return 2;
 
5118
  return 0;
 
5119
}
 
5120
_ACEOF
 
5121
rm -f conftest$ac_exeext
 
5122
if { (ac_try="$ac_link"
 
5123
case "(($ac_try" in
 
5124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5125
  *) ac_try_echo=$ac_try;;
 
5126
esac
 
5127
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5128
$as_echo "$ac_try_echo") >&5
 
5129
  (eval "$ac_link") 2>&5
 
5130
  ac_status=$?
 
5131
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5132
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5133
  { (case "(($ac_try" in
 
5134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5135
  *) ac_try_echo=$ac_try;;
 
5136
esac
 
5137
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5138
$as_echo "$ac_try_echo") >&5
 
5139
  (eval "$ac_try") 2>&5
 
5140
  ac_status=$?
 
5141
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5142
  (exit $ac_status); }; }; then
 
5143
  :
 
5144
else
 
5145
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5146
$as_echo "$as_me: failed program was:" >&5
 
5147
sed 's/^/| /' conftest.$ac_ext >&5
 
5148
 
 
5149
( exit $ac_status )
 
5150
ac_cv_header_stdc=no
 
5151
fi
 
5152
rm -rf conftest.dSYM
 
5153
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5154
fi
 
5155
 
 
5156
 
 
5157
fi
 
5158
fi
 
5159
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5160
$as_echo "$ac_cv_header_stdc" >&6; }
 
5161
if test $ac_cv_header_stdc = yes; then
 
5162
 
 
5163
cat >>confdefs.h <<\_ACEOF
 
5164
#define STDC_HEADERS 1
 
5165
_ACEOF
 
5166
 
 
5167
fi
 
5168
 
 
5169
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5170
 
 
5171
 
 
5172
 
 
5173
 
 
5174
 
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5180
                  inttypes.h stdint.h unistd.h
 
5181
do
 
5182
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5183
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5184
$as_echo_n "checking for $ac_header... " >&6; }
 
5185
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5186
  $as_echo_n "(cached) " >&6
 
5187
else
 
5188
  cat >conftest.$ac_ext <<_ACEOF
 
5189
/* confdefs.h.  */
 
5190
_ACEOF
 
5191
cat confdefs.h >>conftest.$ac_ext
 
5192
cat >>conftest.$ac_ext <<_ACEOF
 
5193
/* end confdefs.h.  */
 
5194
$ac_includes_default
 
5195
 
 
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
  eval "$as_ac_Header=yes"
 
5217
else
 
5218
  $as_echo "$as_me: failed program was:" >&5
 
5219
sed 's/^/| /' conftest.$ac_ext >&5
 
5220
 
 
5221
        eval "$as_ac_Header=no"
 
5222
fi
 
5223
 
 
5224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5225
fi
 
5226
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5227
                 $as_echo "$as_val"'`
 
5228
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5229
$as_echo "$ac_res" >&6; }
 
5230
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5231
                 $as_echo "$as_val"'`
 
5232
   if test "x$as_val" = x""yes; then
 
5233
  cat >>confdefs.h <<_ACEOF
 
5234
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5235
_ACEOF
 
5236
 
 
5237
fi
 
5238
 
 
5239
done
 
5240
 
 
5241
 
 
5242
 
 
5243
for ac_header in dlfcn.h
 
5244
do
 
5245
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5246
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5247
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5248
$as_echo_n "checking for $ac_header... " >&6; }
 
5249
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5250
  $as_echo_n "(cached) " >&6
 
5251
fi
 
5252
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5253
                 $as_echo "$as_val"'`
 
5254
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5255
$as_echo "$ac_res" >&6; }
 
5256
else
 
5257
  # Is the header compilable?
 
5258
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5259
$as_echo_n "checking $ac_header usability... " >&6; }
 
5260
cat >conftest.$ac_ext <<_ACEOF
 
5261
/* confdefs.h.  */
 
5262
_ACEOF
 
5263
cat confdefs.h >>conftest.$ac_ext
 
5264
cat >>conftest.$ac_ext <<_ACEOF
 
5265
/* end confdefs.h.  */
 
5266
$ac_includes_default
 
5267
#include <$ac_header>
 
5268
_ACEOF
 
5269
rm -f conftest.$ac_objext
 
5270
if { (ac_try="$ac_compile"
 
5271
case "(($ac_try" in
 
5272
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5273
  *) ac_try_echo=$ac_try;;
 
5274
esac
 
5275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5276
$as_echo "$ac_try_echo") >&5
 
5277
  (eval "$ac_compile") 2>conftest.er1
 
5278
  ac_status=$?
 
5279
  grep -v '^ *+' conftest.er1 >conftest.err
 
5280
  rm -f conftest.er1
 
5281
  cat conftest.err >&5
 
5282
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5283
  (exit $ac_status); } && {
 
5284
         test -z "$ac_c_werror_flag" ||
 
5285
         test ! -s conftest.err
 
5286
       } && test -s conftest.$ac_objext; then
 
5287
  ac_header_compiler=yes
 
5288
else
 
5289
  $as_echo "$as_me: failed program was:" >&5
 
5290
sed 's/^/| /' conftest.$ac_ext >&5
 
5291
 
 
5292
        ac_header_compiler=no
 
5293
fi
 
5294
 
 
5295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5296
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5297
$as_echo "$ac_header_compiler" >&6; }
 
5298
 
 
5299
# Is the header present?
 
5300
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5301
$as_echo_n "checking $ac_header presence... " >&6; }
 
5302
cat >conftest.$ac_ext <<_ACEOF
 
5303
/* confdefs.h.  */
 
5304
_ACEOF
 
5305
cat confdefs.h >>conftest.$ac_ext
 
5306
cat >>conftest.$ac_ext <<_ACEOF
 
5307
/* end confdefs.h.  */
 
5308
#include <$ac_header>
 
5309
_ACEOF
 
5310
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5311
case "(($ac_try" in
 
5312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5313
  *) ac_try_echo=$ac_try;;
 
5314
esac
 
5315
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5316
$as_echo "$ac_try_echo") >&5
 
5317
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5318
  ac_status=$?
 
5319
  grep -v '^ *+' conftest.er1 >conftest.err
 
5320
  rm -f conftest.er1
 
5321
  cat conftest.err >&5
 
5322
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5323
  (exit $ac_status); } >/dev/null && {
 
5324
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5325
         test ! -s conftest.err
 
5326
       }; then
 
5327
  ac_header_preproc=yes
 
5328
else
 
5329
  $as_echo "$as_me: failed program was:" >&5
 
5330
sed 's/^/| /' conftest.$ac_ext >&5
 
5331
 
 
5332
  ac_header_preproc=no
 
5333
fi
 
5334
 
 
5335
rm -f conftest.err conftest.$ac_ext
 
5336
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5337
$as_echo "$ac_header_preproc" >&6; }
 
5338
 
 
5339
# So?  What about this header?
 
5340
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5341
  yes:no: )
 
5342
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5343
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5344
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5345
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5346
    ac_header_preproc=yes
 
5347
    ;;
 
5348
  no:yes:* )
 
5349
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5350
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5351
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5352
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5353
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5354
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5355
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5356
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5357
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5358
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5359
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5360
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5361
    ( cat <<\_ASBOX
 
5362
## ---------------------------------------------------------------------- ##
 
5363
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
5364
## ---------------------------------------------------------------------- ##
 
5365
_ASBOX
 
5366
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5367
    ;;
 
5368
esac
 
5369
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5370
$as_echo_n "checking for $ac_header... " >&6; }
 
5371
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5372
  $as_echo_n "(cached) " >&6
 
5373
else
 
5374
  eval "$as_ac_Header=\$ac_header_preproc"
 
5375
fi
 
5376
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5377
                 $as_echo "$as_val"'`
 
5378
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5379
$as_echo "$ac_res" >&6; }
 
5380
 
 
5381
fi
 
5382
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5383
                 $as_echo "$as_val"'`
 
5384
   if test "x$as_val" = x""yes; then
 
5385
  cat >>confdefs.h <<_ACEOF
 
5386
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5387
_ACEOF
 
5388
 
 
5389
fi
 
5390
 
 
5391
done
 
5392
 
 
5393
ac_ext=cpp
 
5394
ac_cpp='$CXXCPP $CPPFLAGS'
 
5395
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5396
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5397
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5398
if test -z "$CXX"; then
 
5399
  if test -n "$CCC"; then
 
5400
    CXX=$CCC
 
5401
  else
 
5402
    if test -n "$ac_tool_prefix"; then
 
5403
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5404
  do
 
5405
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5406
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5407
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5408
$as_echo_n "checking for $ac_word... " >&6; }
 
5409
if test "${ac_cv_prog_CXX+set}" = set; then
 
5410
  $as_echo_n "(cached) " >&6
 
5411
else
 
5412
  if test -n "$CXX"; then
 
5413
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5414
else
 
5415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5416
for as_dir in $PATH
 
5417
do
 
5418
  IFS=$as_save_IFS
 
5419
  test -z "$as_dir" && as_dir=.
 
5420
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5422
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5423
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5424
    break 2
 
5425
  fi
 
5426
done
 
5427
done
 
5428
IFS=$as_save_IFS
 
5429
 
 
5430
fi
 
5431
fi
 
5432
CXX=$ac_cv_prog_CXX
 
5433
if test -n "$CXX"; then
 
5434
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
5435
$as_echo "$CXX" >&6; }
 
5436
else
 
5437
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5438
$as_echo "no" >&6; }
 
5439
fi
 
5440
 
 
5441
 
 
5442
    test -n "$CXX" && break
 
5443
  done
 
5444
fi
 
5445
if test -z "$CXX"; then
 
5446
  ac_ct_CXX=$CXX
 
5447
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5448
do
 
5449
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5450
set dummy $ac_prog; ac_word=$2
 
5451
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5452
$as_echo_n "checking for $ac_word... " >&6; }
 
5453
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5454
  $as_echo_n "(cached) " >&6
 
5455
else
 
5456
  if test -n "$ac_ct_CXX"; then
 
5457
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5458
else
 
5459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5460
for as_dir in $PATH
 
5461
do
 
5462
  IFS=$as_save_IFS
 
5463
  test -z "$as_dir" && as_dir=.
 
5464
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5465
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5466
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5467
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5468
    break 2
 
5469
  fi
 
5470
done
 
5471
done
 
5472
IFS=$as_save_IFS
 
5473
 
 
5474
fi
 
5475
fi
 
5476
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5477
if test -n "$ac_ct_CXX"; then
 
5478
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5479
$as_echo "$ac_ct_CXX" >&6; }
 
5480
else
 
5481
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5482
$as_echo "no" >&6; }
 
5483
fi
 
5484
 
 
5485
 
 
5486
  test -n "$ac_ct_CXX" && break
 
5487
done
 
5488
 
 
5489
  if test "x$ac_ct_CXX" = x; then
 
5490
    CXX="g++"
 
5491
  else
 
5492
    case $cross_compiling:$ac_tool_warned in
 
5493
yes:)
 
5494
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5495
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5496
ac_tool_warned=yes ;;
 
5497
esac
 
5498
    CXX=$ac_ct_CXX
 
5499
  fi
 
5500
fi
 
5501
 
 
5502
  fi
 
5503
fi
 
5504
# Provide some information about the compiler.
 
5505
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5506
set X $ac_compile
 
5507
ac_compiler=$2
 
5508
{ (ac_try="$ac_compiler --version >&5"
 
5509
case "(($ac_try" in
 
5510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5511
  *) ac_try_echo=$ac_try;;
 
5512
esac
 
5513
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5514
$as_echo "$ac_try_echo") >&5
 
5515
  (eval "$ac_compiler --version >&5") 2>&5
 
5516
  ac_status=$?
 
5517
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5518
  (exit $ac_status); }
 
5519
{ (ac_try="$ac_compiler -v >&5"
 
5520
case "(($ac_try" in
 
5521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5522
  *) ac_try_echo=$ac_try;;
 
5523
esac
 
5524
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5525
$as_echo "$ac_try_echo") >&5
 
5526
  (eval "$ac_compiler -v >&5") 2>&5
 
5527
  ac_status=$?
 
5528
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5529
  (exit $ac_status); }
 
5530
{ (ac_try="$ac_compiler -V >&5"
 
5531
case "(($ac_try" in
 
5532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5533
  *) ac_try_echo=$ac_try;;
 
5534
esac
 
5535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5536
$as_echo "$ac_try_echo") >&5
 
5537
  (eval "$ac_compiler -V >&5") 2>&5
 
5538
  ac_status=$?
 
5539
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5540
  (exit $ac_status); }
 
5541
 
 
5542
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5543
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
5544
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5545
  $as_echo_n "(cached) " >&6
 
5546
else
 
5547
  cat >conftest.$ac_ext <<_ACEOF
 
5548
/* confdefs.h.  */
 
5549
_ACEOF
 
5550
cat confdefs.h >>conftest.$ac_ext
 
5551
cat >>conftest.$ac_ext <<_ACEOF
 
5552
/* end confdefs.h.  */
 
5553
 
 
5554
int
 
5555
main ()
 
5556
{
 
5557
#ifndef __GNUC__
 
5558
       choke me
 
5559
#endif
 
5560
 
 
5561
  ;
 
5562
  return 0;
 
5563
}
 
5564
_ACEOF
 
5565
rm -f conftest.$ac_objext
 
5566
if { (ac_try="$ac_compile"
 
5567
case "(($ac_try" in
 
5568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5569
  *) ac_try_echo=$ac_try;;
 
5570
esac
 
5571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5572
$as_echo "$ac_try_echo") >&5
 
5573
  (eval "$ac_compile") 2>conftest.er1
 
5574
  ac_status=$?
 
5575
  grep -v '^ *+' conftest.er1 >conftest.err
 
5576
  rm -f conftest.er1
 
5577
  cat conftest.err >&5
 
5578
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5579
  (exit $ac_status); } && {
 
5580
         test -z "$ac_cxx_werror_flag" ||
 
5581
         test ! -s conftest.err
 
5582
       } && test -s conftest.$ac_objext; then
 
5583
  ac_compiler_gnu=yes
 
5584
else
 
5585
  $as_echo "$as_me: failed program was:" >&5
 
5586
sed 's/^/| /' conftest.$ac_ext >&5
 
5587
 
 
5588
        ac_compiler_gnu=no
 
5589
fi
 
5590
 
 
5591
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5592
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5593
 
 
5594
fi
 
5595
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5596
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
5597
if test $ac_compiler_gnu = yes; then
 
5598
  GXX=yes
 
5599
else
 
5600
  GXX=
 
5601
fi
 
5602
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5603
ac_save_CXXFLAGS=$CXXFLAGS
 
5604
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5605
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
5606
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5607
  $as_echo_n "(cached) " >&6
 
5608
else
 
5609
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5610
   ac_cxx_werror_flag=yes
 
5611
   ac_cv_prog_cxx_g=no
 
5612
   CXXFLAGS="-g"
 
5613
   cat >conftest.$ac_ext <<_ACEOF
 
5614
/* confdefs.h.  */
 
5615
_ACEOF
 
5616
cat confdefs.h >>conftest.$ac_ext
 
5617
cat >>conftest.$ac_ext <<_ACEOF
 
5618
/* end confdefs.h.  */
 
5619
 
 
5620
int
 
5621
main ()
 
5622
{
 
5623
 
 
5624
  ;
 
5625
  return 0;
 
5626
}
 
5627
_ACEOF
 
5628
rm -f conftest.$ac_objext
 
5629
if { (ac_try="$ac_compile"
 
5630
case "(($ac_try" in
 
5631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5632
  *) ac_try_echo=$ac_try;;
 
5633
esac
 
5634
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5635
$as_echo "$ac_try_echo") >&5
 
5636
  (eval "$ac_compile") 2>conftest.er1
 
5637
  ac_status=$?
 
5638
  grep -v '^ *+' conftest.er1 >conftest.err
 
5639
  rm -f conftest.er1
 
5640
  cat conftest.err >&5
 
5641
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5642
  (exit $ac_status); } && {
 
5643
         test -z "$ac_cxx_werror_flag" ||
 
5644
         test ! -s conftest.err
 
5645
       } && test -s conftest.$ac_objext; then
 
5646
  ac_cv_prog_cxx_g=yes
 
5647
else
 
5648
  $as_echo "$as_me: failed program was:" >&5
 
5649
sed 's/^/| /' conftest.$ac_ext >&5
 
5650
 
 
5651
        CXXFLAGS=""
 
5652
      cat >conftest.$ac_ext <<_ACEOF
 
5653
/* confdefs.h.  */
 
5654
_ACEOF
 
5655
cat confdefs.h >>conftest.$ac_ext
 
5656
cat >>conftest.$ac_ext <<_ACEOF
 
5657
/* end confdefs.h.  */
 
5658
 
 
5659
int
 
5660
main ()
 
5661
{
 
5662
 
 
5663
  ;
 
5664
  return 0;
 
5665
}
 
5666
_ACEOF
 
5667
rm -f conftest.$ac_objext
 
5668
if { (ac_try="$ac_compile"
 
5669
case "(($ac_try" in
 
5670
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5671
  *) ac_try_echo=$ac_try;;
 
5672
esac
 
5673
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5674
$as_echo "$ac_try_echo") >&5
 
5675
  (eval "$ac_compile") 2>conftest.er1
 
5676
  ac_status=$?
 
5677
  grep -v '^ *+' conftest.er1 >conftest.err
 
5678
  rm -f conftest.er1
 
5679
  cat conftest.err >&5
 
5680
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5681
  (exit $ac_status); } && {
 
5682
         test -z "$ac_cxx_werror_flag" ||
 
5683
         test ! -s conftest.err
 
5684
       } && test -s conftest.$ac_objext; then
 
5685
  :
 
5686
else
 
5687
  $as_echo "$as_me: failed program was:" >&5
 
5688
sed 's/^/| /' conftest.$ac_ext >&5
 
5689
 
 
5690
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5691
         CXXFLAGS="-g"
 
5692
         cat >conftest.$ac_ext <<_ACEOF
 
5693
/* confdefs.h.  */
 
5694
_ACEOF
 
5695
cat confdefs.h >>conftest.$ac_ext
 
5696
cat >>conftest.$ac_ext <<_ACEOF
 
5697
/* end confdefs.h.  */
 
5698
 
 
5699
int
 
5700
main ()
 
5701
{
 
5702
 
 
5703
  ;
 
5704
  return 0;
 
5705
}
 
5706
_ACEOF
 
5707
rm -f conftest.$ac_objext
 
5708
if { (ac_try="$ac_compile"
 
5709
case "(($ac_try" in
 
5710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5711
  *) ac_try_echo=$ac_try;;
 
5712
esac
 
5713
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5714
$as_echo "$ac_try_echo") >&5
 
5715
  (eval "$ac_compile") 2>conftest.er1
 
5716
  ac_status=$?
 
5717
  grep -v '^ *+' conftest.er1 >conftest.err
 
5718
  rm -f conftest.er1
 
5719
  cat conftest.err >&5
 
5720
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5721
  (exit $ac_status); } && {
 
5722
         test -z "$ac_cxx_werror_flag" ||
 
5723
         test ! -s conftest.err
 
5724
       } && test -s conftest.$ac_objext; then
 
5725
  ac_cv_prog_cxx_g=yes
 
5726
else
 
5727
  $as_echo "$as_me: failed program was:" >&5
 
5728
sed 's/^/| /' conftest.$ac_ext >&5
 
5729
 
 
5730
 
 
5731
fi
 
5732
 
 
5733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5734
fi
 
5735
 
 
5736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5737
fi
 
5738
 
 
5739
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5740
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5741
fi
 
5742
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5743
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
5744
if test "$ac_test_CXXFLAGS" = set; then
 
5745
  CXXFLAGS=$ac_save_CXXFLAGS
 
5746
elif test $ac_cv_prog_cxx_g = yes; then
 
5747
  if test "$GXX" = yes; then
 
5748
    CXXFLAGS="-g -O2"
 
5749
  else
 
5750
    CXXFLAGS="-g"
 
5751
  fi
 
5752
else
 
5753
  if test "$GXX" = yes; then
 
5754
    CXXFLAGS="-O2"
 
5755
  else
 
5756
    CXXFLAGS=
 
5757
  fi
 
5758
fi
 
5759
ac_ext=cpp
 
5760
ac_cpp='$CXXCPP $CPPFLAGS'
 
5761
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5762
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5763
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5764
 
 
5765
depcc="$CXX"  am_compiler_list=
 
5766
 
 
5767
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5768
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
5769
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5770
  $as_echo_n "(cached) " >&6
 
5771
else
 
5772
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5773
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5774
  # making bogus files that we don't know about and never remove.  For
 
5775
  # instance it was reported that on HP-UX the gcc test will end up
 
5776
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5777
  # in D'.
 
5778
  mkdir conftest.dir
 
5779
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5780
  # using a relative directory.
 
5781
  cp "$am_depcomp" conftest.dir
 
5782
  cd conftest.dir
 
5783
  # We will build objects and dependencies in a subdirectory because
 
5784
  # it helps to detect inapplicable dependency modes.  For instance
 
5785
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5786
  # side effect of compilation, but ICC will put the dependencies in
 
5787
  # the current directory while Tru64 will put them in the object
 
5788
  # directory.
 
5789
  mkdir sub
 
5790
 
 
5791
  am_cv_CXX_dependencies_compiler_type=none
 
5792
  if test "$am_compiler_list" = ""; then
 
5793
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5794
  fi
 
5795
  am__universal=false
 
5796
  case " $depcc " in #(
 
5797
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
5798
     esac
 
5799
 
 
5800
  for depmode in $am_compiler_list; do
 
5801
    # Setup a source with many dependencies, because some compilers
 
5802
    # like to wrap large dependency lists on column 80 (with \), and
 
5803
    # we should not choose a depcomp mode which is confused by this.
 
5804
    #
 
5805
    # We need to recreate these files for each test, as the compiler may
 
5806
    # overwrite some of them when testing with obscure command lines.
 
5807
    # This happens at least with the AIX C compiler.
 
5808
    : > sub/conftest.c
 
5809
    for i in 1 2 3 4 5 6; do
 
5810
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5811
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5812
      # Solaris 8's {/usr,}/bin/sh.
 
5813
      touch sub/conftst$i.h
 
5814
    done
 
5815
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5816
 
 
5817
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5818
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5819
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
5820
    # versions had trouble with output in subdirs
 
5821
    am__obj=sub/conftest.${OBJEXT-o}
 
5822
    am__minus_obj="-o $am__obj"
 
5823
    case $depmode in
 
5824
    gcc)
 
5825
      # This depmode causes a compiler race in universal mode.
 
5826
      test "$am__universal" = false || continue
 
5827
      ;;
 
5828
    nosideeffect)
 
5829
      # after this tag, mechanisms are not by side-effect, so they'll
 
5830
      # only be used when explicitly requested
 
5831
      if test "x$enable_dependency_tracking" = xyes; then
 
5832
        continue
 
5833
      else
 
5834
        break
 
5835
      fi
 
5836
      ;;
 
5837
    msvisualcpp | msvcmsys)
 
5838
      # This compiler won't grok `-c -o', but also, the minuso test has
 
5839
      # not run yet.  These depmodes are late enough in the game, and
 
5840
      # so weak that their functioning should not be impacted.
 
5841
      am__obj=conftest.${OBJEXT-o}
 
5842
      am__minus_obj=
 
5843
      ;;
 
5844
    none) break ;;
 
5845
    esac
 
5846
    if depmode=$depmode \
 
5847
       source=sub/conftest.c object=$am__obj \
 
5848
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5849
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
5850
         >/dev/null 2>conftest.err &&
 
5851
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5852
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5853
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
5854
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5855
      # icc doesn't choke on unknown options, it will just issue warnings
 
5856
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5857
      # that says an option was ignored or not supported.
 
5858
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5859
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5860
      # The diagnosis changed in icc 8.0:
 
5861
      #   icc: Command line remark: option '-MP' not supported
 
5862
      if (grep 'ignoring option' conftest.err ||
 
5863
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5864
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5865
        break
 
5866
      fi
 
5867
    fi
 
5868
  done
 
5869
 
 
5870
  cd ..
 
5871
  rm -rf conftest.dir
 
5872
else
 
5873
  am_cv_CXX_dependencies_compiler_type=none
 
5874
fi
 
5875
 
 
5876
fi
 
5877
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5878
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5879
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5880
 
 
5881
 if
 
5882
  test "x$enable_dependency_tracking" != xno \
 
5883
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5884
  am__fastdepCXX_TRUE=
 
5885
  am__fastdepCXX_FALSE='#'
 
5886
else
 
5887
  am__fastdepCXX_TRUE='#'
 
5888
  am__fastdepCXX_FALSE=
 
5889
fi
 
5890
 
 
5891
 
 
5892
 
 
5893
 
 
5894
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5895
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5896
    (test "X$CXX" != "Xg++"))) ; then
 
5897
  ac_ext=cpp
 
5898
ac_cpp='$CXXCPP $CPPFLAGS'
 
5899
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5900
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5901
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5902
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5903
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
5904
if test -z "$CXXCPP"; then
 
5905
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5906
  $as_echo_n "(cached) " >&6
 
5907
else
 
5908
      # Double quotes because CXXCPP needs to be expanded
 
5909
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5910
    do
 
5911
      ac_preproc_ok=false
 
5912
for ac_cxx_preproc_warn_flag in '' yes
 
5913
do
 
5914
  # Use a header file that comes with gcc, so configuring glibc
 
5915
  # with a fresh cross-compiler works.
 
5916
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5917
  # <limits.h> exists even on freestanding compilers.
 
5918
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5919
  # not just through cpp. "Syntax error" is here to catch this case.
 
5920
  cat >conftest.$ac_ext <<_ACEOF
 
5921
/* confdefs.h.  */
 
5922
_ACEOF
 
5923
cat confdefs.h >>conftest.$ac_ext
 
5924
cat >>conftest.$ac_ext <<_ACEOF
 
5925
/* end confdefs.h.  */
 
5926
#ifdef __STDC__
 
5927
# include <limits.h>
 
5928
#else
 
5929
# include <assert.h>
 
5930
#endif
 
5931
                     Syntax error
 
5932
_ACEOF
 
5933
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5934
case "(($ac_try" in
 
5935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5936
  *) ac_try_echo=$ac_try;;
 
5937
esac
 
5938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5939
$as_echo "$ac_try_echo") >&5
 
5940
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5941
  ac_status=$?
 
5942
  grep -v '^ *+' conftest.er1 >conftest.err
 
5943
  rm -f conftest.er1
 
5944
  cat conftest.err >&5
 
5945
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5946
  (exit $ac_status); } >/dev/null && {
 
5947
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5948
         test ! -s conftest.err
 
5949
       }; then
 
5950
  :
 
5951
else
 
5952
  $as_echo "$as_me: failed program was:" >&5
 
5953
sed 's/^/| /' conftest.$ac_ext >&5
 
5954
 
 
5955
  # Broken: fails on valid input.
 
5956
continue
 
5957
fi
 
5958
 
 
5959
rm -f conftest.err conftest.$ac_ext
 
5960
 
 
5961
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5962
  # can be detected and how.
 
5963
  cat >conftest.$ac_ext <<_ACEOF
 
5964
/* confdefs.h.  */
 
5965
_ACEOF
 
5966
cat confdefs.h >>conftest.$ac_ext
 
5967
cat >>conftest.$ac_ext <<_ACEOF
 
5968
/* end confdefs.h.  */
 
5969
#include <ac_nonexistent.h>
 
5970
_ACEOF
 
5971
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5972
case "(($ac_try" in
 
5973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5974
  *) ac_try_echo=$ac_try;;
 
5975
esac
 
5976
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5977
$as_echo "$ac_try_echo") >&5
 
5978
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5979
  ac_status=$?
 
5980
  grep -v '^ *+' conftest.er1 >conftest.err
 
5981
  rm -f conftest.er1
 
5982
  cat conftest.err >&5
 
5983
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5984
  (exit $ac_status); } >/dev/null && {
 
5985
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5986
         test ! -s conftest.err
 
5987
       }; then
 
5988
  # Broken: success on invalid input.
 
5989
continue
 
5990
else
 
5991
  $as_echo "$as_me: failed program was:" >&5
 
5992
sed 's/^/| /' conftest.$ac_ext >&5
 
5993
 
 
5994
  # Passes both tests.
 
5995
ac_preproc_ok=:
 
5996
break
 
5997
fi
 
5998
 
 
5999
rm -f conftest.err conftest.$ac_ext
 
6000
 
 
6001
done
 
6002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6003
rm -f conftest.err conftest.$ac_ext
 
6004
if $ac_preproc_ok; then
 
6005
  break
 
6006
fi
 
6007
 
 
6008
    done
 
6009
    ac_cv_prog_CXXCPP=$CXXCPP
 
6010
 
 
6011
fi
 
6012
  CXXCPP=$ac_cv_prog_CXXCPP
 
6013
else
 
6014
  ac_cv_prog_CXXCPP=$CXXCPP
 
6015
fi
 
6016
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6017
$as_echo "$CXXCPP" >&6; }
 
6018
ac_preproc_ok=false
 
6019
for ac_cxx_preproc_warn_flag in '' yes
 
6020
do
 
6021
  # Use a header file that comes with gcc, so configuring glibc
 
6022
  # with a fresh cross-compiler works.
 
6023
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6024
  # <limits.h> exists even on freestanding compilers.
 
6025
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6026
  # not just through cpp. "Syntax error" is here to catch this case.
 
6027
  cat >conftest.$ac_ext <<_ACEOF
 
6028
/* confdefs.h.  */
 
6029
_ACEOF
 
6030
cat confdefs.h >>conftest.$ac_ext
 
6031
cat >>conftest.$ac_ext <<_ACEOF
 
6032
/* end confdefs.h.  */
 
6033
#ifdef __STDC__
 
6034
# include <limits.h>
 
6035
#else
 
6036
# include <assert.h>
 
6037
#endif
 
6038
                     Syntax error
 
6039
_ACEOF
 
6040
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6041
case "(($ac_try" in
 
6042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6043
  *) ac_try_echo=$ac_try;;
 
6044
esac
 
6045
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6046
$as_echo "$ac_try_echo") >&5
 
6047
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6048
  ac_status=$?
 
6049
  grep -v '^ *+' conftest.er1 >conftest.err
 
6050
  rm -f conftest.er1
 
6051
  cat conftest.err >&5
 
6052
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6053
  (exit $ac_status); } >/dev/null && {
 
6054
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6055
         test ! -s conftest.err
 
6056
       }; then
 
6057
  :
 
6058
else
 
6059
  $as_echo "$as_me: failed program was:" >&5
 
6060
sed 's/^/| /' conftest.$ac_ext >&5
 
6061
 
 
6062
  # Broken: fails on valid input.
 
6063
continue
 
6064
fi
 
6065
 
 
6066
rm -f conftest.err conftest.$ac_ext
 
6067
 
 
6068
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6069
  # can be detected and how.
 
6070
  cat >conftest.$ac_ext <<_ACEOF
 
6071
/* confdefs.h.  */
 
6072
_ACEOF
 
6073
cat confdefs.h >>conftest.$ac_ext
 
6074
cat >>conftest.$ac_ext <<_ACEOF
 
6075
/* end confdefs.h.  */
 
6076
#include <ac_nonexistent.h>
 
6077
_ACEOF
 
6078
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6079
case "(($ac_try" in
 
6080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6081
  *) ac_try_echo=$ac_try;;
 
6082
esac
 
6083
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6084
$as_echo "$ac_try_echo") >&5
 
6085
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6086
  ac_status=$?
 
6087
  grep -v '^ *+' conftest.er1 >conftest.err
 
6088
  rm -f conftest.er1
 
6089
  cat conftest.err >&5
 
6090
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6091
  (exit $ac_status); } >/dev/null && {
 
6092
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6093
         test ! -s conftest.err
 
6094
       }; then
 
6095
  # Broken: success on invalid input.
 
6096
continue
 
6097
else
 
6098
  $as_echo "$as_me: failed program was:" >&5
 
6099
sed 's/^/| /' conftest.$ac_ext >&5
 
6100
 
 
6101
  # Passes both tests.
 
6102
ac_preproc_ok=:
 
6103
break
 
6104
fi
 
6105
 
 
6106
rm -f conftest.err conftest.$ac_ext
 
6107
 
 
6108
done
 
6109
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6110
rm -f conftest.err conftest.$ac_ext
 
6111
if $ac_preproc_ok; then
 
6112
  :
 
6113
else
 
6114
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6115
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6116
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6117
See \`config.log' for more details." >&5
 
6118
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6119
See \`config.log' for more details." >&2;}
 
6120
   { (exit 1); exit 1; }; }; }
 
6121
fi
 
6122
 
 
6123
ac_ext=cpp
 
6124
ac_cpp='$CXXCPP $CPPFLAGS'
 
6125
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6126
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6127
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6128
 
 
6129
fi
 
6130
 
 
6131
 
 
6132
ac_ext=f
 
6133
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6134
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6135
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6136
if test -n "$ac_tool_prefix"; then
 
6137
  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
 
6138
  do
 
6139
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6140
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6141
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6142
$as_echo_n "checking for $ac_word... " >&6; }
 
6143
if test "${ac_cv_prog_F77+set}" = set; then
 
6144
  $as_echo_n "(cached) " >&6
 
6145
else
 
6146
  if test -n "$F77"; then
 
6147
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6148
else
 
6149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6150
for as_dir in $PATH
 
6151
do
 
6152
  IFS=$as_save_IFS
 
6153
  test -z "$as_dir" && as_dir=.
 
6154
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6155
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6156
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6157
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6158
    break 2
 
6159
  fi
 
6160
done
 
6161
done
 
6162
IFS=$as_save_IFS
 
6163
 
 
6164
fi
 
6165
fi
 
6166
F77=$ac_cv_prog_F77
 
6167
if test -n "$F77"; then
 
6168
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
6169
$as_echo "$F77" >&6; }
 
6170
else
 
6171
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6172
$as_echo "no" >&6; }
 
6173
fi
 
6174
 
 
6175
 
 
6176
    test -n "$F77" && break
 
6177
  done
 
6178
fi
 
6179
if test -z "$F77"; then
 
6180
  ac_ct_F77=$F77
 
6181
  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
 
6182
do
 
6183
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6184
set dummy $ac_prog; ac_word=$2
 
6185
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6186
$as_echo_n "checking for $ac_word... " >&6; }
 
6187
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6188
  $as_echo_n "(cached) " >&6
 
6189
else
 
6190
  if test -n "$ac_ct_F77"; then
 
6191
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6192
else
 
6193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6194
for as_dir in $PATH
 
6195
do
 
6196
  IFS=$as_save_IFS
 
6197
  test -z "$as_dir" && as_dir=.
 
6198
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6200
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6201
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6202
    break 2
 
6203
  fi
 
6204
done
 
6205
done
 
6206
IFS=$as_save_IFS
 
6207
 
 
6208
fi
 
6209
fi
 
6210
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6211
if test -n "$ac_ct_F77"; then
 
6212
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6213
$as_echo "$ac_ct_F77" >&6; }
 
6214
else
 
6215
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6216
$as_echo "no" >&6; }
 
6217
fi
 
6218
 
 
6219
 
 
6220
  test -n "$ac_ct_F77" && break
 
6221
done
 
6222
 
 
6223
  if test "x$ac_ct_F77" = x; then
 
6224
    F77=""
 
6225
  else
 
6226
    case $cross_compiling:$ac_tool_warned in
 
6227
yes:)
 
6228
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6229
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6230
ac_tool_warned=yes ;;
 
6231
esac
 
6232
    F77=$ac_ct_F77
 
6233
  fi
 
6234
fi
 
6235
 
 
6236
 
 
6237
# Provide some information about the compiler.
 
6238
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6239
set X $ac_compile
 
6240
ac_compiler=$2
 
6241
{ (ac_try="$ac_compiler --version >&5"
 
6242
case "(($ac_try" in
 
6243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6244
  *) ac_try_echo=$ac_try;;
 
6245
esac
 
6246
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6247
$as_echo "$ac_try_echo") >&5
 
6248
  (eval "$ac_compiler --version >&5") 2>&5
 
6249
  ac_status=$?
 
6250
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6251
  (exit $ac_status); }
 
6252
{ (ac_try="$ac_compiler -v >&5"
 
6253
case "(($ac_try" in
 
6254
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6255
  *) ac_try_echo=$ac_try;;
 
6256
esac
 
6257
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6258
$as_echo "$ac_try_echo") >&5
 
6259
  (eval "$ac_compiler -v >&5") 2>&5
 
6260
  ac_status=$?
 
6261
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6262
  (exit $ac_status); }
 
6263
{ (ac_try="$ac_compiler -V >&5"
 
6264
case "(($ac_try" in
 
6265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6266
  *) ac_try_echo=$ac_try;;
 
6267
esac
 
6268
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6269
$as_echo "$ac_try_echo") >&5
 
6270
  (eval "$ac_compiler -V >&5") 2>&5
 
6271
  ac_status=$?
 
6272
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6273
  (exit $ac_status); }
 
6274
rm -f a.out
 
6275
 
 
6276
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6277
# input file.  (Note that this only needs to work for GNU compilers.)
 
6278
ac_save_ext=$ac_ext
 
6279
ac_ext=F
 
6280
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6281
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
6282
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6283
  $as_echo_n "(cached) " >&6
 
6284
else
 
6285
  cat >conftest.$ac_ext <<_ACEOF
 
6286
      program main
 
6287
#ifndef __GNUC__
 
6288
       choke me
 
6289
#endif
 
6290
 
 
6291
      end
 
6292
_ACEOF
 
6293
rm -f conftest.$ac_objext
 
6294
if { (ac_try="$ac_compile"
 
6295
case "(($ac_try" in
 
6296
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6297
  *) ac_try_echo=$ac_try;;
 
6298
esac
 
6299
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6300
$as_echo "$ac_try_echo") >&5
 
6301
  (eval "$ac_compile") 2>conftest.er1
 
6302
  ac_status=$?
 
6303
  grep -v '^ *+' conftest.er1 >conftest.err
 
6304
  rm -f conftest.er1
 
6305
  cat conftest.err >&5
 
6306
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6307
  (exit $ac_status); } && {
 
6308
         test -z "$ac_f77_werror_flag" ||
 
6309
         test ! -s conftest.err
 
6310
       } && test -s conftest.$ac_objext; then
 
6311
  ac_compiler_gnu=yes
 
6312
else
 
6313
  $as_echo "$as_me: failed program was:" >&5
 
6314
sed 's/^/| /' conftest.$ac_ext >&5
 
6315
 
 
6316
        ac_compiler_gnu=no
 
6317
fi
 
6318
 
 
6319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6320
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6321
 
 
6322
fi
 
6323
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6324
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
6325
ac_ext=$ac_save_ext
 
6326
ac_test_FFLAGS=${FFLAGS+set}
 
6327
ac_save_FFLAGS=$FFLAGS
 
6328
FFLAGS=
 
6329
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6330
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
6331
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6332
  $as_echo_n "(cached) " >&6
 
6333
else
 
6334
  FFLAGS=-g
 
6335
cat >conftest.$ac_ext <<_ACEOF
 
6336
      program main
 
6337
 
 
6338
      end
 
6339
_ACEOF
 
6340
rm -f conftest.$ac_objext
 
6341
if { (ac_try="$ac_compile"
 
6342
case "(($ac_try" in
 
6343
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6344
  *) ac_try_echo=$ac_try;;
 
6345
esac
 
6346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6347
$as_echo "$ac_try_echo") >&5
 
6348
  (eval "$ac_compile") 2>conftest.er1
 
6349
  ac_status=$?
 
6350
  grep -v '^ *+' conftest.er1 >conftest.err
 
6351
  rm -f conftest.er1
 
6352
  cat conftest.err >&5
 
6353
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6354
  (exit $ac_status); } && {
 
6355
         test -z "$ac_f77_werror_flag" ||
 
6356
         test ! -s conftest.err
 
6357
       } && test -s conftest.$ac_objext; then
 
6358
  ac_cv_prog_f77_g=yes
 
6359
else
 
6360
  $as_echo "$as_me: failed program was:" >&5
 
6361
sed 's/^/| /' conftest.$ac_ext >&5
 
6362
 
 
6363
        ac_cv_prog_f77_g=no
 
6364
fi
 
6365
 
 
6366
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6367
 
 
6368
fi
 
6369
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6370
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6371
if test "$ac_test_FFLAGS" = set; then
 
6372
  FFLAGS=$ac_save_FFLAGS
 
6373
elif test $ac_cv_prog_f77_g = yes; then
 
6374
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6375
    FFLAGS="-g -O2"
 
6376
  else
 
6377
    FFLAGS="-g"
 
6378
  fi
 
6379
else
 
6380
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6381
    FFLAGS="-O2"
 
6382
  else
 
6383
    FFLAGS=
 
6384
  fi
 
6385
fi
 
6386
 
 
6387
if test $ac_compiler_gnu = yes; then
 
6388
  G77=yes
 
6389
else
 
6390
  G77=
 
6391
fi
 
6392
ac_ext=c
 
6393
ac_cpp='$CPP $CPPFLAGS'
 
6394
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6395
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6396
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6397
 
 
6398
 
 
6399
 
 
6400
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6401
# find the maximum length of command line arguments
 
6402
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6403
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6404
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6405
  $as_echo_n "(cached) " >&6
 
6406
else
 
6407
    i=0
 
6408
  teststring="ABCD"
 
6409
 
 
6410
  case $build_os in
 
6411
  msdosdjgpp*)
 
6412
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6413
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6414
    # during glob expansion).  Even if it were fixed, the result of this
 
6415
    # check would be larger than it should be.
 
6416
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6417
    ;;
 
6418
 
 
6419
  gnu*)
 
6420
    # Under GNU Hurd, this test is not required because there is
 
6421
    # no limit to the length of command line arguments.
 
6422
    # Libtool will interpret -1 as no limit whatsoever
 
6423
    lt_cv_sys_max_cmd_len=-1;
 
6424
    ;;
 
6425
 
 
6426
  cygwin* | mingw*)
 
6427
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6428
    # about 5 minutes as the teststring grows exponentially.
 
6429
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6430
    # you end up with a "frozen" computer, even though with patience
 
6431
    # the test eventually succeeds (with a max line length of 256k).
 
6432
    # Instead, let's just punt: use the minimum linelength reported by
 
6433
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6434
    lt_cv_sys_max_cmd_len=8192;
 
6435
    ;;
 
6436
 
 
6437
  amigaos*)
 
6438
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6439
    # So we just punt and use a minimum line length of 8192.
 
6440
    lt_cv_sys_max_cmd_len=8192;
 
6441
    ;;
 
6442
 
 
6443
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6444
    # This has been around since 386BSD, at least.  Likely further.
 
6445
    if test -x /sbin/sysctl; then
 
6446
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6447
    elif test -x /usr/sbin/sysctl; then
 
6448
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6449
    else
 
6450
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6451
    fi
 
6452
    # And add a safety zone
 
6453
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6454
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6455
    ;;
 
6456
 
 
6457
  interix*)
 
6458
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6459
    lt_cv_sys_max_cmd_len=196608
 
6460
    ;;
 
6461
 
 
6462
  osf*)
 
6463
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6464
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6465
    # nice to cause kernel panics so lets avoid the loop below.
 
6466
    # First set a reasonable default.
 
6467
    lt_cv_sys_max_cmd_len=16384
 
6468
    #
 
6469
    if test -x /sbin/sysconfig; then
 
6470
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6471
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6472
      esac
 
6473
    fi
 
6474
    ;;
 
6475
  sco3.2v5*)
 
6476
    lt_cv_sys_max_cmd_len=102400
 
6477
    ;;
 
6478
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6479
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6480
    if test -n "$kargmax"; then
 
6481
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6482
    else
 
6483
      lt_cv_sys_max_cmd_len=32768
 
6484
    fi
 
6485
    ;;
 
6486
  *)
 
6487
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6488
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6489
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6490
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6491
    else
 
6492
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6493
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6494
               = "XX$teststring") >/dev/null 2>&1 &&
 
6495
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6496
              lt_cv_sys_max_cmd_len=$new_result &&
 
6497
              test $i != 17 # 1/2 MB should be enough
 
6498
      do
 
6499
        i=`expr $i + 1`
 
6500
        teststring=$teststring$teststring
 
6501
      done
 
6502
      teststring=
 
6503
      # Add a significant safety factor because C++ compilers can tack on massive
 
6504
      # amounts of additional arguments before passing them to the linker.
 
6505
      # It appears as though 1/2 is a usable value.
 
6506
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6507
    fi
 
6508
    ;;
 
6509
  esac
 
6510
 
 
6511
fi
 
6512
 
 
6513
if test -n $lt_cv_sys_max_cmd_len ; then
 
6514
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6515
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6516
else
 
6517
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6518
$as_echo "none" >&6; }
 
6519
fi
 
6520
 
 
6521
 
 
6522
 
 
6523
 
 
6524
 
5362
6525
# Check for command to grab the raw symbol name followed by C symbol from nm.
5363
6526
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5364
6527
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5375
6538
# Regexp to match symbols that can be accessed directly from C.
5376
6539
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5377
6540
 
 
6541
# Transform an extracted symbol line into a proper C declaration
 
6542
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6543
 
 
6544
# Transform an extracted symbol line into symbol name and symbol address
 
6545
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'"
 
6546
 
5378
6547
# Define system-specific variables.
5379
6548
case $host_os in
5380
6549
aix*)
5381
6550
  symcode='[BCDT]'
5382
6551
  ;;
5383
 
cygwin* | mingw* | pw32* | cegcc*)
 
6552
cygwin* | mingw* | pw32*)
5384
6553
  symcode='[ABCDGISTW]'
5385
6554
  ;;
5386
 
hpux*)
 
6555
hpux*) # Its linker distinguishes data from code symbols
5387
6556
  if test "$host_cpu" = ia64; then
5388
6557
    symcode='[ABCDEGRST]'
5389
6558
  fi
 
6559
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6560
  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'"
 
6561
  ;;
 
6562
linux* | k*bsd*-gnu)
 
6563
  if test "$host_cpu" = ia64; then
 
6564
    symcode='[ABCDGIRSTW]'
 
6565
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6566
    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'"
 
6567
  fi
5390
6568
  ;;
5391
6569
irix* | nonstopux*)
5392
6570
  symcode='[BCDEGRST]'
5411
6589
  ;;
5412
6590
esac
5413
6591
 
5414
 
# If we're using GNU nm, then use its standard symbol codes.
5415
 
case `$NM -V 2>&1` in
5416
 
*GNU* | *'with BFD'*)
5417
 
  symcode='[ABCDGIRSTW]' ;;
5418
 
esac
5419
 
 
5420
 
# Transform an extracted symbol line into a proper C declaration.
5421
 
# Some systems (esp. on ia64) link data and code symbols differently,
5422
 
# so use this general approach.
5423
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5424
 
 
5425
 
# Transform an extracted symbol line into symbol name and symbol address
5426
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5427
 
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'"
5428
 
 
5429
6592
# Handle CRLF in mingw tool chain
5430
6593
opt_cr=
5431
6594
case $build_os in
5432
6595
mingw*)
5433
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6596
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5434
6597
  ;;
5435
6598
esac
5436
6599
 
5437
 
# Try without a prefix underscore, then with it.
 
6600
# If we're using GNU nm, then use its standard symbol codes.
 
6601
case `$NM -V 2>&1` in
 
6602
*GNU* | *'with BFD'*)
 
6603
  symcode='[ABCDGIRSTW]' ;;
 
6604
esac
 
6605
 
 
6606
# Try without a prefix undercore, then with it.
5438
6607
for ac_symprfx in "" "_"; do
5439
6608
 
5440
6609
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5441
6610
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5442
6611
 
5443
6612
  # Write the raw and C identifiers.
5444
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5445
 
    # Fake it for dumpbin and say T for any non-static function
5446
 
    # and D for any global variable.
5447
 
    # Also find C++ and __fastcall symbols from MSVC++,
5448
 
    # which start with @ or ?.
5449
 
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5450
 
"     {last_section=section; section=\$ 3};"\
5451
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5452
 
"     \$ 0!~/External *\|/{next};"\
5453
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5454
 
"     {if(hide[section]) next};"\
5455
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5456
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5457
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5458
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5459
 
"     ' prfx=^$ac_symprfx"
5460
 
  else
5461
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5462
 
  fi
 
6613
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5463
6614
 
5464
6615
  # Check to see that the pipe works correctly.
5465
6616
  pipe_works=no
5466
6617
 
5467
6618
  rm -f conftest*
5468
 
  cat > conftest.$ac_ext <<_LT_EOF
 
6619
  cat > conftest.$ac_ext <<EOF
5469
6620
#ifdef __cplusplus
5470
6621
extern "C" {
5471
6622
#endif
5472
6623
char nm_test_var;
5473
 
void nm_test_func(void);
5474
 
void nm_test_func(void){}
 
6624
void nm_test_func(){}
5475
6625
#ifdef __cplusplus
5476
6626
}
5477
6627
#endif
5478
6628
int main(){nm_test_var='a';nm_test_func();return(0);}
5479
 
_LT_EOF
 
6629
EOF
5480
6630
 
5481
6631
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482
6632
  (eval $ac_compile) 2>&5
5498
6648
      fi
5499
6649
 
5500
6650
      # Make sure that we snagged all the symbols we need.
5501
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5502
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5503
 
          cat <<_LT_EOF > conftest.$ac_ext
 
6651
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6652
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6653
          cat <<EOF > conftest.$ac_ext
5504
6654
#ifdef __cplusplus
5505
6655
extern "C" {
5506
6656
#endif
5507
6657
 
5508
 
_LT_EOF
 
6658
EOF
5509
6659
          # Now generate the symbol file.
5510
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5511
 
 
5512
 
          cat <<_LT_EOF >> conftest.$ac_ext
5513
 
 
5514
 
/* The mapping between symbol names and symbols.  */
 
6660
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6661
 
 
6662
          cat <<EOF >> conftest.$ac_ext
 
6663
#if defined (__STDC__) && __STDC__
 
6664
# define lt_ptr_t void *
 
6665
#else
 
6666
# define lt_ptr_t char *
 
6667
# define const
 
6668
#endif
 
6669
 
 
6670
/* The mapping between symbol names and symbols. */
5515
6671
const struct {
5516
6672
  const char *name;
5517
 
  void       *address;
 
6673
  lt_ptr_t address;
5518
6674
}
5519
 
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6675
lt_preloaded_symbols[] =
5520
6676
{
5521
 
  { "@PROGRAM@", (void *) 0 },
5522
 
_LT_EOF
5523
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5524
 
          cat <<\_LT_EOF >> conftest.$ac_ext
5525
 
  {0, (void *) 0}
 
6677
EOF
 
6678
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6679
          cat <<\EOF >> conftest.$ac_ext
 
6680
  {0, (lt_ptr_t) 0}
5526
6681
};
5527
6682
 
5528
 
/* This works around a problem in FreeBSD linker */
5529
 
#ifdef FREEBSD_WORKAROUND
5530
 
static const void *lt_preloaded_setup() {
5531
 
  return lt__PROGRAM__LTX_preloaded_symbols;
5532
 
}
5533
 
#endif
5534
 
 
5535
6683
#ifdef __cplusplus
5536
6684
}
5537
6685
#endif
5538
 
_LT_EOF
 
6686
EOF
5539
6687
          # Now try linking the two files.
5540
6688
          mv conftest.$ac_objext conftstm.$ac_objext
5541
6689
          lt_save_LIBS="$LIBS"
5587
6735
$as_echo "ok" >&6; }
5588
6736
fi
5589
6737
 
5590
 
 
5591
 
 
5592
 
 
5593
 
 
5594
 
 
5595
 
 
5596
 
 
5597
 
 
5598
 
 
5599
 
 
5600
 
 
5601
 
 
5602
 
 
5603
 
 
5604
 
 
5605
 
 
5606
 
 
5607
 
 
5608
 
 
5609
 
 
5610
 
 
5611
 
 
5612
 
# Check whether --enable-libtool-lock was given.
5613
 
if test "${enable_libtool_lock+set}" = set; then
5614
 
  enableval=$enable_libtool_lock;
5615
 
fi
5616
 
 
5617
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5618
 
 
5619
 
# Some flags need to be propagated to the compiler or linker for good
5620
 
# libtool support.
5621
 
case $host in
5622
 
ia64-*-hpux*)
5623
 
  # Find out which ABI we are using.
5624
 
  echo 'int i;' > conftest.$ac_ext
5625
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626
 
  (eval $ac_compile) 2>&5
5627
 
  ac_status=$?
5628
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629
 
  (exit $ac_status); }; then
5630
 
    case `/usr/bin/file conftest.$ac_objext` in
5631
 
      *ELF-32*)
5632
 
        HPUX_IA64_MODE="32"
5633
 
        ;;
5634
 
      *ELF-64*)
5635
 
        HPUX_IA64_MODE="64"
5636
 
        ;;
5637
 
    esac
5638
 
  fi
5639
 
  rm -rf conftest*
5640
 
  ;;
5641
 
*-*-irix6*)
5642
 
  # Find out which ABI we are using.
5643
 
  echo '#line 5643 "configure"' > conftest.$ac_ext
5644
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5645
 
  (eval $ac_compile) 2>&5
5646
 
  ac_status=$?
5647
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648
 
  (exit $ac_status); }; then
5649
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
5650
 
      case `/usr/bin/file conftest.$ac_objext` in
5651
 
        *32-bit*)
5652
 
          LD="${LD-ld} -melf32bsmip"
5653
 
          ;;
5654
 
        *N32*)
5655
 
          LD="${LD-ld} -melf32bmipn32"
5656
 
          ;;
5657
 
        *64-bit*)
5658
 
          LD="${LD-ld} -melf64bmip"
5659
 
        ;;
5660
 
      esac
5661
 
    else
5662
 
      case `/usr/bin/file conftest.$ac_objext` in
5663
 
        *32-bit*)
5664
 
          LD="${LD-ld} -32"
5665
 
          ;;
5666
 
        *N32*)
5667
 
          LD="${LD-ld} -n32"
5668
 
          ;;
5669
 
        *64-bit*)
5670
 
          LD="${LD-ld} -64"
5671
 
          ;;
5672
 
      esac
5673
 
    fi
5674
 
  fi
5675
 
  rm -rf conftest*
5676
 
  ;;
5677
 
 
5678
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5679
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5680
 
  # Find out which ABI we are using.
5681
 
  echo 'int i;' > conftest.$ac_ext
5682
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683
 
  (eval $ac_compile) 2>&5
5684
 
  ac_status=$?
5685
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686
 
  (exit $ac_status); }; then
5687
 
    case `/usr/bin/file conftest.o` in
5688
 
      *32-bit*)
5689
 
        case $host in
5690
 
          x86_64-*kfreebsd*-gnu)
5691
 
            LD="${LD-ld} -m elf_i386_fbsd"
5692
 
            ;;
5693
 
          x86_64-*linux*)
5694
 
            LD="${LD-ld} -m elf_i386"
5695
 
            ;;
5696
 
          ppc64-*linux*|powerpc64-*linux*)
5697
 
            LD="${LD-ld} -m elf32ppclinux"
5698
 
            ;;
5699
 
          s390x-*linux*)
5700
 
            LD="${LD-ld} -m elf_s390"
5701
 
            ;;
5702
 
          sparc64-*linux*)
5703
 
            LD="${LD-ld} -m elf32_sparc"
5704
 
            ;;
5705
 
        esac
5706
 
        ;;
5707
 
      *64-bit*)
5708
 
        case $host in
5709
 
          x86_64-*kfreebsd*-gnu)
5710
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
5711
 
            ;;
5712
 
          x86_64-*linux*)
5713
 
            LD="${LD-ld} -m elf_x86_64"
5714
 
            ;;
5715
 
          ppc*-*linux*|powerpc*-*linux*)
5716
 
            LD="${LD-ld} -m elf64ppc"
5717
 
            ;;
5718
 
          s390*-*linux*|s390*-*tpf*)
5719
 
            LD="${LD-ld} -m elf64_s390"
5720
 
            ;;
5721
 
          sparc*-*linux*)
5722
 
            LD="${LD-ld} -m elf64_sparc"
5723
 
            ;;
5724
 
        esac
5725
 
        ;;
5726
 
    esac
5727
 
  fi
5728
 
  rm -rf conftest*
5729
 
  ;;
5730
 
 
5731
 
*-*-sco3.2v5*)
5732
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5733
 
  SAVE_CFLAGS="$CFLAGS"
5734
 
  CFLAGS="$CFLAGS -belf"
5735
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5736
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5737
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
5738
 
  $as_echo_n "(cached) " >&6
5739
 
else
5740
 
  ac_ext=c
5741
 
ac_cpp='$CPP $CPPFLAGS'
5742
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745
 
 
5746
 
     cat >conftest.$ac_ext <<_ACEOF
5747
 
/* confdefs.h.  */
5748
 
_ACEOF
5749
 
cat confdefs.h >>conftest.$ac_ext
5750
 
cat >>conftest.$ac_ext <<_ACEOF
5751
 
/* end confdefs.h.  */
5752
 
 
5753
 
int
5754
 
main ()
5755
 
{
5756
 
 
5757
 
  ;
5758
 
  return 0;
5759
 
}
5760
 
_ACEOF
5761
 
rm -f conftest.$ac_objext conftest$ac_exeext
5762
 
if { (ac_try="$ac_link"
5763
 
case "(($ac_try" in
5764
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765
 
  *) ac_try_echo=$ac_try;;
5766
 
esac
5767
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5768
 
$as_echo "$ac_try_echo") >&5
5769
 
  (eval "$ac_link") 2>conftest.er1
5770
 
  ac_status=$?
5771
 
  grep -v '^ *+' conftest.er1 >conftest.err
5772
 
  rm -f conftest.er1
5773
 
  cat conftest.err >&5
5774
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775
 
  (exit $ac_status); } && {
5776
 
         test -z "$ac_c_werror_flag" ||
5777
 
         test ! -s conftest.err
5778
 
       } && test -s conftest$ac_exeext && {
5779
 
         test "$cross_compiling" = yes ||
5780
 
         $as_test_x conftest$ac_exeext
5781
 
       }; then
5782
 
  lt_cv_cc_needs_belf=yes
5783
 
else
5784
 
  $as_echo "$as_me: failed program was:" >&5
5785
 
sed 's/^/| /' conftest.$ac_ext >&5
5786
 
 
5787
 
        lt_cv_cc_needs_belf=no
5788
 
fi
5789
 
 
5790
 
rm -rf conftest.dSYM
5791
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5792
 
      conftest$ac_exeext conftest.$ac_ext
5793
 
     ac_ext=c
5794
 
ac_cpp='$CPP $CPPFLAGS'
5795
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798
 
 
5799
 
fi
5800
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5801
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5802
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5803
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5804
 
    CFLAGS="$SAVE_CFLAGS"
5805
 
  fi
5806
 
  ;;
5807
 
sparc*-*solaris*)
5808
 
  # Find out which ABI we are using.
5809
 
  echo 'int i;' > conftest.$ac_ext
5810
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811
 
  (eval $ac_compile) 2>&5
5812
 
  ac_status=$?
5813
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
 
  (exit $ac_status); }; then
5815
 
    case `/usr/bin/file conftest.o` in
5816
 
    *64-bit*)
5817
 
      case $lt_cv_prog_gnu_ld in
5818
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5819
 
      *)
5820
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5821
 
          LD="${LD-ld} -64"
5822
 
        fi
5823
 
        ;;
5824
 
      esac
5825
 
      ;;
5826
 
    esac
5827
 
  fi
5828
 
  rm -rf conftest*
5829
 
  ;;
5830
 
esac
5831
 
 
5832
 
need_locks="$enable_libtool_lock"
 
6738
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
6739
$as_echo_n "checking for objdir... " >&6; }
 
6740
if test "${lt_cv_objdir+set}" = set; then
 
6741
  $as_echo_n "(cached) " >&6
 
6742
else
 
6743
  rm -f .libs 2>/dev/null
 
6744
mkdir .libs 2>/dev/null
 
6745
if test -d .libs; then
 
6746
  lt_cv_objdir=.libs
 
6747
else
 
6748
  # MS-DOS does not allow filenames that begin with a dot.
 
6749
  lt_cv_objdir=_libs
 
6750
fi
 
6751
rmdir .libs 2>/dev/null
 
6752
fi
 
6753
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6754
$as_echo "$lt_cv_objdir" >&6; }
 
6755
objdir=$lt_cv_objdir
 
6756
 
 
6757
 
 
6758
 
 
6759
 
 
6760
 
 
6761
case $host_os in
 
6762
aix3*)
 
6763
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6764
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6765
  # vanish in a puff of smoke.
 
6766
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6767
    COLLECT_NAMES=
 
6768
    export COLLECT_NAMES
 
6769
  fi
 
6770
  ;;
 
6771
esac
 
6772
 
 
6773
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6774
# metacharacters that are still active within double-quoted strings.
 
6775
Xsed='sed -e 1s/^X//'
 
6776
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6777
 
 
6778
# Same as above, but do not quote variable references.
 
6779
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6780
 
 
6781
# Sed substitution to delay expansion of an escaped shell variable in a
 
6782
# double_quote_subst'ed string.
 
6783
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6784
 
 
6785
# Sed substitution to avoid accidental globbing in evaled expressions
 
6786
no_glob_subst='s/\*/\\\*/g'
 
6787
 
 
6788
# Constants:
 
6789
rm="rm -f"
 
6790
 
 
6791
# Global variables:
 
6792
default_ofile=libtool
 
6793
can_build_shared=yes
 
6794
 
 
6795
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6796
# which needs '.lib').
 
6797
libext=a
 
6798
ltmain="$ac_aux_dir/ltmain.sh"
 
6799
ofile="$default_ofile"
 
6800
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6801
 
 
6802
if test -n "$ac_tool_prefix"; then
 
6803
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6804
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6805
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6806
$as_echo_n "checking for $ac_word... " >&6; }
 
6807
if test "${ac_cv_prog_AR+set}" = set; then
 
6808
  $as_echo_n "(cached) " >&6
 
6809
else
 
6810
  if test -n "$AR"; then
 
6811
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6812
else
 
6813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6814
for as_dir in $PATH
 
6815
do
 
6816
  IFS=$as_save_IFS
 
6817
  test -z "$as_dir" && as_dir=.
 
6818
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6819
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6820
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6821
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6822
    break 2
 
6823
  fi
 
6824
done
 
6825
done
 
6826
IFS=$as_save_IFS
 
6827
 
 
6828
fi
 
6829
fi
 
6830
AR=$ac_cv_prog_AR
 
6831
if test -n "$AR"; then
 
6832
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
6833
$as_echo "$AR" >&6; }
 
6834
else
 
6835
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6836
$as_echo "no" >&6; }
 
6837
fi
 
6838
 
 
6839
 
 
6840
fi
 
6841
if test -z "$ac_cv_prog_AR"; then
 
6842
  ac_ct_AR=$AR
 
6843
  # Extract the first word of "ar", so it can be a program name with args.
 
6844
set dummy ar; ac_word=$2
 
6845
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6846
$as_echo_n "checking for $ac_word... " >&6; }
 
6847
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6848
  $as_echo_n "(cached) " >&6
 
6849
else
 
6850
  if test -n "$ac_ct_AR"; then
 
6851
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6852
else
 
6853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6854
for as_dir in $PATH
 
6855
do
 
6856
  IFS=$as_save_IFS
 
6857
  test -z "$as_dir" && as_dir=.
 
6858
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6859
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6860
    ac_cv_prog_ac_ct_AR="ar"
 
6861
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6862
    break 2
 
6863
  fi
 
6864
done
 
6865
done
 
6866
IFS=$as_save_IFS
 
6867
 
 
6868
fi
 
6869
fi
 
6870
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6871
if test -n "$ac_ct_AR"; then
 
6872
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6873
$as_echo "$ac_ct_AR" >&6; }
 
6874
else
 
6875
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6876
$as_echo "no" >&6; }
 
6877
fi
 
6878
 
 
6879
  if test "x$ac_ct_AR" = x; then
 
6880
    AR="false"
 
6881
  else
 
6882
    case $cross_compiling:$ac_tool_warned in
 
6883
yes:)
 
6884
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6885
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6886
ac_tool_warned=yes ;;
 
6887
esac
 
6888
    AR=$ac_ct_AR
 
6889
  fi
 
6890
else
 
6891
  AR="$ac_cv_prog_AR"
 
6892
fi
 
6893
 
 
6894
if test -n "$ac_tool_prefix"; then
 
6895
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6896
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6897
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6898
$as_echo_n "checking for $ac_word... " >&6; }
 
6899
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6900
  $as_echo_n "(cached) " >&6
 
6901
else
 
6902
  if test -n "$RANLIB"; then
 
6903
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6904
else
 
6905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6906
for as_dir in $PATH
 
6907
do
 
6908
  IFS=$as_save_IFS
 
6909
  test -z "$as_dir" && as_dir=.
 
6910
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6911
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6912
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6913
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6914
    break 2
 
6915
  fi
 
6916
done
 
6917
done
 
6918
IFS=$as_save_IFS
 
6919
 
 
6920
fi
 
6921
fi
 
6922
RANLIB=$ac_cv_prog_RANLIB
 
6923
if test -n "$RANLIB"; then
 
6924
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6925
$as_echo "$RANLIB" >&6; }
 
6926
else
 
6927
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6928
$as_echo "no" >&6; }
 
6929
fi
 
6930
 
 
6931
 
 
6932
fi
 
6933
if test -z "$ac_cv_prog_RANLIB"; then
 
6934
  ac_ct_RANLIB=$RANLIB
 
6935
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6936
set dummy ranlib; ac_word=$2
 
6937
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6938
$as_echo_n "checking for $ac_word... " >&6; }
 
6939
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6940
  $as_echo_n "(cached) " >&6
 
6941
else
 
6942
  if test -n "$ac_ct_RANLIB"; then
 
6943
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6944
else
 
6945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6946
for as_dir in $PATH
 
6947
do
 
6948
  IFS=$as_save_IFS
 
6949
  test -z "$as_dir" && as_dir=.
 
6950
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6951
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6952
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6953
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6954
    break 2
 
6955
  fi
 
6956
done
 
6957
done
 
6958
IFS=$as_save_IFS
 
6959
 
 
6960
fi
 
6961
fi
 
6962
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6963
if test -n "$ac_ct_RANLIB"; then
 
6964
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6965
$as_echo "$ac_ct_RANLIB" >&6; }
 
6966
else
 
6967
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6968
$as_echo "no" >&6; }
 
6969
fi
 
6970
 
 
6971
  if test "x$ac_ct_RANLIB" = x; then
 
6972
    RANLIB=":"
 
6973
  else
 
6974
    case $cross_compiling:$ac_tool_warned in
 
6975
yes:)
 
6976
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6977
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6978
ac_tool_warned=yes ;;
 
6979
esac
 
6980
    RANLIB=$ac_ct_RANLIB
 
6981
  fi
 
6982
else
 
6983
  RANLIB="$ac_cv_prog_RANLIB"
 
6984
fi
 
6985
 
 
6986
if test -n "$ac_tool_prefix"; then
 
6987
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6988
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6989
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6990
$as_echo_n "checking for $ac_word... " >&6; }
 
6991
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6992
  $as_echo_n "(cached) " >&6
 
6993
else
 
6994
  if test -n "$STRIP"; then
 
6995
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6996
else
 
6997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6998
for as_dir in $PATH
 
6999
do
 
7000
  IFS=$as_save_IFS
 
7001
  test -z "$as_dir" && as_dir=.
 
7002
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7003
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7004
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7005
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7006
    break 2
 
7007
  fi
 
7008
done
 
7009
done
 
7010
IFS=$as_save_IFS
 
7011
 
 
7012
fi
 
7013
fi
 
7014
STRIP=$ac_cv_prog_STRIP
 
7015
if test -n "$STRIP"; then
 
7016
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
7017
$as_echo "$STRIP" >&6; }
 
7018
else
 
7019
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7020
$as_echo "no" >&6; }
 
7021
fi
 
7022
 
 
7023
 
 
7024
fi
 
7025
if test -z "$ac_cv_prog_STRIP"; then
 
7026
  ac_ct_STRIP=$STRIP
 
7027
  # Extract the first word of "strip", so it can be a program name with args.
 
7028
set dummy strip; ac_word=$2
 
7029
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7030
$as_echo_n "checking for $ac_word... " >&6; }
 
7031
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7032
  $as_echo_n "(cached) " >&6
 
7033
else
 
7034
  if test -n "$ac_ct_STRIP"; then
 
7035
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7036
else
 
7037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7038
for as_dir in $PATH
 
7039
do
 
7040
  IFS=$as_save_IFS
 
7041
  test -z "$as_dir" && as_dir=.
 
7042
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7043
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7044
    ac_cv_prog_ac_ct_STRIP="strip"
 
7045
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7046
    break 2
 
7047
  fi
 
7048
done
 
7049
done
 
7050
IFS=$as_save_IFS
 
7051
 
 
7052
fi
 
7053
fi
 
7054
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7055
if test -n "$ac_ct_STRIP"; then
 
7056
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7057
$as_echo "$ac_ct_STRIP" >&6; }
 
7058
else
 
7059
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7060
$as_echo "no" >&6; }
 
7061
fi
 
7062
 
 
7063
  if test "x$ac_ct_STRIP" = x; then
 
7064
    STRIP=":"
 
7065
  else
 
7066
    case $cross_compiling:$ac_tool_warned in
 
7067
yes:)
 
7068
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7069
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7070
ac_tool_warned=yes ;;
 
7071
esac
 
7072
    STRIP=$ac_ct_STRIP
 
7073
  fi
 
7074
else
 
7075
  STRIP="$ac_cv_prog_STRIP"
 
7076
fi
 
7077
 
 
7078
 
 
7079
old_CC="$CC"
 
7080
old_CFLAGS="$CFLAGS"
 
7081
 
 
7082
# Set sane defaults for various variables
 
7083
test -z "$AR" && AR=ar
 
7084
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7085
test -z "$AS" && AS=as
 
7086
test -z "$CC" && CC=cc
 
7087
test -z "$LTCC" && LTCC=$CC
 
7088
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7089
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7090
test -z "$LD" && LD=ld
 
7091
test -z "$LN_S" && LN_S="ln -s"
 
7092
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7093
test -z "$NM" && NM=nm
 
7094
test -z "$SED" && SED=sed
 
7095
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7096
test -z "$RANLIB" && RANLIB=:
 
7097
test -z "$STRIP" && STRIP=:
 
7098
test -z "$ac_objext" && ac_objext=o
 
7099
 
 
7100
# Determine commands to create old-style static archives.
 
7101
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7102
old_postinstall_cmds='chmod 644 $oldlib'
 
7103
old_postuninstall_cmds=
 
7104
 
 
7105
if test -n "$RANLIB"; then
 
7106
  case $host_os in
 
7107
  openbsd*)
 
7108
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7109
    ;;
 
7110
  *)
 
7111
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7112
    ;;
 
7113
  esac
 
7114
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7115
fi
 
7116
 
 
7117
for cc_temp in $compiler""; do
 
7118
  case $cc_temp in
 
7119
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7120
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7121
    \-*) ;;
 
7122
    *) break;;
 
7123
  esac
 
7124
done
 
7125
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7126
 
 
7127
 
 
7128
# Only perform the check for file, if the check method requires it
 
7129
case $deplibs_check_method in
 
7130
file_magic*)
 
7131
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7132
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7133
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7134
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7135
  $as_echo_n "(cached) " >&6
 
7136
else
 
7137
  case $MAGIC_CMD in
 
7138
[\\/*] |  ?:[\\/]*)
 
7139
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7140
  ;;
 
7141
*)
 
7142
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7143
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7144
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7145
  for ac_dir in $ac_dummy; do
 
7146
    IFS="$lt_save_ifs"
 
7147
    test -z "$ac_dir" && ac_dir=.
 
7148
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7149
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7150
      if test -n "$file_magic_test_file"; then
 
7151
        case $deplibs_check_method in
 
7152
        "file_magic "*)
 
7153
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7154
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7155
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7156
            $EGREP "$file_magic_regex" > /dev/null; then
 
7157
            :
 
7158
          else
 
7159
            cat <<EOF 1>&2
 
7160
 
 
7161
*** Warning: the command libtool uses to detect shared libraries,
 
7162
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7163
*** The result is that libtool may fail to recognize shared libraries
 
7164
*** as such.  This will affect the creation of libtool libraries that
 
7165
*** depend on shared libraries, but programs linked with such libtool
 
7166
*** libraries will work regardless of this problem.  Nevertheless, you
 
7167
*** may want to report the problem to your system manager and/or to
 
7168
*** bug-libtool@gnu.org
 
7169
 
 
7170
EOF
 
7171
          fi ;;
 
7172
        esac
 
7173
      fi
 
7174
      break
 
7175
    fi
 
7176
  done
 
7177
  IFS="$lt_save_ifs"
 
7178
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7179
  ;;
 
7180
esac
 
7181
fi
 
7182
 
 
7183
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7184
if test -n "$MAGIC_CMD"; then
 
7185
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7186
$as_echo "$MAGIC_CMD" >&6; }
 
7187
else
 
7188
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7189
$as_echo "no" >&6; }
 
7190
fi
 
7191
 
 
7192
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7193
  if test -n "$ac_tool_prefix"; then
 
7194
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7195
$as_echo_n "checking for file... " >&6; }
 
7196
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7197
  $as_echo_n "(cached) " >&6
 
7198
else
 
7199
  case $MAGIC_CMD in
 
7200
[\\/*] |  ?:[\\/]*)
 
7201
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7202
  ;;
 
7203
*)
 
7204
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7205
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7206
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7207
  for ac_dir in $ac_dummy; do
 
7208
    IFS="$lt_save_ifs"
 
7209
    test -z "$ac_dir" && ac_dir=.
 
7210
    if test -f $ac_dir/file; then
 
7211
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7212
      if test -n "$file_magic_test_file"; then
 
7213
        case $deplibs_check_method in
 
7214
        "file_magic "*)
 
7215
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7216
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7217
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7218
            $EGREP "$file_magic_regex" > /dev/null; then
 
7219
            :
 
7220
          else
 
7221
            cat <<EOF 1>&2
 
7222
 
 
7223
*** Warning: the command libtool uses to detect shared libraries,
 
7224
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7225
*** The result is that libtool may fail to recognize shared libraries
 
7226
*** as such.  This will affect the creation of libtool libraries that
 
7227
*** depend on shared libraries, but programs linked with such libtool
 
7228
*** libraries will work regardless of this problem.  Nevertheless, you
 
7229
*** may want to report the problem to your system manager and/or to
 
7230
*** bug-libtool@gnu.org
 
7231
 
 
7232
EOF
 
7233
          fi ;;
 
7234
        esac
 
7235
      fi
 
7236
      break
 
7237
    fi
 
7238
  done
 
7239
  IFS="$lt_save_ifs"
 
7240
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7241
  ;;
 
7242
esac
 
7243
fi
 
7244
 
 
7245
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7246
if test -n "$MAGIC_CMD"; then
 
7247
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7248
$as_echo "$MAGIC_CMD" >&6; }
 
7249
else
 
7250
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7251
$as_echo "no" >&6; }
 
7252
fi
 
7253
 
 
7254
  else
 
7255
    MAGIC_CMD=:
 
7256
  fi
 
7257
fi
 
7258
 
 
7259
  fi
 
7260
  ;;
 
7261
esac
5833
7262
 
5834
7263
 
5835
7264
  case $host_os in
6018
7447
  NMEDIT="$ac_cv_prog_NMEDIT"
6019
7448
fi
6020
7449
 
6021
 
    if test -n "$ac_tool_prefix"; then
6022
 
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6023
 
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6024
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6025
 
$as_echo_n "checking for $ac_word... " >&6; }
6026
 
if test "${ac_cv_prog_LIPO+set}" = set; then
6027
 
  $as_echo_n "(cached) " >&6
6028
 
else
6029
 
  if test -n "$LIPO"; then
6030
 
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6031
 
else
6032
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033
 
for as_dir in $PATH
6034
 
do
6035
 
  IFS=$as_save_IFS
6036
 
  test -z "$as_dir" && as_dir=.
6037
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6038
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039
 
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6040
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041
 
    break 2
6042
 
  fi
6043
 
done
6044
 
done
6045
 
IFS=$as_save_IFS
6046
 
 
6047
 
fi
6048
 
fi
6049
 
LIPO=$ac_cv_prog_LIPO
6050
 
if test -n "$LIPO"; then
6051
 
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6052
 
$as_echo "$LIPO" >&6; }
6053
 
else
6054
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6055
 
$as_echo "no" >&6; }
6056
 
fi
6057
 
 
6058
 
 
6059
 
fi
6060
 
if test -z "$ac_cv_prog_LIPO"; then
6061
 
  ac_ct_LIPO=$LIPO
6062
 
  # Extract the first word of "lipo", so it can be a program name with args.
6063
 
set dummy lipo; ac_word=$2
6064
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6065
 
$as_echo_n "checking for $ac_word... " >&6; }
6066
 
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6067
 
  $as_echo_n "(cached) " >&6
6068
 
else
6069
 
  if test -n "$ac_ct_LIPO"; then
6070
 
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6071
 
else
6072
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073
 
for as_dir in $PATH
6074
 
do
6075
 
  IFS=$as_save_IFS
6076
 
  test -z "$as_dir" && as_dir=.
6077
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6078
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079
 
    ac_cv_prog_ac_ct_LIPO="lipo"
6080
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081
 
    break 2
6082
 
  fi
6083
 
done
6084
 
done
6085
 
IFS=$as_save_IFS
6086
 
 
6087
 
fi
6088
 
fi
6089
 
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6090
 
if test -n "$ac_ct_LIPO"; then
6091
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6092
 
$as_echo "$ac_ct_LIPO" >&6; }
6093
 
else
6094
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6095
 
$as_echo "no" >&6; }
6096
 
fi
6097
 
 
6098
 
  if test "x$ac_ct_LIPO" = x; then
6099
 
    LIPO=":"
6100
 
  else
6101
 
    case $cross_compiling:$ac_tool_warned in
6102
 
yes:)
6103
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6104
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105
 
ac_tool_warned=yes ;;
6106
 
esac
6107
 
    LIPO=$ac_ct_LIPO
6108
 
  fi
6109
 
else
6110
 
  LIPO="$ac_cv_prog_LIPO"
6111
 
fi
6112
 
 
6113
 
    if test -n "$ac_tool_prefix"; then
6114
 
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6115
 
set dummy ${ac_tool_prefix}otool; ac_word=$2
6116
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6117
 
$as_echo_n "checking for $ac_word... " >&6; }
6118
 
if test "${ac_cv_prog_OTOOL+set}" = set; then
6119
 
  $as_echo_n "(cached) " >&6
6120
 
else
6121
 
  if test -n "$OTOOL"; then
6122
 
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6123
 
else
6124
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125
 
for as_dir in $PATH
6126
 
do
6127
 
  IFS=$as_save_IFS
6128
 
  test -z "$as_dir" && as_dir=.
6129
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6130
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131
 
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6132
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133
 
    break 2
6134
 
  fi
6135
 
done
6136
 
done
6137
 
IFS=$as_save_IFS
6138
 
 
6139
 
fi
6140
 
fi
6141
 
OTOOL=$ac_cv_prog_OTOOL
6142
 
if test -n "$OTOOL"; then
6143
 
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6144
 
$as_echo "$OTOOL" >&6; }
6145
 
else
6146
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6147
 
$as_echo "no" >&6; }
6148
 
fi
6149
 
 
6150
 
 
6151
 
fi
6152
 
if test -z "$ac_cv_prog_OTOOL"; then
6153
 
  ac_ct_OTOOL=$OTOOL
6154
 
  # Extract the first word of "otool", so it can be a program name with args.
6155
 
set dummy otool; ac_word=$2
6156
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6157
 
$as_echo_n "checking for $ac_word... " >&6; }
6158
 
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6159
 
  $as_echo_n "(cached) " >&6
6160
 
else
6161
 
  if test -n "$ac_ct_OTOOL"; then
6162
 
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6163
 
else
6164
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165
 
for as_dir in $PATH
6166
 
do
6167
 
  IFS=$as_save_IFS
6168
 
  test -z "$as_dir" && as_dir=.
6169
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6170
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171
 
    ac_cv_prog_ac_ct_OTOOL="otool"
6172
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173
 
    break 2
6174
 
  fi
6175
 
done
6176
 
done
6177
 
IFS=$as_save_IFS
6178
 
 
6179
 
fi
6180
 
fi
6181
 
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6182
 
if test -n "$ac_ct_OTOOL"; then
6183
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6184
 
$as_echo "$ac_ct_OTOOL" >&6; }
6185
 
else
6186
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6187
 
$as_echo "no" >&6; }
6188
 
fi
6189
 
 
6190
 
  if test "x$ac_ct_OTOOL" = x; then
6191
 
    OTOOL=":"
6192
 
  else
6193
 
    case $cross_compiling:$ac_tool_warned in
6194
 
yes:)
6195
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6196
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197
 
ac_tool_warned=yes ;;
6198
 
esac
6199
 
    OTOOL=$ac_ct_OTOOL
6200
 
  fi
6201
 
else
6202
 
  OTOOL="$ac_cv_prog_OTOOL"
6203
 
fi
6204
 
 
6205
 
    if test -n "$ac_tool_prefix"; then
6206
 
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6207
 
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6208
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6209
 
$as_echo_n "checking for $ac_word... " >&6; }
6210
 
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6211
 
  $as_echo_n "(cached) " >&6
6212
 
else
6213
 
  if test -n "$OTOOL64"; then
6214
 
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6215
 
else
6216
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217
 
for as_dir in $PATH
6218
 
do
6219
 
  IFS=$as_save_IFS
6220
 
  test -z "$as_dir" && as_dir=.
6221
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6222
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223
 
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6224
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225
 
    break 2
6226
 
  fi
6227
 
done
6228
 
done
6229
 
IFS=$as_save_IFS
6230
 
 
6231
 
fi
6232
 
fi
6233
 
OTOOL64=$ac_cv_prog_OTOOL64
6234
 
if test -n "$OTOOL64"; then
6235
 
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6236
 
$as_echo "$OTOOL64" >&6; }
6237
 
else
6238
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6239
 
$as_echo "no" >&6; }
6240
 
fi
6241
 
 
6242
 
 
6243
 
fi
6244
 
if test -z "$ac_cv_prog_OTOOL64"; then
6245
 
  ac_ct_OTOOL64=$OTOOL64
6246
 
  # Extract the first word of "otool64", so it can be a program name with args.
6247
 
set dummy otool64; ac_word=$2
6248
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6249
 
$as_echo_n "checking for $ac_word... " >&6; }
6250
 
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6251
 
  $as_echo_n "(cached) " >&6
6252
 
else
6253
 
  if test -n "$ac_ct_OTOOL64"; then
6254
 
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6255
 
else
6256
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257
 
for as_dir in $PATH
6258
 
do
6259
 
  IFS=$as_save_IFS
6260
 
  test -z "$as_dir" && as_dir=.
6261
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6262
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263
 
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6264
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265
 
    break 2
6266
 
  fi
6267
 
done
6268
 
done
6269
 
IFS=$as_save_IFS
6270
 
 
6271
 
fi
6272
 
fi
6273
 
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6274
 
if test -n "$ac_ct_OTOOL64"; then
6275
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6276
 
$as_echo "$ac_ct_OTOOL64" >&6; }
6277
 
else
6278
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6279
 
$as_echo "no" >&6; }
6280
 
fi
6281
 
 
6282
 
  if test "x$ac_ct_OTOOL64" = x; then
6283
 
    OTOOL64=":"
6284
 
  else
6285
 
    case $cross_compiling:$ac_tool_warned in
6286
 
yes:)
6287
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6288
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289
 
ac_tool_warned=yes ;;
6290
 
esac
6291
 
    OTOOL64=$ac_ct_OTOOL64
6292
 
  fi
6293
 
else
6294
 
  OTOOL64="$ac_cv_prog_OTOOL64"
6295
 
fi
6296
 
 
6297
 
 
6298
 
 
6299
 
 
6300
 
 
6301
 
 
6302
 
 
6303
 
 
6304
 
 
6305
 
 
6306
 
 
6307
 
 
6308
 
 
6309
 
 
6310
 
 
6311
 
 
6312
 
 
6313
 
 
6314
 
 
6315
 
 
6316
 
 
6317
 
 
6318
 
 
6319
 
 
6320
 
 
6321
 
 
6322
7450
 
6323
7451
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6324
7452
$as_echo_n "checking for -single_module linker flag... " >&6; }
6327
7455
else
6328
7456
  lt_cv_apple_cc_single_mod=no
6329
7457
      if test -z "${LT_MULTI_MODULE}"; then
6330
 
        # By default we will add the -single_module flag. You can override
6331
 
        # by either setting the environment variable LT_MULTI_MODULE
6332
 
        # non-empty at configure time, or by adding -multi_module to the
6333
 
        # link flags.
6334
 
        rm -rf libconftest.dylib*
6335
 
        echo "int foo(void){return 1;}" > conftest.c
6336
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6337
 
-dynamiclib -Wl,-single_module conftest.c" >&5
6338
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6339
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6340
 
        _lt_result=$?
6341
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6342
 
          lt_cv_apple_cc_single_mod=yes
6343
 
        else
6344
 
          cat conftest.err >&5
6345
 
        fi
6346
 
        rm -rf libconftest.dylib*
6347
 
        rm -f conftest.*
 
7458
   # By default we will add the -single_module flag. You can override
 
7459
   # by either setting the environment variable LT_MULTI_MODULE
 
7460
   # non-empty at configure time, or by adding -multi_module to the
 
7461
   # link flags.
 
7462
   echo "int foo(void){return 1;}" > conftest.c
 
7463
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7464
     -dynamiclib ${wl}-single_module conftest.c
 
7465
   if test -f libconftest.dylib; then
 
7466
     lt_cv_apple_cc_single_mod=yes
 
7467
     rm -rf libconftest.dylib*
 
7468
   fi
 
7469
   rm conftest.c
6348
7470
      fi
6349
7471
fi
6350
7472
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6405
7527
rm -rf conftest.dSYM
6406
7528
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407
7529
      conftest$ac_exeext conftest.$ac_ext
6408
 
        LDFLAGS="$save_LDFLAGS"
 
7530
   LDFLAGS="$save_LDFLAGS"
6409
7531
 
6410
7532
fi
6411
7533
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6412
7534
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6413
7535
    case $host_os in
6414
 
    rhapsody* | darwin1.[012])
 
7536
    rhapsody* | darwin1.[0123])
6415
7537
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6416
7538
    darwin1.*)
6417
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6418
 
    darwin*) # darwin 5.x on
 
7539
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7540
    darwin*)
6419
7541
      # if running on 10.5 or later, the deployment target defaults
6420
7542
      # to the OS version, if on x86, and 10.4, the deployment
6421
7543
      # target defaults to 10.4. Don't you love it?
6422
7544
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6423
 
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6424
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6425
 
        10.[012]*)
6426
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6427
 
        10.*)
6428
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7545
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7546
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7547
   10.[012]*)
 
7548
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7549
   10.*)
 
7550
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6429
7551
      esac
6430
7552
    ;;
6431
7553
  esac
6435
7557
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6436
7558
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6437
7559
    else
6438
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7560
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6439
7561
    fi
6440
7562
    if test "$DSYMUTIL" != ":"; then
6441
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7563
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
6442
7564
    else
6443
7565
      _lt_dsymutil=
6444
7566
    fi
6445
7567
    ;;
6446
7568
  esac
6447
7569
 
6448
 
ac_ext=c
6449
 
ac_cpp='$CPP $CPPFLAGS'
6450
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6453
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6454
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6455
 
# On Suns, sometimes $CPP names a directory.
6456
 
if test -n "$CPP" && test -d "$CPP"; then
6457
 
  CPP=
6458
 
fi
6459
 
if test -z "$CPP"; then
6460
 
  if test "${ac_cv_prog_CPP+set}" = set; then
6461
 
  $as_echo_n "(cached) " >&6
6462
 
else
6463
 
      # Double quotes because CPP needs to be expanded
6464
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6465
 
    do
6466
 
      ac_preproc_ok=false
6467
 
for ac_c_preproc_warn_flag in '' yes
6468
 
do
6469
 
  # Use a header file that comes with gcc, so configuring glibc
6470
 
  # with a fresh cross-compiler works.
6471
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6472
 
  # <limits.h> exists even on freestanding compilers.
6473
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6474
 
  # not just through cpp. "Syntax error" is here to catch this case.
6475
 
  cat >conftest.$ac_ext <<_ACEOF
6476
 
/* confdefs.h.  */
6477
 
_ACEOF
6478
 
cat confdefs.h >>conftest.$ac_ext
6479
 
cat >>conftest.$ac_ext <<_ACEOF
6480
 
/* end confdefs.h.  */
6481
 
#ifdef __STDC__
6482
 
# include <limits.h>
6483
 
#else
6484
 
# include <assert.h>
6485
 
#endif
6486
 
                     Syntax error
6487
 
_ACEOF
6488
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6489
 
case "(($ac_try" in
6490
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491
 
  *) ac_try_echo=$ac_try;;
6492
 
esac
6493
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6494
 
$as_echo "$ac_try_echo") >&5
6495
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6496
 
  ac_status=$?
6497
 
  grep -v '^ *+' conftest.er1 >conftest.err
6498
 
  rm -f conftest.er1
6499
 
  cat conftest.err >&5
6500
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501
 
  (exit $ac_status); } >/dev/null && {
6502
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6503
 
         test ! -s conftest.err
6504
 
       }; then
6505
 
  :
6506
 
else
6507
 
  $as_echo "$as_me: failed program was:" >&5
6508
 
sed 's/^/| /' conftest.$ac_ext >&5
6509
 
 
6510
 
  # Broken: fails on valid input.
6511
 
continue
6512
 
fi
6513
 
 
6514
 
rm -f conftest.err conftest.$ac_ext
6515
 
 
6516
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6517
 
  # can be detected and how.
6518
 
  cat >conftest.$ac_ext <<_ACEOF
6519
 
/* confdefs.h.  */
6520
 
_ACEOF
6521
 
cat confdefs.h >>conftest.$ac_ext
6522
 
cat >>conftest.$ac_ext <<_ACEOF
6523
 
/* end confdefs.h.  */
6524
 
#include <ac_nonexistent.h>
6525
 
_ACEOF
6526
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6527
 
case "(($ac_try" in
6528
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529
 
  *) ac_try_echo=$ac_try;;
6530
 
esac
6531
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532
 
$as_echo "$ac_try_echo") >&5
6533
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6534
 
  ac_status=$?
6535
 
  grep -v '^ *+' conftest.er1 >conftest.err
6536
 
  rm -f conftest.er1
6537
 
  cat conftest.err >&5
6538
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539
 
  (exit $ac_status); } >/dev/null && {
6540
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6541
 
         test ! -s conftest.err
6542
 
       }; then
6543
 
  # Broken: success on invalid input.
6544
 
continue
6545
 
else
6546
 
  $as_echo "$as_me: failed program was:" >&5
6547
 
sed 's/^/| /' conftest.$ac_ext >&5
6548
 
 
6549
 
  # Passes both tests.
6550
 
ac_preproc_ok=:
6551
 
break
6552
 
fi
6553
 
 
6554
 
rm -f conftest.err conftest.$ac_ext
6555
 
 
6556
 
done
6557
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6558
 
rm -f conftest.err conftest.$ac_ext
6559
 
if $ac_preproc_ok; then
6560
 
  break
6561
 
fi
6562
 
 
6563
 
    done
6564
 
    ac_cv_prog_CPP=$CPP
6565
 
 
6566
 
fi
6567
 
  CPP=$ac_cv_prog_CPP
6568
 
else
6569
 
  ac_cv_prog_CPP=$CPP
6570
 
fi
6571
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6572
 
$as_echo "$CPP" >&6; }
6573
 
ac_preproc_ok=false
6574
 
for ac_c_preproc_warn_flag in '' yes
6575
 
do
6576
 
  # Use a header file that comes with gcc, so configuring glibc
6577
 
  # with a fresh cross-compiler works.
6578
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579
 
  # <limits.h> exists even on freestanding compilers.
6580
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6581
 
  # not just through cpp. "Syntax error" is here to catch this case.
6582
 
  cat >conftest.$ac_ext <<_ACEOF
6583
 
/* confdefs.h.  */
6584
 
_ACEOF
6585
 
cat confdefs.h >>conftest.$ac_ext
6586
 
cat >>conftest.$ac_ext <<_ACEOF
6587
 
/* end confdefs.h.  */
6588
 
#ifdef __STDC__
6589
 
# include <limits.h>
6590
 
#else
6591
 
# include <assert.h>
6592
 
#endif
6593
 
                     Syntax error
6594
 
_ACEOF
6595
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6596
 
case "(($ac_try" in
6597
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598
 
  *) ac_try_echo=$ac_try;;
6599
 
esac
6600
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601
 
$as_echo "$ac_try_echo") >&5
6602
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6603
 
  ac_status=$?
6604
 
  grep -v '^ *+' conftest.er1 >conftest.err
6605
 
  rm -f conftest.er1
6606
 
  cat conftest.err >&5
6607
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608
 
  (exit $ac_status); } >/dev/null && {
6609
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610
 
         test ! -s conftest.err
6611
 
       }; then
6612
 
  :
6613
 
else
6614
 
  $as_echo "$as_me: failed program was:" >&5
6615
 
sed 's/^/| /' conftest.$ac_ext >&5
6616
 
 
6617
 
  # Broken: fails on valid input.
6618
 
continue
6619
 
fi
6620
 
 
6621
 
rm -f conftest.err conftest.$ac_ext
6622
 
 
6623
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6624
 
  # can be detected and how.
6625
 
  cat >conftest.$ac_ext <<_ACEOF
6626
 
/* confdefs.h.  */
6627
 
_ACEOF
6628
 
cat confdefs.h >>conftest.$ac_ext
6629
 
cat >>conftest.$ac_ext <<_ACEOF
6630
 
/* end confdefs.h.  */
6631
 
#include <ac_nonexistent.h>
6632
 
_ACEOF
6633
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6634
 
case "(($ac_try" in
6635
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636
 
  *) ac_try_echo=$ac_try;;
6637
 
esac
6638
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639
 
$as_echo "$ac_try_echo") >&5
6640
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6641
 
  ac_status=$?
6642
 
  grep -v '^ *+' conftest.er1 >conftest.err
6643
 
  rm -f conftest.er1
6644
 
  cat conftest.err >&5
6645
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646
 
  (exit $ac_status); } >/dev/null && {
6647
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6648
 
         test ! -s conftest.err
6649
 
       }; then
6650
 
  # Broken: success on invalid input.
6651
 
continue
6652
 
else
6653
 
  $as_echo "$as_me: failed program was:" >&5
6654
 
sed 's/^/| /' conftest.$ac_ext >&5
6655
 
 
6656
 
  # Passes both tests.
6657
 
ac_preproc_ok=:
6658
 
break
6659
 
fi
6660
 
 
6661
 
rm -f conftest.err conftest.$ac_ext
6662
 
 
6663
 
done
6664
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6665
 
rm -f conftest.err conftest.$ac_ext
6666
 
if $ac_preproc_ok; then
6667
 
  :
6668
 
else
6669
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6670
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6671
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6672
 
See \`config.log' for more details." >&5
6673
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6674
 
See \`config.log' for more details." >&2;}
6675
 
   { (exit 1); exit 1; }; }; }
6676
 
fi
6677
 
 
6678
 
ac_ext=c
6679
 
ac_cpp='$CPP $CPPFLAGS'
6680
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
 
 
6684
 
 
6685
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6686
 
$as_echo_n "checking for ANSI C header files... " >&6; }
6687
 
if test "${ac_cv_header_stdc+set}" = set; then
6688
 
  $as_echo_n "(cached) " >&6
6689
 
else
6690
 
  cat >conftest.$ac_ext <<_ACEOF
6691
 
/* confdefs.h.  */
6692
 
_ACEOF
6693
 
cat confdefs.h >>conftest.$ac_ext
6694
 
cat >>conftest.$ac_ext <<_ACEOF
6695
 
/* end confdefs.h.  */
6696
 
#include <stdlib.h>
6697
 
#include <stdarg.h>
6698
 
#include <string.h>
6699
 
#include <float.h>
6700
 
 
6701
 
int
6702
 
main ()
6703
 
{
6704
 
 
6705
 
  ;
6706
 
  return 0;
6707
 
}
6708
 
_ACEOF
6709
 
rm -f conftest.$ac_objext
6710
 
if { (ac_try="$ac_compile"
6711
 
case "(($ac_try" in
6712
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713
 
  *) ac_try_echo=$ac_try;;
6714
 
esac
6715
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6716
 
$as_echo "$ac_try_echo") >&5
6717
 
  (eval "$ac_compile") 2>conftest.er1
6718
 
  ac_status=$?
6719
 
  grep -v '^ *+' conftest.er1 >conftest.err
6720
 
  rm -f conftest.er1
6721
 
  cat conftest.err >&5
6722
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723
 
  (exit $ac_status); } && {
6724
 
         test -z "$ac_c_werror_flag" ||
6725
 
         test ! -s conftest.err
6726
 
       } && test -s conftest.$ac_objext; then
6727
 
  ac_cv_header_stdc=yes
6728
 
else
6729
 
  $as_echo "$as_me: failed program was:" >&5
6730
 
sed 's/^/| /' conftest.$ac_ext >&5
6731
 
 
6732
 
        ac_cv_header_stdc=no
6733
 
fi
6734
 
 
6735
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736
 
 
6737
 
if test $ac_cv_header_stdc = yes; then
6738
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6739
 
  cat >conftest.$ac_ext <<_ACEOF
6740
 
/* confdefs.h.  */
6741
 
_ACEOF
6742
 
cat confdefs.h >>conftest.$ac_ext
6743
 
cat >>conftest.$ac_ext <<_ACEOF
6744
 
/* end confdefs.h.  */
6745
 
#include <string.h>
6746
 
 
6747
 
_ACEOF
6748
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749
 
  $EGREP "memchr" >/dev/null 2>&1; then
6750
 
  :
6751
 
else
6752
 
  ac_cv_header_stdc=no
6753
 
fi
6754
 
rm -f conftest*
6755
 
 
6756
 
fi
6757
 
 
6758
 
if test $ac_cv_header_stdc = yes; then
6759
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6760
 
  cat >conftest.$ac_ext <<_ACEOF
6761
 
/* confdefs.h.  */
6762
 
_ACEOF
6763
 
cat confdefs.h >>conftest.$ac_ext
6764
 
cat >>conftest.$ac_ext <<_ACEOF
6765
 
/* end confdefs.h.  */
6766
 
#include <stdlib.h>
6767
 
 
6768
 
_ACEOF
6769
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6770
 
  $EGREP "free" >/dev/null 2>&1; then
6771
 
  :
6772
 
else
6773
 
  ac_cv_header_stdc=no
6774
 
fi
6775
 
rm -f conftest*
6776
 
 
6777
 
fi
6778
 
 
6779
 
if test $ac_cv_header_stdc = yes; then
6780
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6781
 
  if test "$cross_compiling" = yes; then
6782
 
  :
6783
 
else
6784
 
  cat >conftest.$ac_ext <<_ACEOF
6785
 
/* confdefs.h.  */
6786
 
_ACEOF
6787
 
cat confdefs.h >>conftest.$ac_ext
6788
 
cat >>conftest.$ac_ext <<_ACEOF
6789
 
/* end confdefs.h.  */
6790
 
#include <ctype.h>
6791
 
#include <stdlib.h>
6792
 
#if ((' ' & 0x0FF) == 0x020)
6793
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6794
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6795
 
#else
6796
 
# define ISLOWER(c) \
6797
 
                   (('a' <= (c) && (c) <= 'i') \
6798
 
                     || ('j' <= (c) && (c) <= 'r') \
6799
 
                     || ('s' <= (c) && (c) <= 'z'))
6800
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6801
 
#endif
6802
 
 
6803
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6804
 
int
6805
 
main ()
6806
 
{
6807
 
  int i;
6808
 
  for (i = 0; i < 256; i++)
6809
 
    if (XOR (islower (i), ISLOWER (i))
6810
 
        || toupper (i) != TOUPPER (i))
6811
 
      return 2;
6812
 
  return 0;
6813
 
}
6814
 
_ACEOF
6815
 
rm -f conftest$ac_exeext
6816
 
if { (ac_try="$ac_link"
6817
 
case "(($ac_try" in
6818
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819
 
  *) ac_try_echo=$ac_try;;
6820
 
esac
6821
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6822
 
$as_echo "$ac_try_echo") >&5
6823
 
  (eval "$ac_link") 2>&5
6824
 
  ac_status=$?
6825
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6827
 
  { (case "(($ac_try" in
6828
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829
 
  *) ac_try_echo=$ac_try;;
6830
 
esac
6831
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6832
 
$as_echo "$ac_try_echo") >&5
6833
 
  (eval "$ac_try") 2>&5
6834
 
  ac_status=$?
6835
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836
 
  (exit $ac_status); }; }; then
6837
 
  :
6838
 
else
6839
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
6840
 
$as_echo "$as_me: failed program was:" >&5
6841
 
sed 's/^/| /' conftest.$ac_ext >&5
6842
 
 
6843
 
( exit $ac_status )
6844
 
ac_cv_header_stdc=no
6845
 
fi
6846
 
rm -rf conftest.dSYM
6847
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6848
 
fi
6849
 
 
6850
 
 
6851
 
fi
6852
 
fi
6853
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6854
 
$as_echo "$ac_cv_header_stdc" >&6; }
6855
 
if test $ac_cv_header_stdc = yes; then
6856
 
 
6857
 
cat >>confdefs.h <<\_ACEOF
6858
 
#define STDC_HEADERS 1
6859
 
_ACEOF
6860
 
 
6861
 
fi
6862
 
 
6863
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6864
 
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
 
 
6870
 
 
6871
 
 
6872
 
 
6873
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6874
 
                  inttypes.h stdint.h unistd.h
6875
 
do
6876
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6877
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6878
 
$as_echo_n "checking for $ac_header... " >&6; }
6879
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6880
 
  $as_echo_n "(cached) " >&6
6881
 
else
6882
 
  cat >conftest.$ac_ext <<_ACEOF
6883
 
/* confdefs.h.  */
6884
 
_ACEOF
6885
 
cat confdefs.h >>conftest.$ac_ext
6886
 
cat >>conftest.$ac_ext <<_ACEOF
6887
 
/* end confdefs.h.  */
6888
 
$ac_includes_default
6889
 
 
6890
 
#include <$ac_header>
6891
 
_ACEOF
6892
 
rm -f conftest.$ac_objext
6893
 
if { (ac_try="$ac_compile"
6894
 
case "(($ac_try" in
6895
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896
 
  *) ac_try_echo=$ac_try;;
6897
 
esac
6898
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899
 
$as_echo "$ac_try_echo") >&5
6900
 
  (eval "$ac_compile") 2>conftest.er1
6901
 
  ac_status=$?
6902
 
  grep -v '^ *+' conftest.er1 >conftest.err
6903
 
  rm -f conftest.er1
6904
 
  cat conftest.err >&5
6905
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906
 
  (exit $ac_status); } && {
6907
 
         test -z "$ac_c_werror_flag" ||
6908
 
         test ! -s conftest.err
6909
 
       } && test -s conftest.$ac_objext; then
6910
 
  eval "$as_ac_Header=yes"
6911
 
else
6912
 
  $as_echo "$as_me: failed program was:" >&5
6913
 
sed 's/^/| /' conftest.$ac_ext >&5
6914
 
 
6915
 
        eval "$as_ac_Header=no"
6916
 
fi
6917
 
 
6918
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919
 
fi
6920
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6921
 
                 $as_echo "$as_val"'`
6922
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6923
 
$as_echo "$ac_res" >&6; }
6924
 
as_val=`eval 'as_val=${'$as_ac_Header'}
6925
 
                 $as_echo "$as_val"'`
6926
 
   if test "x$as_val" = x""yes; then
6927
 
  cat >>confdefs.h <<_ACEOF
6928
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6929
 
_ACEOF
6930
 
 
6931
 
fi
6932
 
 
6933
 
done
6934
 
 
6935
 
 
6936
 
 
6937
 
for ac_header in dlfcn.h
6938
 
do
6939
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6940
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6941
 
$as_echo_n "checking for $ac_header... " >&6; }
6942
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943
 
  $as_echo_n "(cached) " >&6
6944
 
else
6945
 
  cat >conftest.$ac_ext <<_ACEOF
6946
 
/* confdefs.h.  */
6947
 
_ACEOF
6948
 
cat confdefs.h >>conftest.$ac_ext
6949
 
cat >>conftest.$ac_ext <<_ACEOF
6950
 
/* end confdefs.h.  */
6951
 
$ac_includes_default
6952
 
 
6953
 
#include <$ac_header>
6954
 
_ACEOF
6955
 
rm -f conftest.$ac_objext
6956
 
if { (ac_try="$ac_compile"
6957
 
case "(($ac_try" in
6958
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959
 
  *) ac_try_echo=$ac_try;;
6960
 
esac
6961
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962
 
$as_echo "$ac_try_echo") >&5
6963
 
  (eval "$ac_compile") 2>conftest.er1
6964
 
  ac_status=$?
6965
 
  grep -v '^ *+' conftest.er1 >conftest.err
6966
 
  rm -f conftest.er1
6967
 
  cat conftest.err >&5
6968
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969
 
  (exit $ac_status); } && {
6970
 
         test -z "$ac_c_werror_flag" ||
6971
 
         test ! -s conftest.err
6972
 
       } && test -s conftest.$ac_objext; then
6973
 
  eval "$as_ac_Header=yes"
6974
 
else
6975
 
  $as_echo "$as_me: failed program was:" >&5
6976
 
sed 's/^/| /' conftest.$ac_ext >&5
6977
 
 
6978
 
        eval "$as_ac_Header=no"
6979
 
fi
6980
 
 
6981
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982
 
fi
6983
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
6984
 
                 $as_echo "$as_val"'`
6985
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6986
 
$as_echo "$ac_res" >&6; }
6987
 
as_val=`eval 'as_val=${'$as_ac_Header'}
6988
 
                 $as_echo "$as_val"'`
6989
 
   if test "x$as_val" = x""yes; then
6990
 
  cat >>confdefs.h <<_ACEOF
6991
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6992
 
_ACEOF
6993
 
 
6994
 
fi
6995
 
 
6996
 
done
6997
 
 
6998
 
 
6999
 
 
7000
 
# Set options
7001
 
 
7002
 
 
7003
 
 
7004
 
        enable_dlopen=no
7005
 
 
7006
 
 
7007
 
  enable_win32_dll=no
7008
 
 
7009
 
 
7010
 
            # Check whether --enable-shared was given.
7011
 
if test "${enable_shared+set}" = set; then
7012
 
  enableval=$enable_shared; p=${PACKAGE-default}
7013
 
    case $enableval in
7014
 
    yes) enable_shared=yes ;;
7015
 
    no) enable_shared=no ;;
7016
 
    *)
7017
 
      enable_shared=no
7018
 
      # Look at the argument we got.  We use all the common list separators.
7019
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7020
 
      for pkg in $enableval; do
7021
 
        IFS="$lt_save_ifs"
7022
 
        if test "X$pkg" = "X$p"; then
7023
 
          enable_shared=yes
7024
 
        fi
7025
 
      done
7026
 
      IFS="$lt_save_ifs"
7027
 
      ;;
7028
 
    esac
7029
 
else
7030
 
  enable_shared=yes
7031
 
fi
7032
 
 
7033
 
 
7034
 
 
7035
 
 
7036
 
 
7037
 
 
7038
 
 
7039
 
 
7040
 
 
 
7570
 
 
7571
enable_dlopen=no
 
7572
enable_win32_dll=no
 
7573
 
 
7574
# Check whether --enable-libtool-lock was given.
 
7575
if test "${enable_libtool_lock+set}" = set; then
 
7576
  enableval=$enable_libtool_lock;
 
7577
fi
 
7578
 
 
7579
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7041
7580
 
7042
7581
 
7043
7582
# Check whether --with-pic was given.
7047
7586
  pic_mode=default
7048
7587
fi
7049
7588
 
7050
 
 
7051
7589
test -z "$pic_mode" && pic_mode=default
7052
7590
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
  # Check whether --enable-fast-install was given.
7060
 
if test "${enable_fast_install+set}" = set; then
7061
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
7062
 
    case $enableval in
7063
 
    yes) enable_fast_install=yes ;;
7064
 
    no) enable_fast_install=no ;;
7065
 
    *)
7066
 
      enable_fast_install=no
7067
 
      # Look at the argument we got.  We use all the common list separators.
7068
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7069
 
      for pkg in $enableval; do
7070
 
        IFS="$lt_save_ifs"
7071
 
        if test "X$pkg" = "X$p"; then
7072
 
          enable_fast_install=yes
7073
 
        fi
7074
 
      done
7075
 
      IFS="$lt_save_ifs"
7076
 
      ;;
7077
 
    esac
7078
 
else
7079
 
  enable_fast_install=yes
7080
 
fi
7081
 
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
 
7088
 
 
7089
 
 
7090
 
 
7091
 
 
7092
 
# This can be used to rebuild libtool when needed
7093
 
LIBTOOL_DEPS="$ltmain"
7094
 
 
7095
 
# Always use our own libtool.
7096
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7097
 
 
7098
 
 
7099
 
 
7100
 
 
7101
 
 
7102
 
 
7103
 
 
7104
 
 
7105
 
 
7106
 
 
7107
 
 
7108
 
 
7109
 
 
7110
 
 
7111
 
 
7112
 
 
7113
 
 
7114
 
 
7115
 
 
7116
 
 
7117
 
 
7118
 
 
7119
 
 
7120
 
 
7121
 
 
7122
 
test -z "$LN_S" && LN_S="ln -s"
7123
 
 
7124
 
 
7125
 
 
7126
 
 
7127
 
 
7128
 
 
7129
 
 
7130
 
 
7131
 
 
7132
 
 
7133
 
 
7134
 
 
7135
 
 
7136
 
 
7137
 
if test -n "${ZSH_VERSION+set}" ; then
7138
 
   setopt NO_GLOB_SUBST
7139
 
fi
7140
 
 
7141
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7142
 
$as_echo_n "checking for objdir... " >&6; }
7143
 
if test "${lt_cv_objdir+set}" = set; then
7144
 
  $as_echo_n "(cached) " >&6
7145
 
else
7146
 
  rm -f .libs 2>/dev/null
7147
 
mkdir .libs 2>/dev/null
7148
 
if test -d .libs; then
7149
 
  lt_cv_objdir=.libs
7150
 
else
7151
 
  # MS-DOS does not allow filenames that begin with a dot.
7152
 
  lt_cv_objdir=_libs
7153
 
fi
7154
 
rmdir .libs 2>/dev/null
7155
 
fi
7156
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7157
 
$as_echo "$lt_cv_objdir" >&6; }
7158
 
objdir=$lt_cv_objdir
7159
 
 
7160
 
 
7161
 
 
7162
 
 
7163
 
 
7164
 
cat >>confdefs.h <<_ACEOF
7165
 
#define LT_OBJDIR "$lt_cv_objdir/"
7166
 
_ACEOF
7167
 
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
 
 
7182
 
 
7183
 
 
7184
 
case $host_os in
7185
 
aix3*)
7186
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7187
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7188
 
  # vanish in a puff of smoke.
7189
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7190
 
    COLLECT_NAMES=
7191
 
    export COLLECT_NAMES
7192
 
  fi
7193
 
  ;;
7194
 
esac
7195
 
 
7196
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7197
 
# metacharacters that are still active within double-quoted strings.
7198
 
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7199
 
 
7200
 
# Same as above, but do not quote variable references.
7201
 
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7202
 
 
7203
 
# Sed substitution to delay expansion of an escaped shell variable in a
7204
 
# double_quote_subst'ed string.
7205
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7206
 
 
7207
 
# Sed substitution to delay expansion of an escaped single quote.
7208
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7209
 
 
7210
 
# Sed substitution to avoid accidental globbing in evaled expressions
7211
 
no_glob_subst='s/\*/\\\*/g'
7212
 
 
7213
 
# Global variables:
7214
 
ofile=libtool
7215
 
can_build_shared=yes
7216
 
 
7217
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7218
 
# which needs '.lib').
7219
 
libext=a
7220
 
 
7221
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7222
 
 
7223
 
old_CC="$CC"
7224
 
old_CFLAGS="$CFLAGS"
7225
 
 
7226
 
# Set sane defaults for various variables
7227
 
test -z "$CC" && CC=cc
7228
 
test -z "$LTCC" && LTCC=$CC
7229
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7230
 
test -z "$LD" && LD=ld
7231
 
test -z "$ac_objext" && ac_objext=o
7232
 
 
7233
 
for cc_temp in $compiler""; do
7234
 
  case $cc_temp in
7235
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7236
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7237
 
    \-*) ;;
7238
 
    *) break;;
7239
 
  esac
7240
 
done
7241
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7242
 
 
7243
 
 
7244
 
# Only perform the check for file, if the check method requires it
7245
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7246
 
case $deplibs_check_method in
7247
 
file_magic*)
7248
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7249
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7250
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7251
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7252
 
  $as_echo_n "(cached) " >&6
7253
 
else
7254
 
  case $MAGIC_CMD in
7255
 
[\\/*] |  ?:[\\/]*)
7256
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7257
 
  ;;
7258
 
*)
7259
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7260
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7261
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7262
 
  for ac_dir in $ac_dummy; do
7263
 
    IFS="$lt_save_ifs"
7264
 
    test -z "$ac_dir" && ac_dir=.
7265
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7266
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7267
 
      if test -n "$file_magic_test_file"; then
7268
 
        case $deplibs_check_method in
7269
 
        "file_magic "*)
7270
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7271
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7272
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7273
 
            $EGREP "$file_magic_regex" > /dev/null; then
7274
 
            :
7275
 
          else
7276
 
            cat <<_LT_EOF 1>&2
7277
 
 
7278
 
*** Warning: the command libtool uses to detect shared libraries,
7279
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7280
 
*** The result is that libtool may fail to recognize shared libraries
7281
 
*** as such.  This will affect the creation of libtool libraries that
7282
 
*** depend on shared libraries, but programs linked with such libtool
7283
 
*** libraries will work regardless of this problem.  Nevertheless, you
7284
 
*** may want to report the problem to your system manager and/or to
7285
 
*** bug-libtool@gnu.org
7286
 
 
7287
 
_LT_EOF
7288
 
          fi ;;
7289
 
        esac
7290
 
      fi
7291
 
      break
7292
 
    fi
7293
 
  done
7294
 
  IFS="$lt_save_ifs"
7295
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7296
 
  ;;
7297
 
esac
7298
 
fi
7299
 
 
7300
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7301
 
if test -n "$MAGIC_CMD"; then
7302
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7303
 
$as_echo "$MAGIC_CMD" >&6; }
7304
 
else
7305
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7306
 
$as_echo "no" >&6; }
7307
 
fi
7308
 
 
7309
 
 
7310
 
 
7311
 
 
7312
 
 
7313
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7314
 
  if test -n "$ac_tool_prefix"; then
7315
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7316
 
$as_echo_n "checking for file... " >&6; }
7317
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7318
 
  $as_echo_n "(cached) " >&6
7319
 
else
7320
 
  case $MAGIC_CMD in
7321
 
[\\/*] |  ?:[\\/]*)
7322
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7323
 
  ;;
7324
 
*)
7325
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7326
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7327
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7328
 
  for ac_dir in $ac_dummy; do
7329
 
    IFS="$lt_save_ifs"
7330
 
    test -z "$ac_dir" && ac_dir=.
7331
 
    if test -f $ac_dir/file; then
7332
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7333
 
      if test -n "$file_magic_test_file"; then
7334
 
        case $deplibs_check_method in
7335
 
        "file_magic "*)
7336
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7337
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7338
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7339
 
            $EGREP "$file_magic_regex" > /dev/null; then
7340
 
            :
7341
 
          else
7342
 
            cat <<_LT_EOF 1>&2
7343
 
 
7344
 
*** Warning: the command libtool uses to detect shared libraries,
7345
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7346
 
*** The result is that libtool may fail to recognize shared libraries
7347
 
*** as such.  This will affect the creation of libtool libraries that
7348
 
*** depend on shared libraries, but programs linked with such libtool
7349
 
*** libraries will work regardless of this problem.  Nevertheless, you
7350
 
*** may want to report the problem to your system manager and/or to
7351
 
*** bug-libtool@gnu.org
7352
 
 
7353
 
_LT_EOF
7354
 
          fi ;;
7355
 
        esac
7356
 
      fi
7357
 
      break
7358
 
    fi
7359
 
  done
7360
 
  IFS="$lt_save_ifs"
7361
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7362
 
  ;;
7363
 
esac
7364
 
fi
7365
 
 
7366
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7367
 
if test -n "$MAGIC_CMD"; then
7368
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7369
 
$as_echo "$MAGIC_CMD" >&6; }
7370
 
else
7371
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7372
 
$as_echo "no" >&6; }
7373
 
fi
7374
 
 
7375
 
 
7376
 
  else
7377
 
    MAGIC_CMD=:
7378
 
  fi
7379
 
fi
7380
 
 
7381
 
  fi
7382
 
  ;;
7383
 
esac
7384
 
 
7385
7591
# Use C for the default configuration in the libtool script
7386
 
 
 
7592
tagname=
7387
7593
lt_save_CC="$CC"
7388
7594
ac_ext=c
7389
7595
ac_cpp='$CPP $CPPFLAGS'
7406
7612
lt_simple_link_test_code='int main(){return(0);}'
7407
7613
 
7408
7614
 
7409
 
 
7410
 
 
7411
 
 
7412
 
 
7413
 
 
7414
7615
# If no C compiler was specified, use CC.
7415
7616
LTCC=${LTCC-"$CC"}
7416
7617
 
7420
7621
# Allow CC to be a program name with arguments.
7421
7622
compiler=$CC
7422
7623
 
7423
 
# Save the default compiler, since it gets overwritten when the other
7424
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7425
 
compiler_DEFAULT=$CC
7426
7624
 
7427
7625
# save warnings/boilerplate of simple test code
7428
7626
ac_outfile=conftest.$ac_objext
7429
7627
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7430
7628
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7431
7629
_lt_compiler_boilerplate=`cat conftest.err`
7432
 
$RM conftest*
 
7630
$rm conftest*
7433
7631
 
7434
7632
ac_outfile=conftest.$ac_objext
7435
7633
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7436
7634
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7437
7635
_lt_linker_boilerplate=`cat conftest.err`
7438
 
$RM -r conftest*
7439
 
 
7440
 
 
7441
 
if test -n "$compiler"; then
 
7636
$rm -r conftest*
 
7637
 
 
7638
 
7442
7639
 
7443
7640
lt_prog_compiler_no_builtin_flag=
7444
7641
 
7445
7642
if test "$GCC" = yes; then
7446
7643
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7447
7644
 
7448
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7645
 
 
7646
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7449
7647
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7450
7648
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7451
7649
  $as_echo_n "(cached) " >&6
7452
7650
else
7453
7651
  lt_cv_prog_compiler_rtti_exceptions=no
7454
 
   ac_outfile=conftest.$ac_objext
 
7652
  ac_outfile=conftest.$ac_objext
7455
7653
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7456
7654
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7457
7655
   # Insert the option either (1) after the last *FLAGS variable, or
7463
7661
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464
7662
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465
7663
   -e 's:$: $lt_compiler_flag:'`
7466
 
   (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
 
7664
   (eval echo "\"\$as_me:7664: $lt_compile\"" >&5)
7467
7665
   (eval "$lt_compile" 2>conftest.err)
7468
7666
   ac_status=$?
7469
7667
   cat conftest.err >&5
7470
 
   echo "$as_me:7470: \$? = $ac_status" >&5
 
7668
   echo "$as_me:7668: \$? = $ac_status" >&5
7471
7669
   if (exit $ac_status) && test -s "$ac_outfile"; then
7472
7670
     # The compiler can only warn and ignore the option if not recognized
7473
7671
     # So say no if there are warnings other than the usual output.
7474
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7672
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7475
7673
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7476
7674
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7477
7675
       lt_cv_prog_compiler_rtti_exceptions=yes
7478
7676
     fi
7479
7677
   fi
7480
 
   $RM conftest*
 
7678
   $rm conftest*
7481
7679
 
7482
7680
fi
7483
7681
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7491
7689
 
7492
7690
fi
7493
7691
 
7494
 
 
7495
 
 
7496
 
 
7497
 
 
7498
 
 
7499
 
  lt_prog_compiler_wl=
 
7692
lt_prog_compiler_wl=
7500
7693
lt_prog_compiler_pic=
7501
7694
lt_prog_compiler_static=
7502
7695
 
7517
7710
      ;;
7518
7711
 
7519
7712
    amigaos*)
7520
 
      case $host_cpu in
7521
 
      powerpc)
7522
 
            # see comment about AmigaOS4 .so support
7523
 
            lt_prog_compiler_pic='-fPIC'
7524
 
        ;;
7525
 
      m68k)
7526
 
            # FIXME: we need at least 68020 code to build shared libraries, but
7527
 
            # adding the `-m68020' flag to GCC prevents building anything better,
7528
 
            # like `-m68040'.
7529
 
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7530
 
        ;;
7531
 
      esac
 
7713
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7714
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7715
      # like `-m68040'.
 
7716
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7532
7717
      ;;
7533
7718
 
7534
7719
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7535
7720
      # PIC is the default for these OSes.
7536
7721
      ;;
7537
7722
 
7538
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7723
    mingw* | cygwin* | pw32* | os2*)
7539
7724
      # This hack is so that the source file can tell whether it is being
7540
7725
      # built for inclusion in a dll (and should export symbols for example).
7541
7726
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7549
7734
      lt_prog_compiler_pic='-fno-common'
7550
7735
      ;;
7551
7736
 
7552
 
    hpux*)
7553
 
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7554
 
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7555
 
      # sets the default TLS model and affects inlining.
7556
 
      case $host_cpu in
7557
 
      hppa*64*)
7558
 
        # +Z the default
7559
 
        ;;
7560
 
      *)
7561
 
        lt_prog_compiler_pic='-fPIC'
7562
 
        ;;
7563
 
      esac
7564
 
      ;;
7565
 
 
7566
7737
    interix[3-9]*)
7567
7738
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7568
7739
      # Instead, we relocate shared libraries at runtime.
7575
7746
      enable_shared=no
7576
7747
      ;;
7577
7748
 
7578
 
    *nto* | *qnx*)
7579
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7580
 
      # it will coredump.
7581
 
      lt_prog_compiler_pic='-fPIC -shared'
7582
 
      ;;
7583
 
 
7584
7749
    sysv4*MP*)
7585
7750
      if test -d /usr/nec; then
7586
7751
        lt_prog_compiler_pic=-Kconform_pic
7587
7752
      fi
7588
7753
      ;;
7589
7754
 
 
7755
    hpux*)
 
7756
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7757
      # not for PA HP-UX.
 
7758
      case $host_cpu in
 
7759
      hppa*64*|ia64*)
 
7760
        # +Z the default
 
7761
        ;;
 
7762
      *)
 
7763
        lt_prog_compiler_pic='-fPIC'
 
7764
        ;;
 
7765
      esac
 
7766
      ;;
 
7767
 
7590
7768
    *)
7591
7769
      lt_prog_compiler_pic='-fPIC'
7592
7770
      ;;
7603
7781
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7604
7782
      fi
7605
7783
      ;;
 
7784
      darwin*)
 
7785
        # PIC is the default on this platform
 
7786
        # Common symbols not allowed in MH_DYLIB files
 
7787
       case $cc_basename in
 
7788
         xlc*)
 
7789
         lt_prog_compiler_pic='-qnocommon'
 
7790
         lt_prog_compiler_wl='-Wl,'
 
7791
         ;;
 
7792
       esac
 
7793
       ;;
7606
7794
 
7607
 
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7795
    mingw* | cygwin* | pw32* | os2*)
7608
7796
      # This hack is so that the source file can tell whether it is being
7609
7797
      # built for inclusion in a dll (and should export symbols for example).
7610
7798
      lt_prog_compiler_pic='-DDLL_EXPORT'
7632
7820
      lt_prog_compiler_static='-non_shared'
7633
7821
      ;;
7634
7822
 
 
7823
    newsos6)
 
7824
      lt_prog_compiler_pic='-KPIC'
 
7825
      lt_prog_compiler_static='-Bstatic'
 
7826
      ;;
 
7827
 
7635
7828
    linux* | k*bsd*-gnu)
7636
7829
      case $cc_basename in
7637
 
      # old Intel for x86_64 which still supported -KPIC.
7638
 
      ecc*)
 
7830
      icc* | ecc*)
7639
7831
        lt_prog_compiler_wl='-Wl,'
7640
7832
        lt_prog_compiler_pic='-KPIC'
7641
7833
        lt_prog_compiler_static='-static'
7642
7834
        ;;
7643
 
      # icc used to be incompatible with GCC.
7644
 
      # ICC 10 doesn't accept -KPIC any more.
7645
 
      icc* | ifort*)
7646
 
        lt_prog_compiler_wl='-Wl,'
7647
 
        lt_prog_compiler_pic='-fPIC'
7648
 
        lt_prog_compiler_static='-static'
7649
 
        ;;
7650
 
      # Lahey Fortran 8.1.
7651
 
      lf95*)
7652
 
        lt_prog_compiler_wl='-Wl,'
7653
 
        lt_prog_compiler_pic='--shared'
7654
 
        lt_prog_compiler_static='--static'
7655
 
        ;;
7656
7835
      pgcc* | pgf77* | pgf90* | pgf95*)
7657
7836
        # Portland Group compilers (*not* the Pentium gcc compiler,
7658
7837
        # which looks to be a dead project)
7665
7844
        # All Alpha code is PIC.
7666
7845
        lt_prog_compiler_static='-non_shared'
7667
7846
        ;;
7668
 
      xl*)
7669
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
7670
 
        lt_prog_compiler_wl='-Wl,'
7671
 
        lt_prog_compiler_pic='-qpic'
7672
 
        lt_prog_compiler_static='-qstaticlink'
7673
 
        ;;
7674
7847
      *)
7675
 
        case `$CC -V 2>&1 | sed 5q` in
 
7848
        case `$CC -V 2>&1 | sed 5q` in
7676
7849
        *Sun\ C*)
7677
7850
          # Sun C 5.9
7678
7851
          lt_prog_compiler_pic='-KPIC'
7690
7863
      esac
7691
7864
      ;;
7692
7865
 
7693
 
    newsos6)
7694
 
      lt_prog_compiler_pic='-KPIC'
7695
 
      lt_prog_compiler_static='-Bstatic'
7696
 
      ;;
7697
 
 
7698
 
    *nto* | *qnx*)
7699
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7700
 
      # it will coredump.
7701
 
      lt_prog_compiler_pic='-fPIC -shared'
7702
 
      ;;
7703
 
 
7704
7866
    osf3* | osf4* | osf5*)
7705
7867
      lt_prog_compiler_wl='-Wl,'
7706
7868
      # All OSF/1 code is PIC.
7763
7925
    esac
7764
7926
  fi
7765
7927
 
7766
 
case $host_os in
7767
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7768
 
  *djgpp*)
7769
 
    lt_prog_compiler_pic=
7770
 
    ;;
7771
 
  *)
7772
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7773
 
    ;;
7774
 
esac
7775
7928
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7776
7929
$as_echo "$lt_prog_compiler_pic" >&6; }
7777
7930
 
7778
 
 
7779
 
 
7780
 
 
7781
 
 
7782
 
 
7783
7931
#
7784
7932
# Check to make sure the PIC flag actually works.
7785
7933
#
7786
7934
if test -n "$lt_prog_compiler_pic"; then
7787
 
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7935
 
 
7936
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7788
7937
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7789
7938
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7790
7939
  $as_echo_n "(cached) " >&6
7791
7940
else
7792
7941
  lt_cv_prog_compiler_pic_works=no
7793
 
   ac_outfile=conftest.$ac_objext
 
7942
  ac_outfile=conftest.$ac_objext
7794
7943
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7795
7944
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7796
7945
   # Insert the option either (1) after the last *FLAGS variable, or
7802
7951
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7803
7952
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7804
7953
   -e 's:$: $lt_compiler_flag:'`
7805
 
   (eval echo "\"\$as_me:7805: $lt_compile\"" >&5)
 
7954
   (eval echo "\"\$as_me:7954: $lt_compile\"" >&5)
7806
7955
   (eval "$lt_compile" 2>conftest.err)
7807
7956
   ac_status=$?
7808
7957
   cat conftest.err >&5
7809
 
   echo "$as_me:7809: \$? = $ac_status" >&5
 
7958
   echo "$as_me:7958: \$? = $ac_status" >&5
7810
7959
   if (exit $ac_status) && test -s "$ac_outfile"; then
7811
7960
     # The compiler can only warn and ignore the option if not recognized
7812
7961
     # So say no if there are warnings other than the usual output.
7813
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7962
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7814
7963
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7815
7964
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7816
7965
       lt_cv_prog_compiler_pic_works=yes
7817
7966
     fi
7818
7967
   fi
7819
 
   $RM conftest*
 
7968
   $rm conftest*
7820
7969
 
7821
7970
fi
7822
7971
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7833
7982
fi
7834
7983
 
7835
7984
fi
7836
 
 
7837
 
 
7838
 
 
7839
 
 
7840
 
 
 
7985
case $host_os in
 
7986
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7987
  *djgpp*)
 
7988
    lt_prog_compiler_pic=
 
7989
    ;;
 
7990
  *)
 
7991
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7992
    ;;
 
7993
esac
7841
7994
 
7842
7995
#
7843
7996
# Check to make sure the static flag actually works.
7858
8011
     if test -s conftest.err; then
7859
8012
       # Append any errors to the config.log.
7860
8013
       cat conftest.err 1>&5
7861
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8014
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7862
8015
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863
8016
       if diff conftest.exp conftest.er2 >/dev/null; then
7864
8017
         lt_cv_prog_compiler_static_works=yes
7867
8020
       lt_cv_prog_compiler_static_works=yes
7868
8021
     fi
7869
8022
   fi
7870
 
   $RM -r conftest*
 
8023
   $rm -r conftest*
7871
8024
   LDFLAGS="$save_LDFLAGS"
7872
8025
 
7873
8026
fi
7881
8034
fi
7882
8035
 
7883
8036
 
7884
 
 
7885
 
 
7886
 
 
7887
 
 
7888
 
 
7889
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7890
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7891
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7892
 
  $as_echo_n "(cached) " >&6
7893
 
else
7894
 
  lt_cv_prog_compiler_c_o=no
7895
 
   $RM -r conftest 2>/dev/null
7896
 
   mkdir conftest
7897
 
   cd conftest
7898
 
   mkdir out
7899
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7900
 
 
7901
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7902
 
   # Insert the option either (1) after the last *FLAGS variable, or
7903
 
   # (2) before a word containing "conftest.", or (3) at the end.
7904
 
   # Note that $ac_compile itself does not contain backslashes and begins
7905
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7906
 
   lt_compile=`echo "$ac_compile" | $SED \
7907
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7908
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7909
 
   -e 's:$: $lt_compiler_flag:'`
7910
 
   (eval echo "\"\$as_me:7910: $lt_compile\"" >&5)
7911
 
   (eval "$lt_compile" 2>out/conftest.err)
7912
 
   ac_status=$?
7913
 
   cat out/conftest.err >&5
7914
 
   echo "$as_me:7914: \$? = $ac_status" >&5
7915
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7916
 
   then
7917
 
     # The compiler can only warn and ignore the option if not recognized
7918
 
     # So say no if there are warnings
7919
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7920
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7921
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7922
 
       lt_cv_prog_compiler_c_o=yes
7923
 
     fi
7924
 
   fi
7925
 
   chmod u+w . 2>&5
7926
 
   $RM conftest*
7927
 
   # SGI C++ compiler will create directory out/ii_files/ for
7928
 
   # template instantiation
7929
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7930
 
   $RM out/* && rmdir out
7931
 
   cd ..
7932
 
   $RM -r conftest
7933
 
   $RM conftest*
7934
 
 
7935
 
fi
7936
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7937
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7938
 
 
7939
 
 
7940
 
 
7941
 
 
7942
 
 
7943
 
 
7944
 
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7945
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7946
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7947
 
  $as_echo_n "(cached) " >&6
7948
 
else
7949
 
  lt_cv_prog_compiler_c_o=no
7950
 
   $RM -r conftest 2>/dev/null
7951
 
   mkdir conftest
7952
 
   cd conftest
7953
 
   mkdir out
7954
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7955
 
 
7956
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7957
 
   # Insert the option either (1) after the last *FLAGS variable, or
7958
 
   # (2) before a word containing "conftest.", or (3) at the end.
7959
 
   # Note that $ac_compile itself does not contain backslashes and begins
7960
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7961
 
   lt_compile=`echo "$ac_compile" | $SED \
7962
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964
 
   -e 's:$: $lt_compiler_flag:'`
7965
 
   (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966
 
   (eval "$lt_compile" 2>out/conftest.err)
7967
 
   ac_status=$?
7968
 
   cat out/conftest.err >&5
7969
 
   echo "$as_me:7969: \$? = $ac_status" >&5
7970
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7971
 
   then
7972
 
     # The compiler can only warn and ignore the option if not recognized
7973
 
     # So say no if there are warnings
7974
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7975
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7976
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7977
 
       lt_cv_prog_compiler_c_o=yes
7978
 
     fi
7979
 
   fi
7980
 
   chmod u+w . 2>&5
7981
 
   $RM conftest*
7982
 
   # SGI C++ compiler will create directory out/ii_files/ for
7983
 
   # template instantiation
7984
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7985
 
   $RM out/* && rmdir out
7986
 
   cd ..
7987
 
   $RM -r conftest
7988
 
   $RM conftest*
7989
 
 
7990
 
fi
7991
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7992
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7993
 
 
7994
 
 
 
8037
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8038
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8039
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8040
  $as_echo_n "(cached) " >&6
 
8041
else
 
8042
  lt_cv_prog_compiler_c_o=no
 
8043
   $rm -r conftest 2>/dev/null
 
8044
   mkdir conftest
 
8045
   cd conftest
 
8046
   mkdir out
 
8047
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8048
 
 
8049
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8050
   # Insert the option either (1) after the last *FLAGS variable, or
 
8051
   # (2) before a word containing "conftest.", or (3) at the end.
 
8052
   # Note that $ac_compile itself does not contain backslashes and begins
 
8053
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8054
   lt_compile=`echo "$ac_compile" | $SED \
 
8055
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8056
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8057
   -e 's:$: $lt_compiler_flag:'`
 
8058
   (eval echo "\"\$as_me:8058: $lt_compile\"" >&5)
 
8059
   (eval "$lt_compile" 2>out/conftest.err)
 
8060
   ac_status=$?
 
8061
   cat out/conftest.err >&5
 
8062
   echo "$as_me:8062: \$? = $ac_status" >&5
 
8063
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8064
   then
 
8065
     # The compiler can only warn and ignore the option if not recognized
 
8066
     # So say no if there are warnings
 
8067
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8068
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8069
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8070
       lt_cv_prog_compiler_c_o=yes
 
8071
     fi
 
8072
   fi
 
8073
   chmod u+w . 2>&5
 
8074
   $rm conftest*
 
8075
   # SGI C++ compiler will create directory out/ii_files/ for
 
8076
   # template instantiation
 
8077
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8078
   $rm out/* && rmdir out
 
8079
   cd ..
 
8080
   rmdir conftest
 
8081
   $rm conftest*
 
8082
 
 
8083
fi
 
8084
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8085
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7995
8086
 
7996
8087
 
7997
8088
hard_links="nottested"
8000
8091
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8001
8092
$as_echo_n "checking if we can lock with hard links... " >&6; }
8002
8093
  hard_links=yes
8003
 
  $RM conftest*
 
8094
  $rm conftest*
8004
8095
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8005
8096
  touch conftest.a
8006
8097
  ln conftest.a conftest.b 2>&5 || hard_links=no
8016
8107
  need_locks=no
8017
8108
fi
8018
8109
 
8019
 
 
8020
 
 
8021
 
 
8022
 
 
8023
 
 
8024
 
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8110
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8025
8111
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8026
8112
 
8027
8113
  runpath_var=
8028
8114
  allow_undefined_flag=
8029
 
  always_export_symbols=no
 
8115
  enable_shared_with_static_runtimes=no
8030
8116
  archive_cmds=
8031
8117
  archive_expsym_cmds=
8032
 
  compiler_needs_object=no
8033
 
  enable_shared_with_static_runtimes=no
 
8118
  old_archive_From_new_cmds=
 
8119
  old_archive_from_expsyms_cmds=
8034
8120
  export_dynamic_flag_spec=
8035
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8036
 
  hardcode_automatic=no
8037
 
  hardcode_direct=no
8038
 
  hardcode_direct_absolute=no
 
8121
  whole_archive_flag_spec=
 
8122
  thread_safe_flag_spec=
8039
8123
  hardcode_libdir_flag_spec=
8040
8124
  hardcode_libdir_flag_spec_ld=
8041
8125
  hardcode_libdir_separator=
 
8126
  hardcode_direct=no
8042
8127
  hardcode_minus_L=no
8043
8128
  hardcode_shlibpath_var=unsupported
8044
 
  inherit_rpath=no
8045
8129
  link_all_deplibs=unknown
 
8130
  hardcode_automatic=no
8046
8131
  module_cmds=
8047
8132
  module_expsym_cmds=
8048
 
  old_archive_from_new_cmds=
8049
 
  old_archive_from_expsyms_cmds=
8050
 
  thread_safe_flag_spec=
8051
 
  whole_archive_flag_spec=
 
8133
  always_export_symbols=no
 
8134
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8052
8135
  # include_expsyms should be a list of space-separated symbols to be *always*
8053
8136
  # included in the symbol list
8054
8137
  include_expsyms=
8064
8147
  # preloaded symbol tables.
8065
8148
  # Exclude shared library initialization/finalization symbols.
8066
8149
  extract_expsyms_cmds=
 
8150
  # Just being paranoid about ensuring that cc_basename is set.
 
8151
  for cc_temp in $compiler""; do
 
8152
  case $cc_temp in
 
8153
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8154
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8155
    \-*) ;;
 
8156
    *) break;;
 
8157
  esac
 
8158
done
 
8159
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8067
8160
 
8068
8161
  case $host_os in
8069
 
  cygwin* | mingw* | pw32* | cegcc*)
 
8162
  cygwin* | mingw* | pw32*)
8070
8163
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8071
8164
    # When not using gcc, we currently assume that we are using
8072
8165
    # Microsoft Visual C++.
8092
8185
    # are reset later if shared libraries are not supported. Putting them
8093
8186
    # here allows them to be overridden if necessary.
8094
8187
    runpath_var=LD_RUN_PATH
8095
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8188
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8096
8189
    export_dynamic_flag_spec='${wl}--export-dynamic'
8097
8190
    # ancient GNU ld didn't support --whole-archive et. al.
8098
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8099
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8100
 
    else
8101
 
      whole_archive_flag_spec=
 
8191
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8192
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8193
      else
 
8194
        whole_archive_flag_spec=
8102
8195
    fi
8103
8196
    supports_anon_versioning=no
8104
 
    case `$LD -v 2>&1` in
 
8197
    case `$LD -v 2>/dev/null` in
8105
8198
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8106
8199
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8107
8200
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8115
8208
      # On AIX/PPC, the GNU linker is very broken
8116
8209
      if test "$host_cpu" != ia64; then
8117
8210
        ld_shlibs=no
8118
 
        cat <<_LT_EOF 1>&2
 
8211
        cat <<EOF 1>&2
8119
8212
 
8120
8213
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8121
8214
*** to be unable to reliably create shared libraries on AIX.
8123
8216
*** really care for shared libraries, you may want to modify your PATH
8124
8217
*** so that a non-GNU linker is found, and then restart.
8125
8218
 
8126
 
_LT_EOF
 
8219
EOF
8127
8220
      fi
8128
8221
      ;;
8129
8222
 
8130
8223
    amigaos*)
8131
 
      case $host_cpu in
8132
 
      powerpc)
8133
 
            # see comment about AmigaOS4 .so support
8134
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135
 
            archive_expsym_cmds=''
8136
 
        ;;
8137
 
      m68k)
8138
 
            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)'
8139
 
            hardcode_libdir_flag_spec='-L$libdir'
8140
 
            hardcode_minus_L=yes
8141
 
        ;;
8142
 
      esac
 
8224
      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)'
 
8225
      hardcode_libdir_flag_spec='-L$libdir'
 
8226
      hardcode_minus_L=yes
 
8227
 
 
8228
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8229
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8230
      # to version 4, is to share data among multiple programs linked
 
8231
      # with the same dynamic library.  Since this doesn't match the
 
8232
      # behavior of shared libraries on other platforms, we can't use
 
8233
      # them.
 
8234
      ld_shlibs=no
8143
8235
      ;;
8144
8236
 
8145
8237
    beos*)
8146
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8238
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8147
8239
        allow_undefined_flag=unsupported
8148
8240
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8149
8241
        # support --undefined.  This deserves some investigation.  FIXME
8153
8245
      fi
8154
8246
      ;;
8155
8247
 
8156
 
    cygwin* | mingw* | pw32* | cegcc*)
8157
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8248
    cygwin* | mingw* | pw32*)
 
8249
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8158
8250
      # as there is no search path for DLLs.
8159
8251
      hardcode_libdir_flag_spec='-L$libdir'
8160
8252
      allow_undefined_flag=unsupported
8161
8253
      always_export_symbols=no
8162
8254
      enable_shared_with_static_runtimes=yes
8163
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8255
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8164
8256
 
8165
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8257
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8166
8258
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8167
8259
        # If the export-symbols file already is a .def file (1st line
8168
8260
        # is EXPORTS), use it as is; otherwise, prepend...
8193
8285
      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'
8194
8286
      ;;
8195
8287
 
8196
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
8197
 
      tmp_diet=no
8198
 
      if test "$host_os" = linux-dietlibc; then
8199
 
        case $cc_basename in
8200
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8201
 
        esac
8202
 
      fi
8203
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8204
 
         && test "$tmp_diet" = no
8205
 
      then
 
8288
    gnu* | linux* | k*bsd*-gnu)
 
8289
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206
8290
        tmp_addflag=
8207
 
        tmp_sharedflag='-shared'
8208
8291
        case $cc_basename,$host_cpu in
8209
 
        pgcc*)                          # Portland Group C compiler
8210
 
          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'
 
8292
        pgcc*)                          # Portland Group C compiler
 
8293
          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'
8211
8294
          tmp_addflag=' $pic_flag'
8212
8295
          ;;
8213
8296
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8214
 
          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'
 
8297
          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'
8215
8298
          tmp_addflag=' $pic_flag -Mnomain' ;;
8216
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8299
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8217
8300
          tmp_addflag=' -i_dynamic' ;;
8218
8301
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8219
8302
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8220
8303
        ifc* | ifort*)                  # Intel Fortran compiler
8221
8304
          tmp_addflag=' -nofor_main' ;;
8222
 
        lf95*)                          # Lahey Fortran 8.1
8223
 
          whole_archive_flag_spec=
8224
 
          tmp_sharedflag='--shared' ;;
8225
 
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8226
 
          tmp_sharedflag='-qmkshrobj'
8227
 
          tmp_addflag= ;;
8228
8305
        esac
8229
8306
        case `$CC -V 2>&1 | sed 5q` in
8230
8307
        *Sun\ C*)                       # Sun C 5.9
8231
 
          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'
8232
 
          compiler_needs_object=yes
 
8308
          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'
8233
8309
          tmp_sharedflag='-G' ;;
8234
8310
        *Sun\ F*)                       # Sun Fortran 8.3
8235
8311
          tmp_sharedflag='-G' ;;
 
8312
        *)
 
8313
          tmp_sharedflag='-shared' ;;
8236
8314
        esac
8237
8315
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8238
8316
 
8239
 
        if test "x$supports_anon_versioning" = xyes; then
8240
 
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8241
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8242
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
8243
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8244
 
        fi
8245
 
 
8246
 
        case $cc_basename in
8247
 
        xlf*)
8248
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8249
 
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8250
 
          hardcode_libdir_flag_spec=
8251
 
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8252
 
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8253
 
          if test "x$supports_anon_versioning" = xyes; then
8254
 
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8255
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8256
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
8257
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8258
 
          fi
8259
 
          ;;
8260
 
        esac
 
8317
        if test $supports_anon_versioning = yes; then
 
8318
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8319
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8320
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8321
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8322
        fi
8261
8323
      else
8262
 
        ld_shlibs=no
 
8324
        ld_shlibs=no
8263
8325
      fi
8264
8326
      ;;
8265
8327
 
8266
8328
    netbsd*)
8267
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8329
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8268
8330
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8269
8331
        wlarc=
8270
8332
      else
8274
8336
      ;;
8275
8337
 
8276
8338
    solaris*)
8277
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8339
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8278
8340
        ld_shlibs=no
8279
 
        cat <<_LT_EOF 1>&2
 
8341
        cat <<EOF 1>&2
8280
8342
 
8281
8343
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8282
8344
*** create shared libraries on Solaris systems.  Therefore, libtool
8285
8347
*** your PATH or compiler configuration so that the native linker is
8286
8348
*** used, and then restart.
8287
8349
 
8288
 
_LT_EOF
8289
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8350
EOF
 
8351
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8290
8352
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291
8353
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8292
8354
      else
8310
8372
_LT_EOF
8311
8373
        ;;
8312
8374
        *)
8313
 
          # For security reasons, it is highly recommended that you always
8314
 
          # use absolute paths for naming shared libraries, and exclude the
8315
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
8316
 
          # requires that you compile everything twice, which is a pain.
8317
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8318
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8375
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8376
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8377
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8378
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8321
8379
          else
8322
8380
            ld_shlibs=no
8323
8381
          fi
8333
8391
      ;;
8334
8392
 
8335
8393
    *)
8336
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8394
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8337
8395
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338
8396
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339
8397
      else
8375
8433
      else
8376
8434
        # If we're using GNU nm, then we don't want the "-C" option.
8377
8435
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8378
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8379
 
          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'
 
8436
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8437
          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'
8380
8438
        else
8381
 
          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'
 
8439
          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'
8382
8440
        fi
8383
8441
        aix_use_runtimelinking=no
8384
8442
 
8387
8445
        # need to do runtime linking.
8388
8446
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8389
8447
          for ld_flag in $LDFLAGS; do
8390
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8391
 
            aix_use_runtimelinking=yes
8392
 
            break
8393
 
          fi
 
8448
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8449
            aix_use_runtimelinking=yes
 
8450
            break
 
8451
          fi
8394
8452
          done
8395
8453
          ;;
8396
8454
        esac
8407
8465
 
8408
8466
      archive_cmds=''
8409
8467
      hardcode_direct=yes
8410
 
      hardcode_direct_absolute=yes
8411
8468
      hardcode_libdir_separator=':'
8412
8469
      link_all_deplibs=yes
8413
 
      file_list_spec='${wl}-f,'
8414
8470
 
8415
8471
      if test "$GCC" = yes; then
8416
8472
        case $host_os in aix4.[012]|aix4.[012].*)
8417
8473
        # We only want to do this on AIX 4.2 and lower, the check
8418
8474
        # below for broken collect2 doesn't work under 4.3+
8419
8475
          collect2name=`${CC} -print-prog-name=collect2`
8420
 
          if test -f "$collect2name" &&
8421
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8476
          if test -f "$collect2name" && \
 
8477
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8422
8478
          then
8423
 
          # We have reworked collect2
8424
 
          :
 
8479
          # We have reworked collect2
 
8480
          :
8425
8481
          else
8426
 
          # We have old collect2
8427
 
          hardcode_direct=unsupported
8428
 
          # It fails to find uninstalled libraries when the uninstalled
8429
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8430
 
          # to unsupported forces relinking
8431
 
          hardcode_minus_L=yes
8432
 
          hardcode_libdir_flag_spec='-L$libdir'
8433
 
          hardcode_libdir_separator=
 
8482
          # We have old collect2
 
8483
          hardcode_direct=unsupported
 
8484
          # It fails to find uninstalled libraries when the uninstalled
 
8485
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8486
          # to unsupported forces relinking
 
8487
          hardcode_minus_L=yes
 
8488
          hardcode_libdir_flag_spec='-L$libdir'
 
8489
          hardcode_libdir_separator=
8434
8490
          fi
8435
8491
          ;;
8436
8492
        esac
8441
8497
      else
8442
8498
        # not using gcc
8443
8499
        if test "$host_cpu" = ia64; then
8444
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8445
 
        # chokes on -Wl,-G. The following line is correct:
 
8500
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8501
        # chokes on -Wl,-G. The following line is correct:
8446
8502
          shared_flag='-G'
8447
8503
        else
8448
8504
          if test "$aix_use_runtimelinking" = yes; then
8453
8509
        fi
8454
8510
      fi
8455
8511
 
8456
 
      export_dynamic_flag_spec='${wl}-bexpall'
8457
8512
      # It seems that -bexpall does not export symbols beginning with
8458
8513
      # underscore (_), so it is better to generate a list of symbols to export.
8459
8514
      always_export_symbols=yes
8461
8516
        # Warning - without using the other runtime loading flags (-brtl),
8462
8517
        # -berok will link without error, but may produce a broken library.
8463
8518
        allow_undefined_flag='-berok'
8464
 
        # Determine the default libpath from the value encoded in an
8465
 
        # empty executable.
8466
 
        cat >conftest.$ac_ext <<_ACEOF
 
8519
       # Determine the default libpath from the value encoded in an empty executable.
 
8520
       cat >conftest.$ac_ext <<_ACEOF
8467
8521
/* confdefs.h.  */
8468
8522
_ACEOF
8469
8523
cat confdefs.h >>conftest.$ac_ext
8524
8578
      conftest$ac_exeext conftest.$ac_ext
8525
8579
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8526
8580
 
8527
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8528
 
        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"
8529
 
      else
 
8581
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8582
        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"
 
8583
       else
8530
8584
        if test "$host_cpu" = ia64; then
8531
8585
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8532
8586
          allow_undefined_flag="-z nodefs"
8533
8587
          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"
8534
8588
        else
8535
 
         # Determine the default libpath from the value encoded in an
8536
 
         # empty executable.
 
8589
         # Determine the default libpath from the value encoded in an empty executable.
8537
8590
         cat >conftest.$ac_ext <<_ACEOF
8538
8591
/* confdefs.h.  */
8539
8592
_ACEOF
8610
8663
      ;;
8611
8664
 
8612
8665
    amigaos*)
8613
 
      case $host_cpu in
8614
 
      powerpc)
8615
 
            # see comment about AmigaOS4 .so support
8616
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617
 
            archive_expsym_cmds=''
8618
 
        ;;
8619
 
      m68k)
8620
 
            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)'
8621
 
            hardcode_libdir_flag_spec='-L$libdir'
8622
 
            hardcode_minus_L=yes
8623
 
        ;;
8624
 
      esac
 
8666
      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)'
 
8667
      hardcode_libdir_flag_spec='-L$libdir'
 
8668
      hardcode_minus_L=yes
 
8669
      # see comment about different semantics on the GNU ld section
 
8670
      ld_shlibs=no
8625
8671
      ;;
8626
8672
 
8627
8673
    bsdi[45]*)
8628
8674
      export_dynamic_flag_spec=-rdynamic
8629
8675
      ;;
8630
8676
 
8631
 
    cygwin* | mingw* | pw32* | cegcc*)
 
8677
    cygwin* | mingw* | pw32*)
8632
8678
      # When not using gcc, we currently assume that we are using
8633
8679
      # Microsoft Visual C++.
8634
8680
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8640
8686
      # Tell ltmain to make .dll files, not .so files.
8641
8687
      shrext_cmds=".dll"
8642
8688
      # FIXME: Setting linknames here is a bad hack.
8643
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8689
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8644
8690
      # The linker will automatically build a .lib file if we build a DLL.
8645
 
      old_archive_from_new_cmds='true'
 
8691
      old_archive_From_new_cmds='true'
8646
8692
      # FIXME: Should let the user specify the lib program.
8647
8693
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8648
8694
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8650
8696
      ;;
8651
8697
 
8652
8698
    darwin* | rhapsody*)
8653
 
 
8654
 
 
8655
 
  archive_cmds_need_lc=no
8656
 
  hardcode_direct=no
8657
 
  hardcode_automatic=yes
8658
 
  hardcode_shlibpath_var=unsupported
8659
 
  whole_archive_flag_spec=''
8660
 
  link_all_deplibs=yes
8661
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
8662
 
  case $cc_basename in
8663
 
     ifort*) _lt_dar_can_shared=yes ;;
8664
 
     *) _lt_dar_can_shared=$GCC ;;
8665
 
  esac
8666
 
  if test "$_lt_dar_can_shared" = "yes"; then
8667
 
    output_verbose_link_cmd=echo
8668
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8669
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8670
 
    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}"
8671
 
    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}"
8672
 
 
8673
 
  else
8674
 
  ld_shlibs=no
8675
 
  fi
8676
 
 
 
8699
      case $host_os in
 
8700
        rhapsody* | darwin1.[012])
 
8701
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8702
         ;;
 
8703
       *) # Darwin 1.3 on
 
8704
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8705
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8706
         else
 
8707
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8708
             10.[012])
 
8709
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8710
               ;;
 
8711
             10.*)
 
8712
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8713
               ;;
 
8714
           esac
 
8715
         fi
 
8716
         ;;
 
8717
      esac
 
8718
      archive_cmds_need_lc=no
 
8719
      hardcode_direct=no
 
8720
      hardcode_automatic=yes
 
8721
      hardcode_shlibpath_var=unsupported
 
8722
      whole_archive_flag_spec=''
 
8723
      link_all_deplibs=yes
 
8724
    if test "$GCC" = yes ; then
 
8725
        output_verbose_link_cmd='echo'
 
8726
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8727
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8728
        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}"
 
8729
        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}"
 
8730
    else
 
8731
      case $cc_basename in
 
8732
        xlc*)
 
8733
         output_verbose_link_cmd='echo'
 
8734
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8735
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8736
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8737
         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}'
 
8738
          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}'
 
8739
          ;;
 
8740
       *)
 
8741
         ld_shlibs=no
 
8742
          ;;
 
8743
      esac
 
8744
    fi
8677
8745
      ;;
8678
8746
 
8679
8747
    dgux*)
8715
8783
 
8716
8784
    hpux9*)
8717
8785
      if test "$GCC" = yes; then
8718
 
        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'
 
8786
        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'
8719
8787
      else
8720
 
        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'
 
8788
        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'
8721
8789
      fi
8722
8790
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8723
8791
      hardcode_libdir_separator=:
8737
8805
      fi
8738
8806
      if test "$with_gnu_ld" = no; then
8739
8807
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8740
 
        hardcode_libdir_flag_spec_ld='+b $libdir'
8741
8808
        hardcode_libdir_separator=:
 
8809
 
8742
8810
        hardcode_direct=yes
8743
 
        hardcode_direct_absolute=yes
8744
8811
        export_dynamic_flag_spec='${wl}-E'
 
8812
 
8745
8813
        # hardcode_minus_L: Not really in the search PATH,
8746
8814
        # but as the default location of the library.
8747
8815
        hardcode_minus_L=yes
8755
8823
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8756
8824
          ;;
8757
8825
        ia64*)
8758
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8826
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8759
8827
          ;;
8760
8828
        *)
8761
8829
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8780
8848
 
8781
8849
        case $host_cpu in
8782
8850
        hppa*64*|ia64*)
 
8851
          hardcode_libdir_flag_spec_ld='+b $libdir'
8783
8852
          hardcode_direct=no
8784
8853
          hardcode_shlibpath_var=no
8785
8854
          ;;
8786
8855
        *)
8787
8856
          hardcode_direct=yes
8788
 
          hardcode_direct_absolute=yes
8789
8857
          export_dynamic_flag_spec='${wl}-E'
8790
8858
 
8791
8859
          # hardcode_minus_L: Not really in the search PATH,
8798
8866
 
8799
8867
    irix5* | irix6* | nonstopux*)
8800
8868
      if test "$GCC" = yes; then
8801
 
        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'
8802
 
        # Try to use the -exported_symbol ld option, if it does not
8803
 
        # work, assume that -exports_file does not work either and
8804
 
        # implicitly export all symbols.
8805
 
        save_LDFLAGS="$LDFLAGS"
8806
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8807
 
        cat >conftest.$ac_ext <<_ACEOF
8808
 
int foo(void) {}
8809
 
_ACEOF
8810
 
rm -f conftest.$ac_objext conftest$ac_exeext
8811
 
if { (ac_try="$ac_link"
8812
 
case "(($ac_try" in
8813
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814
 
  *) ac_try_echo=$ac_try;;
8815
 
esac
8816
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817
 
$as_echo "$ac_try_echo") >&5
8818
 
  (eval "$ac_link") 2>conftest.er1
8819
 
  ac_status=$?
8820
 
  grep -v '^ *+' conftest.er1 >conftest.err
8821
 
  rm -f conftest.er1
8822
 
  cat conftest.err >&5
8823
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824
 
  (exit $ac_status); } && {
8825
 
         test -z "$ac_c_werror_flag" ||
8826
 
         test ! -s conftest.err
8827
 
       } && test -s conftest$ac_exeext && {
8828
 
         test "$cross_compiling" = yes ||
8829
 
         $as_test_x conftest$ac_exeext
8830
 
       }; then
8831
 
  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'
8832
 
 
8833
 
else
8834
 
  $as_echo "$as_me: failed program was:" >&5
8835
 
sed 's/^/| /' conftest.$ac_ext >&5
8836
 
 
8837
 
 
8838
 
fi
8839
 
 
8840
 
rm -rf conftest.dSYM
8841
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8842
 
      conftest$ac_exeext conftest.$ac_ext
8843
 
        LDFLAGS="$save_LDFLAGS"
 
8869
        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'
8844
8870
      else
8845
 
        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'
8846
 
        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'
 
8871
        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'
 
8872
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8847
8873
      fi
8848
 
      archive_cmds_need_lc='no'
8849
8874
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850
8875
      hardcode_libdir_separator=:
8851
 
      inherit_rpath=yes
8852
8876
      link_all_deplibs=yes
8853
8877
      ;;
8854
8878
 
8855
8879
    netbsd*)
8856
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8880
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8857
8881
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8858
8882
      else
8859
8883
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8871
8895
      hardcode_shlibpath_var=no
8872
8896
      ;;
8873
8897
 
8874
 
    *nto* | *qnx*)
8875
 
      ;;
8876
 
 
8877
8898
    openbsd*)
8878
8899
      if test -f /usr/libexec/ld.so; then
8879
8900
        hardcode_direct=yes
8880
8901
        hardcode_shlibpath_var=no
8881
 
        hardcode_direct_absolute=yes
8882
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8902
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8883
8903
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8884
8904
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8885
8905
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895
8915
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8896
8916
             ;;
8897
8917
          esac
8898
 
        fi
 
8918
        fi
8899
8919
      else
8900
8920
        ld_shlibs=no
8901
8921
      fi
8905
8925
      hardcode_libdir_flag_spec='-L$libdir'
8906
8926
      hardcode_minus_L=yes
8907
8927
      allow_undefined_flag=unsupported
8908
 
      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'
8909
 
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8928
      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'
 
8929
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8910
8930
      ;;
8911
8931
 
8912
8932
    osf3*)
8913
8933
      if test "$GCC" = yes; then
8914
8934
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8915
 
        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'
 
8935
        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'
8916
8936
      else
8917
8937
        allow_undefined_flag=' -expect_unresolved \*'
8918
 
        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'
 
8938
        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'
8919
8939
      fi
8920
 
      archive_cmds_need_lc='no'
8921
8940
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8922
8941
      hardcode_libdir_separator=:
8923
8942
      ;;
8925
8944
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8926
8945
      if test "$GCC" = yes; then
8927
8946
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8928
 
        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'
 
8947
        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'
8929
8948
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930
8949
      else
8931
8950
        allow_undefined_flag=' -expect_unresolved \*'
8932
 
        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'
8933
 
        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~
8934
 
        $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'
 
8951
        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'
 
8952
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8953
        $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'
8935
8954
 
8936
8955
        # Both c and cxx compiler support -rpath directly
8937
8956
        hardcode_libdir_flag_spec='-rpath $libdir'
8938
8957
      fi
8939
 
      archive_cmds_need_lc='no'
8940
8958
      hardcode_libdir_separator=:
8941
8959
      ;;
8942
8960
 
8943
8961
    solaris*)
8944
 
      no_undefined_flag=' -z defs'
 
8962
      no_undefined_flag=' -z text'
8945
8963
      if test "$GCC" = yes; then
8946
8964
        wlarc='${wl}'
8947
 
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948
 
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8949
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8965
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8966
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8967
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8950
8968
      else
8951
 
        case `$CC -V 2>&1` in
8952
 
        *"Compilers 5.0"*)
8953
 
          wlarc=''
8954
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8955
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8956
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8957
 
          ;;
8958
 
        *)
8959
 
          wlarc='${wl}'
8960
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8961
 
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8962
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8963
 
          ;;
8964
 
        esac
 
8969
        wlarc=''
 
8970
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8971
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8972
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8965
8973
      fi
8966
8974
      hardcode_libdir_flag_spec='-R$libdir'
8967
8975
      hardcode_shlibpath_var=no
8971
8979
        # The compiler driver will combine and reorder linker options,
8972
8980
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8973
8981
        # but is careful enough not to reorder.
8974
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8982
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8975
8983
        if test "$GCC" = yes; then
8976
8984
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8977
8985
        else
9060
9068
      allow_undefined_flag='${wl}-z,nodefs'
9061
9069
      archive_cmds_need_lc=no
9062
9070
      hardcode_shlibpath_var=no
9063
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9071
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9064
9072
      hardcode_libdir_separator=':'
9065
9073
      link_all_deplibs=yes
9066
9074
      export_dynamic_flag_spec='${wl}-Bexport'
9067
9075
      runpath_var='LD_RUN_PATH'
9068
9076
 
9069
9077
      if test "$GCC" = yes; then
9070
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9071
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9078
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9079
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9072
9080
      else
9073
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9081
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9082
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075
9083
      fi
9076
9084
      ;;
9077
9085
 
9085
9093
      ld_shlibs=no
9086
9094
      ;;
9087
9095
    esac
9088
 
 
9089
 
    if test x$host_vendor = xsni; then
9090
 
      case $host in
9091
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9092
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9093
 
        ;;
9094
 
      esac
9095
 
    fi
9096
9096
  fi
9097
9097
 
9098
9098
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9099
9099
$as_echo "$ld_shlibs" >&6; }
9100
9100
test "$ld_shlibs" = no && can_build_shared=no
9101
9101
 
9102
 
with_gnu_ld=$with_gnu_ld
9103
 
 
9104
 
 
9105
 
 
9106
 
 
9107
 
 
9108
 
 
9109
 
 
9110
 
 
9111
 
 
9112
 
 
9113
 
 
9114
 
 
9115
 
 
9116
 
 
9117
 
 
9118
9102
#
9119
9103
# Do we need to explicitly link libc?
9120
9104
#
9134
9118
      # to ld, don't add -lc before -lgcc.
9135
9119
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9136
9120
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9137
 
      $RM conftest*
 
9121
      $rm conftest*
9138
9122
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139
9123
 
9140
9124
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155
9139
        libname=conftest
9156
9140
        lt_save_allow_undefined_flag=$allow_undefined_flag
9157
9141
        allow_undefined_flag=
9158
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9159
 
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9142
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9143
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9160
9144
  ac_status=$?
9161
9145
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162
9146
  (exit $ac_status); }
9169
9153
      else
9170
9154
        cat conftest.err 1>&5
9171
9155
      fi
9172
 
      $RM conftest*
 
9156
      $rm conftest*
9173
9157
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9174
9158
$as_echo "$archive_cmds_need_lc" >&6; }
9175
9159
      ;;
9178
9162
  ;;
9179
9163
esac
9180
9164
 
9181
 
 
9182
 
 
9183
 
 
9184
 
 
9185
 
 
9186
 
 
9187
 
 
9188
 
 
9189
 
 
9190
 
 
9191
 
 
9192
 
 
9193
 
 
9194
 
 
9195
 
 
9196
 
 
9197
 
 
9198
 
 
9199
 
 
9200
 
 
9201
 
 
9202
 
 
9203
 
 
9204
 
 
9205
 
 
9206
 
 
9207
 
 
9208
 
 
9209
 
 
9210
 
 
9211
 
 
9212
 
 
9213
 
 
9214
 
 
9215
 
 
9216
 
 
9217
 
 
9218
 
 
9219
 
 
9220
 
 
9221
 
 
9222
 
 
9223
 
 
9224
 
 
9225
 
 
9226
 
 
9227
 
 
9228
 
 
9229
 
 
9230
 
 
9231
 
 
9232
 
 
9233
 
 
9234
 
 
9235
 
 
9236
 
 
9237
 
 
9238
 
 
9239
 
 
9240
 
 
9241
 
 
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
 
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9165
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9338
9166
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9167
library_names_spec=
 
9168
libname_spec='lib$name'
 
9169
soname_spec=
 
9170
shrext_cmds=".so"
 
9171
postinstall_cmds=
 
9172
postuninstall_cmds=
 
9173
finish_cmds=
 
9174
finish_eval=
 
9175
shlibpath_var=
 
9176
shlibpath_overrides_runpath=unknown
 
9177
version_type=none
 
9178
dynamic_linker="$host_os ld.so"
 
9179
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9339
9180
 
9340
9181
if test "$GCC" = yes; then
9341
9182
  case $host_os in
9343
9184
    *) lt_awk_arg="/^libraries:/" ;;
9344
9185
  esac
9345
9186
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9346
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
9187
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9347
9188
    # if the path contains ";" then we assume it to be the separator
9348
9189
    # otherwise default to the standard path separator (i.e. ":") - it is
9349
9190
    # assumed that no part of a normal pathname contains ";" but that should
9350
9191
    # okay in the real world where ";" in dirpaths is itself problematic.
9351
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9192
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9352
9193
  else
9353
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9194
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9354
9195
  fi
9355
9196
  # Ok, now we have the path, separated by spaces, we can step through it
9356
9197
  # and add multilib dir if necessary.
9364
9205
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9365
9206
    fi
9366
9207
  done
9367
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
9208
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9368
9209
BEGIN {RS=" "; FS="/|\n";} {
9369
9210
  lt_foo="";
9370
9211
  lt_count=0;
9384
9225
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9385
9226
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9386
9227
}'`
9387
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
9228
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9388
9229
else
9389
9230
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9390
9231
fi
9391
 
library_names_spec=
9392
 
libname_spec='lib$name'
9393
 
soname_spec=
9394
 
shrext_cmds=".so"
9395
 
postinstall_cmds=
9396
 
postuninstall_cmds=
9397
 
finish_cmds=
9398
 
finish_eval=
9399
 
shlibpath_var=
9400
 
shlibpath_overrides_runpath=unknown
9401
 
version_type=none
9402
 
dynamic_linker="$host_os ld.so"
9403
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9404
9232
need_lib_prefix=unknown
9405
9233
hardcode_into_libs=no
9406
9234
 
9437
9265
      aix4 | aix4.[01] | aix4.[01].*)
9438
9266
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9439
9267
           echo ' yes '
9440
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9268
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9441
9269
        :
9442
9270
      else
9443
9271
        can_build_shared=no
9463
9291
  ;;
9464
9292
 
9465
9293
amigaos*)
9466
 
  case $host_cpu in
9467
 
  powerpc)
9468
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9469
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9470
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471
 
    ;;
9472
 
  m68k)
9473
 
    library_names_spec='$libname.ixlibrary $libname.a'
9474
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9475
 
    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'
9476
 
    ;;
9477
 
  esac
 
9294
  library_names_spec='$libname.ixlibrary $libname.a'
 
9295
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9296
  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'
9478
9297
  ;;
9479
9298
 
9480
9299
beos*)
9497
9316
  # libtool to hard-code these into programs
9498
9317
  ;;
9499
9318
 
9500
 
cygwin* | mingw* | pw32* | cegcc*)
 
9319
cygwin* | mingw* | pw32*)
9501
9320
  version_type=windows
9502
9321
  shrext_cmds=".dll"
9503
9322
  need_version=no
9504
9323
  need_lib_prefix=no
9505
9324
 
9506
9325
  case $GCC,$host_os in
9507
 
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9326
  yes,cygwin* | yes,mingw* | yes,pw32*)
9508
9327
    library_names_spec='$libname.dll.a'
9509
9328
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9510
9329
    postinstall_cmds='base_file=`basename \${file}`~
9511
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9330
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9512
9331
      dldir=$destdir/`dirname \$dlpath`~
9513
9332
      test -d \$dldir || mkdir -p \$dldir~
9514
9333
      $install_prog $dir/$dlname \$dldir/$dlname~
9515
 
      chmod a+x \$dldir/$dlname~
9516
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9517
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9518
 
      fi'
 
9334
      chmod a+x \$dldir/$dlname'
9519
9335
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9520
9336
      dlpath=$dir/\$dldll~
9521
 
       $RM \$dlpath'
 
9337
       $rm \$dlpath'
9522
9338
    shlibpath_overrides_runpath=yes
9523
9339
 
9524
9340
    case $host_os in
9527
9343
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9528
9344
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9529
9345
      ;;
9530
 
    mingw* | cegcc*)
 
9346
    mingw*)
9531
9347
      # MinGW DLLs use traditional 'lib' prefix
9532
9348
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9533
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9534
 
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9349
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9350
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9535
9351
        # It is most probably a Windows format PATH printed by
9536
9352
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9537
9353
        # path with ; separators, and with drive letters. We can handle the
9538
9354
        # drive letters (cygwin fileutils understands them), so leave them,
9539
9355
        # especially as we might pass files found there to a mingw objdump,
9540
9356
        # which wouldn't understand a cygwinified path. Ahh.
9541
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9357
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9542
9358
      else
9543
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9359
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9544
9360
      fi
9545
9361
      ;;
9546
9362
    pw32*)
9564
9380
  version_type=darwin
9565
9381
  need_lib_prefix=no
9566
9382
  need_version=no
9567
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9383
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9568
9384
  soname_spec='${libname}${release}${major}$shared_ext'
9569
9385
  shlibpath_overrides_runpath=yes
9570
9386
  shlibpath_var=DYLD_LIBRARY_PATH
9663
9479
    fi
9664
9480
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9665
9481
    ;;
9666
 
  hppa*64*)
9667
 
    shrext_cmds='.sl'
9668
 
    hardcode_into_libs=yes
9669
 
    dynamic_linker="$host_os dld.sl"
9670
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9671
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9672
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673
 
    soname_spec='${libname}${release}${shared_ext}$major'
9674
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9675
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9676
 
    ;;
9677
 
  *)
 
9482
   hppa*64*)
 
9483
     shrext_cmds='.sl'
 
9484
     hardcode_into_libs=yes
 
9485
     dynamic_linker="$host_os dld.sl"
 
9486
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9487
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9488
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9489
     soname_spec='${libname}${release}${shared_ext}$major'
 
9490
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9491
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9492
     ;;
 
9493
   *)
9678
9494
    shrext_cmds='.sl'
9679
9495
    dynamic_linker="$host_os dld.sl"
9680
9496
    shlibpath_var=SHLIB_PATH
9751
9567
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9752
9568
  shlibpath_var=LD_LIBRARY_PATH
9753
9569
  shlibpath_overrides_runpath=no
9754
 
  # Some binutils ld are patched to set DT_RUNPATH
9755
 
  save_LDFLAGS=$LDFLAGS
9756
 
  save_libdir=$libdir
9757
 
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9758
 
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9759
 
  cat >conftest.$ac_ext <<_ACEOF
9760
 
/* confdefs.h.  */
9761
 
_ACEOF
9762
 
cat confdefs.h >>conftest.$ac_ext
9763
 
cat >>conftest.$ac_ext <<_ACEOF
9764
 
/* end confdefs.h.  */
9765
 
 
9766
 
int
9767
 
main ()
9768
 
{
9769
 
 
9770
 
  ;
9771
 
  return 0;
9772
 
}
9773
 
_ACEOF
9774
 
rm -f conftest.$ac_objext conftest$ac_exeext
9775
 
if { (ac_try="$ac_link"
9776
 
case "(($ac_try" in
9777
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778
 
  *) ac_try_echo=$ac_try;;
9779
 
esac
9780
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9781
 
$as_echo "$ac_try_echo") >&5
9782
 
  (eval "$ac_link") 2>conftest.er1
9783
 
  ac_status=$?
9784
 
  grep -v '^ *+' conftest.er1 >conftest.err
9785
 
  rm -f conftest.er1
9786
 
  cat conftest.err >&5
9787
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788
 
  (exit $ac_status); } && {
9789
 
         test -z "$ac_c_werror_flag" ||
9790
 
         test ! -s conftest.err
9791
 
       } && test -s conftest$ac_exeext && {
9792
 
         test "$cross_compiling" = yes ||
9793
 
         $as_test_x conftest$ac_exeext
9794
 
       }; then
9795
 
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9796
 
  shlibpath_overrides_runpath=yes
9797
 
fi
9798
 
 
9799
 
else
9800
 
  $as_echo "$as_me: failed program was:" >&5
9801
 
sed 's/^/| /' conftest.$ac_ext >&5
9802
 
 
9803
 
 
9804
 
fi
9805
 
 
9806
 
rm -rf conftest.dSYM
9807
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808
 
      conftest$ac_exeext conftest.$ac_ext
9809
 
  LDFLAGS=$save_LDFLAGS
9810
 
  libdir=$save_libdir
9811
 
 
9812
9570
  # This implies no fast_install, which is unacceptable.
9813
9571
  # Some rework will be needed to allow for fast_install
9814
9572
  # before this can be enabled.
9815
9573
  hardcode_into_libs=yes
9816
 
 
9817
 
  # Add ABI-specific directories to the system library path.
9818
 
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
9574
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9575
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9819
9576
 
9820
9577
  # Append ld.so.conf contents to the search path
9821
9578
  if test -f /etc/ld.so.conf; then
9822
 
    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' ' '`
 
9579
    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' ' '`
9823
9580
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9824
9581
  fi
9825
9582
 
9836
9593
  version_type=sunos
9837
9594
  need_lib_prefix=no
9838
9595
  need_version=no
9839
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9596
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9840
9597
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841
9598
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842
9599
    dynamic_linker='NetBSD (a.out) ld.so'
9857
9614
  shlibpath_overrides_runpath=yes
9858
9615
  ;;
9859
9616
 
9860
 
*nto* | *qnx*)
9861
 
  version_type=qnx
 
9617
nto-qnx*)
 
9618
  version_type=linux
9862
9619
  need_lib_prefix=no
9863
9620
  need_version=no
9864
9621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865
9622
  soname_spec='${libname}${release}${shared_ext}$major'
9866
9623
  shlibpath_var=LD_LIBRARY_PATH
9867
 
  shlibpath_overrides_runpath=no
9868
 
  hardcode_into_libs=yes
9869
 
  dynamic_linker='ldqnx.so'
 
9624
  shlibpath_overrides_runpath=yes
9870
9625
  ;;
9871
9626
 
9872
9627
openbsd*)
9875
9630
  need_lib_prefix=no
9876
9631
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9877
9632
  case $host_os in
9878
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9879
 
    *)                          need_version=no  ;;
 
9633
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9634
    *)                         need_version=no  ;;
9880
9635
  esac
9881
9636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9882
9637
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9883
9638
  shlibpath_var=LD_LIBRARY_PATH
9884
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9639
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9885
9640
    case $host_os in
9886
9641
      openbsd2.[89] | openbsd2.[89].*)
9887
9642
        shlibpath_overrides_runpath=no
9953
9708
    sni)
9954
9709
      shlibpath_overrides_runpath=no
9955
9710
      need_lib_prefix=no
 
9711
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9956
9712
      runpath_var=LD_RUN_PATH
9957
9713
      ;;
9958
9714
    siemens)
9983
9739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984
9740
  soname_spec='${libname}${release}${shared_ext}$major'
9985
9741
  shlibpath_var=LD_LIBRARY_PATH
9986
 
  shlibpath_overrides_runpath=yes
9987
9742
  hardcode_into_libs=yes
9988
9743
  if test "$with_gnu_ld" = yes; then
9989
9744
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9745
    shlibpath_overrides_runpath=no
9990
9746
  else
9991
9747
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9748
    shlibpath_overrides_runpath=yes
9992
9749
    case $host_os in
9993
9750
      sco3.2v5*)
9994
9751
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9998
9755
  sys_lib_dlsearch_path_spec='/usr/lib'
9999
9756
  ;;
10000
9757
 
10001
 
tpf*)
10002
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10003
 
  version_type=linux
10004
 
  need_lib_prefix=no
10005
 
  need_version=no
10006
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007
 
  shlibpath_var=LD_LIBRARY_PATH
10008
 
  shlibpath_overrides_runpath=no
10009
 
  hardcode_into_libs=yes
10010
 
  ;;
10011
 
 
10012
9758
uts4*)
10013
9759
  version_type=linux
10014
9760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024
9770
$as_echo "$dynamic_linker" >&6; }
10025
9771
test "$dynamic_linker" = no && can_build_shared=no
10026
9772
 
 
9773
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9774
  $as_echo_n "(cached) " >&6
 
9775
else
 
9776
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9777
fi
 
9778
 
 
9779
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9780
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9781
  $as_echo_n "(cached) " >&6
 
9782
else
 
9783
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9784
fi
 
9785
 
 
9786
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9787
 
10027
9788
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10028
9789
if test "$GCC" = yes; then
10029
9790
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10030
9791
fi
10031
9792
 
10032
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10033
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10034
 
fi
10035
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10036
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10037
 
fi
10038
 
 
10039
 
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
 
10047
 
 
10048
 
 
10049
 
 
10050
 
 
10051
 
 
10052
 
 
10053
 
 
10054
 
 
10055
 
 
10056
 
 
10057
 
 
10058
 
 
10059
 
 
10060
 
 
10061
 
 
10062
 
 
10063
 
 
10064
 
 
10065
 
 
10066
 
 
10067
 
 
10068
 
 
10069
 
 
10070
 
 
10071
 
 
10072
 
 
10073
 
 
10074
 
 
10075
 
 
10076
 
 
10077
 
 
10078
 
 
10079
 
 
10080
 
 
10081
 
 
10082
 
 
10083
 
 
10084
 
 
10085
 
 
10086
 
 
10087
 
 
10088
 
 
10089
 
 
10090
 
 
10091
 
 
10092
 
 
10093
 
 
10094
 
 
10095
 
 
10096
 
 
10097
 
 
10098
 
 
10099
 
 
10100
 
 
10101
 
 
10102
 
 
10103
 
 
10104
 
 
10105
 
 
10106
 
 
10107
 
 
10108
 
 
10109
 
 
10110
 
 
10111
 
 
10112
 
 
10113
 
 
10114
 
 
10115
 
 
10116
 
 
10117
 
 
10118
 
 
10119
 
 
10120
 
 
10121
 
 
10122
 
 
10123
 
 
10124
 
 
10125
 
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9793
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10126
9794
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10127
9795
hardcode_action=
10128
 
if test -n "$hardcode_libdir_flag_spec" ||
10129
 
   test -n "$runpath_var" ||
 
9796
if test -n "$hardcode_libdir_flag_spec" || \
 
9797
   test -n "$runpath_var" || \
10130
9798
   test "X$hardcode_automatic" = "Xyes" ; then
10131
9799
 
10132
 
  # We can hardcode non-existent directories.
 
9800
  # We can hardcode non-existant directories.
10133
9801
  if test "$hardcode_direct" != no &&
10134
9802
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10135
9803
     # have to relink, otherwise we might link with an installed library
10136
9804
     # when we should be linking with a yet-to-be-installed one
10137
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9805
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10138
9806
     test "$hardcode_minus_L" != no; then
10139
9807
    # Linking always hardcodes the temporary library directory.
10140
9808
    hardcode_action=relink
10150
9818
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10151
9819
$as_echo "$hardcode_action" >&6; }
10152
9820
 
10153
 
if test "$hardcode_action" = relink ||
10154
 
   test "$inherit_rpath" = yes; then
 
9821
if test "$hardcode_action" = relink; then
10155
9822
  # Fast installation is not supported
10156
9823
  enable_fast_install=no
10157
9824
elif test "$shlibpath_overrides_runpath" = yes ||
10160
9827
  enable_fast_install=needless
10161
9828
fi
10162
9829
 
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
  if test "x$enable_dlopen" != xyes; then
 
9830
striplib=
 
9831
old_striplib=
 
9832
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9833
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
9834
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9835
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9836
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9837
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9838
$as_echo "yes" >&6; }
 
9839
else
 
9840
# FIXME - insert some real tests, host_os isn't really good enough
 
9841
  case $host_os in
 
9842
   darwin*)
 
9843
       if test -n "$STRIP" ; then
 
9844
         striplib="$STRIP -x"
 
9845
         old_striplib="$STRIP -S"
 
9846
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9847
$as_echo "yes" >&6; }
 
9848
       else
 
9849
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9850
$as_echo "no" >&6; }
 
9851
fi
 
9852
       ;;
 
9853
   *)
 
9854
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9855
$as_echo "no" >&6; }
 
9856
    ;;
 
9857
  esac
 
9858
fi
 
9859
 
 
9860
if test "x$enable_dlopen" != xyes; then
10169
9861
  enable_dlopen=unknown
10170
9862
  enable_dlopen_self=unknown
10171
9863
  enable_dlopen_self_static=unknown
10180
9872
    lt_cv_dlopen_self=yes
10181
9873
    ;;
10182
9874
 
10183
 
  mingw* | pw32* | cegcc*)
 
9875
  mingw* | pw32*)
10184
9876
    lt_cv_dlopen="LoadLibrary"
10185
9877
    lt_cv_dlopen_libs=
10186
 
    ;;
 
9878
   ;;
10187
9879
 
10188
9880
  cygwin*)
10189
9881
    lt_cv_dlopen="dlopen"
10190
9882
    lt_cv_dlopen_libs=
10191
 
    ;;
 
9883
   ;;
10192
9884
 
10193
9885
  darwin*)
10194
9886
  # if libdl is installed we need to link against it
10267
9959
 
10268
9960
fi
10269
9961
 
10270
 
    ;;
 
9962
   ;;
10271
9963
 
10272
9964
  *)
10273
9965
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10764
10456
else
10765
10457
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10766
10458
  lt_status=$lt_dlunknown
10767
 
  cat > conftest.$ac_ext <<_LT_EOF
10768
 
#line 10768 "configure"
 
10459
  cat > conftest.$ac_ext <<EOF
 
10460
#line 10460 "configure"
10769
10461
#include "confdefs.h"
10770
10462
 
10771
10463
#if HAVE_DLFCN_H
10806
10498
#  endif
10807
10499
#endif
10808
10500
 
 
10501
#ifdef __cplusplus
 
10502
extern "C" void exit (int);
 
10503
#endif
 
10504
 
10809
10505
void fnord() { int i=42;}
10810
10506
int main ()
10811
10507
{
10821
10517
  else
10822
10518
    puts (dlerror ());
10823
10519
 
10824
 
  return status;
 
10520
    exit (status);
10825
10521
}
10826
 
_LT_EOF
 
10522
EOF
10827
10523
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828
10524
  (eval $ac_link) 2>&5
10829
10525
  ac_status=$?
10860
10556
else
10861
10557
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10862
10558
  lt_status=$lt_dlunknown
10863
 
  cat > conftest.$ac_ext <<_LT_EOF
10864
 
#line 10864 "configure"
 
10559
  cat > conftest.$ac_ext <<EOF
 
10560
#line 10560 "configure"
10865
10561
#include "confdefs.h"
10866
10562
 
10867
10563
#if HAVE_DLFCN_H
10902
10598
#  endif
10903
10599
#endif
10904
10600
 
 
10601
#ifdef __cplusplus
 
10602
extern "C" void exit (int);
 
10603
#endif
 
10604
 
10905
10605
void fnord() { int i=42;}
10906
10606
int main ()
10907
10607
{
10917
10617
  else
10918
10618
    puts (dlerror ());
10919
10619
 
10920
 
  return status;
 
10620
    exit (status);
10921
10621
}
10922
 
_LT_EOF
 
10622
EOF
10923
10623
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924
10624
  (eval $ac_link) 2>&5
10925
10625
  ac_status=$?
10963
10663
fi
10964
10664
 
10965
10665
 
10966
 
 
10967
 
 
10968
 
 
10969
 
 
10970
 
 
10971
 
 
10972
 
 
10973
 
 
10974
 
 
10975
 
 
10976
 
 
10977
 
 
10978
 
 
10979
 
 
10980
 
 
10981
 
striplib=
10982
 
old_striplib=
10983
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10984
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10985
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10986
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10987
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10988
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
10989
 
$as_echo "yes" >&6; }
10990
 
else
10991
 
# FIXME - insert some real tests, host_os isn't really good enough
10992
 
  case $host_os in
10993
 
  darwin*)
10994
 
    if test -n "$STRIP" ; then
10995
 
      striplib="$STRIP -x"
10996
 
      old_striplib="$STRIP -S"
10997
 
      { $as_echo "$as_me:$LINENO: result: yes" >&5
10998
 
$as_echo "yes" >&6; }
10999
 
    else
11000
 
      { $as_echo "$as_me:$LINENO: result: no" >&5
11001
 
$as_echo "no" >&6; }
11002
 
    fi
11003
 
    ;;
11004
 
  *)
11005
 
    { $as_echo "$as_me:$LINENO: result: no" >&5
11006
 
$as_echo "no" >&6; }
11007
 
    ;;
11008
 
  esac
11009
 
fi
11010
 
 
11011
 
 
11012
 
 
11013
 
 
11014
 
 
11015
 
 
11016
 
 
11017
 
 
11018
 
 
11019
 
 
11020
 
 
11021
 
 
11022
 
  # Report which library types will actually be built
11023
 
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11024
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11025
 
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11026
 
$as_echo "$can_build_shared" >&6; }
11027
 
 
11028
 
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11029
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
11030
 
  test "$can_build_shared" = "no" && enable_shared=no
11031
 
 
11032
 
  # On AIX, shared libraries and static libraries use the same namespace, and
11033
 
  # are all built from PIC.
11034
 
  case $host_os in
11035
 
  aix3*)
11036
 
    test "$enable_shared" = yes && enable_static=no
11037
 
    if test -n "$RANLIB"; then
11038
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11039
 
      postinstall_cmds='$RANLIB $lib'
11040
 
    fi
11041
 
    ;;
11042
 
 
11043
 
  aix[4-9]*)
11044
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11045
 
      test "$enable_shared" = yes && enable_static=no
11046
 
    fi
11047
 
    ;;
11048
 
  esac
11049
 
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11050
 
$as_echo "$enable_shared" >&6; }
11051
 
 
11052
 
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11053
 
$as_echo_n "checking whether to build static libraries... " >&6; }
11054
 
  # Make sure either enable_shared or enable_static is yes.
11055
 
  test "$enable_shared" = yes || enable_static=yes
11056
 
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11057
 
$as_echo "$enable_static" >&6; }
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
 
fi
11063
 
ac_ext=c
11064
 
ac_cpp='$CPP $CPPFLAGS'
11065
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11068
 
 
11069
 
CC="$lt_save_CC"
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
        ac_config_commands="$ac_config_commands libtool"
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
# Only expand once:
 
10666
# Report which library types will actually be built
 
10667
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10668
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10669
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10670
$as_echo "$can_build_shared" >&6; }
 
10671
 
 
10672
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10673
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10674
test "$can_build_shared" = "no" && enable_shared=no
 
10675
 
 
10676
# On AIX, shared libraries and static libraries use the same namespace, and
 
10677
# are all built from PIC.
 
10678
case $host_os in
 
10679
aix3*)
 
10680
  test "$enable_shared" = yes && enable_static=no
 
10681
  if test -n "$RANLIB"; then
 
10682
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10683
    postinstall_cmds='$RANLIB $lib'
 
10684
  fi
 
10685
  ;;
 
10686
 
 
10687
aix[4-9]*)
 
10688
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10689
    test "$enable_shared" = yes && enable_static=no
 
10690
  fi
 
10691
    ;;
 
10692
esac
 
10693
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10694
$as_echo "$enable_shared" >&6; }
 
10695
 
 
10696
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10697
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10698
# Make sure either enable_shared or enable_static is yes.
 
10699
test "$enable_shared" = yes || enable_static=yes
 
10700
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
10701
$as_echo "$enable_static" >&6; }
 
10702
 
 
10703
# The else clause should only fire when bootstrapping the
 
10704
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10705
# with your package, and you will get complaints that there are
 
10706
# no rules to generate ltmain.sh.
 
10707
if test -f "$ltmain"; then
 
10708
  # See if we are running on zsh, and set the options which allow our commands through
 
10709
  # without removal of \ escapes.
 
10710
  if test -n "${ZSH_VERSION+set}" ; then
 
10711
    setopt NO_GLOB_SUBST
 
10712
  fi
 
10713
  # Now quote all the things that may contain metacharacters while being
 
10714
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10715
  # variables and quote the copies for generation of the libtool script.
 
10716
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10717
    SED SHELL STRIP \
 
10718
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10719
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10720
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10721
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10722
    lt_cv_sys_global_symbol_to_c_name_address \
 
10723
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10724
    old_postinstall_cmds old_postuninstall_cmds \
 
10725
    compiler \
 
10726
    CC \
 
10727
    LD \
 
10728
    lt_prog_compiler_wl \
 
10729
    lt_prog_compiler_pic \
 
10730
    lt_prog_compiler_static \
 
10731
    lt_prog_compiler_no_builtin_flag \
 
10732
    export_dynamic_flag_spec \
 
10733
    thread_safe_flag_spec \
 
10734
    whole_archive_flag_spec \
 
10735
    enable_shared_with_static_runtimes \
 
10736
    old_archive_cmds \
 
10737
    old_archive_from_new_cmds \
 
10738
    predep_objects \
 
10739
    postdep_objects \
 
10740
    predeps \
 
10741
    postdeps \
 
10742
    compiler_lib_search_path \
 
10743
    compiler_lib_search_dirs \
 
10744
    archive_cmds \
 
10745
    archive_expsym_cmds \
 
10746
    postinstall_cmds \
 
10747
    postuninstall_cmds \
 
10748
    old_archive_from_expsyms_cmds \
 
10749
    allow_undefined_flag \
 
10750
    no_undefined_flag \
 
10751
    export_symbols_cmds \
 
10752
    hardcode_libdir_flag_spec \
 
10753
    hardcode_libdir_flag_spec_ld \
 
10754
    hardcode_libdir_separator \
 
10755
    hardcode_automatic \
 
10756
    module_cmds \
 
10757
    module_expsym_cmds \
 
10758
    lt_cv_prog_compiler_c_o \
 
10759
    fix_srcfile_path \
 
10760
    exclude_expsyms \
 
10761
    include_expsyms; do
 
10762
 
 
10763
    case $var in
 
10764
    old_archive_cmds | \
 
10765
    old_archive_from_new_cmds | \
 
10766
    archive_cmds | \
 
10767
    archive_expsym_cmds | \
 
10768
    module_cmds | \
 
10769
    module_expsym_cmds | \
 
10770
    old_archive_from_expsyms_cmds | \
 
10771
    export_symbols_cmds | \
 
10772
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10773
    postinstall_cmds | postuninstall_cmds | \
 
10774
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10775
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10776
      # Double-quote double-evaled strings.
 
10777
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10778
      ;;
 
10779
    *)
 
10780
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10781
      ;;
 
10782
    esac
 
10783
  done
 
10784
 
 
10785
  case $lt_echo in
 
10786
  *'\$0 --fallback-echo"')
 
10787
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10788
    ;;
 
10789
  esac
 
10790
 
 
10791
cfgfile="${ofile}T"
 
10792
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10793
  $rm -f "$cfgfile"
 
10794
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
10795
$as_echo "$as_me: creating $ofile" >&6;}
 
10796
 
 
10797
  cat <<__EOF__ >> "$cfgfile"
 
10798
#! $SHELL
 
10799
 
 
10800
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10801
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10802
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10803
#
 
10804
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10805
# Free Software Foundation, Inc.
 
10806
#
 
10807
# This file is part of GNU Libtool:
 
10808
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10809
#
 
10810
# This program is free software; you can redistribute it and/or modify
 
10811
# it under the terms of the GNU General Public License as published by
 
10812
# the Free Software Foundation; either version 2 of the License, or
 
10813
# (at your option) any later version.
 
10814
#
 
10815
# This program is distributed in the hope that it will be useful, but
 
10816
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10817
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10818
# General Public License for more details.
 
10819
#
 
10820
# You should have received a copy of the GNU General Public License
 
10821
# along with this program; if not, write to the Free Software
 
10822
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10823
#
 
10824
# As a special exception to the GNU General Public License, if you
 
10825
# distribute this file as part of a program that contains a
 
10826
# configuration script generated by Autoconf, you may include it under
 
10827
# the same distribution terms that you use for the rest of that program.
 
10828
 
 
10829
# A sed program that does not truncate output.
 
10830
SED=$lt_SED
 
10831
 
 
10832
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10833
Xsed="$SED -e 1s/^X//"
 
10834
 
 
10835
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10836
# if CDPATH is set.
 
10837
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10838
 
 
10839
# The names of the tagged configurations supported by this script.
 
10840
available_tags=
 
10841
 
 
10842
# ### BEGIN LIBTOOL CONFIG
 
10843
 
 
10844
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10845
 
 
10846
# Shell to use when invoking shell scripts.
 
10847
SHELL=$lt_SHELL
 
10848
 
 
10849
# Whether or not to build shared libraries.
 
10850
build_libtool_libs=$enable_shared
 
10851
 
 
10852
# Whether or not to build static libraries.
 
10853
build_old_libs=$enable_static
 
10854
 
 
10855
# Whether or not to add -lc for building shared libraries.
 
10856
build_libtool_need_lc=$archive_cmds_need_lc
 
10857
 
 
10858
# Whether or not to disallow shared libs when runtime libs are static
 
10859
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10860
 
 
10861
# Whether or not to optimize for fast installation.
 
10862
fast_install=$enable_fast_install
 
10863
 
 
10864
# The host system.
 
10865
host_alias=$host_alias
 
10866
host=$host
 
10867
host_os=$host_os
 
10868
 
 
10869
# The build system.
 
10870
build_alias=$build_alias
 
10871
build=$build
 
10872
build_os=$build_os
 
10873
 
 
10874
# An echo program that does not interpret backslashes.
 
10875
echo=$lt_echo
 
10876
 
 
10877
# The archiver.
 
10878
AR=$lt_AR
 
10879
AR_FLAGS=$lt_AR_FLAGS
 
10880
 
 
10881
# A C compiler.
 
10882
LTCC=$lt_LTCC
 
10883
 
 
10884
# LTCC compiler flags.
 
10885
LTCFLAGS=$lt_LTCFLAGS
 
10886
 
 
10887
# A language-specific compiler.
 
10888
CC=$lt_compiler
 
10889
 
 
10890
# Is the compiler the GNU C compiler?
 
10891
with_gcc=$GCC
 
10892
 
 
10893
# An ERE matcher.
 
10894
EGREP=$lt_EGREP
 
10895
 
 
10896
# The linker used to build libraries.
 
10897
LD=$lt_LD
 
10898
 
 
10899
# Whether we need hard or soft links.
 
10900
LN_S=$lt_LN_S
 
10901
 
 
10902
# A BSD-compatible nm program.
 
10903
NM=$lt_NM
 
10904
 
 
10905
# A symbol stripping program
 
10906
STRIP=$lt_STRIP
 
10907
 
 
10908
# Used to examine libraries when file_magic_cmd begins "file"
 
10909
MAGIC_CMD=$MAGIC_CMD
 
10910
 
 
10911
# Used on cygwin: DLL creation program.
 
10912
DLLTOOL="$DLLTOOL"
 
10913
 
 
10914
# Used on cygwin: object dumper.
 
10915
OBJDUMP="$OBJDUMP"
 
10916
 
 
10917
# Used on cygwin: assembler.
 
10918
AS="$AS"
 
10919
 
 
10920
# The name of the directory that contains temporary libtool files.
 
10921
objdir=$objdir
 
10922
 
 
10923
# How to create reloadable object files.
 
10924
reload_flag=$lt_reload_flag
 
10925
reload_cmds=$lt_reload_cmds
 
10926
 
 
10927
# How to pass a linker flag through the compiler.
 
10928
wl=$lt_lt_prog_compiler_wl
 
10929
 
 
10930
# Object file suffix (normally "o").
 
10931
objext="$ac_objext"
 
10932
 
 
10933
# Old archive suffix (normally "a").
 
10934
libext="$libext"
 
10935
 
 
10936
# Shared library suffix (normally ".so").
 
10937
shrext_cmds='$shrext_cmds'
 
10938
 
 
10939
# Executable file suffix (normally "").
 
10940
exeext="$exeext"
 
10941
 
 
10942
# Additional compiler flags for building library objects.
 
10943
pic_flag=$lt_lt_prog_compiler_pic
 
10944
pic_mode=$pic_mode
 
10945
 
 
10946
# What is the maximum length of a command?
 
10947
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10948
 
 
10949
# Does compiler simultaneously support -c and -o options?
 
10950
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10951
 
 
10952
# Must we lock files when doing compilation?
 
10953
need_locks=$lt_need_locks
 
10954
 
 
10955
# Do we need the lib prefix for modules?
 
10956
need_lib_prefix=$need_lib_prefix
 
10957
 
 
10958
# Do we need a version for libraries?
 
10959
need_version=$need_version
 
10960
 
 
10961
# Whether dlopen is supported.
 
10962
dlopen_support=$enable_dlopen
 
10963
 
 
10964
# Whether dlopen of programs is supported.
 
10965
dlopen_self=$enable_dlopen_self
 
10966
 
 
10967
# Whether dlopen of statically linked programs is supported.
 
10968
dlopen_self_static=$enable_dlopen_self_static
 
10969
 
 
10970
# Compiler flag to prevent dynamic linking.
 
10971
link_static_flag=$lt_lt_prog_compiler_static
 
10972
 
 
10973
# Compiler flag to turn off builtin functions.
 
10974
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10975
 
 
10976
# Compiler flag to allow reflexive dlopens.
 
10977
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10978
 
 
10979
# Compiler flag to generate shared objects directly from archives.
 
10980
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10981
 
 
10982
# Compiler flag to generate thread-safe objects.
 
10983
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10984
 
 
10985
# Library versioning type.
 
10986
version_type=$version_type
 
10987
 
 
10988
# Format of library name prefix.
 
10989
libname_spec=$lt_libname_spec
 
10990
 
 
10991
# List of archive names.  First name is the real one, the rest are links.
 
10992
# The last name is the one that the linker finds with -lNAME.
 
10993
library_names_spec=$lt_library_names_spec
 
10994
 
 
10995
# The coded name of the library, if different from the real name.
 
10996
soname_spec=$lt_soname_spec
 
10997
 
 
10998
# Commands used to build and install an old-style archive.
 
10999
RANLIB=$lt_RANLIB
 
11000
old_archive_cmds=$lt_old_archive_cmds
 
11001
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11002
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11003
 
 
11004
# Create an old-style archive from a shared archive.
 
11005
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11006
 
 
11007
# Create a temporary old-style archive to link instead of a shared archive.
 
11008
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11009
 
 
11010
# Commands used to build and install a shared archive.
 
11011
archive_cmds=$lt_archive_cmds
 
11012
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11013
postinstall_cmds=$lt_postinstall_cmds
 
11014
postuninstall_cmds=$lt_postuninstall_cmds
 
11015
 
 
11016
# Commands used to build a loadable module (assumed same as above if empty)
 
11017
module_cmds=$lt_module_cmds
 
11018
module_expsym_cmds=$lt_module_expsym_cmds
 
11019
 
 
11020
# Commands to strip libraries.
 
11021
old_striplib=$lt_old_striplib
 
11022
striplib=$lt_striplib
 
11023
 
 
11024
# Dependencies to place before the objects being linked to create a
 
11025
# shared library.
 
11026
predep_objects=$lt_predep_objects
 
11027
 
 
11028
# Dependencies to place after the objects being linked to create a
 
11029
# shared library.
 
11030
postdep_objects=$lt_postdep_objects
 
11031
 
 
11032
# Dependencies to place before the objects being linked to create a
 
11033
# shared library.
 
11034
predeps=$lt_predeps
 
11035
 
 
11036
# Dependencies to place after the objects being linked to create a
 
11037
# shared library.
 
11038
postdeps=$lt_postdeps
 
11039
 
 
11040
# The directories searched by this compiler when creating a shared
 
11041
# library
 
11042
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11043
 
 
11044
# The library search path used internally by the compiler when linking
 
11045
# a shared library.
 
11046
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11047
 
 
11048
# Method to check whether dependent libraries are shared objects.
 
11049
deplibs_check_method=$lt_deplibs_check_method
 
11050
 
 
11051
# Command to use when deplibs_check_method == file_magic.
 
11052
file_magic_cmd=$lt_file_magic_cmd
 
11053
 
 
11054
# Flag that allows shared libraries with undefined symbols to be built.
 
11055
allow_undefined_flag=$lt_allow_undefined_flag
 
11056
 
 
11057
# Flag that forces no undefined symbols.
 
11058
no_undefined_flag=$lt_no_undefined_flag
 
11059
 
 
11060
# Commands used to finish a libtool library installation in a directory.
 
11061
finish_cmds=$lt_finish_cmds
 
11062
 
 
11063
# Same as above, but a single script fragment to be evaled but not shown.
 
11064
finish_eval=$lt_finish_eval
 
11065
 
 
11066
# Take the output of nm and produce a listing of raw symbols and C names.
 
11067
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11068
 
 
11069
# Transform the output of nm in a proper C declaration
 
11070
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11071
 
 
11072
# Transform the output of nm in a C name address pair
 
11073
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11074
 
 
11075
# This is the shared library runtime path variable.
 
11076
runpath_var=$runpath_var
 
11077
 
 
11078
# This is the shared library path variable.
 
11079
shlibpath_var=$shlibpath_var
 
11080
 
 
11081
# Is shlibpath searched before the hard-coded library search path?
 
11082
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11083
 
 
11084
# How to hardcode a shared library path into an executable.
 
11085
hardcode_action=$hardcode_action
 
11086
 
 
11087
# Whether we should hardcode library paths into libraries.
 
11088
hardcode_into_libs=$hardcode_into_libs
 
11089
 
 
11090
# Flag to hardcode \$libdir into a binary during linking.
 
11091
# This must work even if \$libdir does not exist.
 
11092
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11093
 
 
11094
# If ld is used when linking, flag to hardcode \$libdir into
 
11095
# a binary during linking. This must work even if \$libdir does
 
11096
# not exist.
 
11097
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11098
 
 
11099
# Whether we need a single -rpath flag with a separated argument.
 
11100
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11101
 
 
11102
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11103
# resulting binary.
 
11104
hardcode_direct=$hardcode_direct
 
11105
 
 
11106
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11107
# resulting binary.
 
11108
hardcode_minus_L=$hardcode_minus_L
 
11109
 
 
11110
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11111
# the resulting binary.
 
11112
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11113
 
 
11114
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11115
# and all subsequent libraries and executables linked against it.
 
11116
hardcode_automatic=$hardcode_automatic
 
11117
 
 
11118
# Variables whose values should be saved in libtool wrapper scripts and
 
11119
# restored at relink time.
 
11120
variables_saved_for_relink="$variables_saved_for_relink"
 
11121
 
 
11122
# Whether libtool must link a program against all its dependency libraries.
 
11123
link_all_deplibs=$link_all_deplibs
 
11124
 
 
11125
# Compile-time system search path for libraries
 
11126
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11127
 
 
11128
# Run-time system search path for libraries
 
11129
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11130
 
 
11131
# Fix the shell variable \$srcfile for the compiler.
 
11132
fix_srcfile_path=$lt_fix_srcfile_path
 
11133
 
 
11134
# Set to yes if exported symbols are required.
 
11135
always_export_symbols=$always_export_symbols
 
11136
 
 
11137
# The commands to list exported symbols.
 
11138
export_symbols_cmds=$lt_export_symbols_cmds
 
11139
 
 
11140
# The commands to extract the exported symbol list from a shared archive.
 
11141
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11142
 
 
11143
# Symbols that should not be listed in the preloaded symbols.
 
11144
exclude_expsyms=$lt_exclude_expsyms
 
11145
 
 
11146
# Symbols that must always be exported.
 
11147
include_expsyms=$lt_include_expsyms
 
11148
 
 
11149
# ### END LIBTOOL CONFIG
 
11150
 
 
11151
__EOF__
 
11152
 
 
11153
 
 
11154
  case $host_os in
 
11155
  aix3*)
 
11156
    cat <<\EOF >> "$cfgfile"
 
11157
 
 
11158
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11159
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11160
# vanish in a puff of smoke.
 
11161
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11162
  COLLECT_NAMES=
 
11163
  export COLLECT_NAMES
 
11164
fi
 
11165
EOF
 
11166
    ;;
 
11167
  esac
 
11168
 
 
11169
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11170
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11171
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11172
  # is reportedly fixed, but why not run on old versions too?
 
11173
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11174
 
 
11175
  mv -f "$cfgfile" "$ofile" || \
 
11176
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11177
  chmod +x "$ofile"
 
11178
 
 
11179
else
 
11180
  # If there is no Makefile yet, we rely on a make rule to execute
 
11181
  # `config.status --recheck' to rerun these tests and create the
 
11182
  # libtool script then.
 
11183
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11184
  if test -f "$ltmain_in"; then
 
11185
    test -f Makefile && make "$ltmain"
 
11186
  fi
 
11187
fi
 
11188
 
 
11189
 
 
11190
ac_ext=c
 
11191
ac_cpp='$CPP $CPPFLAGS'
 
11192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11195
 
 
11196
CC="$lt_save_CC"
 
11197
 
 
11198
 
 
11199
# Check whether --with-tags was given.
 
11200
if test "${with_tags+set}" = set; then
 
11201
  withval=$with_tags; tagnames="$withval"
 
11202
fi
 
11203
 
 
11204
 
 
11205
if test -f "$ltmain" && test -n "$tagnames"; then
 
11206
  if test ! -f "${ofile}"; then
 
11207
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11208
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11209
  fi
 
11210
 
 
11211
  if test -z "$LTCC"; then
 
11212
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11213
    if test -z "$LTCC"; then
 
11214
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11215
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11216
    else
 
11217
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11218
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11219
    fi
 
11220
  fi
 
11221
  if test -z "$LTCFLAGS"; then
 
11222
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11223
  fi
 
11224
 
 
11225
  # Extract list of available tagged configurations in $ofile.
 
11226
  # Note that this assumes the entire list is on one line.
 
11227
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11228
 
 
11229
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11230
  for tagname in $tagnames; do
 
11231
    IFS="$lt_save_ifs"
 
11232
    # Check whether tagname contains only valid characters
 
11233
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11234
    "") ;;
 
11235
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11236
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11237
   { (exit 1); exit 1; }; }
 
11238
        ;;
 
11239
    esac
 
11240
 
 
11241
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11242
    then
 
11243
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11244
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11245
   { (exit 1); exit 1; }; }
 
11246
    fi
 
11247
 
 
11248
    # Update the list of available tags.
 
11249
    if test -n "$tagname"; then
 
11250
      echo appending configuration tag \"$tagname\" to $ofile
 
11251
 
 
11252
      case $tagname in
 
11253
      CXX)
 
11254
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11255
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11256
            (test "X$CXX" != "Xg++"))) ; then
 
11257
          ac_ext=cpp
 
11258
ac_cpp='$CXXCPP $CPPFLAGS'
 
11259
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11260
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11261
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
archive_cmds_need_lc_CXX=no
 
11267
allow_undefined_flag_CXX=
 
11268
always_export_symbols_CXX=no
 
11269
archive_expsym_cmds_CXX=
 
11270
export_dynamic_flag_spec_CXX=
 
11271
hardcode_direct_CXX=no
 
11272
hardcode_libdir_flag_spec_CXX=
 
11273
hardcode_libdir_flag_spec_ld_CXX=
 
11274
hardcode_libdir_separator_CXX=
 
11275
hardcode_minus_L_CXX=no
 
11276
hardcode_shlibpath_var_CXX=unsupported
 
11277
hardcode_automatic_CXX=no
 
11278
module_cmds_CXX=
 
11279
module_expsym_cmds_CXX=
 
11280
link_all_deplibs_CXX=unknown
 
11281
old_archive_cmds_CXX=$old_archive_cmds
 
11282
no_undefined_flag_CXX=
 
11283
whole_archive_flag_spec_CXX=
 
11284
enable_shared_with_static_runtimes_CXX=no
 
11285
 
 
11286
# Dependencies to place before and after the object being linked:
 
11287
predep_objects_CXX=
 
11288
postdep_objects_CXX=
 
11289
predeps_CXX=
 
11290
postdeps_CXX=
 
11291
compiler_lib_search_path_CXX=
 
11292
compiler_lib_search_dirs_CXX=
 
11293
 
 
11294
# Source file extension for C++ test sources.
 
11295
ac_ext=cpp
 
11296
 
 
11297
# Object file extension for compiled C++ test sources.
 
11298
objext=o
 
11299
objext_CXX=$objext
 
11300
 
 
11301
# Code to be used in simple compile tests
 
11302
lt_simple_compile_test_code="int some_variable = 0;"
 
11303
 
 
11304
# Code to be used in simple link tests
 
11305
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11306
 
 
11307
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11308
 
 
11309
# If no C compiler was specified, use CC.
 
11310
LTCC=${LTCC-"$CC"}
 
11311
 
 
11312
# If no C compiler flags were specified, use CFLAGS.
 
11313
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11314
 
 
11315
# Allow CC to be a program name with arguments.
 
11316
compiler=$CC
 
11317
 
 
11318
 
 
11319
# save warnings/boilerplate of simple test code
 
11320
ac_outfile=conftest.$ac_objext
 
11321
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11322
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11323
_lt_compiler_boilerplate=`cat conftest.err`
 
11324
$rm conftest*
 
11325
 
 
11326
ac_outfile=conftest.$ac_objext
 
11327
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11328
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11329
_lt_linker_boilerplate=`cat conftest.err`
 
11330
$rm -r conftest*
 
11331
 
 
11332
 
 
11333
# Allow CC to be a program name with arguments.
 
11334
lt_save_CC=$CC
 
11335
lt_save_LD=$LD
 
11336
lt_save_GCC=$GCC
 
11337
GCC=$GXX
 
11338
lt_save_with_gnu_ld=$with_gnu_ld
 
11339
lt_save_path_LD=$lt_cv_path_LD
 
11340
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11341
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11342
else
 
11343
  $as_unset lt_cv_prog_gnu_ld
 
11344
fi
 
11345
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11346
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11347
else
 
11348
  $as_unset lt_cv_path_LD
 
11349
fi
 
11350
test -z "${LDCXX+set}" || LD=$LDCXX
 
11351
CC=${CXX-"c++"}
 
11352
compiler=$CC
 
11353
compiler_CXX=$CC
 
11354
for cc_temp in $compiler""; do
 
11355
  case $cc_temp in
 
11356
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11357
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11358
    \-*) ;;
 
11359
    *) break;;
 
11360
  esac
 
11361
done
 
11362
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11363
 
 
11364
 
 
11365
# We don't want -fno-exception wen compiling C++ code, so set the
 
11366
# no_builtin_flag separately
 
11367
if test "$GXX" = yes; then
 
11368
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11369
else
 
11370
  lt_prog_compiler_no_builtin_flag_CXX=
 
11371
fi
 
11372
 
 
11373
if test "$GXX" = yes; then
 
11374
  # Set up default GNU C++ configuration
 
11375
 
 
11376
 
 
11377
# Check whether --with-gnu-ld was given.
 
11378
if test "${with_gnu_ld+set}" = set; then
 
11379
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11380
else
 
11381
  with_gnu_ld=no
 
11382
fi
 
11383
 
 
11384
ac_prog=ld
 
11385
if test "$GCC" = yes; then
 
11386
  # Check if gcc -print-prog-name=ld gives a path.
 
11387
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11388
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11389
  case $host in
 
11390
  *-*-mingw*)
 
11391
    # gcc leaves a trailing carriage return which upsets mingw
 
11392
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11393
  *)
 
11394
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11395
  esac
 
11396
  case $ac_prog in
 
11397
    # Accept absolute paths.
 
11398
    [\\/]* | ?:[\\/]*)
 
11399
      re_direlt='/[^/][^/]*/\.\./'
 
11400
      # Canonicalize the pathname of ld
 
11401
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11402
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11403
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11404
      done
 
11405
      test -z "$LD" && LD="$ac_prog"
 
11406
      ;;
 
11407
  "")
 
11408
    # If it fails, then pretend we aren't using GCC.
 
11409
    ac_prog=ld
 
11410
    ;;
 
11411
  *)
 
11412
    # If it is relative, then search for the first ld in PATH.
 
11413
    with_gnu_ld=unknown
 
11414
    ;;
 
11415
  esac
 
11416
elif test "$with_gnu_ld" = yes; then
 
11417
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11418
$as_echo_n "checking for GNU ld... " >&6; }
 
11419
else
 
11420
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11421
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11422
fi
 
11423
if test "${lt_cv_path_LD+set}" = set; then
 
11424
  $as_echo_n "(cached) " >&6
 
11425
else
 
11426
  if test -z "$LD"; then
 
11427
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11428
  for ac_dir in $PATH; do
 
11429
    IFS="$lt_save_ifs"
 
11430
    test -z "$ac_dir" && ac_dir=.
 
11431
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11432
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11433
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11434
      # but apparently some variants of GNU ld only accept -v.
 
11435
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11436
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11437
      *GNU* | *'with BFD'*)
 
11438
        test "$with_gnu_ld" != no && break
 
11439
        ;;
 
11440
      *)
 
11441
        test "$with_gnu_ld" != yes && break
 
11442
        ;;
 
11443
      esac
 
11444
    fi
 
11445
  done
 
11446
  IFS="$lt_save_ifs"
 
11447
else
 
11448
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11449
fi
 
11450
fi
 
11451
 
 
11452
LD="$lt_cv_path_LD"
 
11453
if test -n "$LD"; then
 
11454
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11455
$as_echo "$LD" >&6; }
 
11456
else
 
11457
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11458
$as_echo "no" >&6; }
 
11459
fi
 
11460
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11461
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11462
   { (exit 1); exit 1; }; }
 
11463
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11464
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11465
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11466
  $as_echo_n "(cached) " >&6
 
11467
else
 
11468
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11469
case `$LD -v 2>&1 </dev/null` in
 
11470
*GNU* | *'with BFD'*)
 
11471
  lt_cv_prog_gnu_ld=yes
 
11472
  ;;
 
11473
*)
 
11474
  lt_cv_prog_gnu_ld=no
 
11475
  ;;
 
11476
esac
 
11477
fi
 
11478
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11479
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11480
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11481
 
 
11482
 
 
11483
 
 
11484
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11485
  # archiving commands below assume that GNU ld is being used.
 
11486
  if test "$with_gnu_ld" = yes; then
 
11487
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11488
    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'
 
11489
 
 
11490
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11491
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11492
 
 
11493
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11494
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11495
    #     investigate it a little bit more. (MM)
 
11496
    wlarc='${wl}'
 
11497
 
 
11498
    # ancient GNU ld didn't support --whole-archive et. al.
 
11499
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11500
        grep 'no-whole-archive' > /dev/null; then
 
11501
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11502
    else
 
11503
      whole_archive_flag_spec_CXX=
 
11504
    fi
 
11505
  else
 
11506
    with_gnu_ld=no
 
11507
    wlarc=
 
11508
 
 
11509
    # A generic and very simple default shared library creation
 
11510
    # command for GNU C++ for the case where it uses the native
 
11511
    # linker, instead of GNU ld.  If possible, this setting should
 
11512
    # overridden to take advantage of the native linker features on
 
11513
    # the platform it is being used on.
 
11514
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11515
  fi
 
11516
 
 
11517
  # Commands to make compiler produce verbose output that lists
 
11518
  # what "hidden" libraries, object files and flags are used when
 
11519
  # linking a shared library.
 
11520
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11521
 
 
11522
else
 
11523
  GXX=no
 
11524
  with_gnu_ld=no
 
11525
  wlarc=
 
11526
fi
 
11527
 
 
11528
# PORTME: fill in a description of your system's C++ link characteristics
 
11529
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11530
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11531
ld_shlibs_CXX=yes
 
11532
case $host_os in
 
11533
  aix3*)
 
11534
    # FIXME: insert proper C++ library support
 
11535
    ld_shlibs_CXX=no
 
11536
    ;;
 
11537
  aix[4-9]*)
 
11538
    if test "$host_cpu" = ia64; then
 
11539
      # On IA64, the linker does run time linking by default, so we don't
 
11540
      # have to do anything special.
 
11541
      aix_use_runtimelinking=no
 
11542
      exp_sym_flag='-Bexport'
 
11543
      no_entry_flag=""
 
11544
    else
 
11545
      aix_use_runtimelinking=no
 
11546
 
 
11547
      # Test if we are trying to use run time linking or normal
 
11548
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11549
      # need to do runtime linking.
 
11550
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11551
        for ld_flag in $LDFLAGS; do
 
11552
          case $ld_flag in
 
11553
          *-brtl*)
 
11554
            aix_use_runtimelinking=yes
 
11555
            break
 
11556
            ;;
 
11557
          esac
 
11558
        done
 
11559
        ;;
 
11560
      esac
 
11561
 
 
11562
      exp_sym_flag='-bexport'
 
11563
      no_entry_flag='-bnoentry'
 
11564
    fi
 
11565
 
 
11566
    # When large executables or shared objects are built, AIX ld can
 
11567
    # have problems creating the table of contents.  If linking a library
 
11568
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11569
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11570
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11571
 
 
11572
    archive_cmds_CXX=''
 
11573
    hardcode_direct_CXX=yes
 
11574
    hardcode_libdir_separator_CXX=':'
 
11575
    link_all_deplibs_CXX=yes
 
11576
 
 
11577
    if test "$GXX" = yes; then
 
11578
      case $host_os in aix4.[012]|aix4.[012].*)
 
11579
      # We only want to do this on AIX 4.2 and lower, the check
 
11580
      # below for broken collect2 doesn't work under 4.3+
 
11581
        collect2name=`${CC} -print-prog-name=collect2`
 
11582
        if test -f "$collect2name" && \
 
11583
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11584
        then
 
11585
          # We have reworked collect2
 
11586
          :
 
11587
        else
 
11588
          # We have old collect2
 
11589
          hardcode_direct_CXX=unsupported
 
11590
          # It fails to find uninstalled libraries when the uninstalled
 
11591
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11592
          # to unsupported forces relinking
 
11593
          hardcode_minus_L_CXX=yes
 
11594
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11595
          hardcode_libdir_separator_CXX=
 
11596
        fi
 
11597
        ;;
 
11598
      esac
 
11599
      shared_flag='-shared'
 
11600
      if test "$aix_use_runtimelinking" = yes; then
 
11601
        shared_flag="$shared_flag "'${wl}-G'
 
11602
      fi
 
11603
    else
 
11604
      # not using gcc
 
11605
      if test "$host_cpu" = ia64; then
 
11606
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11607
        # chokes on -Wl,-G. The following line is correct:
 
11608
        shared_flag='-G'
 
11609
      else
 
11610
        if test "$aix_use_runtimelinking" = yes; then
 
11611
          shared_flag='${wl}-G'
 
11612
        else
 
11613
          shared_flag='${wl}-bM:SRE'
 
11614
        fi
 
11615
      fi
 
11616
    fi
 
11617
 
 
11618
    # It seems that -bexpall does not export symbols beginning with
 
11619
    # underscore (_), so it is better to generate a list of symbols to export.
 
11620
    always_export_symbols_CXX=yes
 
11621
    if test "$aix_use_runtimelinking" = yes; then
 
11622
      # Warning - without using the other runtime loading flags (-brtl),
 
11623
      # -berok will link without error, but may produce a broken library.
 
11624
      allow_undefined_flag_CXX='-berok'
 
11625
      # Determine the default libpath from the value encoded in an empty executable.
 
11626
      cat >conftest.$ac_ext <<_ACEOF
 
11627
/* confdefs.h.  */
 
11628
_ACEOF
 
11629
cat confdefs.h >>conftest.$ac_ext
 
11630
cat >>conftest.$ac_ext <<_ACEOF
 
11631
/* end confdefs.h.  */
 
11632
 
 
11633
int
 
11634
main ()
 
11635
{
 
11636
 
 
11637
  ;
 
11638
  return 0;
 
11639
}
 
11640
_ACEOF
 
11641
rm -f conftest.$ac_objext conftest$ac_exeext
 
11642
if { (ac_try="$ac_link"
 
11643
case "(($ac_try" in
 
11644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11645
  *) ac_try_echo=$ac_try;;
 
11646
esac
 
11647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11648
$as_echo "$ac_try_echo") >&5
 
11649
  (eval "$ac_link") 2>conftest.er1
 
11650
  ac_status=$?
 
11651
  grep -v '^ *+' conftest.er1 >conftest.err
 
11652
  rm -f conftest.er1
 
11653
  cat conftest.err >&5
 
11654
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11655
  (exit $ac_status); } && {
 
11656
         test -z "$ac_cxx_werror_flag" ||
 
11657
         test ! -s conftest.err
 
11658
       } && test -s conftest$ac_exeext && {
 
11659
         test "$cross_compiling" = yes ||
 
11660
         $as_test_x conftest$ac_exeext
 
11661
       }; then
 
11662
 
 
11663
lt_aix_libpath_sed='
 
11664
    /Import File Strings/,/^$/ {
 
11665
        /^0/ {
 
11666
            s/^0  *\(.*\)$/\1/
 
11667
            p
 
11668
        }
 
11669
    }'
 
11670
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11671
# Check for a 64-bit object if we didn't find anything.
 
11672
if test -z "$aix_libpath"; then
 
11673
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11674
fi
 
11675
else
 
11676
  $as_echo "$as_me: failed program was:" >&5
 
11677
sed 's/^/| /' conftest.$ac_ext >&5
 
11678
 
 
11679
 
 
11680
fi
 
11681
 
 
11682
rm -rf conftest.dSYM
 
11683
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11684
      conftest$ac_exeext conftest.$ac_ext
 
11685
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11686
 
 
11687
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11688
 
 
11689
      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"
 
11690
     else
 
11691
      if test "$host_cpu" = ia64; then
 
11692
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11693
        allow_undefined_flag_CXX="-z nodefs"
 
11694
        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"
 
11695
      else
 
11696
        # Determine the default libpath from the value encoded in an empty executable.
 
11697
        cat >conftest.$ac_ext <<_ACEOF
 
11698
/* confdefs.h.  */
 
11699
_ACEOF
 
11700
cat confdefs.h >>conftest.$ac_ext
 
11701
cat >>conftest.$ac_ext <<_ACEOF
 
11702
/* end confdefs.h.  */
 
11703
 
 
11704
int
 
11705
main ()
 
11706
{
 
11707
 
 
11708
  ;
 
11709
  return 0;
 
11710
}
 
11711
_ACEOF
 
11712
rm -f conftest.$ac_objext conftest$ac_exeext
 
11713
if { (ac_try="$ac_link"
 
11714
case "(($ac_try" in
 
11715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11716
  *) ac_try_echo=$ac_try;;
 
11717
esac
 
11718
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11719
$as_echo "$ac_try_echo") >&5
 
11720
  (eval "$ac_link") 2>conftest.er1
 
11721
  ac_status=$?
 
11722
  grep -v '^ *+' conftest.er1 >conftest.err
 
11723
  rm -f conftest.er1
 
11724
  cat conftest.err >&5
 
11725
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11726
  (exit $ac_status); } && {
 
11727
         test -z "$ac_cxx_werror_flag" ||
 
11728
         test ! -s conftest.err
 
11729
       } && test -s conftest$ac_exeext && {
 
11730
         test "$cross_compiling" = yes ||
 
11731
         $as_test_x conftest$ac_exeext
 
11732
       }; then
 
11733
 
 
11734
lt_aix_libpath_sed='
 
11735
    /Import File Strings/,/^$/ {
 
11736
        /^0/ {
 
11737
            s/^0  *\(.*\)$/\1/
 
11738
            p
 
11739
        }
 
11740
    }'
 
11741
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11742
# Check for a 64-bit object if we didn't find anything.
 
11743
if test -z "$aix_libpath"; then
 
11744
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11745
fi
 
11746
else
 
11747
  $as_echo "$as_me: failed program was:" >&5
 
11748
sed 's/^/| /' conftest.$ac_ext >&5
 
11749
 
 
11750
 
 
11751
fi
 
11752
 
 
11753
rm -rf conftest.dSYM
 
11754
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11755
      conftest$ac_exeext conftest.$ac_ext
 
11756
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11757
 
 
11758
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11759
        # Warning - without using the other run time loading flags,
 
11760
        # -berok will link without error, but may produce a broken library.
 
11761
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11762
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11763
        # Exported symbols can be pulled into shared objects from archives
 
11764
        whole_archive_flag_spec_CXX='$convenience'
 
11765
        archive_cmds_need_lc_CXX=yes
 
11766
        # This is similar to how AIX traditionally builds its shared libraries.
 
11767
        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'
 
11768
      fi
 
11769
    fi
 
11770
    ;;
 
11771
 
 
11772
  beos*)
 
11773
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11774
      allow_undefined_flag_CXX=unsupported
 
11775
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11776
      # support --undefined.  This deserves some investigation.  FIXME
 
11777
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11778
    else
 
11779
      ld_shlibs_CXX=no
 
11780
    fi
 
11781
    ;;
 
11782
 
 
11783
  chorus*)
 
11784
    case $cc_basename in
 
11785
      *)
 
11786
        # FIXME: insert proper C++ library support
 
11787
        ld_shlibs_CXX=no
 
11788
        ;;
 
11789
    esac
 
11790
    ;;
 
11791
 
 
11792
  cygwin* | mingw* | pw32*)
 
11793
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11794
    # as there is no search path for DLLs.
 
11795
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11796
    allow_undefined_flag_CXX=unsupported
 
11797
    always_export_symbols_CXX=no
 
11798
    enable_shared_with_static_runtimes_CXX=yes
 
11799
 
 
11800
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11801
      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'
 
11802
      # If the export-symbols file already is a .def file (1st line
 
11803
      # is EXPORTS), use it as is; otherwise, prepend...
 
11804
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11805
        cp $export_symbols $output_objdir/$soname.def;
 
11806
      else
 
11807
        echo EXPORTS > $output_objdir/$soname.def;
 
11808
        cat $export_symbols >> $output_objdir/$soname.def;
 
11809
      fi~
 
11810
      $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'
 
11811
    else
 
11812
      ld_shlibs_CXX=no
 
11813
    fi
 
11814
  ;;
 
11815
      darwin* | rhapsody*)
 
11816
      archive_cmds_need_lc_CXX=no
 
11817
      hardcode_direct_CXX=no
 
11818
      hardcode_automatic_CXX=yes
 
11819
      hardcode_shlibpath_var_CXX=unsupported
 
11820
      whole_archive_flag_spec_CXX=''
 
11821
      link_all_deplibs_CXX=yes
 
11822
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11823
      if test "$GXX" = yes ; then
 
11824
      output_verbose_link_cmd='echo'
 
11825
      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}"
 
11826
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11827
      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}"
 
11828
      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}"
 
11829
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11830
        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}"
 
11831
        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}"
 
11832
      fi
 
11833
      else
 
11834
      case $cc_basename in
 
11835
        xlc*)
 
11836
         output_verbose_link_cmd='echo'
 
11837
          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'
 
11838
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11839
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11840
          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}'
 
11841
          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}'
 
11842
          ;;
 
11843
       *)
 
11844
         ld_shlibs_CXX=no
 
11845
          ;;
 
11846
      esac
 
11847
      fi
 
11848
        ;;
 
11849
 
 
11850
  dgux*)
 
11851
    case $cc_basename in
 
11852
      ec++*)
 
11853
        # FIXME: insert proper C++ library support
 
11854
        ld_shlibs_CXX=no
 
11855
        ;;
 
11856
      ghcx*)
 
11857
        # Green Hills C++ Compiler
 
11858
        # FIXME: insert proper C++ library support
 
11859
        ld_shlibs_CXX=no
 
11860
        ;;
 
11861
      *)
 
11862
        # FIXME: insert proper C++ library support
 
11863
        ld_shlibs_CXX=no
 
11864
        ;;
 
11865
    esac
 
11866
    ;;
 
11867
  freebsd[12]*)
 
11868
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11869
    ld_shlibs_CXX=no
 
11870
    ;;
 
11871
  freebsd-elf*)
 
11872
    archive_cmds_need_lc_CXX=no
 
11873
    ;;
 
11874
  freebsd* | dragonfly*)
 
11875
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11876
    # conventions
 
11877
    ld_shlibs_CXX=yes
 
11878
    ;;
 
11879
  gnu*)
 
11880
    ;;
 
11881
  hpux9*)
 
11882
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11883
    hardcode_libdir_separator_CXX=:
 
11884
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11885
    hardcode_direct_CXX=yes
 
11886
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11887
                                # but as the default
 
11888
                                # location of the library.
 
11889
 
 
11890
    case $cc_basename in
 
11891
    CC*)
 
11892
      # FIXME: insert proper C++ library support
 
11893
      ld_shlibs_CXX=no
 
11894
      ;;
 
11895
    aCC*)
 
11896
      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'
 
11897
      # Commands to make compiler produce verbose output that lists
 
11898
      # what "hidden" libraries, object files and flags are used when
 
11899
      # linking a shared library.
 
11900
      #
 
11901
      # There doesn't appear to be a way to prevent this compiler from
 
11902
      # explicitly linking system object files so we need to strip them
 
11903
      # from the output so that they don't get included in the library
 
11904
      # dependencies.
 
11905
      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'
 
11906
      ;;
 
11907
    *)
 
11908
      if test "$GXX" = yes; then
 
11909
        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'
 
11910
      else
 
11911
        # FIXME: insert proper C++ library support
 
11912
        ld_shlibs_CXX=no
 
11913
      fi
 
11914
      ;;
 
11915
    esac
 
11916
    ;;
 
11917
  hpux10*|hpux11*)
 
11918
    if test $with_gnu_ld = no; then
 
11919
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11920
      hardcode_libdir_separator_CXX=:
 
11921
 
 
11922
      case $host_cpu in
 
11923
      hppa*64*|ia64*) ;;
 
11924
      *)
 
11925
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11926
        ;;
 
11927
      esac
 
11928
    fi
 
11929
    case $host_cpu in
 
11930
    hppa*64*|ia64*)
 
11931
      hardcode_direct_CXX=no
 
11932
      hardcode_shlibpath_var_CXX=no
 
11933
      ;;
 
11934
    *)
 
11935
      hardcode_direct_CXX=yes
 
11936
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11937
                                              # but as the default
 
11938
                                              # location of the library.
 
11939
      ;;
 
11940
    esac
 
11941
 
 
11942
    case $cc_basename in
 
11943
      CC*)
 
11944
        # FIXME: insert proper C++ library support
 
11945
        ld_shlibs_CXX=no
 
11946
        ;;
 
11947
      aCC*)
 
11948
        case $host_cpu in
 
11949
        hppa*64*)
 
11950
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11951
          ;;
 
11952
        ia64*)
 
11953
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11954
          ;;
 
11955
        *)
 
11956
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11957
          ;;
 
11958
        esac
 
11959
        # Commands to make compiler produce verbose output that lists
 
11960
        # what "hidden" libraries, object files and flags are used when
 
11961
        # linking a shared library.
 
11962
        #
 
11963
        # There doesn't appear to be a way to prevent this compiler from
 
11964
        # explicitly linking system object files so we need to strip them
 
11965
        # from the output so that they don't get included in the library
 
11966
        # dependencies.
 
11967
        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'
 
11968
        ;;
 
11969
      *)
 
11970
        if test "$GXX" = yes; then
 
11971
          if test $with_gnu_ld = no; then
 
11972
            case $host_cpu in
 
11973
            hppa*64*)
 
11974
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11975
              ;;
 
11976
            ia64*)
 
11977
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11978
              ;;
 
11979
            *)
 
11980
              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'
 
11981
              ;;
 
11982
            esac
 
11983
          fi
 
11984
        else
 
11985
          # FIXME: insert proper C++ library support
 
11986
          ld_shlibs_CXX=no
 
11987
        fi
 
11988
        ;;
 
11989
    esac
 
11990
    ;;
 
11991
  interix[3-9]*)
 
11992
    hardcode_direct_CXX=no
 
11993
    hardcode_shlibpath_var_CXX=no
 
11994
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11995
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11996
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11997
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11998
    # default) and relocated if they conflict, which is a slow very memory
 
11999
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12000
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12001
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12002
    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'
 
12003
    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'
 
12004
    ;;
 
12005
  irix5* | irix6*)
 
12006
    case $cc_basename in
 
12007
      CC*)
 
12008
        # SGI C++
 
12009
        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'
 
12010
 
 
12011
        # Archives containing C++ object files must be created using
 
12012
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12013
        # necessary to make sure instantiated templates are included
 
12014
        # in the archive.
 
12015
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12016
        ;;
 
12017
      *)
 
12018
        if test "$GXX" = yes; then
 
12019
          if test "$with_gnu_ld" = no; then
 
12020
            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'
 
12021
          else
 
12022
            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'
 
12023
          fi
 
12024
        fi
 
12025
        link_all_deplibs_CXX=yes
 
12026
        ;;
 
12027
    esac
 
12028
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12029
    hardcode_libdir_separator_CXX=:
 
12030
    ;;
 
12031
  linux* | k*bsd*-gnu)
 
12032
    case $cc_basename in
 
12033
      KCC*)
 
12034
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12035
 
 
12036
        # KCC will only create a shared library if the output file
 
12037
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12038
        # to its proper name (with version) after linking.
 
12039
        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'
 
12040
        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'
 
12041
        # Commands to make compiler produce verbose output that lists
 
12042
        # what "hidden" libraries, object files and flags are used when
 
12043
        # linking a shared library.
 
12044
        #
 
12045
        # There doesn't appear to be a way to prevent this compiler from
 
12046
        # explicitly linking system object files so we need to strip them
 
12047
        # from the output so that they don't get included in the library
 
12048
        # dependencies.
 
12049
        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'
 
12050
 
 
12051
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12052
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12053
 
 
12054
        # Archives containing C++ object files must be created using
 
12055
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12056
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12057
        ;;
 
12058
      icpc*)
 
12059
        # Intel C++
 
12060
        with_gnu_ld=yes
 
12061
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12062
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12063
        # earlier do not add the objects themselves.
 
12064
        case `$CC -V 2>&1` in
 
12065
        *"Version 7."*)
 
12066
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12067
          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'
 
12068
          ;;
 
12069
        *)  # Version 8.0 or newer
 
12070
          tmp_idyn=
 
12071
          case $host_cpu in
 
12072
            ia64*) tmp_idyn=' -i_dynamic';;
 
12073
          esac
 
12074
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12075
          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'
 
12076
          ;;
 
12077
        esac
 
12078
        archive_cmds_need_lc_CXX=no
 
12079
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12080
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12081
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12082
        ;;
 
12083
      pgCC* | pgcpp*)
 
12084
        # Portland Group C++ compiler
 
12085
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12086
        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'
 
12087
 
 
12088
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12089
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12090
        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'
 
12091
        ;;
 
12092
      cxx*)
 
12093
        # Compaq C++
 
12094
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12095
        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'
 
12096
 
 
12097
        runpath_var=LD_RUN_PATH
 
12098
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12099
        hardcode_libdir_separator_CXX=:
 
12100
 
 
12101
        # Commands to make compiler produce verbose output that lists
 
12102
        # what "hidden" libraries, object files and flags are used when
 
12103
        # linking a shared library.
 
12104
        #
 
12105
        # There doesn't appear to be a way to prevent this compiler from
 
12106
        # explicitly linking system object files so we need to strip them
 
12107
        # from the output so that they don't get included in the library
 
12108
        # dependencies.
 
12109
        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'
 
12110
        ;;
 
12111
      *)
 
12112
        case `$CC -V 2>&1 | sed 5q` in
 
12113
        *Sun\ C*)
 
12114
          # Sun C++ 5.9
 
12115
          no_undefined_flag_CXX=' -zdefs'
 
12116
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12117
          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'
 
12118
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12119
          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'
 
12120
 
 
12121
          # Not sure whether something based on
 
12122
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12123
          # would be better.
 
12124
          output_verbose_link_cmd='echo'
 
12125
 
 
12126
          # Archives containing C++ object files must be created using
 
12127
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12128
          # necessary to make sure instantiated templates are included
 
12129
          # in the archive.
 
12130
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12131
          ;;
 
12132
        esac
 
12133
        ;;
 
12134
    esac
 
12135
    ;;
 
12136
  lynxos*)
 
12137
    # FIXME: insert proper C++ library support
 
12138
    ld_shlibs_CXX=no
 
12139
    ;;
 
12140
  m88k*)
 
12141
    # FIXME: insert proper C++ library support
 
12142
    ld_shlibs_CXX=no
 
12143
    ;;
 
12144
  mvs*)
 
12145
    case $cc_basename in
 
12146
      cxx*)
 
12147
        # FIXME: insert proper C++ library support
 
12148
        ld_shlibs_CXX=no
 
12149
        ;;
 
12150
      *)
 
12151
        # FIXME: insert proper C++ library support
 
12152
        ld_shlibs_CXX=no
 
12153
        ;;
 
12154
    esac
 
12155
    ;;
 
12156
  netbsd*)
 
12157
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12158
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12159
      wlarc=
 
12160
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12161
      hardcode_direct_CXX=yes
 
12162
      hardcode_shlibpath_var_CXX=no
 
12163
    fi
 
12164
    # Workaround some broken pre-1.5 toolchains
 
12165
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12166
    ;;
 
12167
  openbsd2*)
 
12168
    # C++ shared libraries are fairly broken
 
12169
    ld_shlibs_CXX=no
 
12170
    ;;
 
12171
  openbsd*)
 
12172
    if test -f /usr/libexec/ld.so; then
 
12173
      hardcode_direct_CXX=yes
 
12174
      hardcode_shlibpath_var_CXX=no
 
12175
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12176
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12177
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12178
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12179
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12180
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12181
      fi
 
12182
      output_verbose_link_cmd='echo'
 
12183
    else
 
12184
      ld_shlibs_CXX=no
 
12185
    fi
 
12186
    ;;
 
12187
  osf3*)
 
12188
    case $cc_basename in
 
12189
      KCC*)
 
12190
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12191
 
 
12192
        # KCC will only create a shared library if the output file
 
12193
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12194
        # to its proper name (with version) after linking.
 
12195
        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'
 
12196
 
 
12197
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12198
        hardcode_libdir_separator_CXX=:
 
12199
 
 
12200
        # Archives containing C++ object files must be created using
 
12201
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12202
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12203
 
 
12204
        ;;
 
12205
      RCC*)
 
12206
        # Rational C++ 2.4.1
 
12207
        # FIXME: insert proper C++ library support
 
12208
        ld_shlibs_CXX=no
 
12209
        ;;
 
12210
      cxx*)
 
12211
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12212
        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'
 
12213
 
 
12214
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12215
        hardcode_libdir_separator_CXX=:
 
12216
 
 
12217
        # Commands to make compiler produce verbose output that lists
 
12218
        # what "hidden" libraries, object files and flags are used when
 
12219
        # linking a shared library.
 
12220
        #
 
12221
        # There doesn't appear to be a way to prevent this compiler from
 
12222
        # explicitly linking system object files so we need to strip them
 
12223
        # from the output so that they don't get included in the library
 
12224
        # dependencies.
 
12225
        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'
 
12226
        ;;
 
12227
      *)
 
12228
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12229
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12230
          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'
 
12231
 
 
12232
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12233
          hardcode_libdir_separator_CXX=:
 
12234
 
 
12235
          # Commands to make compiler produce verbose output that lists
 
12236
          # what "hidden" libraries, object files and flags are used when
 
12237
          # linking a shared library.
 
12238
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12239
 
 
12240
        else
 
12241
          # FIXME: insert proper C++ library support
 
12242
          ld_shlibs_CXX=no
 
12243
        fi
 
12244
        ;;
 
12245
    esac
 
12246
    ;;
 
12247
  osf4* | osf5*)
 
12248
    case $cc_basename in
 
12249
      KCC*)
 
12250
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12251
 
 
12252
        # KCC will only create a shared library if the output file
 
12253
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12254
        # to its proper name (with version) after linking.
 
12255
        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'
 
12256
 
 
12257
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12258
        hardcode_libdir_separator_CXX=:
 
12259
 
 
12260
        # Archives containing C++ object files must be created using
 
12261
        # the KAI C++ compiler.
 
12262
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12263
        ;;
 
12264
      RCC*)
 
12265
        # Rational C++ 2.4.1
 
12266
        # FIXME: insert proper C++ library support
 
12267
        ld_shlibs_CXX=no
 
12268
        ;;
 
12269
      cxx*)
 
12270
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12271
        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'
 
12272
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12273
          echo "-hidden">> $lib.exp~
 
12274
          $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~
 
12275
          $rm $lib.exp'
 
12276
 
 
12277
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12278
        hardcode_libdir_separator_CXX=:
 
12279
 
 
12280
        # Commands to make compiler produce verbose output that lists
 
12281
        # what "hidden" libraries, object files and flags are used when
 
12282
        # linking a shared library.
 
12283
        #
 
12284
        # There doesn't appear to be a way to prevent this compiler from
 
12285
        # explicitly linking system object files so we need to strip them
 
12286
        # from the output so that they don't get included in the library
 
12287
        # dependencies.
 
12288
        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'
 
12289
        ;;
 
12290
      *)
 
12291
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12292
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12293
         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'
 
12294
 
 
12295
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12296
          hardcode_libdir_separator_CXX=:
 
12297
 
 
12298
          # Commands to make compiler produce verbose output that lists
 
12299
          # what "hidden" libraries, object files and flags are used when
 
12300
          # linking a shared library.
 
12301
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12302
 
 
12303
        else
 
12304
          # FIXME: insert proper C++ library support
 
12305
          ld_shlibs_CXX=no
 
12306
        fi
 
12307
        ;;
 
12308
    esac
 
12309
    ;;
 
12310
  psos*)
 
12311
    # FIXME: insert proper C++ library support
 
12312
    ld_shlibs_CXX=no
 
12313
    ;;
 
12314
  sunos4*)
 
12315
    case $cc_basename in
 
12316
      CC*)
 
12317
        # Sun C++ 4.x
 
12318
        # FIXME: insert proper C++ library support
 
12319
        ld_shlibs_CXX=no
 
12320
        ;;
 
12321
      lcc*)
 
12322
        # Lucid
 
12323
        # FIXME: insert proper C++ library support
 
12324
        ld_shlibs_CXX=no
 
12325
        ;;
 
12326
      *)
 
12327
        # FIXME: insert proper C++ library support
 
12328
        ld_shlibs_CXX=no
 
12329
        ;;
 
12330
    esac
 
12331
    ;;
 
12332
  solaris*)
 
12333
    case $cc_basename in
 
12334
      CC*)
 
12335
        # Sun C++ 4.2, 5.x and Centerline C++
 
12336
        archive_cmds_need_lc_CXX=yes
 
12337
        no_undefined_flag_CXX=' -zdefs'
 
12338
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12339
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12340
        $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'
 
12341
 
 
12342
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12343
        hardcode_shlibpath_var_CXX=no
 
12344
        case $host_os in
 
12345
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12346
          *)
 
12347
            # The compiler driver will combine and reorder linker options,
 
12348
            # but understands `-z linker_flag'.
 
12349
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12350
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12351
            ;;
 
12352
        esac
 
12353
        link_all_deplibs_CXX=yes
 
12354
 
 
12355
        output_verbose_link_cmd='echo'
 
12356
 
 
12357
        # Archives containing C++ object files must be created using
 
12358
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12359
        # necessary to make sure instantiated templates are included
 
12360
        # in the archive.
 
12361
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12362
        ;;
 
12363
      gcx*)
 
12364
        # Green Hills C++ Compiler
 
12365
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12366
 
 
12367
        # The C++ compiler must be used to create the archive.
 
12368
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12369
        ;;
 
12370
      *)
 
12371
        # GNU C++ compiler with Solaris linker
 
12372
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12373
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12374
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12375
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12376
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12377
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12378
 
 
12379
            # Commands to make compiler produce verbose output that lists
 
12380
            # what "hidden" libraries, object files and flags are used when
 
12381
            # linking a shared library.
 
12382
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12383
          else
 
12384
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12385
            # platform.
 
12386
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12387
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12388
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12389
 
 
12390
            # Commands to make compiler produce verbose output that lists
 
12391
            # what "hidden" libraries, object files and flags are used when
 
12392
            # linking a shared library.
 
12393
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12394
          fi
 
12395
 
 
12396
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12397
          case $host_os in
 
12398
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12399
          *)
 
12400
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12401
            ;;
 
12402
          esac
 
12403
        fi
 
12404
        ;;
 
12405
    esac
 
12406
    ;;
 
12407
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12408
    no_undefined_flag_CXX='${wl}-z,text'
 
12409
    archive_cmds_need_lc_CXX=no
 
12410
    hardcode_shlibpath_var_CXX=no
 
12411
    runpath_var='LD_RUN_PATH'
 
12412
 
 
12413
    case $cc_basename in
 
12414
      CC*)
 
12415
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12416
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12417
        ;;
 
12418
      *)
 
12419
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12420
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12421
        ;;
 
12422
    esac
 
12423
    ;;
 
12424
  sysv5* | sco3.2v5* | sco5v6*)
 
12425
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12426
    # link with -lc, and that would cause any symbols used from libc to
 
12427
    # always be unresolved, which means just about no library would
 
12428
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12429
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12430
    # as -z defs.
 
12431
    # For security reasons, it is highly recommended that you always
 
12432
    # use absolute paths for naming shared libraries, and exclude the
 
12433
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12434
    # requires that you compile everything twice, which is a pain.
 
12435
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12436
    # non-empty value in the environment.  Most likely only useful for
 
12437
    # creating official distributions of packages.
 
12438
    # This is a hack until libtool officially supports absolute path
 
12439
    # names for shared libraries.
 
12440
    no_undefined_flag_CXX='${wl}-z,text'
 
12441
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12442
    archive_cmds_need_lc_CXX=no
 
12443
    hardcode_shlibpath_var_CXX=no
 
12444
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12445
    hardcode_libdir_separator_CXX=':'
 
12446
    link_all_deplibs_CXX=yes
 
12447
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12448
    runpath_var='LD_RUN_PATH'
 
12449
 
 
12450
    case $cc_basename in
 
12451
      CC*)
 
12452
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12453
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12454
        ;;
 
12455
      *)
 
12456
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12457
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12458
        ;;
 
12459
    esac
 
12460
    ;;
 
12461
  tandem*)
 
12462
    case $cc_basename in
 
12463
      NCC*)
 
12464
        # NonStop-UX NCC 3.20
 
12465
        # FIXME: insert proper C++ library support
 
12466
        ld_shlibs_CXX=no
 
12467
        ;;
 
12468
      *)
 
12469
        # FIXME: insert proper C++ library support
 
12470
        ld_shlibs_CXX=no
 
12471
        ;;
 
12472
    esac
 
12473
    ;;
 
12474
  vxworks*)
 
12475
    # FIXME: insert proper C++ library support
 
12476
    ld_shlibs_CXX=no
 
12477
    ;;
 
12478
  *)
 
12479
    # FIXME: insert proper C++ library support
 
12480
    ld_shlibs_CXX=no
 
12481
    ;;
 
12482
esac
 
12483
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12484
$as_echo "$ld_shlibs_CXX" >&6; }
 
12485
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12486
 
 
12487
GCC_CXX="$GXX"
 
12488
LD_CXX="$LD"
 
12489
 
 
12490
cat > conftest.$ac_ext <<EOF
 
12491
class Foo
 
12492
{
 
12493
public:
 
12494
  Foo (void) { a = 0; }
 
12495
private:
 
12496
  int a;
 
12497
};
 
12498
EOF
 
12499
 
 
12500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12501
  (eval $ac_compile) 2>&5
 
12502
  ac_status=$?
 
12503
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12504
  (exit $ac_status); }; then
 
12505
  # Parse the compiler output and extract the necessary
 
12506
  # objects, libraries and library flags.
 
12507
 
 
12508
  # Sentinel used to keep track of whether or not we are before
 
12509
  # the conftest object file.
 
12510
  pre_test_object_deps_done=no
 
12511
 
 
12512
  # The `*' in the case matches for architectures that use `case' in
 
12513
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12514
  # eval without this substitution.
 
12515
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12516
 
 
12517
  for p in `eval $output_verbose_link_cmd`; do
 
12518
    case $p in
 
12519
 
 
12520
    -L* | -R* | -l*)
 
12521
       # Some compilers place space between "-{L,R}" and the path.
 
12522
       # Remove the space.
 
12523
       if test $p = "-L" \
 
12524
          || test $p = "-R"; then
 
12525
         prev=$p
 
12526
         continue
 
12527
       else
 
12528
         prev=
 
12529
       fi
 
12530
 
 
12531
       if test "$pre_test_object_deps_done" = no; then
 
12532
         case $p in
 
12533
         -L* | -R*)
 
12534
           # Internal compiler library paths should come after those
 
12535
           # provided the user.  The postdeps already come after the
 
12536
           # user supplied libs so there is no need to process them.
 
12537
           if test -z "$compiler_lib_search_path_CXX"; then
 
12538
             compiler_lib_search_path_CXX="${prev}${p}"
 
12539
           else
 
12540
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12541
           fi
 
12542
           ;;
 
12543
         # The "-l" case would never come before the object being
 
12544
         # linked, so don't bother handling this case.
 
12545
         esac
 
12546
       else
 
12547
         if test -z "$postdeps_CXX"; then
 
12548
           postdeps_CXX="${prev}${p}"
 
12549
         else
 
12550
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12551
         fi
 
12552
       fi
 
12553
       ;;
 
12554
 
 
12555
    *.$objext)
 
12556
       # This assumes that the test object file only shows up
 
12557
       # once in the compiler output.
 
12558
       if test "$p" = "conftest.$objext"; then
 
12559
         pre_test_object_deps_done=yes
 
12560
         continue
 
12561
       fi
 
12562
 
 
12563
       if test "$pre_test_object_deps_done" = no; then
 
12564
         if test -z "$predep_objects_CXX"; then
 
12565
           predep_objects_CXX="$p"
 
12566
         else
 
12567
           predep_objects_CXX="$predep_objects_CXX $p"
 
12568
         fi
 
12569
       else
 
12570
         if test -z "$postdep_objects_CXX"; then
 
12571
           postdep_objects_CXX="$p"
 
12572
         else
 
12573
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12574
         fi
 
12575
       fi
 
12576
       ;;
 
12577
 
 
12578
    *) ;; # Ignore the rest.
 
12579
 
 
12580
    esac
 
12581
  done
 
12582
 
 
12583
  # Clean up.
 
12584
  rm -f a.out a.exe
 
12585
else
 
12586
  echo "libtool.m4: error: problem compiling CXX test program"
 
12587
fi
 
12588
 
 
12589
$rm -f confest.$objext
 
12590
 
 
12591
compiler_lib_search_dirs_CXX=
 
12592
if test -n "$compiler_lib_search_path_CXX"; then
 
12593
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12594
fi
 
12595
 
 
12596
# PORTME: override above test on systems where it is broken
 
12597
case $host_os in
 
12598
interix[3-9]*)
 
12599
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12600
  # hack all around it, let's just trust "g++" to DTRT.
 
12601
  predep_objects_CXX=
 
12602
  postdep_objects_CXX=
 
12603
  postdeps_CXX=
 
12604
  ;;
 
12605
 
 
12606
linux*)
 
12607
  case `$CC -V 2>&1 | sed 5q` in
 
12608
  *Sun\ C*)
 
12609
    # Sun C++ 5.9
 
12610
    #
 
12611
    # The more standards-conforming stlport4 library is
 
12612
    # incompatible with the Cstd library. Avoid specifying
 
12613
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12614
    # -library=stlport4 depends on it.
 
12615
    case " $CXX $CXXFLAGS " in
 
12616
    *" -library=stlport4 "*)
 
12617
      solaris_use_stlport4=yes
 
12618
      ;;
 
12619
    esac
 
12620
    if test "$solaris_use_stlport4" != yes; then
 
12621
      postdeps_CXX='-library=Cstd -library=Crun'
 
12622
    fi
 
12623
    ;;
 
12624
  esac
 
12625
  ;;
 
12626
 
 
12627
solaris*)
 
12628
  case $cc_basename in
 
12629
  CC*)
 
12630
    # The more standards-conforming stlport4 library is
 
12631
    # incompatible with the Cstd library. Avoid specifying
 
12632
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12633
    # -library=stlport4 depends on it.
 
12634
    case " $CXX $CXXFLAGS " in
 
12635
    *" -library=stlport4 "*)
 
12636
      solaris_use_stlport4=yes
 
12637
      ;;
 
12638
    esac
 
12639
 
 
12640
    # Adding this requires a known-good setup of shared libraries for
 
12641
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12642
    # archive will be linked into the output, leading to subtle bugs.
 
12643
    if test "$solaris_use_stlport4" != yes; then
 
12644
      postdeps_CXX='-library=Cstd -library=Crun'
 
12645
    fi
 
12646
    ;;
 
12647
  esac
 
12648
  ;;
 
12649
esac
 
12650
 
 
12651
case " $postdeps_CXX " in
 
12652
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12653
esac
 
12654
 
 
12655
lt_prog_compiler_wl_CXX=
 
12656
lt_prog_compiler_pic_CXX=
 
12657
lt_prog_compiler_static_CXX=
 
12658
 
 
12659
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12660
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12661
 
 
12662
  # C++ specific cases for pic, static, wl, etc.
 
12663
  if test "$GXX" = yes; then
 
12664
    lt_prog_compiler_wl_CXX='-Wl,'
 
12665
    lt_prog_compiler_static_CXX='-static'
 
12666
 
 
12667
    case $host_os in
 
12668
    aix*)
 
12669
      # All AIX code is PIC.
 
12670
      if test "$host_cpu" = ia64; then
 
12671
        # AIX 5 now supports IA64 processor
 
12672
        lt_prog_compiler_static_CXX='-Bstatic'
 
12673
      fi
 
12674
      ;;
 
12675
    amigaos*)
 
12676
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12677
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12678
      # like `-m68040'.
 
12679
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12680
      ;;
 
12681
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12682
      # PIC is the default for these OSes.
 
12683
      ;;
 
12684
    mingw* | cygwin* | os2* | pw32*)
 
12685
      # This hack is so that the source file can tell whether it is being
 
12686
      # built for inclusion in a dll (and should export symbols for example).
 
12687
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12688
      # (--disable-auto-import) libraries
 
12689
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12690
      ;;
 
12691
    darwin* | rhapsody*)
 
12692
      # PIC is the default on this platform
 
12693
      # Common symbols not allowed in MH_DYLIB files
 
12694
      lt_prog_compiler_pic_CXX='-fno-common'
 
12695
      ;;
 
12696
    *djgpp*)
 
12697
      # DJGPP does not support shared libraries at all
 
12698
      lt_prog_compiler_pic_CXX=
 
12699
      ;;
 
12700
    interix[3-9]*)
 
12701
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12702
      # Instead, we relocate shared libraries at runtime.
 
12703
      ;;
 
12704
    sysv4*MP*)
 
12705
      if test -d /usr/nec; then
 
12706
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12707
      fi
 
12708
      ;;
 
12709
    hpux*)
 
12710
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12711
      # not for PA HP-UX.
 
12712
      case $host_cpu in
 
12713
      hppa*64*|ia64*)
 
12714
        ;;
 
12715
      *)
 
12716
        lt_prog_compiler_pic_CXX='-fPIC'
 
12717
        ;;
 
12718
      esac
 
12719
      ;;
 
12720
    *)
 
12721
      lt_prog_compiler_pic_CXX='-fPIC'
 
12722
      ;;
 
12723
    esac
 
12724
  else
 
12725
    case $host_os in
 
12726
      aix[4-9]*)
 
12727
        # All AIX code is PIC.
 
12728
        if test "$host_cpu" = ia64; then
 
12729
          # AIX 5 now supports IA64 processor
 
12730
          lt_prog_compiler_static_CXX='-Bstatic'
 
12731
        else
 
12732
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12733
        fi
 
12734
        ;;
 
12735
      chorus*)
 
12736
        case $cc_basename in
 
12737
        cxch68*)
 
12738
          # Green Hills C++ Compiler
 
12739
          # _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"
 
12740
          ;;
 
12741
        esac
 
12742
        ;;
 
12743
       darwin*)
 
12744
         # PIC is the default on this platform
 
12745
         # Common symbols not allowed in MH_DYLIB files
 
12746
         case $cc_basename in
 
12747
           xlc*)
 
12748
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12749
           lt_prog_compiler_wl_CXX='-Wl,'
 
12750
           ;;
 
12751
         esac
 
12752
       ;;
 
12753
      dgux*)
 
12754
        case $cc_basename in
 
12755
          ec++*)
 
12756
            lt_prog_compiler_pic_CXX='-KPIC'
 
12757
            ;;
 
12758
          ghcx*)
 
12759
            # Green Hills C++ Compiler
 
12760
            lt_prog_compiler_pic_CXX='-pic'
 
12761
            ;;
 
12762
          *)
 
12763
            ;;
 
12764
        esac
 
12765
        ;;
 
12766
      freebsd* | dragonfly*)
 
12767
        # FreeBSD uses GNU C++
 
12768
        ;;
 
12769
      hpux9* | hpux10* | hpux11*)
 
12770
        case $cc_basename in
 
12771
          CC*)
 
12772
            lt_prog_compiler_wl_CXX='-Wl,'
 
12773
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12774
            if test "$host_cpu" != ia64; then
 
12775
              lt_prog_compiler_pic_CXX='+Z'
 
12776
            fi
 
12777
            ;;
 
12778
          aCC*)
 
12779
            lt_prog_compiler_wl_CXX='-Wl,'
 
12780
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12781
            case $host_cpu in
 
12782
            hppa*64*|ia64*)
 
12783
              # +Z the default
 
12784
              ;;
 
12785
            *)
 
12786
              lt_prog_compiler_pic_CXX='+Z'
 
12787
              ;;
 
12788
            esac
 
12789
            ;;
 
12790
          *)
 
12791
            ;;
 
12792
        esac
 
12793
        ;;
 
12794
      interix*)
 
12795
        # This is c89, which is MS Visual C++ (no shared libs)
 
12796
        # Anyone wants to do a port?
 
12797
        ;;
 
12798
      irix5* | irix6* | nonstopux*)
 
12799
        case $cc_basename in
 
12800
          CC*)
 
12801
            lt_prog_compiler_wl_CXX='-Wl,'
 
12802
            lt_prog_compiler_static_CXX='-non_shared'
 
12803
            # CC pic flag -KPIC is the default.
 
12804
            ;;
 
12805
          *)
 
12806
            ;;
 
12807
        esac
 
12808
        ;;
 
12809
      linux* | k*bsd*-gnu)
 
12810
        case $cc_basename in
 
12811
          KCC*)
 
12812
            # KAI C++ Compiler
 
12813
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12814
            lt_prog_compiler_pic_CXX='-fPIC'
 
12815
            ;;
 
12816
          icpc* | ecpc*)
 
12817
            # Intel C++
 
12818
            lt_prog_compiler_wl_CXX='-Wl,'
 
12819
            lt_prog_compiler_pic_CXX='-KPIC'
 
12820
            lt_prog_compiler_static_CXX='-static'
 
12821
            ;;
 
12822
          pgCC* | pgcpp*)
 
12823
            # Portland Group C++ compiler.
 
12824
            lt_prog_compiler_wl_CXX='-Wl,'
 
12825
            lt_prog_compiler_pic_CXX='-fpic'
 
12826
            lt_prog_compiler_static_CXX='-Bstatic'
 
12827
            ;;
 
12828
          cxx*)
 
12829
            # Compaq C++
 
12830
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12831
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12832
            lt_prog_compiler_pic_CXX=
 
12833
            lt_prog_compiler_static_CXX='-non_shared'
 
12834
            ;;
 
12835
          *)
 
12836
            case `$CC -V 2>&1 | sed 5q` in
 
12837
            *Sun\ C*)
 
12838
              # Sun C++ 5.9
 
12839
              lt_prog_compiler_pic_CXX='-KPIC'
 
12840
              lt_prog_compiler_static_CXX='-Bstatic'
 
12841
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12842
              ;;
 
12843
            esac
 
12844
            ;;
 
12845
        esac
 
12846
        ;;
 
12847
      lynxos*)
 
12848
        ;;
 
12849
      m88k*)
 
12850
        ;;
 
12851
      mvs*)
 
12852
        case $cc_basename in
 
12853
          cxx*)
 
12854
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12855
            ;;
 
12856
          *)
 
12857
            ;;
 
12858
        esac
 
12859
        ;;
 
12860
      netbsd*)
 
12861
        ;;
 
12862
      osf3* | osf4* | osf5*)
 
12863
        case $cc_basename in
 
12864
          KCC*)
 
12865
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12866
            ;;
 
12867
          RCC*)
 
12868
            # Rational C++ 2.4.1
 
12869
            lt_prog_compiler_pic_CXX='-pic'
 
12870
            ;;
 
12871
          cxx*)
 
12872
            # Digital/Compaq C++
 
12873
            lt_prog_compiler_wl_CXX='-Wl,'
 
12874
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12875
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12876
            lt_prog_compiler_pic_CXX=
 
12877
            lt_prog_compiler_static_CXX='-non_shared'
 
12878
            ;;
 
12879
          *)
 
12880
            ;;
 
12881
        esac
 
12882
        ;;
 
12883
      psos*)
 
12884
        ;;
 
12885
      solaris*)
 
12886
        case $cc_basename in
 
12887
          CC*)
 
12888
            # Sun C++ 4.2, 5.x and Centerline C++
 
12889
            lt_prog_compiler_pic_CXX='-KPIC'
 
12890
            lt_prog_compiler_static_CXX='-Bstatic'
 
12891
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12892
            ;;
 
12893
          gcx*)
 
12894
            # Green Hills C++ Compiler
 
12895
            lt_prog_compiler_pic_CXX='-PIC'
 
12896
            ;;
 
12897
          *)
 
12898
            ;;
 
12899
        esac
 
12900
        ;;
 
12901
      sunos4*)
 
12902
        case $cc_basename in
 
12903
          CC*)
 
12904
            # Sun C++ 4.x
 
12905
            lt_prog_compiler_pic_CXX='-pic'
 
12906
            lt_prog_compiler_static_CXX='-Bstatic'
 
12907
            ;;
 
12908
          lcc*)
 
12909
            # Lucid
 
12910
            lt_prog_compiler_pic_CXX='-pic'
 
12911
            ;;
 
12912
          *)
 
12913
            ;;
 
12914
        esac
 
12915
        ;;
 
12916
      tandem*)
 
12917
        case $cc_basename in
 
12918
          NCC*)
 
12919
            # NonStop-UX NCC 3.20
 
12920
            lt_prog_compiler_pic_CXX='-KPIC'
 
12921
            ;;
 
12922
          *)
 
12923
            ;;
 
12924
        esac
 
12925
        ;;
 
12926
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12927
        case $cc_basename in
 
12928
          CC*)
 
12929
            lt_prog_compiler_wl_CXX='-Wl,'
 
12930
            lt_prog_compiler_pic_CXX='-KPIC'
 
12931
            lt_prog_compiler_static_CXX='-Bstatic'
 
12932
            ;;
 
12933
        esac
 
12934
        ;;
 
12935
      vxworks*)
 
12936
        ;;
 
12937
      *)
 
12938
        lt_prog_compiler_can_build_shared_CXX=no
 
12939
        ;;
 
12940
    esac
 
12941
  fi
 
12942
 
 
12943
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12944
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
12945
 
 
12946
#
 
12947
# Check to make sure the PIC flag actually works.
 
12948
#
 
12949
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12950
 
 
12951
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12952
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
12953
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
12954
  $as_echo_n "(cached) " >&6
 
12955
else
 
12956
  lt_cv_prog_compiler_pic_works_CXX=no
 
12957
  ac_outfile=conftest.$ac_objext
 
12958
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12959
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12960
   # Insert the option either (1) after the last *FLAGS variable, or
 
12961
   # (2) before a word containing "conftest.", or (3) at the end.
 
12962
   # Note that $ac_compile itself does not contain backslashes and begins
 
12963
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12964
   # The option is referenced via a variable to avoid confusing sed.
 
12965
   lt_compile=`echo "$ac_compile" | $SED \
 
12966
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12967
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12968
   -e 's:$: $lt_compiler_flag:'`
 
12969
   (eval echo "\"\$as_me:12969: $lt_compile\"" >&5)
 
12970
   (eval "$lt_compile" 2>conftest.err)
 
12971
   ac_status=$?
 
12972
   cat conftest.err >&5
 
12973
   echo "$as_me:12973: \$? = $ac_status" >&5
 
12974
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12975
     # The compiler can only warn and ignore the option if not recognized
 
12976
     # So say no if there are warnings other than the usual output.
 
12977
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12978
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12979
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12980
       lt_cv_prog_compiler_pic_works_CXX=yes
 
12981
     fi
 
12982
   fi
 
12983
   $rm conftest*
 
12984
 
 
12985
fi
 
12986
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12987
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
12988
 
 
12989
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
12990
    case $lt_prog_compiler_pic_CXX in
 
12991
     "" | " "*) ;;
 
12992
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12993
     esac
 
12994
else
 
12995
    lt_prog_compiler_pic_CXX=
 
12996
     lt_prog_compiler_can_build_shared_CXX=no
 
12997
fi
 
12998
 
 
12999
fi
 
13000
case $host_os in
 
13001
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13002
  *djgpp*)
 
13003
    lt_prog_compiler_pic_CXX=
 
13004
    ;;
 
13005
  *)
 
13006
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13007
    ;;
 
13008
esac
 
13009
 
 
13010
#
 
13011
# Check to make sure the static flag actually works.
 
13012
#
 
13013
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13014
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13015
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13016
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13017
  $as_echo_n "(cached) " >&6
 
13018
else
 
13019
  lt_cv_prog_compiler_static_works_CXX=no
 
13020
   save_LDFLAGS="$LDFLAGS"
 
13021
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13022
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13023
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13024
     # The linker can only warn and ignore the option if not recognized
 
13025
     # So say no if there are warnings
 
13026
     if test -s conftest.err; then
 
13027
       # Append any errors to the config.log.
 
13028
       cat conftest.err 1>&5
 
13029
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13030
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13031
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13032
         lt_cv_prog_compiler_static_works_CXX=yes
 
13033
       fi
 
13034
     else
 
13035
       lt_cv_prog_compiler_static_works_CXX=yes
 
13036
     fi
 
13037
   fi
 
13038
   $rm -r conftest*
 
13039
   LDFLAGS="$save_LDFLAGS"
 
13040
 
 
13041
fi
 
13042
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13043
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13044
 
 
13045
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13046
    :
 
13047
else
 
13048
    lt_prog_compiler_static_CXX=
 
13049
fi
 
13050
 
 
13051
 
 
13052
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13053
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13054
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13055
  $as_echo_n "(cached) " >&6
 
13056
else
 
13057
  lt_cv_prog_compiler_c_o_CXX=no
 
13058
   $rm -r conftest 2>/dev/null
 
13059
   mkdir conftest
 
13060
   cd conftest
 
13061
   mkdir out
 
13062
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13063
 
 
13064
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13065
   # Insert the option either (1) after the last *FLAGS variable, or
 
13066
   # (2) before a word containing "conftest.", or (3) at the end.
 
13067
   # Note that $ac_compile itself does not contain backslashes and begins
 
13068
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13069
   lt_compile=`echo "$ac_compile" | $SED \
 
13070
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13071
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13072
   -e 's:$: $lt_compiler_flag:'`
 
13073
   (eval echo "\"\$as_me:13073: $lt_compile\"" >&5)
 
13074
   (eval "$lt_compile" 2>out/conftest.err)
 
13075
   ac_status=$?
 
13076
   cat out/conftest.err >&5
 
13077
   echo "$as_me:13077: \$? = $ac_status" >&5
 
13078
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13079
   then
 
13080
     # The compiler can only warn and ignore the option if not recognized
 
13081
     # So say no if there are warnings
 
13082
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13083
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13084
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13085
       lt_cv_prog_compiler_c_o_CXX=yes
 
13086
     fi
 
13087
   fi
 
13088
   chmod u+w . 2>&5
 
13089
   $rm conftest*
 
13090
   # SGI C++ compiler will create directory out/ii_files/ for
 
13091
   # template instantiation
 
13092
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13093
   $rm out/* && rmdir out
 
13094
   cd ..
 
13095
   rmdir conftest
 
13096
   $rm conftest*
 
13097
 
 
13098
fi
 
13099
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13100
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13101
 
 
13102
 
 
13103
hard_links="nottested"
 
13104
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13105
  # do not overwrite the value of need_locks provided by the user
 
13106
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13107
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13108
  hard_links=yes
 
13109
  $rm conftest*
 
13110
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13111
  touch conftest.a
 
13112
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13113
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13114
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
13115
$as_echo "$hard_links" >&6; }
 
13116
  if test "$hard_links" = no; then
 
13117
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13118
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13119
    need_locks=warn
 
13120
  fi
 
13121
else
 
13122
  need_locks=no
 
13123
fi
 
13124
 
 
13125
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13126
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13127
 
 
13128
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13129
  case $host_os in
 
13130
  aix[4-9]*)
 
13131
    # If we're using GNU nm, then we don't want the "-C" option.
 
13132
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13133
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13134
      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'
 
13135
    else
 
13136
      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'
 
13137
    fi
 
13138
    ;;
 
13139
  pw32*)
 
13140
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13141
  ;;
 
13142
  cygwin* | mingw*)
 
13143
    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'
 
13144
  ;;
 
13145
  *)
 
13146
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13147
  ;;
 
13148
  esac
 
13149
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13150
 
 
13151
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13152
$as_echo "$ld_shlibs_CXX" >&6; }
 
13153
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13154
 
 
13155
#
 
13156
# Do we need to explicitly link libc?
 
13157
#
 
13158
case "x$archive_cmds_need_lc_CXX" in
 
13159
x|xyes)
 
13160
  # Assume -lc should be added
 
13161
  archive_cmds_need_lc_CXX=yes
 
13162
 
 
13163
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13164
    case $archive_cmds_CXX in
 
13165
    *'~'*)
 
13166
      # FIXME: we may have to deal with multi-command sequences.
 
13167
      ;;
 
13168
    '$CC '*)
 
13169
      # Test whether the compiler implicitly links with -lc since on some
 
13170
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13171
      # to ld, don't add -lc before -lgcc.
 
13172
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13173
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13174
      $rm conftest*
 
13175
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13176
 
 
13177
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13178
  (eval $ac_compile) 2>&5
 
13179
  ac_status=$?
 
13180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13181
  (exit $ac_status); } 2>conftest.err; then
 
13182
        soname=conftest
 
13183
        lib=conftest
 
13184
        libobjs=conftest.$ac_objext
 
13185
        deplibs=
 
13186
        wl=$lt_prog_compiler_wl_CXX
 
13187
        pic_flag=$lt_prog_compiler_pic_CXX
 
13188
        compiler_flags=-v
 
13189
        linker_flags=-v
 
13190
        verstring=
 
13191
        output_objdir=.
 
13192
        libname=conftest
 
13193
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13194
        allow_undefined_flag_CXX=
 
13195
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13196
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13197
  ac_status=$?
 
13198
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13199
  (exit $ac_status); }
 
13200
        then
 
13201
          archive_cmds_need_lc_CXX=no
 
13202
        else
 
13203
          archive_cmds_need_lc_CXX=yes
 
13204
        fi
 
13205
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13206
      else
 
13207
        cat conftest.err 1>&5
 
13208
      fi
 
13209
      $rm conftest*
 
13210
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13211
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13212
      ;;
 
13213
    esac
 
13214
  fi
 
13215
  ;;
 
13216
esac
 
13217
 
 
13218
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13219
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13220
library_names_spec=
 
13221
libname_spec='lib$name'
 
13222
soname_spec=
 
13223
shrext_cmds=".so"
 
13224
postinstall_cmds=
 
13225
postuninstall_cmds=
 
13226
finish_cmds=
 
13227
finish_eval=
 
13228
shlibpath_var=
 
13229
shlibpath_overrides_runpath=unknown
 
13230
version_type=none
 
13231
dynamic_linker="$host_os ld.so"
 
13232
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13233
 
 
13234
need_lib_prefix=unknown
 
13235
hardcode_into_libs=no
 
13236
 
 
13237
# when you set need_version to no, make sure it does not cause -set_version
 
13238
# flags to be left without arguments
 
13239
need_version=unknown
 
13240
 
 
13241
case $host_os in
 
13242
aix3*)
 
13243
  version_type=linux
 
13244
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13245
  shlibpath_var=LIBPATH
 
13246
 
 
13247
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13248
  soname_spec='${libname}${release}${shared_ext}$major'
 
13249
  ;;
 
13250
 
 
13251
aix[4-9]*)
 
13252
  version_type=linux
 
13253
  need_lib_prefix=no
 
13254
  need_version=no
 
13255
  hardcode_into_libs=yes
 
13256
  if test "$host_cpu" = ia64; then
 
13257
    # AIX 5 supports IA64
 
13258
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13259
    shlibpath_var=LD_LIBRARY_PATH
 
13260
  else
 
13261
    # With GCC up to 2.95.x, collect2 would create an import file
 
13262
    # for dependence libraries.  The import file would start with
 
13263
    # the line `#! .'.  This would cause the generated library to
 
13264
    # depend on `.', always an invalid library.  This was fixed in
 
13265
    # development snapshots of GCC prior to 3.0.
 
13266
    case $host_os in
 
13267
      aix4 | aix4.[01] | aix4.[01].*)
 
13268
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13269
           echo ' yes '
 
13270
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13271
        :
 
13272
      else
 
13273
        can_build_shared=no
 
13274
      fi
 
13275
      ;;
 
13276
    esac
 
13277
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13278
    # soname into executable. Probably we can add versioning support to
 
13279
    # collect2, so additional links can be useful in future.
 
13280
    if test "$aix_use_runtimelinking" = yes; then
 
13281
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13282
      # instead of lib<name>.a to let people know that these are not
 
13283
      # typical AIX shared libraries.
 
13284
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13285
    else
 
13286
      # We preserve .a as extension for shared libraries through AIX4.2
 
13287
      # and later when we are not doing run time linking.
 
13288
      library_names_spec='${libname}${release}.a $libname.a'
 
13289
      soname_spec='${libname}${release}${shared_ext}$major'
 
13290
    fi
 
13291
    shlibpath_var=LIBPATH
 
13292
  fi
 
13293
  ;;
 
13294
 
 
13295
amigaos*)
 
13296
  library_names_spec='$libname.ixlibrary $libname.a'
 
13297
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13298
  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'
 
13299
  ;;
 
13300
 
 
13301
beos*)
 
13302
  library_names_spec='${libname}${shared_ext}'
 
13303
  dynamic_linker="$host_os ld.so"
 
13304
  shlibpath_var=LIBRARY_PATH
 
13305
  ;;
 
13306
 
 
13307
bsdi[45]*)
 
13308
  version_type=linux
 
13309
  need_version=no
 
13310
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13311
  soname_spec='${libname}${release}${shared_ext}$major'
 
13312
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13313
  shlibpath_var=LD_LIBRARY_PATH
 
13314
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13315
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13316
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13317
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13318
  # libtool to hard-code these into programs
 
13319
  ;;
 
13320
 
 
13321
cygwin* | mingw* | pw32*)
 
13322
  version_type=windows
 
13323
  shrext_cmds=".dll"
 
13324
  need_version=no
 
13325
  need_lib_prefix=no
 
13326
 
 
13327
  case $GCC,$host_os in
 
13328
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13329
    library_names_spec='$libname.dll.a'
 
13330
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13331
    postinstall_cmds='base_file=`basename \${file}`~
 
13332
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13333
      dldir=$destdir/`dirname \$dlpath`~
 
13334
      test -d \$dldir || mkdir -p \$dldir~
 
13335
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13336
      chmod a+x \$dldir/$dlname'
 
13337
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13338
      dlpath=$dir/\$dldll~
 
13339
       $rm \$dlpath'
 
13340
    shlibpath_overrides_runpath=yes
 
13341
 
 
13342
    case $host_os in
 
13343
    cygwin*)
 
13344
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13345
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13346
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13347
      ;;
 
13348
    mingw*)
 
13349
      # MinGW DLLs use traditional 'lib' prefix
 
13350
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13351
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13352
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13353
        # It is most probably a Windows format PATH printed by
 
13354
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13355
        # path with ; separators, and with drive letters. We can handle the
 
13356
        # drive letters (cygwin fileutils understands them), so leave them,
 
13357
        # especially as we might pass files found there to a mingw objdump,
 
13358
        # which wouldn't understand a cygwinified path. Ahh.
 
13359
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13360
      else
 
13361
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13362
      fi
 
13363
      ;;
 
13364
    pw32*)
 
13365
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13366
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13367
      ;;
 
13368
    esac
 
13369
    ;;
 
13370
 
 
13371
  *)
 
13372
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13373
    ;;
 
13374
  esac
 
13375
  dynamic_linker='Win32 ld.exe'
 
13376
  # FIXME: first we should search . and the directory the executable is in
 
13377
  shlibpath_var=PATH
 
13378
  ;;
 
13379
 
 
13380
darwin* | rhapsody*)
 
13381
  dynamic_linker="$host_os dyld"
 
13382
  version_type=darwin
 
13383
  need_lib_prefix=no
 
13384
  need_version=no
 
13385
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13386
  soname_spec='${libname}${release}${major}$shared_ext'
 
13387
  shlibpath_overrides_runpath=yes
 
13388
  shlibpath_var=DYLD_LIBRARY_PATH
 
13389
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13390
 
 
13391
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13392
  ;;
 
13393
 
 
13394
dgux*)
 
13395
  version_type=linux
 
13396
  need_lib_prefix=no
 
13397
  need_version=no
 
13398
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13399
  soname_spec='${libname}${release}${shared_ext}$major'
 
13400
  shlibpath_var=LD_LIBRARY_PATH
 
13401
  ;;
 
13402
 
 
13403
freebsd1*)
 
13404
  dynamic_linker=no
 
13405
  ;;
 
13406
 
 
13407
freebsd* | dragonfly*)
 
13408
  # DragonFly does not have aout.  When/if they implement a new
 
13409
  # versioning mechanism, adjust this.
 
13410
  if test -x /usr/bin/objformat; then
 
13411
    objformat=`/usr/bin/objformat`
 
13412
  else
 
13413
    case $host_os in
 
13414
    freebsd[123]*) objformat=aout ;;
 
13415
    *) objformat=elf ;;
 
13416
    esac
 
13417
  fi
 
13418
  version_type=freebsd-$objformat
 
13419
  case $version_type in
 
13420
    freebsd-elf*)
 
13421
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13422
      need_version=no
 
13423
      need_lib_prefix=no
 
13424
      ;;
 
13425
    freebsd-*)
 
13426
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13427
      need_version=yes
 
13428
      ;;
 
13429
  esac
 
13430
  shlibpath_var=LD_LIBRARY_PATH
 
13431
  case $host_os in
 
13432
  freebsd2*)
 
13433
    shlibpath_overrides_runpath=yes
 
13434
    ;;
 
13435
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13436
    shlibpath_overrides_runpath=yes
 
13437
    hardcode_into_libs=yes
 
13438
    ;;
 
13439
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13440
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13441
    shlibpath_overrides_runpath=no
 
13442
    hardcode_into_libs=yes
 
13443
    ;;
 
13444
  *) # from 4.6 on, and DragonFly
 
13445
    shlibpath_overrides_runpath=yes
 
13446
    hardcode_into_libs=yes
 
13447
    ;;
 
13448
  esac
 
13449
  ;;
 
13450
 
 
13451
gnu*)
 
13452
  version_type=linux
 
13453
  need_lib_prefix=no
 
13454
  need_version=no
 
13455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13456
  soname_spec='${libname}${release}${shared_ext}$major'
 
13457
  shlibpath_var=LD_LIBRARY_PATH
 
13458
  hardcode_into_libs=yes
 
13459
  ;;
 
13460
 
 
13461
hpux9* | hpux10* | hpux11*)
 
13462
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13463
  # link against other versions.
 
13464
  version_type=sunos
 
13465
  need_lib_prefix=no
 
13466
  need_version=no
 
13467
  case $host_cpu in
 
13468
  ia64*)
 
13469
    shrext_cmds='.so'
 
13470
    hardcode_into_libs=yes
 
13471
    dynamic_linker="$host_os dld.so"
 
13472
    shlibpath_var=LD_LIBRARY_PATH
 
13473
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13474
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13475
    soname_spec='${libname}${release}${shared_ext}$major'
 
13476
    if test "X$HPUX_IA64_MODE" = X32; then
 
13477
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13478
    else
 
13479
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13480
    fi
 
13481
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13482
    ;;
 
13483
   hppa*64*)
 
13484
     shrext_cmds='.sl'
 
13485
     hardcode_into_libs=yes
 
13486
     dynamic_linker="$host_os dld.sl"
 
13487
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13488
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13489
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13490
     soname_spec='${libname}${release}${shared_ext}$major'
 
13491
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13492
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13493
     ;;
 
13494
   *)
 
13495
    shrext_cmds='.sl'
 
13496
    dynamic_linker="$host_os dld.sl"
 
13497
    shlibpath_var=SHLIB_PATH
 
13498
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13499
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13500
    soname_spec='${libname}${release}${shared_ext}$major'
 
13501
    ;;
 
13502
  esac
 
13503
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13504
  postinstall_cmds='chmod 555 $lib'
 
13505
  ;;
 
13506
 
 
13507
interix[3-9]*)
 
13508
  version_type=linux
 
13509
  need_lib_prefix=no
 
13510
  need_version=no
 
13511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13512
  soname_spec='${libname}${release}${shared_ext}$major'
 
13513
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13514
  shlibpath_var=LD_LIBRARY_PATH
 
13515
  shlibpath_overrides_runpath=no
 
13516
  hardcode_into_libs=yes
 
13517
  ;;
 
13518
 
 
13519
irix5* | irix6* | nonstopux*)
 
13520
  case $host_os in
 
13521
    nonstopux*) version_type=nonstopux ;;
 
13522
    *)
 
13523
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13524
                version_type=linux
 
13525
        else
 
13526
                version_type=irix
 
13527
        fi ;;
 
13528
  esac
 
13529
  need_lib_prefix=no
 
13530
  need_version=no
 
13531
  soname_spec='${libname}${release}${shared_ext}$major'
 
13532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13533
  case $host_os in
 
13534
  irix5* | nonstopux*)
 
13535
    libsuff= shlibsuff=
 
13536
    ;;
 
13537
  *)
 
13538
    case $LD in # libtool.m4 will add one of these switches to LD
 
13539
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13540
      libsuff= shlibsuff= libmagic=32-bit;;
 
13541
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13542
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13543
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13544
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13545
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13546
    esac
 
13547
    ;;
 
13548
  esac
 
13549
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13550
  shlibpath_overrides_runpath=no
 
13551
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13552
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13553
  hardcode_into_libs=yes
 
13554
  ;;
 
13555
 
 
13556
# No shared lib support for Linux oldld, aout, or coff.
 
13557
linux*oldld* | linux*aout* | linux*coff*)
 
13558
  dynamic_linker=no
 
13559
  ;;
 
13560
 
 
13561
# This must be Linux ELF.
 
13562
linux* | k*bsd*-gnu)
 
13563
  version_type=linux
 
13564
  need_lib_prefix=no
 
13565
  need_version=no
 
13566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13567
  soname_spec='${libname}${release}${shared_ext}$major'
 
13568
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13569
  shlibpath_var=LD_LIBRARY_PATH
 
13570
  shlibpath_overrides_runpath=no
 
13571
  # This implies no fast_install, which is unacceptable.
 
13572
  # Some rework will be needed to allow for fast_install
 
13573
  # before this can be enabled.
 
13574
  hardcode_into_libs=yes
 
13575
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13576
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13577
 
 
13578
  # Append ld.so.conf contents to the search path
 
13579
  if test -f /etc/ld.so.conf; then
 
13580
    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' ' '`
 
13581
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
13582
  fi
 
13583
 
 
13584
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13585
  # powerpc, because MkLinux only supported shared libraries with the
 
13586
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13587
  # most powerpc-linux boxes support dynamic linking these days and
 
13588
  # people can always --disable-shared, the test was removed, and we
 
13589
  # assume the GNU/Linux dynamic linker is in use.
 
13590
  dynamic_linker='GNU/Linux ld.so'
 
13591
  ;;
 
13592
 
 
13593
netbsd*)
 
13594
  version_type=sunos
 
13595
  need_lib_prefix=no
 
13596
  need_version=no
 
13597
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13598
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13599
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13600
    dynamic_linker='NetBSD (a.out) ld.so'
 
13601
  else
 
13602
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13603
    soname_spec='${libname}${release}${shared_ext}$major'
 
13604
    dynamic_linker='NetBSD ld.elf_so'
 
13605
  fi
 
13606
  shlibpath_var=LD_LIBRARY_PATH
 
13607
  shlibpath_overrides_runpath=yes
 
13608
  hardcode_into_libs=yes
 
13609
  ;;
 
13610
 
 
13611
newsos6)
 
13612
  version_type=linux
 
13613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13614
  shlibpath_var=LD_LIBRARY_PATH
 
13615
  shlibpath_overrides_runpath=yes
 
13616
  ;;
 
13617
 
 
13618
nto-qnx*)
 
13619
  version_type=linux
 
13620
  need_lib_prefix=no
 
13621
  need_version=no
 
13622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13623
  soname_spec='${libname}${release}${shared_ext}$major'
 
13624
  shlibpath_var=LD_LIBRARY_PATH
 
13625
  shlibpath_overrides_runpath=yes
 
13626
  ;;
 
13627
 
 
13628
openbsd*)
 
13629
  version_type=sunos
 
13630
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13631
  need_lib_prefix=no
 
13632
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13633
  case $host_os in
 
13634
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13635
    *)                         need_version=no  ;;
 
13636
  esac
 
13637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13638
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13639
  shlibpath_var=LD_LIBRARY_PATH
 
13640
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13641
    case $host_os in
 
13642
      openbsd2.[89] | openbsd2.[89].*)
 
13643
        shlibpath_overrides_runpath=no
 
13644
        ;;
 
13645
      *)
 
13646
        shlibpath_overrides_runpath=yes
 
13647
        ;;
 
13648
      esac
 
13649
  else
 
13650
    shlibpath_overrides_runpath=yes
 
13651
  fi
 
13652
  ;;
 
13653
 
 
13654
os2*)
 
13655
  libname_spec='$name'
 
13656
  shrext_cmds=".dll"
 
13657
  need_lib_prefix=no
 
13658
  library_names_spec='$libname${shared_ext} $libname.a'
 
13659
  dynamic_linker='OS/2 ld.exe'
 
13660
  shlibpath_var=LIBPATH
 
13661
  ;;
 
13662
 
 
13663
osf3* | osf4* | osf5*)
 
13664
  version_type=osf
 
13665
  need_lib_prefix=no
 
13666
  need_version=no
 
13667
  soname_spec='${libname}${release}${shared_ext}$major'
 
13668
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13669
  shlibpath_var=LD_LIBRARY_PATH
 
13670
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13671
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13672
  ;;
 
13673
 
 
13674
rdos*)
 
13675
  dynamic_linker=no
 
13676
  ;;
 
13677
 
 
13678
solaris*)
 
13679
  version_type=linux
 
13680
  need_lib_prefix=no
 
13681
  need_version=no
 
13682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13683
  soname_spec='${libname}${release}${shared_ext}$major'
 
13684
  shlibpath_var=LD_LIBRARY_PATH
 
13685
  shlibpath_overrides_runpath=yes
 
13686
  hardcode_into_libs=yes
 
13687
  # ldd complains unless libraries are executable
 
13688
  postinstall_cmds='chmod +x $lib'
 
13689
  ;;
 
13690
 
 
13691
sunos4*)
 
13692
  version_type=sunos
 
13693
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13694
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13695
  shlibpath_var=LD_LIBRARY_PATH
 
13696
  shlibpath_overrides_runpath=yes
 
13697
  if test "$with_gnu_ld" = yes; then
 
13698
    need_lib_prefix=no
 
13699
  fi
 
13700
  need_version=yes
 
13701
  ;;
 
13702
 
 
13703
sysv4 | sysv4.3*)
 
13704
  version_type=linux
 
13705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13706
  soname_spec='${libname}${release}${shared_ext}$major'
 
13707
  shlibpath_var=LD_LIBRARY_PATH
 
13708
  case $host_vendor in
 
13709
    sni)
 
13710
      shlibpath_overrides_runpath=no
 
13711
      need_lib_prefix=no
 
13712
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13713
      runpath_var=LD_RUN_PATH
 
13714
      ;;
 
13715
    siemens)
 
13716
      need_lib_prefix=no
 
13717
      ;;
 
13718
    motorola)
 
13719
      need_lib_prefix=no
 
13720
      need_version=no
 
13721
      shlibpath_overrides_runpath=no
 
13722
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13723
      ;;
 
13724
  esac
 
13725
  ;;
 
13726
 
 
13727
sysv4*MP*)
 
13728
  if test -d /usr/nec ;then
 
13729
    version_type=linux
 
13730
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13731
    soname_spec='$libname${shared_ext}.$major'
 
13732
    shlibpath_var=LD_LIBRARY_PATH
 
13733
  fi
 
13734
  ;;
 
13735
 
 
13736
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13737
  version_type=freebsd-elf
 
13738
  need_lib_prefix=no
 
13739
  need_version=no
 
13740
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13741
  soname_spec='${libname}${release}${shared_ext}$major'
 
13742
  shlibpath_var=LD_LIBRARY_PATH
 
13743
  hardcode_into_libs=yes
 
13744
  if test "$with_gnu_ld" = yes; then
 
13745
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13746
    shlibpath_overrides_runpath=no
 
13747
  else
 
13748
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13749
    shlibpath_overrides_runpath=yes
 
13750
    case $host_os in
 
13751
      sco3.2v5*)
 
13752
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13753
        ;;
 
13754
    esac
 
13755
  fi
 
13756
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13757
  ;;
 
13758
 
 
13759
uts4*)
 
13760
  version_type=linux
 
13761
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13762
  soname_spec='${libname}${release}${shared_ext}$major'
 
13763
  shlibpath_var=LD_LIBRARY_PATH
 
13764
  ;;
 
13765
 
 
13766
*)
 
13767
  dynamic_linker=no
 
13768
  ;;
 
13769
esac
 
13770
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13771
$as_echo "$dynamic_linker" >&6; }
 
13772
test "$dynamic_linker" = no && can_build_shared=no
 
13773
 
 
13774
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13775
  $as_echo_n "(cached) " >&6
 
13776
else
 
13777
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13778
fi
 
13779
 
 
13780
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13781
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13782
  $as_echo_n "(cached) " >&6
 
13783
else
 
13784
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13785
fi
 
13786
 
 
13787
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13788
 
 
13789
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13790
if test "$GCC" = yes; then
 
13791
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13792
fi
 
13793
 
 
13794
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13795
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
13796
hardcode_action_CXX=
 
13797
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13798
   test -n "$runpath_var_CXX" || \
 
13799
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13800
 
 
13801
  # We can hardcode non-existant directories.
 
13802
  if test "$hardcode_direct_CXX" != no &&
 
13803
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13804
     # have to relink, otherwise we might link with an installed library
 
13805
     # when we should be linking with a yet-to-be-installed one
 
13806
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13807
     test "$hardcode_minus_L_CXX" != no; then
 
13808
    # Linking always hardcodes the temporary library directory.
 
13809
    hardcode_action_CXX=relink
 
13810
  else
 
13811
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13812
    hardcode_action_CXX=immediate
 
13813
  fi
 
13814
else
 
13815
  # We cannot hardcode anything, or else we can only hardcode existing
 
13816
  # directories.
 
13817
  hardcode_action_CXX=unsupported
 
13818
fi
 
13819
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13820
$as_echo "$hardcode_action_CXX" >&6; }
 
13821
 
 
13822
if test "$hardcode_action_CXX" = relink; then
 
13823
  # Fast installation is not supported
 
13824
  enable_fast_install=no
 
13825
elif test "$shlibpath_overrides_runpath" = yes ||
 
13826
     test "$enable_shared" = no; then
 
13827
  # Fast installation is not necessary
 
13828
  enable_fast_install=needless
 
13829
fi
 
13830
 
 
13831
 
 
13832
# The else clause should only fire when bootstrapping the
 
13833
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13834
# with your package, and you will get complaints that there are
 
13835
# no rules to generate ltmain.sh.
 
13836
if test -f "$ltmain"; then
 
13837
  # See if we are running on zsh, and set the options which allow our commands through
 
13838
  # without removal of \ escapes.
 
13839
  if test -n "${ZSH_VERSION+set}" ; then
 
13840
    setopt NO_GLOB_SUBST
 
13841
  fi
 
13842
  # Now quote all the things that may contain metacharacters while being
 
13843
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13844
  # variables and quote the copies for generation of the libtool script.
 
13845
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13846
    SED SHELL STRIP \
 
13847
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13848
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13849
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13850
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13851
    lt_cv_sys_global_symbol_to_c_name_address \
 
13852
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13853
    old_postinstall_cmds old_postuninstall_cmds \
 
13854
    compiler_CXX \
 
13855
    CC_CXX \
 
13856
    LD_CXX \
 
13857
    lt_prog_compiler_wl_CXX \
 
13858
    lt_prog_compiler_pic_CXX \
 
13859
    lt_prog_compiler_static_CXX \
 
13860
    lt_prog_compiler_no_builtin_flag_CXX \
 
13861
    export_dynamic_flag_spec_CXX \
 
13862
    thread_safe_flag_spec_CXX \
 
13863
    whole_archive_flag_spec_CXX \
 
13864
    enable_shared_with_static_runtimes_CXX \
 
13865
    old_archive_cmds_CXX \
 
13866
    old_archive_from_new_cmds_CXX \
 
13867
    predep_objects_CXX \
 
13868
    postdep_objects_CXX \
 
13869
    predeps_CXX \
 
13870
    postdeps_CXX \
 
13871
    compiler_lib_search_path_CXX \
 
13872
    compiler_lib_search_dirs_CXX \
 
13873
    archive_cmds_CXX \
 
13874
    archive_expsym_cmds_CXX \
 
13875
    postinstall_cmds_CXX \
 
13876
    postuninstall_cmds_CXX \
 
13877
    old_archive_from_expsyms_cmds_CXX \
 
13878
    allow_undefined_flag_CXX \
 
13879
    no_undefined_flag_CXX \
 
13880
    export_symbols_cmds_CXX \
 
13881
    hardcode_libdir_flag_spec_CXX \
 
13882
    hardcode_libdir_flag_spec_ld_CXX \
 
13883
    hardcode_libdir_separator_CXX \
 
13884
    hardcode_automatic_CXX \
 
13885
    module_cmds_CXX \
 
13886
    module_expsym_cmds_CXX \
 
13887
    lt_cv_prog_compiler_c_o_CXX \
 
13888
    fix_srcfile_path_CXX \
 
13889
    exclude_expsyms_CXX \
 
13890
    include_expsyms_CXX; do
 
13891
 
 
13892
    case $var in
 
13893
    old_archive_cmds_CXX | \
 
13894
    old_archive_from_new_cmds_CXX | \
 
13895
    archive_cmds_CXX | \
 
13896
    archive_expsym_cmds_CXX | \
 
13897
    module_cmds_CXX | \
 
13898
    module_expsym_cmds_CXX | \
 
13899
    old_archive_from_expsyms_cmds_CXX | \
 
13900
    export_symbols_cmds_CXX | \
 
13901
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13902
    postinstall_cmds | postuninstall_cmds | \
 
13903
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13904
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13905
      # Double-quote double-evaled strings.
 
13906
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13907
      ;;
 
13908
    *)
 
13909
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13910
      ;;
 
13911
    esac
 
13912
  done
 
13913
 
 
13914
  case $lt_echo in
 
13915
  *'\$0 --fallback-echo"')
 
13916
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13917
    ;;
 
13918
  esac
 
13919
 
 
13920
cfgfile="$ofile"
 
13921
 
 
13922
  cat <<__EOF__ >> "$cfgfile"
 
13923
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13924
 
 
13925
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13926
 
 
13927
# Shell to use when invoking shell scripts.
 
13928
SHELL=$lt_SHELL
 
13929
 
 
13930
# Whether or not to build shared libraries.
 
13931
build_libtool_libs=$enable_shared
 
13932
 
 
13933
# Whether or not to build static libraries.
 
13934
build_old_libs=$enable_static
 
13935
 
 
13936
# Whether or not to add -lc for building shared libraries.
 
13937
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13938
 
 
13939
# Whether or not to disallow shared libs when runtime libs are static
 
13940
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13941
 
 
13942
# Whether or not to optimize for fast installation.
 
13943
fast_install=$enable_fast_install
 
13944
 
 
13945
# The host system.
 
13946
host_alias=$host_alias
 
13947
host=$host
 
13948
host_os=$host_os
 
13949
 
 
13950
# The build system.
 
13951
build_alias=$build_alias
 
13952
build=$build
 
13953
build_os=$build_os
 
13954
 
 
13955
# An echo program that does not interpret backslashes.
 
13956
echo=$lt_echo
 
13957
 
 
13958
# The archiver.
 
13959
AR=$lt_AR
 
13960
AR_FLAGS=$lt_AR_FLAGS
 
13961
 
 
13962
# A C compiler.
 
13963
LTCC=$lt_LTCC
 
13964
 
 
13965
# LTCC compiler flags.
 
13966
LTCFLAGS=$lt_LTCFLAGS
 
13967
 
 
13968
# A language-specific compiler.
 
13969
CC=$lt_compiler_CXX
 
13970
 
 
13971
# Is the compiler the GNU C compiler?
 
13972
with_gcc=$GCC_CXX
 
13973
 
 
13974
# An ERE matcher.
 
13975
EGREP=$lt_EGREP
 
13976
 
 
13977
# The linker used to build libraries.
 
13978
LD=$lt_LD_CXX
 
13979
 
 
13980
# Whether we need hard or soft links.
 
13981
LN_S=$lt_LN_S
 
13982
 
 
13983
# A BSD-compatible nm program.
 
13984
NM=$lt_NM
 
13985
 
 
13986
# A symbol stripping program
 
13987
STRIP=$lt_STRIP
 
13988
 
 
13989
# Used to examine libraries when file_magic_cmd begins "file"
 
13990
MAGIC_CMD=$MAGIC_CMD
 
13991
 
 
13992
# Used on cygwin: DLL creation program.
 
13993
DLLTOOL="$DLLTOOL"
 
13994
 
 
13995
# Used on cygwin: object dumper.
 
13996
OBJDUMP="$OBJDUMP"
 
13997
 
 
13998
# Used on cygwin: assembler.
 
13999
AS="$AS"
 
14000
 
 
14001
# The name of the directory that contains temporary libtool files.
 
14002
objdir=$objdir
 
14003
 
 
14004
# How to create reloadable object files.
 
14005
reload_flag=$lt_reload_flag
 
14006
reload_cmds=$lt_reload_cmds
 
14007
 
 
14008
# How to pass a linker flag through the compiler.
 
14009
wl=$lt_lt_prog_compiler_wl_CXX
 
14010
 
 
14011
# Object file suffix (normally "o").
 
14012
objext="$ac_objext"
 
14013
 
 
14014
# Old archive suffix (normally "a").
 
14015
libext="$libext"
 
14016
 
 
14017
# Shared library suffix (normally ".so").
 
14018
shrext_cmds='$shrext_cmds'
 
14019
 
 
14020
# Executable file suffix (normally "").
 
14021
exeext="$exeext"
 
14022
 
 
14023
# Additional compiler flags for building library objects.
 
14024
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14025
pic_mode=$pic_mode
 
14026
 
 
14027
# What is the maximum length of a command?
 
14028
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14029
 
 
14030
# Does compiler simultaneously support -c and -o options?
 
14031
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14032
 
 
14033
# Must we lock files when doing compilation?
 
14034
need_locks=$lt_need_locks
 
14035
 
 
14036
# Do we need the lib prefix for modules?
 
14037
need_lib_prefix=$need_lib_prefix
 
14038
 
 
14039
# Do we need a version for libraries?
 
14040
need_version=$need_version
 
14041
 
 
14042
# Whether dlopen is supported.
 
14043
dlopen_support=$enable_dlopen
 
14044
 
 
14045
# Whether dlopen of programs is supported.
 
14046
dlopen_self=$enable_dlopen_self
 
14047
 
 
14048
# Whether dlopen of statically linked programs is supported.
 
14049
dlopen_self_static=$enable_dlopen_self_static
 
14050
 
 
14051
# Compiler flag to prevent dynamic linking.
 
14052
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14053
 
 
14054
# Compiler flag to turn off builtin functions.
 
14055
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14056
 
 
14057
# Compiler flag to allow reflexive dlopens.
 
14058
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14059
 
 
14060
# Compiler flag to generate shared objects directly from archives.
 
14061
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14062
 
 
14063
# Compiler flag to generate thread-safe objects.
 
14064
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14065
 
 
14066
# Library versioning type.
 
14067
version_type=$version_type
 
14068
 
 
14069
# Format of library name prefix.
 
14070
libname_spec=$lt_libname_spec
 
14071
 
 
14072
# List of archive names.  First name is the real one, the rest are links.
 
14073
# The last name is the one that the linker finds with -lNAME.
 
14074
library_names_spec=$lt_library_names_spec
 
14075
 
 
14076
# The coded name of the library, if different from the real name.
 
14077
soname_spec=$lt_soname_spec
 
14078
 
 
14079
# Commands used to build and install an old-style archive.
 
14080
RANLIB=$lt_RANLIB
 
14081
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14082
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14083
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14084
 
 
14085
# Create an old-style archive from a shared archive.
 
14086
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14087
 
 
14088
# Create a temporary old-style archive to link instead of a shared archive.
 
14089
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14090
 
 
14091
# Commands used to build and install a shared archive.
 
14092
archive_cmds=$lt_archive_cmds_CXX
 
14093
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14094
postinstall_cmds=$lt_postinstall_cmds
 
14095
postuninstall_cmds=$lt_postuninstall_cmds
 
14096
 
 
14097
# Commands used to build a loadable module (assumed same as above if empty)
 
14098
module_cmds=$lt_module_cmds_CXX
 
14099
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14100
 
 
14101
# Commands to strip libraries.
 
14102
old_striplib=$lt_old_striplib
 
14103
striplib=$lt_striplib
 
14104
 
 
14105
# Dependencies to place before the objects being linked to create a
 
14106
# shared library.
 
14107
predep_objects=$lt_predep_objects_CXX
 
14108
 
 
14109
# Dependencies to place after the objects being linked to create a
 
14110
# shared library.
 
14111
postdep_objects=$lt_postdep_objects_CXX
 
14112
 
 
14113
# Dependencies to place before the objects being linked to create a
 
14114
# shared library.
 
14115
predeps=$lt_predeps_CXX
 
14116
 
 
14117
# Dependencies to place after the objects being linked to create a
 
14118
# shared library.
 
14119
postdeps=$lt_postdeps_CXX
 
14120
 
 
14121
# The directories searched by this compiler when creating a shared
 
14122
# library
 
14123
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14124
 
 
14125
# The library search path used internally by the compiler when linking
 
14126
# a shared library.
 
14127
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14128
 
 
14129
# Method to check whether dependent libraries are shared objects.
 
14130
deplibs_check_method=$lt_deplibs_check_method
 
14131
 
 
14132
# Command to use when deplibs_check_method == file_magic.
 
14133
file_magic_cmd=$lt_file_magic_cmd
 
14134
 
 
14135
# Flag that allows shared libraries with undefined symbols to be built.
 
14136
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14137
 
 
14138
# Flag that forces no undefined symbols.
 
14139
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14140
 
 
14141
# Commands used to finish a libtool library installation in a directory.
 
14142
finish_cmds=$lt_finish_cmds
 
14143
 
 
14144
# Same as above, but a single script fragment to be evaled but not shown.
 
14145
finish_eval=$lt_finish_eval
 
14146
 
 
14147
# Take the output of nm and produce a listing of raw symbols and C names.
 
14148
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14149
 
 
14150
# Transform the output of nm in a proper C declaration
 
14151
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14152
 
 
14153
# Transform the output of nm in a C name address pair
 
14154
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14155
 
 
14156
# This is the shared library runtime path variable.
 
14157
runpath_var=$runpath_var
 
14158
 
 
14159
# This is the shared library path variable.
 
14160
shlibpath_var=$shlibpath_var
 
14161
 
 
14162
# Is shlibpath searched before the hard-coded library search path?
 
14163
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14164
 
 
14165
# How to hardcode a shared library path into an executable.
 
14166
hardcode_action=$hardcode_action_CXX
 
14167
 
 
14168
# Whether we should hardcode library paths into libraries.
 
14169
hardcode_into_libs=$hardcode_into_libs
 
14170
 
 
14171
# Flag to hardcode \$libdir into a binary during linking.
 
14172
# This must work even if \$libdir does not exist.
 
14173
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14174
 
 
14175
# If ld is used when linking, flag to hardcode \$libdir into
 
14176
# a binary during linking. This must work even if \$libdir does
 
14177
# not exist.
 
14178
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14179
 
 
14180
# Whether we need a single -rpath flag with a separated argument.
 
14181
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14182
 
 
14183
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14184
# resulting binary.
 
14185
hardcode_direct=$hardcode_direct_CXX
 
14186
 
 
14187
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14188
# resulting binary.
 
14189
hardcode_minus_L=$hardcode_minus_L_CXX
 
14190
 
 
14191
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14192
# the resulting binary.
 
14193
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14194
 
 
14195
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14196
# and all subsequent libraries and executables linked against it.
 
14197
hardcode_automatic=$hardcode_automatic_CXX
 
14198
 
 
14199
# Variables whose values should be saved in libtool wrapper scripts and
 
14200
# restored at relink time.
 
14201
variables_saved_for_relink="$variables_saved_for_relink"
 
14202
 
 
14203
# Whether libtool must link a program against all its dependency libraries.
 
14204
link_all_deplibs=$link_all_deplibs_CXX
 
14205
 
 
14206
# Compile-time system search path for libraries
 
14207
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14208
 
 
14209
# Run-time system search path for libraries
 
14210
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14211
 
 
14212
# Fix the shell variable \$srcfile for the compiler.
 
14213
fix_srcfile_path=$lt_fix_srcfile_path
 
14214
 
 
14215
# Set to yes if exported symbols are required.
 
14216
always_export_symbols=$always_export_symbols_CXX
 
14217
 
 
14218
# The commands to list exported symbols.
 
14219
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14220
 
 
14221
# The commands to extract the exported symbol list from a shared archive.
 
14222
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14223
 
 
14224
# Symbols that should not be listed in the preloaded symbols.
 
14225
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14226
 
 
14227
# Symbols that must always be exported.
 
14228
include_expsyms=$lt_include_expsyms_CXX
 
14229
 
 
14230
# ### END LIBTOOL TAG CONFIG: $tagname
 
14231
 
 
14232
__EOF__
 
14233
 
 
14234
 
 
14235
else
 
14236
  # If there is no Makefile yet, we rely on a make rule to execute
 
14237
  # `config.status --recheck' to rerun these tests and create the
 
14238
  # libtool script then.
 
14239
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14240
  if test -f "$ltmain_in"; then
 
14241
    test -f Makefile && make "$ltmain"
 
14242
  fi
 
14243
fi
 
14244
 
 
14245
 
 
14246
ac_ext=c
 
14247
ac_cpp='$CPP $CPPFLAGS'
 
14248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14251
 
 
14252
CC=$lt_save_CC
 
14253
LDCXX=$LD
 
14254
LD=$lt_save_LD
 
14255
GCC=$lt_save_GCC
 
14256
with_gnu_ldcxx=$with_gnu_ld
 
14257
with_gnu_ld=$lt_save_with_gnu_ld
 
14258
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14259
lt_cv_path_LD=$lt_save_path_LD
 
14260
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14261
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14262
 
 
14263
        else
 
14264
          tagname=""
 
14265
        fi
 
14266
        ;;
 
14267
 
 
14268
      F77)
 
14269
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14270
 
 
14271
ac_ext=f
 
14272
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14273
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14274
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14275
 
 
14276
 
 
14277
archive_cmds_need_lc_F77=no
 
14278
allow_undefined_flag_F77=
 
14279
always_export_symbols_F77=no
 
14280
archive_expsym_cmds_F77=
 
14281
export_dynamic_flag_spec_F77=
 
14282
hardcode_direct_F77=no
 
14283
hardcode_libdir_flag_spec_F77=
 
14284
hardcode_libdir_flag_spec_ld_F77=
 
14285
hardcode_libdir_separator_F77=
 
14286
hardcode_minus_L_F77=no
 
14287
hardcode_automatic_F77=no
 
14288
module_cmds_F77=
 
14289
module_expsym_cmds_F77=
 
14290
link_all_deplibs_F77=unknown
 
14291
old_archive_cmds_F77=$old_archive_cmds
 
14292
no_undefined_flag_F77=
 
14293
whole_archive_flag_spec_F77=
 
14294
enable_shared_with_static_runtimes_F77=no
 
14295
 
 
14296
# Source file extension for f77 test sources.
 
14297
ac_ext=f
 
14298
 
 
14299
# Object file extension for compiled f77 test sources.
 
14300
objext=o
 
14301
objext_F77=$objext
 
14302
 
 
14303
# Code to be used in simple compile tests
 
14304
lt_simple_compile_test_code="\
 
14305
      subroutine t
 
14306
      return
 
14307
      end
 
14308
"
 
14309
 
 
14310
# Code to be used in simple link tests
 
14311
lt_simple_link_test_code="\
 
14312
      program t
 
14313
      end
 
14314
"
 
14315
 
 
14316
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14317
 
 
14318
# If no C compiler was specified, use CC.
 
14319
LTCC=${LTCC-"$CC"}
 
14320
 
 
14321
# If no C compiler flags were specified, use CFLAGS.
 
14322
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14323
 
 
14324
# Allow CC to be a program name with arguments.
 
14325
compiler=$CC
 
14326
 
 
14327
 
 
14328
# save warnings/boilerplate of simple test code
 
14329
ac_outfile=conftest.$ac_objext
 
14330
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14331
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14332
_lt_compiler_boilerplate=`cat conftest.err`
 
14333
$rm conftest*
 
14334
 
 
14335
ac_outfile=conftest.$ac_objext
 
14336
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14337
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14338
_lt_linker_boilerplate=`cat conftest.err`
 
14339
$rm -r conftest*
 
14340
 
 
14341
 
 
14342
# Allow CC to be a program name with arguments.
 
14343
lt_save_CC="$CC"
 
14344
CC=${F77-"f77"}
 
14345
compiler=$CC
 
14346
compiler_F77=$CC
 
14347
for cc_temp in $compiler""; do
 
14348
  case $cc_temp in
 
14349
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14350
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14351
    \-*) ;;
 
14352
    *) break;;
 
14353
  esac
 
14354
done
 
14355
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14356
 
 
14357
 
 
14358
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14359
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
14360
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14361
$as_echo "$can_build_shared" >&6; }
 
14362
 
 
14363
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14364
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14365
test "$can_build_shared" = "no" && enable_shared=no
 
14366
 
 
14367
# On AIX, shared libraries and static libraries use the same namespace, and
 
14368
# are all built from PIC.
 
14369
case $host_os in
 
14370
aix3*)
 
14371
  test "$enable_shared" = yes && enable_static=no
 
14372
  if test -n "$RANLIB"; then
 
14373
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14374
    postinstall_cmds='$RANLIB $lib'
 
14375
  fi
 
14376
  ;;
 
14377
aix[4-9]*)
 
14378
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14379
    test "$enable_shared" = yes && enable_static=no
 
14380
  fi
 
14381
  ;;
 
14382
esac
 
14383
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14384
$as_echo "$enable_shared" >&6; }
 
14385
 
 
14386
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14387
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14388
# Make sure either enable_shared or enable_static is yes.
 
14389
test "$enable_shared" = yes || enable_static=yes
 
14390
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14391
$as_echo "$enable_static" >&6; }
 
14392
 
 
14393
GCC_F77="$G77"
 
14394
LD_F77="$LD"
 
14395
 
 
14396
lt_prog_compiler_wl_F77=
 
14397
lt_prog_compiler_pic_F77=
 
14398
lt_prog_compiler_static_F77=
 
14399
 
 
14400
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14401
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14402
 
 
14403
  if test "$GCC" = yes; then
 
14404
    lt_prog_compiler_wl_F77='-Wl,'
 
14405
    lt_prog_compiler_static_F77='-static'
 
14406
 
 
14407
    case $host_os in
 
14408
      aix*)
 
14409
      # All AIX code is PIC.
 
14410
      if test "$host_cpu" = ia64; then
 
14411
        # AIX 5 now supports IA64 processor
 
14412
        lt_prog_compiler_static_F77='-Bstatic'
 
14413
      fi
 
14414
      ;;
 
14415
 
 
14416
    amigaos*)
 
14417
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14418
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14419
      # like `-m68040'.
 
14420
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14421
      ;;
 
14422
 
 
14423
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14424
      # PIC is the default for these OSes.
 
14425
      ;;
 
14426
 
 
14427
    mingw* | cygwin* | pw32* | os2*)
 
14428
      # This hack is so that the source file can tell whether it is being
 
14429
      # built for inclusion in a dll (and should export symbols for example).
 
14430
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14431
      # (--disable-auto-import) libraries
 
14432
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14433
      ;;
 
14434
 
 
14435
    darwin* | rhapsody*)
 
14436
      # PIC is the default on this platform
 
14437
      # Common symbols not allowed in MH_DYLIB files
 
14438
      lt_prog_compiler_pic_F77='-fno-common'
 
14439
      ;;
 
14440
 
 
14441
    interix[3-9]*)
 
14442
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14443
      # Instead, we relocate shared libraries at runtime.
 
14444
      ;;
 
14445
 
 
14446
    msdosdjgpp*)
 
14447
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14448
      # on systems that don't support them.
 
14449
      lt_prog_compiler_can_build_shared_F77=no
 
14450
      enable_shared=no
 
14451
      ;;
 
14452
 
 
14453
    sysv4*MP*)
 
14454
      if test -d /usr/nec; then
 
14455
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14456
      fi
 
14457
      ;;
 
14458
 
 
14459
    hpux*)
 
14460
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14461
      # not for PA HP-UX.
 
14462
      case $host_cpu in
 
14463
      hppa*64*|ia64*)
 
14464
        # +Z the default
 
14465
        ;;
 
14466
      *)
 
14467
        lt_prog_compiler_pic_F77='-fPIC'
 
14468
        ;;
 
14469
      esac
 
14470
      ;;
 
14471
 
 
14472
    *)
 
14473
      lt_prog_compiler_pic_F77='-fPIC'
 
14474
      ;;
 
14475
    esac
 
14476
  else
 
14477
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14478
    case $host_os in
 
14479
    aix*)
 
14480
      lt_prog_compiler_wl_F77='-Wl,'
 
14481
      if test "$host_cpu" = ia64; then
 
14482
        # AIX 5 now supports IA64 processor
 
14483
        lt_prog_compiler_static_F77='-Bstatic'
 
14484
      else
 
14485
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14486
      fi
 
14487
      ;;
 
14488
      darwin*)
 
14489
        # PIC is the default on this platform
 
14490
        # Common symbols not allowed in MH_DYLIB files
 
14491
       case $cc_basename in
 
14492
         xlc*)
 
14493
         lt_prog_compiler_pic_F77='-qnocommon'
 
14494
         lt_prog_compiler_wl_F77='-Wl,'
 
14495
         ;;
 
14496
       esac
 
14497
       ;;
 
14498
 
 
14499
    mingw* | cygwin* | pw32* | os2*)
 
14500
      # This hack is so that the source file can tell whether it is being
 
14501
      # built for inclusion in a dll (and should export symbols for example).
 
14502
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14503
      ;;
 
14504
 
 
14505
    hpux9* | hpux10* | hpux11*)
 
14506
      lt_prog_compiler_wl_F77='-Wl,'
 
14507
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14508
      # not for PA HP-UX.
 
14509
      case $host_cpu in
 
14510
      hppa*64*|ia64*)
 
14511
        # +Z the default
 
14512
        ;;
 
14513
      *)
 
14514
        lt_prog_compiler_pic_F77='+Z'
 
14515
        ;;
 
14516
      esac
 
14517
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14518
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14519
      ;;
 
14520
 
 
14521
    irix5* | irix6* | nonstopux*)
 
14522
      lt_prog_compiler_wl_F77='-Wl,'
 
14523
      # PIC (with -KPIC) is the default.
 
14524
      lt_prog_compiler_static_F77='-non_shared'
 
14525
      ;;
 
14526
 
 
14527
    newsos6)
 
14528
      lt_prog_compiler_pic_F77='-KPIC'
 
14529
      lt_prog_compiler_static_F77='-Bstatic'
 
14530
      ;;
 
14531
 
 
14532
    linux* | k*bsd*-gnu)
 
14533
      case $cc_basename in
 
14534
      icc* | ecc*)
 
14535
        lt_prog_compiler_wl_F77='-Wl,'
 
14536
        lt_prog_compiler_pic_F77='-KPIC'
 
14537
        lt_prog_compiler_static_F77='-static'
 
14538
        ;;
 
14539
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14540
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14541
        # which looks to be a dead project)
 
14542
        lt_prog_compiler_wl_F77='-Wl,'
 
14543
        lt_prog_compiler_pic_F77='-fpic'
 
14544
        lt_prog_compiler_static_F77='-Bstatic'
 
14545
        ;;
 
14546
      ccc*)
 
14547
        lt_prog_compiler_wl_F77='-Wl,'
 
14548
        # All Alpha code is PIC.
 
14549
        lt_prog_compiler_static_F77='-non_shared'
 
14550
        ;;
 
14551
      *)
 
14552
        case `$CC -V 2>&1 | sed 5q` in
 
14553
        *Sun\ C*)
 
14554
          # Sun C 5.9
 
14555
          lt_prog_compiler_pic_F77='-KPIC'
 
14556
          lt_prog_compiler_static_F77='-Bstatic'
 
14557
          lt_prog_compiler_wl_F77='-Wl,'
 
14558
          ;;
 
14559
        *Sun\ F*)
 
14560
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14561
          lt_prog_compiler_pic_F77='-KPIC'
 
14562
          lt_prog_compiler_static_F77='-Bstatic'
 
14563
          lt_prog_compiler_wl_F77=''
 
14564
          ;;
 
14565
        esac
 
14566
        ;;
 
14567
      esac
 
14568
      ;;
 
14569
 
 
14570
    osf3* | osf4* | osf5*)
 
14571
      lt_prog_compiler_wl_F77='-Wl,'
 
14572
      # All OSF/1 code is PIC.
 
14573
      lt_prog_compiler_static_F77='-non_shared'
 
14574
      ;;
 
14575
 
 
14576
    rdos*)
 
14577
      lt_prog_compiler_static_F77='-non_shared'
 
14578
      ;;
 
14579
 
 
14580
    solaris*)
 
14581
      lt_prog_compiler_pic_F77='-KPIC'
 
14582
      lt_prog_compiler_static_F77='-Bstatic'
 
14583
      case $cc_basename in
 
14584
      f77* | f90* | f95*)
 
14585
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14586
      *)
 
14587
        lt_prog_compiler_wl_F77='-Wl,';;
 
14588
      esac
 
14589
      ;;
 
14590
 
 
14591
    sunos4*)
 
14592
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14593
      lt_prog_compiler_pic_F77='-PIC'
 
14594
      lt_prog_compiler_static_F77='-Bstatic'
 
14595
      ;;
 
14596
 
 
14597
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14598
      lt_prog_compiler_wl_F77='-Wl,'
 
14599
      lt_prog_compiler_pic_F77='-KPIC'
 
14600
      lt_prog_compiler_static_F77='-Bstatic'
 
14601
      ;;
 
14602
 
 
14603
    sysv4*MP*)
 
14604
      if test -d /usr/nec ;then
 
14605
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14606
        lt_prog_compiler_static_F77='-Bstatic'
 
14607
      fi
 
14608
      ;;
 
14609
 
 
14610
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14611
      lt_prog_compiler_wl_F77='-Wl,'
 
14612
      lt_prog_compiler_pic_F77='-KPIC'
 
14613
      lt_prog_compiler_static_F77='-Bstatic'
 
14614
      ;;
 
14615
 
 
14616
    unicos*)
 
14617
      lt_prog_compiler_wl_F77='-Wl,'
 
14618
      lt_prog_compiler_can_build_shared_F77=no
 
14619
      ;;
 
14620
 
 
14621
    uts4*)
 
14622
      lt_prog_compiler_pic_F77='-pic'
 
14623
      lt_prog_compiler_static_F77='-Bstatic'
 
14624
      ;;
 
14625
 
 
14626
    *)
 
14627
      lt_prog_compiler_can_build_shared_F77=no
 
14628
      ;;
 
14629
    esac
 
14630
  fi
 
14631
 
 
14632
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14633
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
14634
 
 
14635
#
 
14636
# Check to make sure the PIC flag actually works.
 
14637
#
 
14638
if test -n "$lt_prog_compiler_pic_F77"; then
 
14639
 
 
14640
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14641
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
14642
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14643
  $as_echo_n "(cached) " >&6
 
14644
else
 
14645
  lt_cv_prog_compiler_pic_works_F77=no
 
14646
  ac_outfile=conftest.$ac_objext
 
14647
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14648
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14649
   # Insert the option either (1) after the last *FLAGS variable, or
 
14650
   # (2) before a word containing "conftest.", or (3) at the end.
 
14651
   # Note that $ac_compile itself does not contain backslashes and begins
 
14652
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14653
   # The option is referenced via a variable to avoid confusing sed.
 
14654
   lt_compile=`echo "$ac_compile" | $SED \
 
14655
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14656
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14657
   -e 's:$: $lt_compiler_flag:'`
 
14658
   (eval echo "\"\$as_me:14658: $lt_compile\"" >&5)
 
14659
   (eval "$lt_compile" 2>conftest.err)
 
14660
   ac_status=$?
 
14661
   cat conftest.err >&5
 
14662
   echo "$as_me:14662: \$? = $ac_status" >&5
 
14663
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14664
     # The compiler can only warn and ignore the option if not recognized
 
14665
     # So say no if there are warnings other than the usual output.
 
14666
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14667
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14668
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14669
       lt_cv_prog_compiler_pic_works_F77=yes
 
14670
     fi
 
14671
   fi
 
14672
   $rm conftest*
 
14673
 
 
14674
fi
 
14675
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14676
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14677
 
 
14678
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14679
    case $lt_prog_compiler_pic_F77 in
 
14680
     "" | " "*) ;;
 
14681
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14682
     esac
 
14683
else
 
14684
    lt_prog_compiler_pic_F77=
 
14685
     lt_prog_compiler_can_build_shared_F77=no
 
14686
fi
 
14687
 
 
14688
fi
 
14689
case $host_os in
 
14690
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14691
  *djgpp*)
 
14692
    lt_prog_compiler_pic_F77=
 
14693
    ;;
 
14694
  *)
 
14695
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14696
    ;;
 
14697
esac
 
14698
 
 
14699
#
 
14700
# Check to make sure the static flag actually works.
 
14701
#
 
14702
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14703
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14704
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14705
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14706
  $as_echo_n "(cached) " >&6
 
14707
else
 
14708
  lt_cv_prog_compiler_static_works_F77=no
 
14709
   save_LDFLAGS="$LDFLAGS"
 
14710
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14711
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14712
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14713
     # The linker can only warn and ignore the option if not recognized
 
14714
     # So say no if there are warnings
 
14715
     if test -s conftest.err; then
 
14716
       # Append any errors to the config.log.
 
14717
       cat conftest.err 1>&5
 
14718
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14719
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14720
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14721
         lt_cv_prog_compiler_static_works_F77=yes
 
14722
       fi
 
14723
     else
 
14724
       lt_cv_prog_compiler_static_works_F77=yes
 
14725
     fi
 
14726
   fi
 
14727
   $rm -r conftest*
 
14728
   LDFLAGS="$save_LDFLAGS"
 
14729
 
 
14730
fi
 
14731
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14732
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14733
 
 
14734
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14735
    :
 
14736
else
 
14737
    lt_prog_compiler_static_F77=
 
14738
fi
 
14739
 
 
14740
 
 
14741
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14742
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14743
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14744
  $as_echo_n "(cached) " >&6
 
14745
else
 
14746
  lt_cv_prog_compiler_c_o_F77=no
 
14747
   $rm -r conftest 2>/dev/null
 
14748
   mkdir conftest
 
14749
   cd conftest
 
14750
   mkdir out
 
14751
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14752
 
 
14753
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14754
   # Insert the option either (1) after the last *FLAGS variable, or
 
14755
   # (2) before a word containing "conftest.", or (3) at the end.
 
14756
   # Note that $ac_compile itself does not contain backslashes and begins
 
14757
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14758
   lt_compile=`echo "$ac_compile" | $SED \
 
14759
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14760
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14761
   -e 's:$: $lt_compiler_flag:'`
 
14762
   (eval echo "\"\$as_me:14762: $lt_compile\"" >&5)
 
14763
   (eval "$lt_compile" 2>out/conftest.err)
 
14764
   ac_status=$?
 
14765
   cat out/conftest.err >&5
 
14766
   echo "$as_me:14766: \$? = $ac_status" >&5
 
14767
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14768
   then
 
14769
     # The compiler can only warn and ignore the option if not recognized
 
14770
     # So say no if there are warnings
 
14771
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14772
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14773
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14774
       lt_cv_prog_compiler_c_o_F77=yes
 
14775
     fi
 
14776
   fi
 
14777
   chmod u+w . 2>&5
 
14778
   $rm conftest*
 
14779
   # SGI C++ compiler will create directory out/ii_files/ for
 
14780
   # template instantiation
 
14781
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14782
   $rm out/* && rmdir out
 
14783
   cd ..
 
14784
   rmdir conftest
 
14785
   $rm conftest*
 
14786
 
 
14787
fi
 
14788
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14789
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14790
 
 
14791
 
 
14792
hard_links="nottested"
 
14793
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14794
  # do not overwrite the value of need_locks provided by the user
 
14795
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14796
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14797
  hard_links=yes
 
14798
  $rm conftest*
 
14799
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14800
  touch conftest.a
 
14801
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14802
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14803
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
14804
$as_echo "$hard_links" >&6; }
 
14805
  if test "$hard_links" = no; then
 
14806
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14807
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14808
    need_locks=warn
 
14809
  fi
 
14810
else
 
14811
  need_locks=no
 
14812
fi
 
14813
 
 
14814
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14815
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14816
 
 
14817
  runpath_var=
 
14818
  allow_undefined_flag_F77=
 
14819
  enable_shared_with_static_runtimes_F77=no
 
14820
  archive_cmds_F77=
 
14821
  archive_expsym_cmds_F77=
 
14822
  old_archive_From_new_cmds_F77=
 
14823
  old_archive_from_expsyms_cmds_F77=
 
14824
  export_dynamic_flag_spec_F77=
 
14825
  whole_archive_flag_spec_F77=
 
14826
  thread_safe_flag_spec_F77=
 
14827
  hardcode_libdir_flag_spec_F77=
 
14828
  hardcode_libdir_flag_spec_ld_F77=
 
14829
  hardcode_libdir_separator_F77=
 
14830
  hardcode_direct_F77=no
 
14831
  hardcode_minus_L_F77=no
 
14832
  hardcode_shlibpath_var_F77=unsupported
 
14833
  link_all_deplibs_F77=unknown
 
14834
  hardcode_automatic_F77=no
 
14835
  module_cmds_F77=
 
14836
  module_expsym_cmds_F77=
 
14837
  always_export_symbols_F77=no
 
14838
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14839
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14840
  # included in the symbol list
 
14841
  include_expsyms_F77=
 
14842
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14843
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14844
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14845
  # as well as any symbol that contains `d'.
 
14846
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14847
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14848
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14849
  # the symbol is explicitly referenced.  Since portable code cannot
 
14850
  # rely on this symbol name, it's probably fine to never include it in
 
14851
  # preloaded symbol tables.
 
14852
  # Exclude shared library initialization/finalization symbols.
 
14853
  extract_expsyms_cmds=
 
14854
  # Just being paranoid about ensuring that cc_basename is set.
 
14855
  for cc_temp in $compiler""; do
 
14856
  case $cc_temp in
 
14857
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14858
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14859
    \-*) ;;
 
14860
    *) break;;
 
14861
  esac
 
14862
done
 
14863
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14864
 
 
14865
  case $host_os in
 
14866
  cygwin* | mingw* | pw32*)
 
14867
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14868
    # When not using gcc, we currently assume that we are using
 
14869
    # Microsoft Visual C++.
 
14870
    if test "$GCC" != yes; then
 
14871
      with_gnu_ld=no
 
14872
    fi
 
14873
    ;;
 
14874
  interix*)
 
14875
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14876
    with_gnu_ld=yes
 
14877
    ;;
 
14878
  openbsd*)
 
14879
    with_gnu_ld=no
 
14880
    ;;
 
14881
  esac
 
14882
 
 
14883
  ld_shlibs_F77=yes
 
14884
  if test "$with_gnu_ld" = yes; then
 
14885
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14886
    wlarc='${wl}'
 
14887
 
 
14888
    # Set some defaults for GNU ld with shared library support. These
 
14889
    # are reset later if shared libraries are not supported. Putting them
 
14890
    # here allows them to be overridden if necessary.
 
14891
    runpath_var=LD_RUN_PATH
 
14892
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14893
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14894
    # ancient GNU ld didn't support --whole-archive et. al.
 
14895
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14896
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14897
      else
 
14898
        whole_archive_flag_spec_F77=
 
14899
    fi
 
14900
    supports_anon_versioning=no
 
14901
    case `$LD -v 2>/dev/null` in
 
14902
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14903
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14904
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14905
      *\ 2.11.*) ;; # other 2.11 versions
 
14906
      *) supports_anon_versioning=yes ;;
 
14907
    esac
 
14908
 
 
14909
    # See if GNU ld supports shared libraries.
 
14910
    case $host_os in
 
14911
    aix[3-9]*)
 
14912
      # On AIX/PPC, the GNU linker is very broken
 
14913
      if test "$host_cpu" != ia64; then
 
14914
        ld_shlibs_F77=no
 
14915
        cat <<EOF 1>&2
 
14916
 
 
14917
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14918
*** to be unable to reliably create shared libraries on AIX.
 
14919
*** Therefore, libtool is disabling shared libraries support.  If you
 
14920
*** really care for shared libraries, you may want to modify your PATH
 
14921
*** so that a non-GNU linker is found, and then restart.
 
14922
 
 
14923
EOF
 
14924
      fi
 
14925
      ;;
 
14926
 
 
14927
    amigaos*)
 
14928
      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)'
 
14929
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14930
      hardcode_minus_L_F77=yes
 
14931
 
 
14932
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14933
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14934
      # to version 4, is to share data among multiple programs linked
 
14935
      # with the same dynamic library.  Since this doesn't match the
 
14936
      # behavior of shared libraries on other platforms, we can't use
 
14937
      # them.
 
14938
      ld_shlibs_F77=no
 
14939
      ;;
 
14940
 
 
14941
    beos*)
 
14942
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14943
        allow_undefined_flag_F77=unsupported
 
14944
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14945
        # support --undefined.  This deserves some investigation.  FIXME
 
14946
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14947
      else
 
14948
        ld_shlibs_F77=no
 
14949
      fi
 
14950
      ;;
 
14951
 
 
14952
    cygwin* | mingw* | pw32*)
 
14953
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14954
      # as there is no search path for DLLs.
 
14955
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14956
      allow_undefined_flag_F77=unsupported
 
14957
      always_export_symbols_F77=no
 
14958
      enable_shared_with_static_runtimes_F77=yes
 
14959
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14960
 
 
14961
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14962
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14963
        # If the export-symbols file already is a .def file (1st line
 
14964
        # is EXPORTS), use it as is; otherwise, prepend...
 
14965
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14966
          cp $export_symbols $output_objdir/$soname.def;
 
14967
        else
 
14968
          echo EXPORTS > $output_objdir/$soname.def;
 
14969
          cat $export_symbols >> $output_objdir/$soname.def;
 
14970
        fi~
 
14971
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14972
      else
 
14973
        ld_shlibs_F77=no
 
14974
      fi
 
14975
      ;;
 
14976
 
 
14977
    interix[3-9]*)
 
14978
      hardcode_direct_F77=no
 
14979
      hardcode_shlibpath_var_F77=no
 
14980
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14981
      export_dynamic_flag_spec_F77='${wl}-E'
 
14982
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14983
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14984
      # default) and relocated if they conflict, which is a slow very memory
 
14985
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14986
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14987
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14988
      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'
 
14989
      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'
 
14990
      ;;
 
14991
 
 
14992
    gnu* | linux* | k*bsd*-gnu)
 
14993
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14994
        tmp_addflag=
 
14995
        case $cc_basename,$host_cpu in
 
14996
        pgcc*)                          # Portland Group C compiler
 
14997
          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'
 
14998
          tmp_addflag=' $pic_flag'
 
14999
          ;;
 
15000
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15001
          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'
 
15002
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15003
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15004
          tmp_addflag=' -i_dynamic' ;;
 
15005
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15006
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15007
        ifc* | ifort*)                  # Intel Fortran compiler
 
15008
          tmp_addflag=' -nofor_main' ;;
 
15009
        esac
 
15010
        case `$CC -V 2>&1 | sed 5q` in
 
15011
        *Sun\ C*)                       # Sun C 5.9
 
15012
          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'
 
15013
          tmp_sharedflag='-G' ;;
 
15014
        *Sun\ F*)                       # Sun Fortran 8.3
 
15015
          tmp_sharedflag='-G' ;;
 
15016
        *)
 
15017
          tmp_sharedflag='-shared' ;;
 
15018
        esac
 
15019
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15020
 
 
15021
        if test $supports_anon_versioning = yes; then
 
15022
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15023
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15024
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15025
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15026
        fi
 
15027
      else
 
15028
        ld_shlibs_F77=no
 
15029
      fi
 
15030
      ;;
 
15031
 
 
15032
    netbsd*)
 
15033
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15034
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15035
        wlarc=
 
15036
      else
 
15037
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15038
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15039
      fi
 
15040
      ;;
 
15041
 
 
15042
    solaris*)
 
15043
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15044
        ld_shlibs_F77=no
 
15045
        cat <<EOF 1>&2
 
15046
 
 
15047
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15048
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15049
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15050
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15051
*** your PATH or compiler configuration so that the native linker is
 
15052
*** used, and then restart.
 
15053
 
 
15054
EOF
 
15055
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15056
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15057
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15058
      else
 
15059
        ld_shlibs_F77=no
 
15060
      fi
 
15061
      ;;
 
15062
 
 
15063
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15064
      case `$LD -v 2>&1` in
 
15065
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15066
        ld_shlibs_F77=no
 
15067
        cat <<_LT_EOF 1>&2
 
15068
 
 
15069
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15070
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15071
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15072
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15073
*** your PATH or compiler configuration so that the native linker is
 
15074
*** used, and then restart.
 
15075
 
 
15076
_LT_EOF
 
15077
        ;;
 
15078
        *)
 
15079
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15080
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15081
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15082
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15083
          else
 
15084
            ld_shlibs_F77=no
 
15085
          fi
 
15086
        ;;
 
15087
      esac
 
15088
      ;;
 
15089
 
 
15090
    sunos4*)
 
15091
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15092
      wlarc=
 
15093
      hardcode_direct_F77=yes
 
15094
      hardcode_shlibpath_var_F77=no
 
15095
      ;;
 
15096
 
 
15097
    *)
 
15098
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15099
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15100
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15101
      else
 
15102
        ld_shlibs_F77=no
 
15103
      fi
 
15104
      ;;
 
15105
    esac
 
15106
 
 
15107
    if test "$ld_shlibs_F77" = no; then
 
15108
      runpath_var=
 
15109
      hardcode_libdir_flag_spec_F77=
 
15110
      export_dynamic_flag_spec_F77=
 
15111
      whole_archive_flag_spec_F77=
 
15112
    fi
 
15113
  else
 
15114
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15115
    case $host_os in
 
15116
    aix3*)
 
15117
      allow_undefined_flag_F77=unsupported
 
15118
      always_export_symbols_F77=yes
 
15119
      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'
 
15120
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15121
      # are no directories specified by -L.
 
15122
      hardcode_minus_L_F77=yes
 
15123
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15124
        # Neither direct hardcoding nor static linking is supported with a
 
15125
        # broken collect2.
 
15126
        hardcode_direct_F77=unsupported
 
15127
      fi
 
15128
      ;;
 
15129
 
 
15130
    aix[4-9]*)
 
15131
      if test "$host_cpu" = ia64; then
 
15132
        # On IA64, the linker does run time linking by default, so we don't
 
15133
        # have to do anything special.
 
15134
        aix_use_runtimelinking=no
 
15135
        exp_sym_flag='-Bexport'
 
15136
        no_entry_flag=""
 
15137
      else
 
15138
        # If we're using GNU nm, then we don't want the "-C" option.
 
15139
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15140
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15141
          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'
 
15142
        else
 
15143
          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'
 
15144
        fi
 
15145
        aix_use_runtimelinking=no
 
15146
 
 
15147
        # Test if we are trying to use run time linking or normal
 
15148
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15149
        # need to do runtime linking.
 
15150
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15151
          for ld_flag in $LDFLAGS; do
 
15152
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15153
            aix_use_runtimelinking=yes
 
15154
            break
 
15155
          fi
 
15156
          done
 
15157
          ;;
 
15158
        esac
 
15159
 
 
15160
        exp_sym_flag='-bexport'
 
15161
        no_entry_flag='-bnoentry'
 
15162
      fi
 
15163
 
 
15164
      # When large executables or shared objects are built, AIX ld can
 
15165
      # have problems creating the table of contents.  If linking a library
 
15166
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15167
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15168
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15169
 
 
15170
      archive_cmds_F77=''
 
15171
      hardcode_direct_F77=yes
 
15172
      hardcode_libdir_separator_F77=':'
 
15173
      link_all_deplibs_F77=yes
 
15174
 
 
15175
      if test "$GCC" = yes; then
 
15176
        case $host_os in aix4.[012]|aix4.[012].*)
 
15177
        # We only want to do this on AIX 4.2 and lower, the check
 
15178
        # below for broken collect2 doesn't work under 4.3+
 
15179
          collect2name=`${CC} -print-prog-name=collect2`
 
15180
          if test -f "$collect2name" && \
 
15181
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15182
          then
 
15183
          # We have reworked collect2
 
15184
          :
 
15185
          else
 
15186
          # We have old collect2
 
15187
          hardcode_direct_F77=unsupported
 
15188
          # It fails to find uninstalled libraries when the uninstalled
 
15189
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15190
          # to unsupported forces relinking
 
15191
          hardcode_minus_L_F77=yes
 
15192
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15193
          hardcode_libdir_separator_F77=
 
15194
          fi
 
15195
          ;;
 
15196
        esac
 
15197
        shared_flag='-shared'
 
15198
        if test "$aix_use_runtimelinking" = yes; then
 
15199
          shared_flag="$shared_flag "'${wl}-G'
 
15200
        fi
 
15201
      else
 
15202
        # not using gcc
 
15203
        if test "$host_cpu" = ia64; then
 
15204
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15205
        # chokes on -Wl,-G. The following line is correct:
 
15206
          shared_flag='-G'
 
15207
        else
 
15208
          if test "$aix_use_runtimelinking" = yes; then
 
15209
            shared_flag='${wl}-G'
 
15210
          else
 
15211
            shared_flag='${wl}-bM:SRE'
 
15212
          fi
 
15213
        fi
 
15214
      fi
 
15215
 
 
15216
      # It seems that -bexpall does not export symbols beginning with
 
15217
      # underscore (_), so it is better to generate a list of symbols to export.
 
15218
      always_export_symbols_F77=yes
 
15219
      if test "$aix_use_runtimelinking" = yes; then
 
15220
        # Warning - without using the other runtime loading flags (-brtl),
 
15221
        # -berok will link without error, but may produce a broken library.
 
15222
        allow_undefined_flag_F77='-berok'
 
15223
       # Determine the default libpath from the value encoded in an empty executable.
 
15224
       cat >conftest.$ac_ext <<_ACEOF
 
15225
      program main
 
15226
 
 
15227
      end
 
15228
_ACEOF
 
15229
rm -f conftest.$ac_objext conftest$ac_exeext
 
15230
if { (ac_try="$ac_link"
 
15231
case "(($ac_try" in
 
15232
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15233
  *) ac_try_echo=$ac_try;;
 
15234
esac
 
15235
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15236
$as_echo "$ac_try_echo") >&5
 
15237
  (eval "$ac_link") 2>conftest.er1
 
15238
  ac_status=$?
 
15239
  grep -v '^ *+' conftest.er1 >conftest.err
 
15240
  rm -f conftest.er1
 
15241
  cat conftest.err >&5
 
15242
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15243
  (exit $ac_status); } && {
 
15244
         test -z "$ac_f77_werror_flag" ||
 
15245
         test ! -s conftest.err
 
15246
       } && test -s conftest$ac_exeext && {
 
15247
         test "$cross_compiling" = yes ||
 
15248
         $as_test_x conftest$ac_exeext
 
15249
       }; then
 
15250
 
 
15251
lt_aix_libpath_sed='
 
15252
    /Import File Strings/,/^$/ {
 
15253
        /^0/ {
 
15254
            s/^0  *\(.*\)$/\1/
 
15255
            p
 
15256
        }
 
15257
    }'
 
15258
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15259
# Check for a 64-bit object if we didn't find anything.
 
15260
if test -z "$aix_libpath"; then
 
15261
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15262
fi
 
15263
else
 
15264
  $as_echo "$as_me: failed program was:" >&5
 
15265
sed 's/^/| /' conftest.$ac_ext >&5
 
15266
 
 
15267
 
 
15268
fi
 
15269
 
 
15270
rm -rf conftest.dSYM
 
15271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15272
      conftest$ac_exeext conftest.$ac_ext
 
15273
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15274
 
 
15275
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15276
        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"
 
15277
       else
 
15278
        if test "$host_cpu" = ia64; then
 
15279
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15280
          allow_undefined_flag_F77="-z nodefs"
 
15281
          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"
 
15282
        else
 
15283
         # Determine the default libpath from the value encoded in an empty executable.
 
15284
         cat >conftest.$ac_ext <<_ACEOF
 
15285
      program main
 
15286
 
 
15287
      end
 
15288
_ACEOF
 
15289
rm -f conftest.$ac_objext conftest$ac_exeext
 
15290
if { (ac_try="$ac_link"
 
15291
case "(($ac_try" in
 
15292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15293
  *) ac_try_echo=$ac_try;;
 
15294
esac
 
15295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15296
$as_echo "$ac_try_echo") >&5
 
15297
  (eval "$ac_link") 2>conftest.er1
 
15298
  ac_status=$?
 
15299
  grep -v '^ *+' conftest.er1 >conftest.err
 
15300
  rm -f conftest.er1
 
15301
  cat conftest.err >&5
 
15302
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15303
  (exit $ac_status); } && {
 
15304
         test -z "$ac_f77_werror_flag" ||
 
15305
         test ! -s conftest.err
 
15306
       } && test -s conftest$ac_exeext && {
 
15307
         test "$cross_compiling" = yes ||
 
15308
         $as_test_x conftest$ac_exeext
 
15309
       }; then
 
15310
 
 
15311
lt_aix_libpath_sed='
 
15312
    /Import File Strings/,/^$/ {
 
15313
        /^0/ {
 
15314
            s/^0  *\(.*\)$/\1/
 
15315
            p
 
15316
        }
 
15317
    }'
 
15318
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15319
# Check for a 64-bit object if we didn't find anything.
 
15320
if test -z "$aix_libpath"; then
 
15321
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15322
fi
 
15323
else
 
15324
  $as_echo "$as_me: failed program was:" >&5
 
15325
sed 's/^/| /' conftest.$ac_ext >&5
 
15326
 
 
15327
 
 
15328
fi
 
15329
 
 
15330
rm -rf conftest.dSYM
 
15331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15332
      conftest$ac_exeext conftest.$ac_ext
 
15333
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15334
 
 
15335
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15336
          # Warning - without using the other run time loading flags,
 
15337
          # -berok will link without error, but may produce a broken library.
 
15338
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15339
          allow_undefined_flag_F77=' ${wl}-berok'
 
15340
          # Exported symbols can be pulled into shared objects from archives
 
15341
          whole_archive_flag_spec_F77='$convenience'
 
15342
          archive_cmds_need_lc_F77=yes
 
15343
          # This is similar to how AIX traditionally builds its shared libraries.
 
15344
          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'
 
15345
        fi
 
15346
      fi
 
15347
      ;;
 
15348
 
 
15349
    amigaos*)
 
15350
      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)'
 
15351
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15352
      hardcode_minus_L_F77=yes
 
15353
      # see comment about different semantics on the GNU ld section
 
15354
      ld_shlibs_F77=no
 
15355
      ;;
 
15356
 
 
15357
    bsdi[45]*)
 
15358
      export_dynamic_flag_spec_F77=-rdynamic
 
15359
      ;;
 
15360
 
 
15361
    cygwin* | mingw* | pw32*)
 
15362
      # When not using gcc, we currently assume that we are using
 
15363
      # Microsoft Visual C++.
 
15364
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15365
      # no search path for DLLs.
 
15366
      hardcode_libdir_flag_spec_F77=' '
 
15367
      allow_undefined_flag_F77=unsupported
 
15368
      # Tell ltmain to make .lib files, not .a files.
 
15369
      libext=lib
 
15370
      # Tell ltmain to make .dll files, not .so files.
 
15371
      shrext_cmds=".dll"
 
15372
      # FIXME: Setting linknames here is a bad hack.
 
15373
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15374
      # The linker will automatically build a .lib file if we build a DLL.
 
15375
      old_archive_From_new_cmds_F77='true'
 
15376
      # FIXME: Should let the user specify the lib program.
 
15377
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15378
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15379
      enable_shared_with_static_runtimes_F77=yes
 
15380
      ;;
 
15381
 
 
15382
    darwin* | rhapsody*)
 
15383
      case $host_os in
 
15384
        rhapsody* | darwin1.[012])
 
15385
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15386
         ;;
 
15387
       *) # Darwin 1.3 on
 
15388
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15389
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15390
         else
 
15391
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15392
             10.[012])
 
15393
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15394
               ;;
 
15395
             10.*)
 
15396
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15397
               ;;
 
15398
           esac
 
15399
         fi
 
15400
         ;;
 
15401
      esac
 
15402
      archive_cmds_need_lc_F77=no
 
15403
      hardcode_direct_F77=no
 
15404
      hardcode_automatic_F77=yes
 
15405
      hardcode_shlibpath_var_F77=unsupported
 
15406
      whole_archive_flag_spec_F77=''
 
15407
      link_all_deplibs_F77=yes
 
15408
    if test "$GCC" = yes ; then
 
15409
        output_verbose_link_cmd='echo'
 
15410
        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}"
 
15411
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15412
        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}"
 
15413
        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}"
 
15414
    else
 
15415
      case $cc_basename in
 
15416
        xlc*)
 
15417
         output_verbose_link_cmd='echo'
 
15418
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15419
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15420
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15421
         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}'
 
15422
          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}'
 
15423
          ;;
 
15424
       *)
 
15425
         ld_shlibs_F77=no
 
15426
          ;;
 
15427
      esac
 
15428
    fi
 
15429
      ;;
 
15430
 
 
15431
    dgux*)
 
15432
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15433
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15434
      hardcode_shlibpath_var_F77=no
 
15435
      ;;
 
15436
 
 
15437
    freebsd1*)
 
15438
      ld_shlibs_F77=no
 
15439
      ;;
 
15440
 
 
15441
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15442
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15443
    # does not break anything, and helps significantly (at the cost of a little
 
15444
    # extra space).
 
15445
    freebsd2.2*)
 
15446
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15447
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15448
      hardcode_direct_F77=yes
 
15449
      hardcode_shlibpath_var_F77=no
 
15450
      ;;
 
15451
 
 
15452
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15453
    freebsd2*)
 
15454
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15455
      hardcode_direct_F77=yes
 
15456
      hardcode_minus_L_F77=yes
 
15457
      hardcode_shlibpath_var_F77=no
 
15458
      ;;
 
15459
 
 
15460
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15461
    freebsd* | dragonfly*)
 
15462
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15463
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15464
      hardcode_direct_F77=yes
 
15465
      hardcode_shlibpath_var_F77=no
 
15466
      ;;
 
15467
 
 
15468
    hpux9*)
 
15469
      if test "$GCC" = yes; then
 
15470
        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'
 
15471
      else
 
15472
        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'
 
15473
      fi
 
15474
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15475
      hardcode_libdir_separator_F77=:
 
15476
      hardcode_direct_F77=yes
 
15477
 
 
15478
      # hardcode_minus_L: Not really in the search PATH,
 
15479
      # but as the default location of the library.
 
15480
      hardcode_minus_L_F77=yes
 
15481
      export_dynamic_flag_spec_F77='${wl}-E'
 
15482
      ;;
 
15483
 
 
15484
    hpux10*)
 
15485
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15486
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15487
      else
 
15488
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15489
      fi
 
15490
      if test "$with_gnu_ld" = no; then
 
15491
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15492
        hardcode_libdir_separator_F77=:
 
15493
 
 
15494
        hardcode_direct_F77=yes
 
15495
        export_dynamic_flag_spec_F77='${wl}-E'
 
15496
 
 
15497
        # hardcode_minus_L: Not really in the search PATH,
 
15498
        # but as the default location of the library.
 
15499
        hardcode_minus_L_F77=yes
 
15500
      fi
 
15501
      ;;
 
15502
 
 
15503
    hpux11*)
 
15504
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15505
        case $host_cpu in
 
15506
        hppa*64*)
 
15507
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15508
          ;;
 
15509
        ia64*)
 
15510
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15511
          ;;
 
15512
        *)
 
15513
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15514
          ;;
 
15515
        esac
 
15516
      else
 
15517
        case $host_cpu in
 
15518
        hppa*64*)
 
15519
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15520
          ;;
 
15521
        ia64*)
 
15522
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15523
          ;;
 
15524
        *)
 
15525
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15526
          ;;
 
15527
        esac
 
15528
      fi
 
15529
      if test "$with_gnu_ld" = no; then
 
15530
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15531
        hardcode_libdir_separator_F77=:
 
15532
 
 
15533
        case $host_cpu in
 
15534
        hppa*64*|ia64*)
 
15535
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15536
          hardcode_direct_F77=no
 
15537
          hardcode_shlibpath_var_F77=no
 
15538
          ;;
 
15539
        *)
 
15540
          hardcode_direct_F77=yes
 
15541
          export_dynamic_flag_spec_F77='${wl}-E'
 
15542
 
 
15543
          # hardcode_minus_L: Not really in the search PATH,
 
15544
          # but as the default location of the library.
 
15545
          hardcode_minus_L_F77=yes
 
15546
          ;;
 
15547
        esac
 
15548
      fi
 
15549
      ;;
 
15550
 
 
15551
    irix5* | irix6* | nonstopux*)
 
15552
      if test "$GCC" = yes; then
 
15553
        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'
 
15554
      else
 
15555
        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'
 
15556
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15557
      fi
 
15558
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15559
      hardcode_libdir_separator_F77=:
 
15560
      link_all_deplibs_F77=yes
 
15561
      ;;
 
15562
 
 
15563
    netbsd*)
 
15564
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15565
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15566
      else
 
15567
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15568
      fi
 
15569
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15570
      hardcode_direct_F77=yes
 
15571
      hardcode_shlibpath_var_F77=no
 
15572
      ;;
 
15573
 
 
15574
    newsos6)
 
15575
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15576
      hardcode_direct_F77=yes
 
15577
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15578
      hardcode_libdir_separator_F77=:
 
15579
      hardcode_shlibpath_var_F77=no
 
15580
      ;;
 
15581
 
 
15582
    openbsd*)
 
15583
      if test -f /usr/libexec/ld.so; then
 
15584
        hardcode_direct_F77=yes
 
15585
        hardcode_shlibpath_var_F77=no
 
15586
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15587
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15588
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15589
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15590
          export_dynamic_flag_spec_F77='${wl}-E'
 
15591
        else
 
15592
          case $host_os in
 
15593
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15594
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15595
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15596
             ;;
 
15597
           *)
 
15598
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15599
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15600
             ;;
 
15601
          esac
 
15602
        fi
 
15603
      else
 
15604
        ld_shlibs_F77=no
 
15605
      fi
 
15606
      ;;
 
15607
 
 
15608
    os2*)
 
15609
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15610
      hardcode_minus_L_F77=yes
 
15611
      allow_undefined_flag_F77=unsupported
 
15612
      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'
 
15613
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15614
      ;;
 
15615
 
 
15616
    osf3*)
 
15617
      if test "$GCC" = yes; then
 
15618
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15619
        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'
 
15620
      else
 
15621
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15622
        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'
 
15623
      fi
 
15624
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15625
      hardcode_libdir_separator_F77=:
 
15626
      ;;
 
15627
 
 
15628
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15629
      if test "$GCC" = yes; then
 
15630
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15631
        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'
 
15632
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15633
      else
 
15634
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15635
        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'
 
15636
        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~
 
15637
        $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'
 
15638
 
 
15639
        # Both c and cxx compiler support -rpath directly
 
15640
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15641
      fi
 
15642
      hardcode_libdir_separator_F77=:
 
15643
      ;;
 
15644
 
 
15645
    solaris*)
 
15646
      no_undefined_flag_F77=' -z text'
 
15647
      if test "$GCC" = yes; then
 
15648
        wlarc='${wl}'
 
15649
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15650
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15651
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15652
      else
 
15653
        wlarc=''
 
15654
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15655
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15656
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15657
      fi
 
15658
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15659
      hardcode_shlibpath_var_F77=no
 
15660
      case $host_os in
 
15661
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15662
      *)
 
15663
        # The compiler driver will combine and reorder linker options,
 
15664
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15665
        # but is careful enough not to reorder.
 
15666
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15667
        if test "$GCC" = yes; then
 
15668
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15669
        else
 
15670
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15671
        fi
 
15672
        ;;
 
15673
      esac
 
15674
      link_all_deplibs_F77=yes
 
15675
      ;;
 
15676
 
 
15677
    sunos4*)
 
15678
      if test "x$host_vendor" = xsequent; then
 
15679
        # Use $CC to link under sequent, because it throws in some extra .o
 
15680
        # files that make .init and .fini sections work.
 
15681
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15682
      else
 
15683
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15684
      fi
 
15685
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15686
      hardcode_direct_F77=yes
 
15687
      hardcode_minus_L_F77=yes
 
15688
      hardcode_shlibpath_var_F77=no
 
15689
      ;;
 
15690
 
 
15691
    sysv4)
 
15692
      case $host_vendor in
 
15693
        sni)
 
15694
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15695
          hardcode_direct_F77=yes # is this really true???
 
15696
        ;;
 
15697
        siemens)
 
15698
          ## LD is ld it makes a PLAMLIB
 
15699
          ## CC just makes a GrossModule.
 
15700
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15701
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15702
          hardcode_direct_F77=no
 
15703
        ;;
 
15704
        motorola)
 
15705
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15706
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15707
        ;;
 
15708
      esac
 
15709
      runpath_var='LD_RUN_PATH'
 
15710
      hardcode_shlibpath_var_F77=no
 
15711
      ;;
 
15712
 
 
15713
    sysv4.3*)
 
15714
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15715
      hardcode_shlibpath_var_F77=no
 
15716
      export_dynamic_flag_spec_F77='-Bexport'
 
15717
      ;;
 
15718
 
 
15719
    sysv4*MP*)
 
15720
      if test -d /usr/nec; then
 
15721
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15722
        hardcode_shlibpath_var_F77=no
 
15723
        runpath_var=LD_RUN_PATH
 
15724
        hardcode_runpath_var=yes
 
15725
        ld_shlibs_F77=yes
 
15726
      fi
 
15727
      ;;
 
15728
 
 
15729
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15730
      no_undefined_flag_F77='${wl}-z,text'
 
15731
      archive_cmds_need_lc_F77=no
 
15732
      hardcode_shlibpath_var_F77=no
 
15733
      runpath_var='LD_RUN_PATH'
 
15734
 
 
15735
      if test "$GCC" = yes; then
 
15736
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15737
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15738
      else
 
15739
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15740
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15741
      fi
 
15742
      ;;
 
15743
 
 
15744
    sysv5* | sco3.2v5* | sco5v6*)
 
15745
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15746
      # link with -lc, and that would cause any symbols used from libc to
 
15747
      # always be unresolved, which means just about no library would
 
15748
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15749
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15750
      # as -z defs.
 
15751
      no_undefined_flag_F77='${wl}-z,text'
 
15752
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15753
      archive_cmds_need_lc_F77=no
 
15754
      hardcode_shlibpath_var_F77=no
 
15755
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15756
      hardcode_libdir_separator_F77=':'
 
15757
      link_all_deplibs_F77=yes
 
15758
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15759
      runpath_var='LD_RUN_PATH'
 
15760
 
 
15761
      if test "$GCC" = yes; then
 
15762
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15763
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15764
      else
 
15765
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15766
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15767
      fi
 
15768
      ;;
 
15769
 
 
15770
    uts4*)
 
15771
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15772
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15773
      hardcode_shlibpath_var_F77=no
 
15774
      ;;
 
15775
 
 
15776
    *)
 
15777
      ld_shlibs_F77=no
 
15778
      ;;
 
15779
    esac
 
15780
  fi
 
15781
 
 
15782
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15783
$as_echo "$ld_shlibs_F77" >&6; }
 
15784
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15785
 
 
15786
#
 
15787
# Do we need to explicitly link libc?
 
15788
#
 
15789
case "x$archive_cmds_need_lc_F77" in
 
15790
x|xyes)
 
15791
  # Assume -lc should be added
 
15792
  archive_cmds_need_lc_F77=yes
 
15793
 
 
15794
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15795
    case $archive_cmds_F77 in
 
15796
    *'~'*)
 
15797
      # FIXME: we may have to deal with multi-command sequences.
 
15798
      ;;
 
15799
    '$CC '*)
 
15800
      # Test whether the compiler implicitly links with -lc since on some
 
15801
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15802
      # to ld, don't add -lc before -lgcc.
 
15803
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15804
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15805
      $rm conftest*
 
15806
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15807
 
 
15808
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15809
  (eval $ac_compile) 2>&5
 
15810
  ac_status=$?
 
15811
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15812
  (exit $ac_status); } 2>conftest.err; then
 
15813
        soname=conftest
 
15814
        lib=conftest
 
15815
        libobjs=conftest.$ac_objext
 
15816
        deplibs=
 
15817
        wl=$lt_prog_compiler_wl_F77
 
15818
        pic_flag=$lt_prog_compiler_pic_F77
 
15819
        compiler_flags=-v
 
15820
        linker_flags=-v
 
15821
        verstring=
 
15822
        output_objdir=.
 
15823
        libname=conftest
 
15824
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15825
        allow_undefined_flag_F77=
 
15826
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15827
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15828
  ac_status=$?
 
15829
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15830
  (exit $ac_status); }
 
15831
        then
 
15832
          archive_cmds_need_lc_F77=no
 
15833
        else
 
15834
          archive_cmds_need_lc_F77=yes
 
15835
        fi
 
15836
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15837
      else
 
15838
        cat conftest.err 1>&5
 
15839
      fi
 
15840
      $rm conftest*
 
15841
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15842
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
15843
      ;;
 
15844
    esac
 
15845
  fi
 
15846
  ;;
 
15847
esac
 
15848
 
 
15849
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15850
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15851
library_names_spec=
 
15852
libname_spec='lib$name'
 
15853
soname_spec=
 
15854
shrext_cmds=".so"
 
15855
postinstall_cmds=
 
15856
postuninstall_cmds=
 
15857
finish_cmds=
 
15858
finish_eval=
 
15859
shlibpath_var=
 
15860
shlibpath_overrides_runpath=unknown
 
15861
version_type=none
 
15862
dynamic_linker="$host_os ld.so"
 
15863
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15864
 
 
15865
need_lib_prefix=unknown
 
15866
hardcode_into_libs=no
 
15867
 
 
15868
# when you set need_version to no, make sure it does not cause -set_version
 
15869
# flags to be left without arguments
 
15870
need_version=unknown
 
15871
 
 
15872
case $host_os in
 
15873
aix3*)
 
15874
  version_type=linux
 
15875
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15876
  shlibpath_var=LIBPATH
 
15877
 
 
15878
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15879
  soname_spec='${libname}${release}${shared_ext}$major'
 
15880
  ;;
 
15881
 
 
15882
aix[4-9]*)
 
15883
  version_type=linux
 
15884
  need_lib_prefix=no
 
15885
  need_version=no
 
15886
  hardcode_into_libs=yes
 
15887
  if test "$host_cpu" = ia64; then
 
15888
    # AIX 5 supports IA64
 
15889
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15890
    shlibpath_var=LD_LIBRARY_PATH
 
15891
  else
 
15892
    # With GCC up to 2.95.x, collect2 would create an import file
 
15893
    # for dependence libraries.  The import file would start with
 
15894
    # the line `#! .'.  This would cause the generated library to
 
15895
    # depend on `.', always an invalid library.  This was fixed in
 
15896
    # development snapshots of GCC prior to 3.0.
 
15897
    case $host_os in
 
15898
      aix4 | aix4.[01] | aix4.[01].*)
 
15899
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15900
           echo ' yes '
 
15901
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15902
        :
 
15903
      else
 
15904
        can_build_shared=no
 
15905
      fi
 
15906
      ;;
 
15907
    esac
 
15908
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15909
    # soname into executable. Probably we can add versioning support to
 
15910
    # collect2, so additional links can be useful in future.
 
15911
    if test "$aix_use_runtimelinking" = yes; then
 
15912
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15913
      # instead of lib<name>.a to let people know that these are not
 
15914
      # typical AIX shared libraries.
 
15915
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15916
    else
 
15917
      # We preserve .a as extension for shared libraries through AIX4.2
 
15918
      # and later when we are not doing run time linking.
 
15919
      library_names_spec='${libname}${release}.a $libname.a'
 
15920
      soname_spec='${libname}${release}${shared_ext}$major'
 
15921
    fi
 
15922
    shlibpath_var=LIBPATH
 
15923
  fi
 
15924
  ;;
 
15925
 
 
15926
amigaos*)
 
15927
  library_names_spec='$libname.ixlibrary $libname.a'
 
15928
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15929
  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'
 
15930
  ;;
 
15931
 
 
15932
beos*)
 
15933
  library_names_spec='${libname}${shared_ext}'
 
15934
  dynamic_linker="$host_os ld.so"
 
15935
  shlibpath_var=LIBRARY_PATH
 
15936
  ;;
 
15937
 
 
15938
bsdi[45]*)
 
15939
  version_type=linux
 
15940
  need_version=no
 
15941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15942
  soname_spec='${libname}${release}${shared_ext}$major'
 
15943
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15944
  shlibpath_var=LD_LIBRARY_PATH
 
15945
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15946
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15947
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15948
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15949
  # libtool to hard-code these into programs
 
15950
  ;;
 
15951
 
 
15952
cygwin* | mingw* | pw32*)
 
15953
  version_type=windows
 
15954
  shrext_cmds=".dll"
 
15955
  need_version=no
 
15956
  need_lib_prefix=no
 
15957
 
 
15958
  case $GCC,$host_os in
 
15959
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15960
    library_names_spec='$libname.dll.a'
 
15961
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15962
    postinstall_cmds='base_file=`basename \${file}`~
 
15963
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15964
      dldir=$destdir/`dirname \$dlpath`~
 
15965
      test -d \$dldir || mkdir -p \$dldir~
 
15966
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15967
      chmod a+x \$dldir/$dlname'
 
15968
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15969
      dlpath=$dir/\$dldll~
 
15970
       $rm \$dlpath'
 
15971
    shlibpath_overrides_runpath=yes
 
15972
 
 
15973
    case $host_os in
 
15974
    cygwin*)
 
15975
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15976
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15977
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15978
      ;;
 
15979
    mingw*)
 
15980
      # MinGW DLLs use traditional 'lib' prefix
 
15981
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15982
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15983
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15984
        # It is most probably a Windows format PATH printed by
 
15985
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15986
        # path with ; separators, and with drive letters. We can handle the
 
15987
        # drive letters (cygwin fileutils understands them), so leave them,
 
15988
        # especially as we might pass files found there to a mingw objdump,
 
15989
        # which wouldn't understand a cygwinified path. Ahh.
 
15990
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15991
      else
 
15992
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15993
      fi
 
15994
      ;;
 
15995
    pw32*)
 
15996
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15997
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15998
      ;;
 
15999
    esac
 
16000
    ;;
 
16001
 
 
16002
  *)
 
16003
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16004
    ;;
 
16005
  esac
 
16006
  dynamic_linker='Win32 ld.exe'
 
16007
  # FIXME: first we should search . and the directory the executable is in
 
16008
  shlibpath_var=PATH
 
16009
  ;;
 
16010
 
 
16011
darwin* | rhapsody*)
 
16012
  dynamic_linker="$host_os dyld"
 
16013
  version_type=darwin
 
16014
  need_lib_prefix=no
 
16015
  need_version=no
 
16016
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16017
  soname_spec='${libname}${release}${major}$shared_ext'
 
16018
  shlibpath_overrides_runpath=yes
 
16019
  shlibpath_var=DYLD_LIBRARY_PATH
 
16020
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16021
 
 
16022
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16023
  ;;
 
16024
 
 
16025
dgux*)
 
16026
  version_type=linux
 
16027
  need_lib_prefix=no
 
16028
  need_version=no
 
16029
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16030
  soname_spec='${libname}${release}${shared_ext}$major'
 
16031
  shlibpath_var=LD_LIBRARY_PATH
 
16032
  ;;
 
16033
 
 
16034
freebsd1*)
 
16035
  dynamic_linker=no
 
16036
  ;;
 
16037
 
 
16038
freebsd* | dragonfly*)
 
16039
  # DragonFly does not have aout.  When/if they implement a new
 
16040
  # versioning mechanism, adjust this.
 
16041
  if test -x /usr/bin/objformat; then
 
16042
    objformat=`/usr/bin/objformat`
 
16043
  else
 
16044
    case $host_os in
 
16045
    freebsd[123]*) objformat=aout ;;
 
16046
    *) objformat=elf ;;
 
16047
    esac
 
16048
  fi
 
16049
  version_type=freebsd-$objformat
 
16050
  case $version_type in
 
16051
    freebsd-elf*)
 
16052
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16053
      need_version=no
 
16054
      need_lib_prefix=no
 
16055
      ;;
 
16056
    freebsd-*)
 
16057
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16058
      need_version=yes
 
16059
      ;;
 
16060
  esac
 
16061
  shlibpath_var=LD_LIBRARY_PATH
 
16062
  case $host_os in
 
16063
  freebsd2*)
 
16064
    shlibpath_overrides_runpath=yes
 
16065
    ;;
 
16066
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16067
    shlibpath_overrides_runpath=yes
 
16068
    hardcode_into_libs=yes
 
16069
    ;;
 
16070
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16071
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16072
    shlibpath_overrides_runpath=no
 
16073
    hardcode_into_libs=yes
 
16074
    ;;
 
16075
  *) # from 4.6 on, and DragonFly
 
16076
    shlibpath_overrides_runpath=yes
 
16077
    hardcode_into_libs=yes
 
16078
    ;;
 
16079
  esac
 
16080
  ;;
 
16081
 
 
16082
gnu*)
 
16083
  version_type=linux
 
16084
  need_lib_prefix=no
 
16085
  need_version=no
 
16086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16087
  soname_spec='${libname}${release}${shared_ext}$major'
 
16088
  shlibpath_var=LD_LIBRARY_PATH
 
16089
  hardcode_into_libs=yes
 
16090
  ;;
 
16091
 
 
16092
hpux9* | hpux10* | hpux11*)
 
16093
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16094
  # link against other versions.
 
16095
  version_type=sunos
 
16096
  need_lib_prefix=no
 
16097
  need_version=no
 
16098
  case $host_cpu in
 
16099
  ia64*)
 
16100
    shrext_cmds='.so'
 
16101
    hardcode_into_libs=yes
 
16102
    dynamic_linker="$host_os dld.so"
 
16103
    shlibpath_var=LD_LIBRARY_PATH
 
16104
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16105
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16106
    soname_spec='${libname}${release}${shared_ext}$major'
 
16107
    if test "X$HPUX_IA64_MODE" = X32; then
 
16108
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16109
    else
 
16110
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16111
    fi
 
16112
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16113
    ;;
 
16114
   hppa*64*)
 
16115
     shrext_cmds='.sl'
 
16116
     hardcode_into_libs=yes
 
16117
     dynamic_linker="$host_os dld.sl"
 
16118
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16119
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16120
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16121
     soname_spec='${libname}${release}${shared_ext}$major'
 
16122
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16123
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16124
     ;;
 
16125
   *)
 
16126
    shrext_cmds='.sl'
 
16127
    dynamic_linker="$host_os dld.sl"
 
16128
    shlibpath_var=SHLIB_PATH
 
16129
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16130
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16131
    soname_spec='${libname}${release}${shared_ext}$major'
 
16132
    ;;
 
16133
  esac
 
16134
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16135
  postinstall_cmds='chmod 555 $lib'
 
16136
  ;;
 
16137
 
 
16138
interix[3-9]*)
 
16139
  version_type=linux
 
16140
  need_lib_prefix=no
 
16141
  need_version=no
 
16142
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16143
  soname_spec='${libname}${release}${shared_ext}$major'
 
16144
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16145
  shlibpath_var=LD_LIBRARY_PATH
 
16146
  shlibpath_overrides_runpath=no
 
16147
  hardcode_into_libs=yes
 
16148
  ;;
 
16149
 
 
16150
irix5* | irix6* | nonstopux*)
 
16151
  case $host_os in
 
16152
    nonstopux*) version_type=nonstopux ;;
 
16153
    *)
 
16154
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16155
                version_type=linux
 
16156
        else
 
16157
                version_type=irix
 
16158
        fi ;;
 
16159
  esac
 
16160
  need_lib_prefix=no
 
16161
  need_version=no
 
16162
  soname_spec='${libname}${release}${shared_ext}$major'
 
16163
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16164
  case $host_os in
 
16165
  irix5* | nonstopux*)
 
16166
    libsuff= shlibsuff=
 
16167
    ;;
 
16168
  *)
 
16169
    case $LD in # libtool.m4 will add one of these switches to LD
 
16170
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16171
      libsuff= shlibsuff= libmagic=32-bit;;
 
16172
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16173
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16174
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16175
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16176
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16177
    esac
 
16178
    ;;
 
16179
  esac
 
16180
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16181
  shlibpath_overrides_runpath=no
 
16182
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16183
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16184
  hardcode_into_libs=yes
 
16185
  ;;
 
16186
 
 
16187
# No shared lib support for Linux oldld, aout, or coff.
 
16188
linux*oldld* | linux*aout* | linux*coff*)
 
16189
  dynamic_linker=no
 
16190
  ;;
 
16191
 
 
16192
# This must be Linux ELF.
 
16193
linux* | k*bsd*-gnu)
 
16194
  version_type=linux
 
16195
  need_lib_prefix=no
 
16196
  need_version=no
 
16197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16198
  soname_spec='${libname}${release}${shared_ext}$major'
 
16199
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16200
  shlibpath_var=LD_LIBRARY_PATH
 
16201
  shlibpath_overrides_runpath=no
 
16202
  # This implies no fast_install, which is unacceptable.
 
16203
  # Some rework will be needed to allow for fast_install
 
16204
  # before this can be enabled.
 
16205
  hardcode_into_libs=yes
 
16206
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16207
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16208
 
 
16209
  # Append ld.so.conf contents to the search path
 
16210
  if test -f /etc/ld.so.conf; then
 
16211
    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' ' '`
 
16212
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
16213
  fi
 
16214
 
 
16215
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16216
  # powerpc, because MkLinux only supported shared libraries with the
 
16217
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16218
  # most powerpc-linux boxes support dynamic linking these days and
 
16219
  # people can always --disable-shared, the test was removed, and we
 
16220
  # assume the GNU/Linux dynamic linker is in use.
 
16221
  dynamic_linker='GNU/Linux ld.so'
 
16222
  ;;
 
16223
 
 
16224
netbsd*)
 
16225
  version_type=sunos
 
16226
  need_lib_prefix=no
 
16227
  need_version=no
 
16228
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16229
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16230
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16231
    dynamic_linker='NetBSD (a.out) ld.so'
 
16232
  else
 
16233
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16234
    soname_spec='${libname}${release}${shared_ext}$major'
 
16235
    dynamic_linker='NetBSD ld.elf_so'
 
16236
  fi
 
16237
  shlibpath_var=LD_LIBRARY_PATH
 
16238
  shlibpath_overrides_runpath=yes
 
16239
  hardcode_into_libs=yes
 
16240
  ;;
 
16241
 
 
16242
newsos6)
 
16243
  version_type=linux
 
16244
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16245
  shlibpath_var=LD_LIBRARY_PATH
 
16246
  shlibpath_overrides_runpath=yes
 
16247
  ;;
 
16248
 
 
16249
nto-qnx*)
 
16250
  version_type=linux
 
16251
  need_lib_prefix=no
 
16252
  need_version=no
 
16253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16254
  soname_spec='${libname}${release}${shared_ext}$major'
 
16255
  shlibpath_var=LD_LIBRARY_PATH
 
16256
  shlibpath_overrides_runpath=yes
 
16257
  ;;
 
16258
 
 
16259
openbsd*)
 
16260
  version_type=sunos
 
16261
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16262
  need_lib_prefix=no
 
16263
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16264
  case $host_os in
 
16265
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16266
    *)                         need_version=no  ;;
 
16267
  esac
 
16268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16269
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16270
  shlibpath_var=LD_LIBRARY_PATH
 
16271
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16272
    case $host_os in
 
16273
      openbsd2.[89] | openbsd2.[89].*)
 
16274
        shlibpath_overrides_runpath=no
 
16275
        ;;
 
16276
      *)
 
16277
        shlibpath_overrides_runpath=yes
 
16278
        ;;
 
16279
      esac
 
16280
  else
 
16281
    shlibpath_overrides_runpath=yes
 
16282
  fi
 
16283
  ;;
 
16284
 
 
16285
os2*)
 
16286
  libname_spec='$name'
 
16287
  shrext_cmds=".dll"
 
16288
  need_lib_prefix=no
 
16289
  library_names_spec='$libname${shared_ext} $libname.a'
 
16290
  dynamic_linker='OS/2 ld.exe'
 
16291
  shlibpath_var=LIBPATH
 
16292
  ;;
 
16293
 
 
16294
osf3* | osf4* | osf5*)
 
16295
  version_type=osf
 
16296
  need_lib_prefix=no
 
16297
  need_version=no
 
16298
  soname_spec='${libname}${release}${shared_ext}$major'
 
16299
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16300
  shlibpath_var=LD_LIBRARY_PATH
 
16301
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16302
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16303
  ;;
 
16304
 
 
16305
rdos*)
 
16306
  dynamic_linker=no
 
16307
  ;;
 
16308
 
 
16309
solaris*)
 
16310
  version_type=linux
 
16311
  need_lib_prefix=no
 
16312
  need_version=no
 
16313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16314
  soname_spec='${libname}${release}${shared_ext}$major'
 
16315
  shlibpath_var=LD_LIBRARY_PATH
 
16316
  shlibpath_overrides_runpath=yes
 
16317
  hardcode_into_libs=yes
 
16318
  # ldd complains unless libraries are executable
 
16319
  postinstall_cmds='chmod +x $lib'
 
16320
  ;;
 
16321
 
 
16322
sunos4*)
 
16323
  version_type=sunos
 
16324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16325
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16326
  shlibpath_var=LD_LIBRARY_PATH
 
16327
  shlibpath_overrides_runpath=yes
 
16328
  if test "$with_gnu_ld" = yes; then
 
16329
    need_lib_prefix=no
 
16330
  fi
 
16331
  need_version=yes
 
16332
  ;;
 
16333
 
 
16334
sysv4 | sysv4.3*)
 
16335
  version_type=linux
 
16336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16337
  soname_spec='${libname}${release}${shared_ext}$major'
 
16338
  shlibpath_var=LD_LIBRARY_PATH
 
16339
  case $host_vendor in
 
16340
    sni)
 
16341
      shlibpath_overrides_runpath=no
 
16342
      need_lib_prefix=no
 
16343
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16344
      runpath_var=LD_RUN_PATH
 
16345
      ;;
 
16346
    siemens)
 
16347
      need_lib_prefix=no
 
16348
      ;;
 
16349
    motorola)
 
16350
      need_lib_prefix=no
 
16351
      need_version=no
 
16352
      shlibpath_overrides_runpath=no
 
16353
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16354
      ;;
 
16355
  esac
 
16356
  ;;
 
16357
 
 
16358
sysv4*MP*)
 
16359
  if test -d /usr/nec ;then
 
16360
    version_type=linux
 
16361
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16362
    soname_spec='$libname${shared_ext}.$major'
 
16363
    shlibpath_var=LD_LIBRARY_PATH
 
16364
  fi
 
16365
  ;;
 
16366
 
 
16367
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16368
  version_type=freebsd-elf
 
16369
  need_lib_prefix=no
 
16370
  need_version=no
 
16371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16372
  soname_spec='${libname}${release}${shared_ext}$major'
 
16373
  shlibpath_var=LD_LIBRARY_PATH
 
16374
  hardcode_into_libs=yes
 
16375
  if test "$with_gnu_ld" = yes; then
 
16376
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16377
    shlibpath_overrides_runpath=no
 
16378
  else
 
16379
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16380
    shlibpath_overrides_runpath=yes
 
16381
    case $host_os in
 
16382
      sco3.2v5*)
 
16383
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16384
        ;;
 
16385
    esac
 
16386
  fi
 
16387
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16388
  ;;
 
16389
 
 
16390
uts4*)
 
16391
  version_type=linux
 
16392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16393
  soname_spec='${libname}${release}${shared_ext}$major'
 
16394
  shlibpath_var=LD_LIBRARY_PATH
 
16395
  ;;
 
16396
 
 
16397
*)
 
16398
  dynamic_linker=no
 
16399
  ;;
 
16400
esac
 
16401
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16402
$as_echo "$dynamic_linker" >&6; }
 
16403
test "$dynamic_linker" = no && can_build_shared=no
 
16404
 
 
16405
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16406
  $as_echo_n "(cached) " >&6
 
16407
else
 
16408
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16409
fi
 
16410
 
 
16411
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16412
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16413
  $as_echo_n "(cached) " >&6
 
16414
else
 
16415
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16416
fi
 
16417
 
 
16418
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16419
 
 
16420
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16421
if test "$GCC" = yes; then
 
16422
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16423
fi
 
16424
 
 
16425
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16426
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16427
hardcode_action_F77=
 
16428
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16429
   test -n "$runpath_var_F77" || \
 
16430
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16431
 
 
16432
  # We can hardcode non-existant directories.
 
16433
  if test "$hardcode_direct_F77" != no &&
 
16434
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16435
     # have to relink, otherwise we might link with an installed library
 
16436
     # when we should be linking with a yet-to-be-installed one
 
16437
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16438
     test "$hardcode_minus_L_F77" != no; then
 
16439
    # Linking always hardcodes the temporary library directory.
 
16440
    hardcode_action_F77=relink
 
16441
  else
 
16442
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16443
    hardcode_action_F77=immediate
 
16444
  fi
 
16445
else
 
16446
  # We cannot hardcode anything, or else we can only hardcode existing
 
16447
  # directories.
 
16448
  hardcode_action_F77=unsupported
 
16449
fi
 
16450
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16451
$as_echo "$hardcode_action_F77" >&6; }
 
16452
 
 
16453
if test "$hardcode_action_F77" = relink; then
 
16454
  # Fast installation is not supported
 
16455
  enable_fast_install=no
 
16456
elif test "$shlibpath_overrides_runpath" = yes ||
 
16457
     test "$enable_shared" = no; then
 
16458
  # Fast installation is not necessary
 
16459
  enable_fast_install=needless
 
16460
fi
 
16461
 
 
16462
 
 
16463
# The else clause should only fire when bootstrapping the
 
16464
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16465
# with your package, and you will get complaints that there are
 
16466
# no rules to generate ltmain.sh.
 
16467
if test -f "$ltmain"; then
 
16468
  # See if we are running on zsh, and set the options which allow our commands through
 
16469
  # without removal of \ escapes.
 
16470
  if test -n "${ZSH_VERSION+set}" ; then
 
16471
    setopt NO_GLOB_SUBST
 
16472
  fi
 
16473
  # Now quote all the things that may contain metacharacters while being
 
16474
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16475
  # variables and quote the copies for generation of the libtool script.
 
16476
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16477
    SED SHELL STRIP \
 
16478
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16479
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16480
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16481
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16482
    lt_cv_sys_global_symbol_to_c_name_address \
 
16483
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16484
    old_postinstall_cmds old_postuninstall_cmds \
 
16485
    compiler_F77 \
 
16486
    CC_F77 \
 
16487
    LD_F77 \
 
16488
    lt_prog_compiler_wl_F77 \
 
16489
    lt_prog_compiler_pic_F77 \
 
16490
    lt_prog_compiler_static_F77 \
 
16491
    lt_prog_compiler_no_builtin_flag_F77 \
 
16492
    export_dynamic_flag_spec_F77 \
 
16493
    thread_safe_flag_spec_F77 \
 
16494
    whole_archive_flag_spec_F77 \
 
16495
    enable_shared_with_static_runtimes_F77 \
 
16496
    old_archive_cmds_F77 \
 
16497
    old_archive_from_new_cmds_F77 \
 
16498
    predep_objects_F77 \
 
16499
    postdep_objects_F77 \
 
16500
    predeps_F77 \
 
16501
    postdeps_F77 \
 
16502
    compiler_lib_search_path_F77 \
 
16503
    compiler_lib_search_dirs_F77 \
 
16504
    archive_cmds_F77 \
 
16505
    archive_expsym_cmds_F77 \
 
16506
    postinstall_cmds_F77 \
 
16507
    postuninstall_cmds_F77 \
 
16508
    old_archive_from_expsyms_cmds_F77 \
 
16509
    allow_undefined_flag_F77 \
 
16510
    no_undefined_flag_F77 \
 
16511
    export_symbols_cmds_F77 \
 
16512
    hardcode_libdir_flag_spec_F77 \
 
16513
    hardcode_libdir_flag_spec_ld_F77 \
 
16514
    hardcode_libdir_separator_F77 \
 
16515
    hardcode_automatic_F77 \
 
16516
    module_cmds_F77 \
 
16517
    module_expsym_cmds_F77 \
 
16518
    lt_cv_prog_compiler_c_o_F77 \
 
16519
    fix_srcfile_path_F77 \
 
16520
    exclude_expsyms_F77 \
 
16521
    include_expsyms_F77; do
 
16522
 
 
16523
    case $var in
 
16524
    old_archive_cmds_F77 | \
 
16525
    old_archive_from_new_cmds_F77 | \
 
16526
    archive_cmds_F77 | \
 
16527
    archive_expsym_cmds_F77 | \
 
16528
    module_cmds_F77 | \
 
16529
    module_expsym_cmds_F77 | \
 
16530
    old_archive_from_expsyms_cmds_F77 | \
 
16531
    export_symbols_cmds_F77 | \
 
16532
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16533
    postinstall_cmds | postuninstall_cmds | \
 
16534
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16535
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16536
      # Double-quote double-evaled strings.
 
16537
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16538
      ;;
 
16539
    *)
 
16540
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16541
      ;;
 
16542
    esac
 
16543
  done
 
16544
 
 
16545
  case $lt_echo in
 
16546
  *'\$0 --fallback-echo"')
 
16547
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16548
    ;;
 
16549
  esac
 
16550
 
 
16551
cfgfile="$ofile"
 
16552
 
 
16553
  cat <<__EOF__ >> "$cfgfile"
 
16554
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16555
 
 
16556
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16557
 
 
16558
# Shell to use when invoking shell scripts.
 
16559
SHELL=$lt_SHELL
 
16560
 
 
16561
# Whether or not to build shared libraries.
 
16562
build_libtool_libs=$enable_shared
 
16563
 
 
16564
# Whether or not to build static libraries.
 
16565
build_old_libs=$enable_static
 
16566
 
 
16567
# Whether or not to add -lc for building shared libraries.
 
16568
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16569
 
 
16570
# Whether or not to disallow shared libs when runtime libs are static
 
16571
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16572
 
 
16573
# Whether or not to optimize for fast installation.
 
16574
fast_install=$enable_fast_install
 
16575
 
 
16576
# The host system.
 
16577
host_alias=$host_alias
 
16578
host=$host
 
16579
host_os=$host_os
 
16580
 
 
16581
# The build system.
 
16582
build_alias=$build_alias
 
16583
build=$build
 
16584
build_os=$build_os
 
16585
 
 
16586
# An echo program that does not interpret backslashes.
 
16587
echo=$lt_echo
 
16588
 
 
16589
# The archiver.
 
16590
AR=$lt_AR
 
16591
AR_FLAGS=$lt_AR_FLAGS
 
16592
 
 
16593
# A C compiler.
 
16594
LTCC=$lt_LTCC
 
16595
 
 
16596
# LTCC compiler flags.
 
16597
LTCFLAGS=$lt_LTCFLAGS
 
16598
 
 
16599
# A language-specific compiler.
 
16600
CC=$lt_compiler_F77
 
16601
 
 
16602
# Is the compiler the GNU C compiler?
 
16603
with_gcc=$GCC_F77
 
16604
 
 
16605
# An ERE matcher.
 
16606
EGREP=$lt_EGREP
 
16607
 
 
16608
# The linker used to build libraries.
 
16609
LD=$lt_LD_F77
 
16610
 
 
16611
# Whether we need hard or soft links.
 
16612
LN_S=$lt_LN_S
 
16613
 
 
16614
# A BSD-compatible nm program.
 
16615
NM=$lt_NM
 
16616
 
 
16617
# A symbol stripping program
 
16618
STRIP=$lt_STRIP
 
16619
 
 
16620
# Used to examine libraries when file_magic_cmd begins "file"
 
16621
MAGIC_CMD=$MAGIC_CMD
 
16622
 
 
16623
# Used on cygwin: DLL creation program.
 
16624
DLLTOOL="$DLLTOOL"
 
16625
 
 
16626
# Used on cygwin: object dumper.
 
16627
OBJDUMP="$OBJDUMP"
 
16628
 
 
16629
# Used on cygwin: assembler.
 
16630
AS="$AS"
 
16631
 
 
16632
# The name of the directory that contains temporary libtool files.
 
16633
objdir=$objdir
 
16634
 
 
16635
# How to create reloadable object files.
 
16636
reload_flag=$lt_reload_flag
 
16637
reload_cmds=$lt_reload_cmds
 
16638
 
 
16639
# How to pass a linker flag through the compiler.
 
16640
wl=$lt_lt_prog_compiler_wl_F77
 
16641
 
 
16642
# Object file suffix (normally "o").
 
16643
objext="$ac_objext"
 
16644
 
 
16645
# Old archive suffix (normally "a").
 
16646
libext="$libext"
 
16647
 
 
16648
# Shared library suffix (normally ".so").
 
16649
shrext_cmds='$shrext_cmds'
 
16650
 
 
16651
# Executable file suffix (normally "").
 
16652
exeext="$exeext"
 
16653
 
 
16654
# Additional compiler flags for building library objects.
 
16655
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16656
pic_mode=$pic_mode
 
16657
 
 
16658
# What is the maximum length of a command?
 
16659
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16660
 
 
16661
# Does compiler simultaneously support -c and -o options?
 
16662
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16663
 
 
16664
# Must we lock files when doing compilation?
 
16665
need_locks=$lt_need_locks
 
16666
 
 
16667
# Do we need the lib prefix for modules?
 
16668
need_lib_prefix=$need_lib_prefix
 
16669
 
 
16670
# Do we need a version for libraries?
 
16671
need_version=$need_version
 
16672
 
 
16673
# Whether dlopen is supported.
 
16674
dlopen_support=$enable_dlopen
 
16675
 
 
16676
# Whether dlopen of programs is supported.
 
16677
dlopen_self=$enable_dlopen_self
 
16678
 
 
16679
# Whether dlopen of statically linked programs is supported.
 
16680
dlopen_self_static=$enable_dlopen_self_static
 
16681
 
 
16682
# Compiler flag to prevent dynamic linking.
 
16683
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16684
 
 
16685
# Compiler flag to turn off builtin functions.
 
16686
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16687
 
 
16688
# Compiler flag to allow reflexive dlopens.
 
16689
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16690
 
 
16691
# Compiler flag to generate shared objects directly from archives.
 
16692
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16693
 
 
16694
# Compiler flag to generate thread-safe objects.
 
16695
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16696
 
 
16697
# Library versioning type.
 
16698
version_type=$version_type
 
16699
 
 
16700
# Format of library name prefix.
 
16701
libname_spec=$lt_libname_spec
 
16702
 
 
16703
# List of archive names.  First name is the real one, the rest are links.
 
16704
# The last name is the one that the linker finds with -lNAME.
 
16705
library_names_spec=$lt_library_names_spec
 
16706
 
 
16707
# The coded name of the library, if different from the real name.
 
16708
soname_spec=$lt_soname_spec
 
16709
 
 
16710
# Commands used to build and install an old-style archive.
 
16711
RANLIB=$lt_RANLIB
 
16712
old_archive_cmds=$lt_old_archive_cmds_F77
 
16713
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16714
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16715
 
 
16716
# Create an old-style archive from a shared archive.
 
16717
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16718
 
 
16719
# Create a temporary old-style archive to link instead of a shared archive.
 
16720
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16721
 
 
16722
# Commands used to build and install a shared archive.
 
16723
archive_cmds=$lt_archive_cmds_F77
 
16724
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16725
postinstall_cmds=$lt_postinstall_cmds
 
16726
postuninstall_cmds=$lt_postuninstall_cmds
 
16727
 
 
16728
# Commands used to build a loadable module (assumed same as above if empty)
 
16729
module_cmds=$lt_module_cmds_F77
 
16730
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16731
 
 
16732
# Commands to strip libraries.
 
16733
old_striplib=$lt_old_striplib
 
16734
striplib=$lt_striplib
 
16735
 
 
16736
# Dependencies to place before the objects being linked to create a
 
16737
# shared library.
 
16738
predep_objects=$lt_predep_objects_F77
 
16739
 
 
16740
# Dependencies to place after the objects being linked to create a
 
16741
# shared library.
 
16742
postdep_objects=$lt_postdep_objects_F77
 
16743
 
 
16744
# Dependencies to place before the objects being linked to create a
 
16745
# shared library.
 
16746
predeps=$lt_predeps_F77
 
16747
 
 
16748
# Dependencies to place after the objects being linked to create a
 
16749
# shared library.
 
16750
postdeps=$lt_postdeps_F77
 
16751
 
 
16752
# The directories searched by this compiler when creating a shared
 
16753
# library
 
16754
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16755
 
 
16756
# The library search path used internally by the compiler when linking
 
16757
# a shared library.
 
16758
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16759
 
 
16760
# Method to check whether dependent libraries are shared objects.
 
16761
deplibs_check_method=$lt_deplibs_check_method
 
16762
 
 
16763
# Command to use when deplibs_check_method == file_magic.
 
16764
file_magic_cmd=$lt_file_magic_cmd
 
16765
 
 
16766
# Flag that allows shared libraries with undefined symbols to be built.
 
16767
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16768
 
 
16769
# Flag that forces no undefined symbols.
 
16770
no_undefined_flag=$lt_no_undefined_flag_F77
 
16771
 
 
16772
# Commands used to finish a libtool library installation in a directory.
 
16773
finish_cmds=$lt_finish_cmds
 
16774
 
 
16775
# Same as above, but a single script fragment to be evaled but not shown.
 
16776
finish_eval=$lt_finish_eval
 
16777
 
 
16778
# Take the output of nm and produce a listing of raw symbols and C names.
 
16779
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16780
 
 
16781
# Transform the output of nm in a proper C declaration
 
16782
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16783
 
 
16784
# Transform the output of nm in a C name address pair
 
16785
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16786
 
 
16787
# This is the shared library runtime path variable.
 
16788
runpath_var=$runpath_var
 
16789
 
 
16790
# This is the shared library path variable.
 
16791
shlibpath_var=$shlibpath_var
 
16792
 
 
16793
# Is shlibpath searched before the hard-coded library search path?
 
16794
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16795
 
 
16796
# How to hardcode a shared library path into an executable.
 
16797
hardcode_action=$hardcode_action_F77
 
16798
 
 
16799
# Whether we should hardcode library paths into libraries.
 
16800
hardcode_into_libs=$hardcode_into_libs
 
16801
 
 
16802
# Flag to hardcode \$libdir into a binary during linking.
 
16803
# This must work even if \$libdir does not exist.
 
16804
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16805
 
 
16806
# If ld is used when linking, flag to hardcode \$libdir into
 
16807
# a binary during linking. This must work even if \$libdir does
 
16808
# not exist.
 
16809
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16810
 
 
16811
# Whether we need a single -rpath flag with a separated argument.
 
16812
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16813
 
 
16814
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16815
# resulting binary.
 
16816
hardcode_direct=$hardcode_direct_F77
 
16817
 
 
16818
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16819
# resulting binary.
 
16820
hardcode_minus_L=$hardcode_minus_L_F77
 
16821
 
 
16822
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16823
# the resulting binary.
 
16824
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16825
 
 
16826
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16827
# and all subsequent libraries and executables linked against it.
 
16828
hardcode_automatic=$hardcode_automatic_F77
 
16829
 
 
16830
# Variables whose values should be saved in libtool wrapper scripts and
 
16831
# restored at relink time.
 
16832
variables_saved_for_relink="$variables_saved_for_relink"
 
16833
 
 
16834
# Whether libtool must link a program against all its dependency libraries.
 
16835
link_all_deplibs=$link_all_deplibs_F77
 
16836
 
 
16837
# Compile-time system search path for libraries
 
16838
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16839
 
 
16840
# Run-time system search path for libraries
 
16841
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16842
 
 
16843
# Fix the shell variable \$srcfile for the compiler.
 
16844
fix_srcfile_path=$lt_fix_srcfile_path
 
16845
 
 
16846
# Set to yes if exported symbols are required.
 
16847
always_export_symbols=$always_export_symbols_F77
 
16848
 
 
16849
# The commands to list exported symbols.
 
16850
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16851
 
 
16852
# The commands to extract the exported symbol list from a shared archive.
 
16853
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16854
 
 
16855
# Symbols that should not be listed in the preloaded symbols.
 
16856
exclude_expsyms=$lt_exclude_expsyms_F77
 
16857
 
 
16858
# Symbols that must always be exported.
 
16859
include_expsyms=$lt_include_expsyms_F77
 
16860
 
 
16861
# ### END LIBTOOL TAG CONFIG: $tagname
 
16862
 
 
16863
__EOF__
 
16864
 
 
16865
 
 
16866
else
 
16867
  # If there is no Makefile yet, we rely on a make rule to execute
 
16868
  # `config.status --recheck' to rerun these tests and create the
 
16869
  # libtool script then.
 
16870
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16871
  if test -f "$ltmain_in"; then
 
16872
    test -f Makefile && make "$ltmain"
 
16873
  fi
 
16874
fi
 
16875
 
 
16876
 
 
16877
ac_ext=c
 
16878
ac_cpp='$CPP $CPPFLAGS'
 
16879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16882
 
 
16883
CC="$lt_save_CC"
 
16884
 
 
16885
        else
 
16886
          tagname=""
 
16887
        fi
 
16888
        ;;
 
16889
 
 
16890
      GCJ)
 
16891
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16892
 
 
16893
 
 
16894
# Source file extension for Java test sources.
 
16895
ac_ext=java
 
16896
 
 
16897
# Object file extension for compiled Java test sources.
 
16898
objext=o
 
16899
objext_GCJ=$objext
 
16900
 
 
16901
# Code to be used in simple compile tests
 
16902
lt_simple_compile_test_code="class foo {}"
 
16903
 
 
16904
# Code to be used in simple link tests
 
16905
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16906
 
 
16907
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16908
 
 
16909
# If no C compiler was specified, use CC.
 
16910
LTCC=${LTCC-"$CC"}
 
16911
 
 
16912
# If no C compiler flags were specified, use CFLAGS.
 
16913
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16914
 
 
16915
# Allow CC to be a program name with arguments.
 
16916
compiler=$CC
 
16917
 
 
16918
 
 
16919
# save warnings/boilerplate of simple test code
 
16920
ac_outfile=conftest.$ac_objext
 
16921
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16922
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16923
_lt_compiler_boilerplate=`cat conftest.err`
 
16924
$rm conftest*
 
16925
 
 
16926
ac_outfile=conftest.$ac_objext
 
16927
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16928
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16929
_lt_linker_boilerplate=`cat conftest.err`
 
16930
$rm -r conftest*
 
16931
 
 
16932
 
 
16933
# Allow CC to be a program name with arguments.
 
16934
lt_save_CC="$CC"
 
16935
CC=${GCJ-"gcj"}
 
16936
compiler=$CC
 
16937
compiler_GCJ=$CC
 
16938
for cc_temp in $compiler""; do
 
16939
  case $cc_temp in
 
16940
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16941
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16942
    \-*) ;;
 
16943
    *) break;;
 
16944
  esac
 
16945
done
 
16946
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16947
 
 
16948
 
 
16949
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16950
archive_cmds_need_lc_GCJ=no
 
16951
 
 
16952
old_archive_cmds_GCJ=$old_archive_cmds
 
16953
 
 
16954
 
 
16955
lt_prog_compiler_no_builtin_flag_GCJ=
 
16956
 
 
16957
if test "$GCC" = yes; then
 
16958
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16959
 
 
16960
 
 
16961
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16962
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
16963
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16964
  $as_echo_n "(cached) " >&6
 
16965
else
 
16966
  lt_cv_prog_compiler_rtti_exceptions=no
 
16967
  ac_outfile=conftest.$ac_objext
 
16968
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16969
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16970
   # Insert the option either (1) after the last *FLAGS variable, or
 
16971
   # (2) before a word containing "conftest.", or (3) at the end.
 
16972
   # Note that $ac_compile itself does not contain backslashes and begins
 
16973
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16974
   # The option is referenced via a variable to avoid confusing sed.
 
16975
   lt_compile=`echo "$ac_compile" | $SED \
 
16976
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16977
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16978
   -e 's:$: $lt_compiler_flag:'`
 
16979
   (eval echo "\"\$as_me:16979: $lt_compile\"" >&5)
 
16980
   (eval "$lt_compile" 2>conftest.err)
 
16981
   ac_status=$?
 
16982
   cat conftest.err >&5
 
16983
   echo "$as_me:16983: \$? = $ac_status" >&5
 
16984
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16985
     # The compiler can only warn and ignore the option if not recognized
 
16986
     # So say no if there are warnings other than the usual output.
 
16987
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16988
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16989
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16990
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16991
     fi
 
16992
   fi
 
16993
   $rm conftest*
 
16994
 
 
16995
fi
 
16996
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16997
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16998
 
 
16999
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17000
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17001
else
 
17002
    :
 
17003
fi
 
17004
 
 
17005
fi
 
17006
 
 
17007
lt_prog_compiler_wl_GCJ=
 
17008
lt_prog_compiler_pic_GCJ=
 
17009
lt_prog_compiler_static_GCJ=
 
17010
 
 
17011
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17012
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
17013
 
 
17014
  if test "$GCC" = yes; then
 
17015
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17016
    lt_prog_compiler_static_GCJ='-static'
 
17017
 
 
17018
    case $host_os in
 
17019
      aix*)
 
17020
      # All AIX code is PIC.
 
17021
      if test "$host_cpu" = ia64; then
 
17022
        # AIX 5 now supports IA64 processor
 
17023
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17024
      fi
 
17025
      ;;
 
17026
 
 
17027
    amigaos*)
 
17028
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17029
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17030
      # like `-m68040'.
 
17031
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17032
      ;;
 
17033
 
 
17034
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17035
      # PIC is the default for these OSes.
 
17036
      ;;
 
17037
 
 
17038
    mingw* | cygwin* | pw32* | os2*)
 
17039
      # This hack is so that the source file can tell whether it is being
 
17040
      # built for inclusion in a dll (and should export symbols for example).
 
17041
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17042
      # (--disable-auto-import) libraries
 
17043
 
 
17044
      ;;
 
17045
 
 
17046
    darwin* | rhapsody*)
 
17047
      # PIC is the default on this platform
 
17048
      # Common symbols not allowed in MH_DYLIB files
 
17049
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17050
      ;;
 
17051
 
 
17052
    interix[3-9]*)
 
17053
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17054
      # Instead, we relocate shared libraries at runtime.
 
17055
      ;;
 
17056
 
 
17057
    msdosdjgpp*)
 
17058
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17059
      # on systems that don't support them.
 
17060
      lt_prog_compiler_can_build_shared_GCJ=no
 
17061
      enable_shared=no
 
17062
      ;;
 
17063
 
 
17064
    sysv4*MP*)
 
17065
      if test -d /usr/nec; then
 
17066
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17067
      fi
 
17068
      ;;
 
17069
 
 
17070
    hpux*)
 
17071
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17072
      # not for PA HP-UX.
 
17073
      case $host_cpu in
 
17074
      hppa*64*|ia64*)
 
17075
        # +Z the default
 
17076
        ;;
 
17077
      *)
 
17078
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17079
        ;;
 
17080
      esac
 
17081
      ;;
 
17082
 
 
17083
    *)
 
17084
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17085
      ;;
 
17086
    esac
 
17087
  else
 
17088
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17089
    case $host_os in
 
17090
    aix*)
 
17091
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17092
      if test "$host_cpu" = ia64; then
 
17093
        # AIX 5 now supports IA64 processor
 
17094
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17095
      else
 
17096
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17097
      fi
 
17098
      ;;
 
17099
      darwin*)
 
17100
        # PIC is the default on this platform
 
17101
        # Common symbols not allowed in MH_DYLIB files
 
17102
       case $cc_basename in
 
17103
         xlc*)
 
17104
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17105
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17106
         ;;
 
17107
       esac
 
17108
       ;;
 
17109
 
 
17110
    mingw* | cygwin* | pw32* | os2*)
 
17111
      # This hack is so that the source file can tell whether it is being
 
17112
      # built for inclusion in a dll (and should export symbols for example).
 
17113
 
 
17114
      ;;
 
17115
 
 
17116
    hpux9* | hpux10* | hpux11*)
 
17117
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17118
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17119
      # not for PA HP-UX.
 
17120
      case $host_cpu in
 
17121
      hppa*64*|ia64*)
 
17122
        # +Z the default
 
17123
        ;;
 
17124
      *)
 
17125
        lt_prog_compiler_pic_GCJ='+Z'
 
17126
        ;;
 
17127
      esac
 
17128
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17129
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17130
      ;;
 
17131
 
 
17132
    irix5* | irix6* | nonstopux*)
 
17133
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17134
      # PIC (with -KPIC) is the default.
 
17135
      lt_prog_compiler_static_GCJ='-non_shared'
 
17136
      ;;
 
17137
 
 
17138
    newsos6)
 
17139
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17140
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17141
      ;;
 
17142
 
 
17143
    linux* | k*bsd*-gnu)
 
17144
      case $cc_basename in
 
17145
      icc* | ecc*)
 
17146
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17147
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17148
        lt_prog_compiler_static_GCJ='-static'
 
17149
        ;;
 
17150
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17151
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17152
        # which looks to be a dead project)
 
17153
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17154
        lt_prog_compiler_pic_GCJ='-fpic'
 
17155
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17156
        ;;
 
17157
      ccc*)
 
17158
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17159
        # All Alpha code is PIC.
 
17160
        lt_prog_compiler_static_GCJ='-non_shared'
 
17161
        ;;
 
17162
      *)
 
17163
        case `$CC -V 2>&1 | sed 5q` in
 
17164
        *Sun\ C*)
 
17165
          # Sun C 5.9
 
17166
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17167
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17168
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17169
          ;;
 
17170
        *Sun\ F*)
 
17171
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17172
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17173
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17174
          lt_prog_compiler_wl_GCJ=''
 
17175
          ;;
 
17176
        esac
 
17177
        ;;
 
17178
      esac
 
17179
      ;;
 
17180
 
 
17181
    osf3* | osf4* | osf5*)
 
17182
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17183
      # All OSF/1 code is PIC.
 
17184
      lt_prog_compiler_static_GCJ='-non_shared'
 
17185
      ;;
 
17186
 
 
17187
    rdos*)
 
17188
      lt_prog_compiler_static_GCJ='-non_shared'
 
17189
      ;;
 
17190
 
 
17191
    solaris*)
 
17192
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17193
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17194
      case $cc_basename in
 
17195
      f77* | f90* | f95*)
 
17196
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17197
      *)
 
17198
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17199
      esac
 
17200
      ;;
 
17201
 
 
17202
    sunos4*)
 
17203
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17204
      lt_prog_compiler_pic_GCJ='-PIC'
 
17205
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17206
      ;;
 
17207
 
 
17208
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17209
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17210
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17211
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17212
      ;;
 
17213
 
 
17214
    sysv4*MP*)
 
17215
      if test -d /usr/nec ;then
 
17216
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17217
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17218
      fi
 
17219
      ;;
 
17220
 
 
17221
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17222
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17223
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17224
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17225
      ;;
 
17226
 
 
17227
    unicos*)
 
17228
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17229
      lt_prog_compiler_can_build_shared_GCJ=no
 
17230
      ;;
 
17231
 
 
17232
    uts4*)
 
17233
      lt_prog_compiler_pic_GCJ='-pic'
 
17234
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17235
      ;;
 
17236
 
 
17237
    *)
 
17238
      lt_prog_compiler_can_build_shared_GCJ=no
 
17239
      ;;
 
17240
    esac
 
17241
  fi
 
17242
 
 
17243
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17244
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
17245
 
 
17246
#
 
17247
# Check to make sure the PIC flag actually works.
 
17248
#
 
17249
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17250
 
 
17251
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17252
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
17253
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17254
  $as_echo_n "(cached) " >&6
 
17255
else
 
17256
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17257
  ac_outfile=conftest.$ac_objext
 
17258
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17259
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17260
   # Insert the option either (1) after the last *FLAGS variable, or
 
17261
   # (2) before a word containing "conftest.", or (3) at the end.
 
17262
   # Note that $ac_compile itself does not contain backslashes and begins
 
17263
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17264
   # The option is referenced via a variable to avoid confusing sed.
 
17265
   lt_compile=`echo "$ac_compile" | $SED \
 
17266
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17267
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17268
   -e 's:$: $lt_compiler_flag:'`
 
17269
   (eval echo "\"\$as_me:17269: $lt_compile\"" >&5)
 
17270
   (eval "$lt_compile" 2>conftest.err)
 
17271
   ac_status=$?
 
17272
   cat conftest.err >&5
 
17273
   echo "$as_me:17273: \$? = $ac_status" >&5
 
17274
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17275
     # The compiler can only warn and ignore the option if not recognized
 
17276
     # So say no if there are warnings other than the usual output.
 
17277
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17278
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17279
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17280
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17281
     fi
 
17282
   fi
 
17283
   $rm conftest*
 
17284
 
 
17285
fi
 
17286
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17287
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17288
 
 
17289
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17290
    case $lt_prog_compiler_pic_GCJ in
 
17291
     "" | " "*) ;;
 
17292
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17293
     esac
 
17294
else
 
17295
    lt_prog_compiler_pic_GCJ=
 
17296
     lt_prog_compiler_can_build_shared_GCJ=no
 
17297
fi
 
17298
 
 
17299
fi
 
17300
case $host_os in
 
17301
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17302
  *djgpp*)
 
17303
    lt_prog_compiler_pic_GCJ=
 
17304
    ;;
 
17305
  *)
 
17306
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17307
    ;;
 
17308
esac
 
17309
 
 
17310
#
 
17311
# Check to make sure the static flag actually works.
 
17312
#
 
17313
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17314
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17315
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
17316
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17317
  $as_echo_n "(cached) " >&6
 
17318
else
 
17319
  lt_cv_prog_compiler_static_works_GCJ=no
 
17320
   save_LDFLAGS="$LDFLAGS"
 
17321
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17322
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17323
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17324
     # The linker can only warn and ignore the option if not recognized
 
17325
     # So say no if there are warnings
 
17326
     if test -s conftest.err; then
 
17327
       # Append any errors to the config.log.
 
17328
       cat conftest.err 1>&5
 
17329
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17330
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17331
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17332
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17333
       fi
 
17334
     else
 
17335
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17336
     fi
 
17337
   fi
 
17338
   $rm -r conftest*
 
17339
   LDFLAGS="$save_LDFLAGS"
 
17340
 
 
17341
fi
 
17342
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17343
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17344
 
 
17345
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17346
    :
 
17347
else
 
17348
    lt_prog_compiler_static_GCJ=
 
17349
fi
 
17350
 
 
17351
 
 
17352
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17353
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
17354
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17355
  $as_echo_n "(cached) " >&6
 
17356
else
 
17357
  lt_cv_prog_compiler_c_o_GCJ=no
 
17358
   $rm -r conftest 2>/dev/null
 
17359
   mkdir conftest
 
17360
   cd conftest
 
17361
   mkdir out
 
17362
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17363
 
 
17364
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17365
   # Insert the option either (1) after the last *FLAGS variable, or
 
17366
   # (2) before a word containing "conftest.", or (3) at the end.
 
17367
   # Note that $ac_compile itself does not contain backslashes and begins
 
17368
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17369
   lt_compile=`echo "$ac_compile" | $SED \
 
17370
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17371
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17372
   -e 's:$: $lt_compiler_flag:'`
 
17373
   (eval echo "\"\$as_me:17373: $lt_compile\"" >&5)
 
17374
   (eval "$lt_compile" 2>out/conftest.err)
 
17375
   ac_status=$?
 
17376
   cat out/conftest.err >&5
 
17377
   echo "$as_me:17377: \$? = $ac_status" >&5
 
17378
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17379
   then
 
17380
     # The compiler can only warn and ignore the option if not recognized
 
17381
     # So say no if there are warnings
 
17382
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17383
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17384
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17385
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17386
     fi
 
17387
   fi
 
17388
   chmod u+w . 2>&5
 
17389
   $rm conftest*
 
17390
   # SGI C++ compiler will create directory out/ii_files/ for
 
17391
   # template instantiation
 
17392
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17393
   $rm out/* && rmdir out
 
17394
   cd ..
 
17395
   rmdir conftest
 
17396
   $rm conftest*
 
17397
 
 
17398
fi
 
17399
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17400
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17401
 
 
17402
 
 
17403
hard_links="nottested"
 
17404
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17405
  # do not overwrite the value of need_locks provided by the user
 
17406
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17407
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17408
  hard_links=yes
 
17409
  $rm conftest*
 
17410
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17411
  touch conftest.a
 
17412
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17413
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17414
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17415
$as_echo "$hard_links" >&6; }
 
17416
  if test "$hard_links" = no; then
 
17417
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17418
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17419
    need_locks=warn
 
17420
  fi
 
17421
else
 
17422
  need_locks=no
 
17423
fi
 
17424
 
 
17425
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17426
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17427
 
 
17428
  runpath_var=
 
17429
  allow_undefined_flag_GCJ=
 
17430
  enable_shared_with_static_runtimes_GCJ=no
 
17431
  archive_cmds_GCJ=
 
17432
  archive_expsym_cmds_GCJ=
 
17433
  old_archive_From_new_cmds_GCJ=
 
17434
  old_archive_from_expsyms_cmds_GCJ=
 
17435
  export_dynamic_flag_spec_GCJ=
 
17436
  whole_archive_flag_spec_GCJ=
 
17437
  thread_safe_flag_spec_GCJ=
 
17438
  hardcode_libdir_flag_spec_GCJ=
 
17439
  hardcode_libdir_flag_spec_ld_GCJ=
 
17440
  hardcode_libdir_separator_GCJ=
 
17441
  hardcode_direct_GCJ=no
 
17442
  hardcode_minus_L_GCJ=no
 
17443
  hardcode_shlibpath_var_GCJ=unsupported
 
17444
  link_all_deplibs_GCJ=unknown
 
17445
  hardcode_automatic_GCJ=no
 
17446
  module_cmds_GCJ=
 
17447
  module_expsym_cmds_GCJ=
 
17448
  always_export_symbols_GCJ=no
 
17449
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17450
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17451
  # included in the symbol list
 
17452
  include_expsyms_GCJ=
 
17453
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17454
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17455
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17456
  # as well as any symbol that contains `d'.
 
17457
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17458
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17459
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17460
  # the symbol is explicitly referenced.  Since portable code cannot
 
17461
  # rely on this symbol name, it's probably fine to never include it in
 
17462
  # preloaded symbol tables.
 
17463
  # Exclude shared library initialization/finalization symbols.
 
17464
  extract_expsyms_cmds=
 
17465
  # Just being paranoid about ensuring that cc_basename is set.
 
17466
  for cc_temp in $compiler""; do
 
17467
  case $cc_temp in
 
17468
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17469
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17470
    \-*) ;;
 
17471
    *) break;;
 
17472
  esac
 
17473
done
 
17474
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17475
 
 
17476
  case $host_os in
 
17477
  cygwin* | mingw* | pw32*)
 
17478
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17479
    # When not using gcc, we currently assume that we are using
 
17480
    # Microsoft Visual C++.
 
17481
    if test "$GCC" != yes; then
 
17482
      with_gnu_ld=no
 
17483
    fi
 
17484
    ;;
 
17485
  interix*)
 
17486
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17487
    with_gnu_ld=yes
 
17488
    ;;
 
17489
  openbsd*)
 
17490
    with_gnu_ld=no
 
17491
    ;;
 
17492
  esac
 
17493
 
 
17494
  ld_shlibs_GCJ=yes
 
17495
  if test "$with_gnu_ld" = yes; then
 
17496
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17497
    wlarc='${wl}'
 
17498
 
 
17499
    # Set some defaults for GNU ld with shared library support. These
 
17500
    # are reset later if shared libraries are not supported. Putting them
 
17501
    # here allows them to be overridden if necessary.
 
17502
    runpath_var=LD_RUN_PATH
 
17503
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17504
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17505
    # ancient GNU ld didn't support --whole-archive et. al.
 
17506
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17507
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17508
      else
 
17509
        whole_archive_flag_spec_GCJ=
 
17510
    fi
 
17511
    supports_anon_versioning=no
 
17512
    case `$LD -v 2>/dev/null` in
 
17513
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17514
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17515
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17516
      *\ 2.11.*) ;; # other 2.11 versions
 
17517
      *) supports_anon_versioning=yes ;;
 
17518
    esac
 
17519
 
 
17520
    # See if GNU ld supports shared libraries.
 
17521
    case $host_os in
 
17522
    aix[3-9]*)
 
17523
      # On AIX/PPC, the GNU linker is very broken
 
17524
      if test "$host_cpu" != ia64; then
 
17525
        ld_shlibs_GCJ=no
 
17526
        cat <<EOF 1>&2
 
17527
 
 
17528
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17529
*** to be unable to reliably create shared libraries on AIX.
 
17530
*** Therefore, libtool is disabling shared libraries support.  If you
 
17531
*** really care for shared libraries, you may want to modify your PATH
 
17532
*** so that a non-GNU linker is found, and then restart.
 
17533
 
 
17534
EOF
 
17535
      fi
 
17536
      ;;
 
17537
 
 
17538
    amigaos*)
 
17539
      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)'
 
17540
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17541
      hardcode_minus_L_GCJ=yes
 
17542
 
 
17543
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17544
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17545
      # to version 4, is to share data among multiple programs linked
 
17546
      # with the same dynamic library.  Since this doesn't match the
 
17547
      # behavior of shared libraries on other platforms, we can't use
 
17548
      # them.
 
17549
      ld_shlibs_GCJ=no
 
17550
      ;;
 
17551
 
 
17552
    beos*)
 
17553
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17554
        allow_undefined_flag_GCJ=unsupported
 
17555
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17556
        # support --undefined.  This deserves some investigation.  FIXME
 
17557
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17558
      else
 
17559
        ld_shlibs_GCJ=no
 
17560
      fi
 
17561
      ;;
 
17562
 
 
17563
    cygwin* | mingw* | pw32*)
 
17564
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17565
      # as there is no search path for DLLs.
 
17566
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17567
      allow_undefined_flag_GCJ=unsupported
 
17568
      always_export_symbols_GCJ=no
 
17569
      enable_shared_with_static_runtimes_GCJ=yes
 
17570
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17571
 
 
17572
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17573
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17574
        # If the export-symbols file already is a .def file (1st line
 
17575
        # is EXPORTS), use it as is; otherwise, prepend...
 
17576
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17577
          cp $export_symbols $output_objdir/$soname.def;
 
17578
        else
 
17579
          echo EXPORTS > $output_objdir/$soname.def;
 
17580
          cat $export_symbols >> $output_objdir/$soname.def;
 
17581
        fi~
 
17582
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17583
      else
 
17584
        ld_shlibs_GCJ=no
 
17585
      fi
 
17586
      ;;
 
17587
 
 
17588
    interix[3-9]*)
 
17589
      hardcode_direct_GCJ=no
 
17590
      hardcode_shlibpath_var_GCJ=no
 
17591
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17592
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17593
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17594
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17595
      # default) and relocated if they conflict, which is a slow very memory
 
17596
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17597
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17598
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17599
      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'
 
17600
      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'
 
17601
      ;;
 
17602
 
 
17603
    gnu* | linux* | k*bsd*-gnu)
 
17604
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17605
        tmp_addflag=
 
17606
        case $cc_basename,$host_cpu in
 
17607
        pgcc*)                          # Portland Group C compiler
 
17608
          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'
 
17609
          tmp_addflag=' $pic_flag'
 
17610
          ;;
 
17611
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17612
          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'
 
17613
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17614
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17615
          tmp_addflag=' -i_dynamic' ;;
 
17616
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17617
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17618
        ifc* | ifort*)                  # Intel Fortran compiler
 
17619
          tmp_addflag=' -nofor_main' ;;
 
17620
        esac
 
17621
        case `$CC -V 2>&1 | sed 5q` in
 
17622
        *Sun\ C*)                       # Sun C 5.9
 
17623
          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'
 
17624
          tmp_sharedflag='-G' ;;
 
17625
        *Sun\ F*)                       # Sun Fortran 8.3
 
17626
          tmp_sharedflag='-G' ;;
 
17627
        *)
 
17628
          tmp_sharedflag='-shared' ;;
 
17629
        esac
 
17630
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17631
 
 
17632
        if test $supports_anon_versioning = yes; then
 
17633
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17634
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17635
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17636
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17637
        fi
 
17638
      else
 
17639
        ld_shlibs_GCJ=no
 
17640
      fi
 
17641
      ;;
 
17642
 
 
17643
    netbsd*)
 
17644
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17645
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17646
        wlarc=
 
17647
      else
 
17648
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17649
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17650
      fi
 
17651
      ;;
 
17652
 
 
17653
    solaris*)
 
17654
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17655
        ld_shlibs_GCJ=no
 
17656
        cat <<EOF 1>&2
 
17657
 
 
17658
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17659
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17660
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17661
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17662
*** your PATH or compiler configuration so that the native linker is
 
17663
*** used, and then restart.
 
17664
 
 
17665
EOF
 
17666
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17667
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17668
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17669
      else
 
17670
        ld_shlibs_GCJ=no
 
17671
      fi
 
17672
      ;;
 
17673
 
 
17674
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17675
      case `$LD -v 2>&1` in
 
17676
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17677
        ld_shlibs_GCJ=no
 
17678
        cat <<_LT_EOF 1>&2
 
17679
 
 
17680
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17681
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17682
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17683
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17684
*** your PATH or compiler configuration so that the native linker is
 
17685
*** used, and then restart.
 
17686
 
 
17687
_LT_EOF
 
17688
        ;;
 
17689
        *)
 
17690
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17691
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17692
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17693
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17694
          else
 
17695
            ld_shlibs_GCJ=no
 
17696
          fi
 
17697
        ;;
 
17698
      esac
 
17699
      ;;
 
17700
 
 
17701
    sunos4*)
 
17702
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17703
      wlarc=
 
17704
      hardcode_direct_GCJ=yes
 
17705
      hardcode_shlibpath_var_GCJ=no
 
17706
      ;;
 
17707
 
 
17708
    *)
 
17709
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17710
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17711
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17712
      else
 
17713
        ld_shlibs_GCJ=no
 
17714
      fi
 
17715
      ;;
 
17716
    esac
 
17717
 
 
17718
    if test "$ld_shlibs_GCJ" = no; then
 
17719
      runpath_var=
 
17720
      hardcode_libdir_flag_spec_GCJ=
 
17721
      export_dynamic_flag_spec_GCJ=
 
17722
      whole_archive_flag_spec_GCJ=
 
17723
    fi
 
17724
  else
 
17725
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17726
    case $host_os in
 
17727
    aix3*)
 
17728
      allow_undefined_flag_GCJ=unsupported
 
17729
      always_export_symbols_GCJ=yes
 
17730
      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'
 
17731
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17732
      # are no directories specified by -L.
 
17733
      hardcode_minus_L_GCJ=yes
 
17734
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17735
        # Neither direct hardcoding nor static linking is supported with a
 
17736
        # broken collect2.
 
17737
        hardcode_direct_GCJ=unsupported
 
17738
      fi
 
17739
      ;;
 
17740
 
 
17741
    aix[4-9]*)
 
17742
      if test "$host_cpu" = ia64; then
 
17743
        # On IA64, the linker does run time linking by default, so we don't
 
17744
        # have to do anything special.
 
17745
        aix_use_runtimelinking=no
 
17746
        exp_sym_flag='-Bexport'
 
17747
        no_entry_flag=""
 
17748
      else
 
17749
        # If we're using GNU nm, then we don't want the "-C" option.
 
17750
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17751
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17752
          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'
 
17753
        else
 
17754
          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'
 
17755
        fi
 
17756
        aix_use_runtimelinking=no
 
17757
 
 
17758
        # Test if we are trying to use run time linking or normal
 
17759
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17760
        # need to do runtime linking.
 
17761
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17762
          for ld_flag in $LDFLAGS; do
 
17763
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17764
            aix_use_runtimelinking=yes
 
17765
            break
 
17766
          fi
 
17767
          done
 
17768
          ;;
 
17769
        esac
 
17770
 
 
17771
        exp_sym_flag='-bexport'
 
17772
        no_entry_flag='-bnoentry'
 
17773
      fi
 
17774
 
 
17775
      # When large executables or shared objects are built, AIX ld can
 
17776
      # have problems creating the table of contents.  If linking a library
 
17777
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17778
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17779
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17780
 
 
17781
      archive_cmds_GCJ=''
 
17782
      hardcode_direct_GCJ=yes
 
17783
      hardcode_libdir_separator_GCJ=':'
 
17784
      link_all_deplibs_GCJ=yes
 
17785
 
 
17786
      if test "$GCC" = yes; then
 
17787
        case $host_os in aix4.[012]|aix4.[012].*)
 
17788
        # We only want to do this on AIX 4.2 and lower, the check
 
17789
        # below for broken collect2 doesn't work under 4.3+
 
17790
          collect2name=`${CC} -print-prog-name=collect2`
 
17791
          if test -f "$collect2name" && \
 
17792
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17793
          then
 
17794
          # We have reworked collect2
 
17795
          :
 
17796
          else
 
17797
          # We have old collect2
 
17798
          hardcode_direct_GCJ=unsupported
 
17799
          # It fails to find uninstalled libraries when the uninstalled
 
17800
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17801
          # to unsupported forces relinking
 
17802
          hardcode_minus_L_GCJ=yes
 
17803
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17804
          hardcode_libdir_separator_GCJ=
 
17805
          fi
 
17806
          ;;
 
17807
        esac
 
17808
        shared_flag='-shared'
 
17809
        if test "$aix_use_runtimelinking" = yes; then
 
17810
          shared_flag="$shared_flag "'${wl}-G'
 
17811
        fi
 
17812
      else
 
17813
        # not using gcc
 
17814
        if test "$host_cpu" = ia64; then
 
17815
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17816
        # chokes on -Wl,-G. The following line is correct:
 
17817
          shared_flag='-G'
 
17818
        else
 
17819
          if test "$aix_use_runtimelinking" = yes; then
 
17820
            shared_flag='${wl}-G'
 
17821
          else
 
17822
            shared_flag='${wl}-bM:SRE'
 
17823
          fi
 
17824
        fi
 
17825
      fi
 
17826
 
 
17827
      # It seems that -bexpall does not export symbols beginning with
 
17828
      # underscore (_), so it is better to generate a list of symbols to export.
 
17829
      always_export_symbols_GCJ=yes
 
17830
      if test "$aix_use_runtimelinking" = yes; then
 
17831
        # Warning - without using the other runtime loading flags (-brtl),
 
17832
        # -berok will link without error, but may produce a broken library.
 
17833
        allow_undefined_flag_GCJ='-berok'
 
17834
       # Determine the default libpath from the value encoded in an empty executable.
 
17835
       cat >conftest.$ac_ext <<_ACEOF
 
17836
/* confdefs.h.  */
 
17837
_ACEOF
 
17838
cat confdefs.h >>conftest.$ac_ext
 
17839
cat >>conftest.$ac_ext <<_ACEOF
 
17840
/* end confdefs.h.  */
 
17841
 
 
17842
int
 
17843
main ()
 
17844
{
 
17845
 
 
17846
  ;
 
17847
  return 0;
 
17848
}
 
17849
_ACEOF
 
17850
rm -f conftest.$ac_objext conftest$ac_exeext
 
17851
if { (ac_try="$ac_link"
 
17852
case "(($ac_try" in
 
17853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17854
  *) ac_try_echo=$ac_try;;
 
17855
esac
 
17856
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17857
$as_echo "$ac_try_echo") >&5
 
17858
  (eval "$ac_link") 2>conftest.er1
 
17859
  ac_status=$?
 
17860
  grep -v '^ *+' conftest.er1 >conftest.err
 
17861
  rm -f conftest.er1
 
17862
  cat conftest.err >&5
 
17863
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17864
  (exit $ac_status); } && {
 
17865
         test -z "$ac_c_werror_flag" ||
 
17866
         test ! -s conftest.err
 
17867
       } && test -s conftest$ac_exeext && {
 
17868
         test "$cross_compiling" = yes ||
 
17869
         $as_test_x conftest$ac_exeext
 
17870
       }; then
 
17871
 
 
17872
lt_aix_libpath_sed='
 
17873
    /Import File Strings/,/^$/ {
 
17874
        /^0/ {
 
17875
            s/^0  *\(.*\)$/\1/
 
17876
            p
 
17877
        }
 
17878
    }'
 
17879
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17880
# Check for a 64-bit object if we didn't find anything.
 
17881
if test -z "$aix_libpath"; then
 
17882
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17883
fi
 
17884
else
 
17885
  $as_echo "$as_me: failed program was:" >&5
 
17886
sed 's/^/| /' conftest.$ac_ext >&5
 
17887
 
 
17888
 
 
17889
fi
 
17890
 
 
17891
rm -rf conftest.dSYM
 
17892
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17893
      conftest$ac_exeext conftest.$ac_ext
 
17894
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17895
 
 
17896
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17897
        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"
 
17898
       else
 
17899
        if test "$host_cpu" = ia64; then
 
17900
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17901
          allow_undefined_flag_GCJ="-z nodefs"
 
17902
          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"
 
17903
        else
 
17904
         # Determine the default libpath from the value encoded in an empty executable.
 
17905
         cat >conftest.$ac_ext <<_ACEOF
 
17906
/* confdefs.h.  */
 
17907
_ACEOF
 
17908
cat confdefs.h >>conftest.$ac_ext
 
17909
cat >>conftest.$ac_ext <<_ACEOF
 
17910
/* end confdefs.h.  */
 
17911
 
 
17912
int
 
17913
main ()
 
17914
{
 
17915
 
 
17916
  ;
 
17917
  return 0;
 
17918
}
 
17919
_ACEOF
 
17920
rm -f conftest.$ac_objext conftest$ac_exeext
 
17921
if { (ac_try="$ac_link"
 
17922
case "(($ac_try" in
 
17923
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17924
  *) ac_try_echo=$ac_try;;
 
17925
esac
 
17926
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17927
$as_echo "$ac_try_echo") >&5
 
17928
  (eval "$ac_link") 2>conftest.er1
 
17929
  ac_status=$?
 
17930
  grep -v '^ *+' conftest.er1 >conftest.err
 
17931
  rm -f conftest.er1
 
17932
  cat conftest.err >&5
 
17933
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17934
  (exit $ac_status); } && {
 
17935
         test -z "$ac_c_werror_flag" ||
 
17936
         test ! -s conftest.err
 
17937
       } && test -s conftest$ac_exeext && {
 
17938
         test "$cross_compiling" = yes ||
 
17939
         $as_test_x conftest$ac_exeext
 
17940
       }; then
 
17941
 
 
17942
lt_aix_libpath_sed='
 
17943
    /Import File Strings/,/^$/ {
 
17944
        /^0/ {
 
17945
            s/^0  *\(.*\)$/\1/
 
17946
            p
 
17947
        }
 
17948
    }'
 
17949
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17950
# Check for a 64-bit object if we didn't find anything.
 
17951
if test -z "$aix_libpath"; then
 
17952
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17953
fi
 
17954
else
 
17955
  $as_echo "$as_me: failed program was:" >&5
 
17956
sed 's/^/| /' conftest.$ac_ext >&5
 
17957
 
 
17958
 
 
17959
fi
 
17960
 
 
17961
rm -rf conftest.dSYM
 
17962
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17963
      conftest$ac_exeext conftest.$ac_ext
 
17964
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17965
 
 
17966
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17967
          # Warning - without using the other run time loading flags,
 
17968
          # -berok will link without error, but may produce a broken library.
 
17969
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17970
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17971
          # Exported symbols can be pulled into shared objects from archives
 
17972
          whole_archive_flag_spec_GCJ='$convenience'
 
17973
          archive_cmds_need_lc_GCJ=yes
 
17974
          # This is similar to how AIX traditionally builds its shared libraries.
 
17975
          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'
 
17976
        fi
 
17977
      fi
 
17978
      ;;
 
17979
 
 
17980
    amigaos*)
 
17981
      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)'
 
17982
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17983
      hardcode_minus_L_GCJ=yes
 
17984
      # see comment about different semantics on the GNU ld section
 
17985
      ld_shlibs_GCJ=no
 
17986
      ;;
 
17987
 
 
17988
    bsdi[45]*)
 
17989
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17990
      ;;
 
17991
 
 
17992
    cygwin* | mingw* | pw32*)
 
17993
      # When not using gcc, we currently assume that we are using
 
17994
      # Microsoft Visual C++.
 
17995
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17996
      # no search path for DLLs.
 
17997
      hardcode_libdir_flag_spec_GCJ=' '
 
17998
      allow_undefined_flag_GCJ=unsupported
 
17999
      # Tell ltmain to make .lib files, not .a files.
 
18000
      libext=lib
 
18001
      # Tell ltmain to make .dll files, not .so files.
 
18002
      shrext_cmds=".dll"
 
18003
      # FIXME: Setting linknames here is a bad hack.
 
18004
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18005
      # The linker will automatically build a .lib file if we build a DLL.
 
18006
      old_archive_From_new_cmds_GCJ='true'
 
18007
      # FIXME: Should let the user specify the lib program.
 
18008
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18009
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18010
      enable_shared_with_static_runtimes_GCJ=yes
 
18011
      ;;
 
18012
 
 
18013
    darwin* | rhapsody*)
 
18014
      case $host_os in
 
18015
        rhapsody* | darwin1.[012])
 
18016
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18017
         ;;
 
18018
       *) # Darwin 1.3 on
 
18019
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18020
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18021
         else
 
18022
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18023
             10.[012])
 
18024
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18025
               ;;
 
18026
             10.*)
 
18027
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18028
               ;;
 
18029
           esac
 
18030
         fi
 
18031
         ;;
 
18032
      esac
 
18033
      archive_cmds_need_lc_GCJ=no
 
18034
      hardcode_direct_GCJ=no
 
18035
      hardcode_automatic_GCJ=yes
 
18036
      hardcode_shlibpath_var_GCJ=unsupported
 
18037
      whole_archive_flag_spec_GCJ=''
 
18038
      link_all_deplibs_GCJ=yes
 
18039
    if test "$GCC" = yes ; then
 
18040
        output_verbose_link_cmd='echo'
 
18041
        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}"
 
18042
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18043
        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}"
 
18044
        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}"
 
18045
    else
 
18046
      case $cc_basename in
 
18047
        xlc*)
 
18048
         output_verbose_link_cmd='echo'
 
18049
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18050
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18051
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18052
         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}'
 
18053
          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}'
 
18054
          ;;
 
18055
       *)
 
18056
         ld_shlibs_GCJ=no
 
18057
          ;;
 
18058
      esac
 
18059
    fi
 
18060
      ;;
 
18061
 
 
18062
    dgux*)
 
18063
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18064
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18065
      hardcode_shlibpath_var_GCJ=no
 
18066
      ;;
 
18067
 
 
18068
    freebsd1*)
 
18069
      ld_shlibs_GCJ=no
 
18070
      ;;
 
18071
 
 
18072
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18073
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18074
    # does not break anything, and helps significantly (at the cost of a little
 
18075
    # extra space).
 
18076
    freebsd2.2*)
 
18077
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18078
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18079
      hardcode_direct_GCJ=yes
 
18080
      hardcode_shlibpath_var_GCJ=no
 
18081
      ;;
 
18082
 
 
18083
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18084
    freebsd2*)
 
18085
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18086
      hardcode_direct_GCJ=yes
 
18087
      hardcode_minus_L_GCJ=yes
 
18088
      hardcode_shlibpath_var_GCJ=no
 
18089
      ;;
 
18090
 
 
18091
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18092
    freebsd* | dragonfly*)
 
18093
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18094
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18095
      hardcode_direct_GCJ=yes
 
18096
      hardcode_shlibpath_var_GCJ=no
 
18097
      ;;
 
18098
 
 
18099
    hpux9*)
 
18100
      if test "$GCC" = yes; then
 
18101
        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'
 
18102
      else
 
18103
        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'
 
18104
      fi
 
18105
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18106
      hardcode_libdir_separator_GCJ=:
 
18107
      hardcode_direct_GCJ=yes
 
18108
 
 
18109
      # hardcode_minus_L: Not really in the search PATH,
 
18110
      # but as the default location of the library.
 
18111
      hardcode_minus_L_GCJ=yes
 
18112
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18113
      ;;
 
18114
 
 
18115
    hpux10*)
 
18116
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18117
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18118
      else
 
18119
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18120
      fi
 
18121
      if test "$with_gnu_ld" = no; then
 
18122
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18123
        hardcode_libdir_separator_GCJ=:
 
18124
 
 
18125
        hardcode_direct_GCJ=yes
 
18126
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18127
 
 
18128
        # hardcode_minus_L: Not really in the search PATH,
 
18129
        # but as the default location of the library.
 
18130
        hardcode_minus_L_GCJ=yes
 
18131
      fi
 
18132
      ;;
 
18133
 
 
18134
    hpux11*)
 
18135
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18136
        case $host_cpu in
 
18137
        hppa*64*)
 
18138
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18139
          ;;
 
18140
        ia64*)
 
18141
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18142
          ;;
 
18143
        *)
 
18144
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18145
          ;;
 
18146
        esac
 
18147
      else
 
18148
        case $host_cpu in
 
18149
        hppa*64*)
 
18150
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18151
          ;;
 
18152
        ia64*)
 
18153
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18154
          ;;
 
18155
        *)
 
18156
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18157
          ;;
 
18158
        esac
 
18159
      fi
 
18160
      if test "$with_gnu_ld" = no; then
 
18161
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18162
        hardcode_libdir_separator_GCJ=:
 
18163
 
 
18164
        case $host_cpu in
 
18165
        hppa*64*|ia64*)
 
18166
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18167
          hardcode_direct_GCJ=no
 
18168
          hardcode_shlibpath_var_GCJ=no
 
18169
          ;;
 
18170
        *)
 
18171
          hardcode_direct_GCJ=yes
 
18172
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18173
 
 
18174
          # hardcode_minus_L: Not really in the search PATH,
 
18175
          # but as the default location of the library.
 
18176
          hardcode_minus_L_GCJ=yes
 
18177
          ;;
 
18178
        esac
 
18179
      fi
 
18180
      ;;
 
18181
 
 
18182
    irix5* | irix6* | nonstopux*)
 
18183
      if test "$GCC" = yes; then
 
18184
        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'
 
18185
      else
 
18186
        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'
 
18187
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18188
      fi
 
18189
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18190
      hardcode_libdir_separator_GCJ=:
 
18191
      link_all_deplibs_GCJ=yes
 
18192
      ;;
 
18193
 
 
18194
    netbsd*)
 
18195
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18196
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18197
      else
 
18198
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18199
      fi
 
18200
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18201
      hardcode_direct_GCJ=yes
 
18202
      hardcode_shlibpath_var_GCJ=no
 
18203
      ;;
 
18204
 
 
18205
    newsos6)
 
18206
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18207
      hardcode_direct_GCJ=yes
 
18208
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18209
      hardcode_libdir_separator_GCJ=:
 
18210
      hardcode_shlibpath_var_GCJ=no
 
18211
      ;;
 
18212
 
 
18213
    openbsd*)
 
18214
      if test -f /usr/libexec/ld.so; then
 
18215
        hardcode_direct_GCJ=yes
 
18216
        hardcode_shlibpath_var_GCJ=no
 
18217
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18218
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18219
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18220
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18221
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18222
        else
 
18223
          case $host_os in
 
18224
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18225
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18226
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18227
             ;;
 
18228
           *)
 
18229
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18230
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18231
             ;;
 
18232
          esac
 
18233
        fi
 
18234
      else
 
18235
        ld_shlibs_GCJ=no
 
18236
      fi
 
18237
      ;;
 
18238
 
 
18239
    os2*)
 
18240
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18241
      hardcode_minus_L_GCJ=yes
 
18242
      allow_undefined_flag_GCJ=unsupported
 
18243
      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'
 
18244
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18245
      ;;
 
18246
 
 
18247
    osf3*)
 
18248
      if test "$GCC" = yes; then
 
18249
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18250
        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'
 
18251
      else
 
18252
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18253
        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'
 
18254
      fi
 
18255
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18256
      hardcode_libdir_separator_GCJ=:
 
18257
      ;;
 
18258
 
 
18259
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18260
      if test "$GCC" = yes; then
 
18261
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18262
        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'
 
18263
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18264
      else
 
18265
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18266
        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'
 
18267
        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~
 
18268
        $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'
 
18269
 
 
18270
        # Both c and cxx compiler support -rpath directly
 
18271
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18272
      fi
 
18273
      hardcode_libdir_separator_GCJ=:
 
18274
      ;;
 
18275
 
 
18276
    solaris*)
 
18277
      no_undefined_flag_GCJ=' -z text'
 
18278
      if test "$GCC" = yes; then
 
18279
        wlarc='${wl}'
 
18280
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18281
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18282
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18283
      else
 
18284
        wlarc=''
 
18285
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18286
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18287
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18288
      fi
 
18289
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18290
      hardcode_shlibpath_var_GCJ=no
 
18291
      case $host_os in
 
18292
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18293
      *)
 
18294
        # The compiler driver will combine and reorder linker options,
 
18295
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18296
        # but is careful enough not to reorder.
 
18297
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18298
        if test "$GCC" = yes; then
 
18299
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18300
        else
 
18301
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18302
        fi
 
18303
        ;;
 
18304
      esac
 
18305
      link_all_deplibs_GCJ=yes
 
18306
      ;;
 
18307
 
 
18308
    sunos4*)
 
18309
      if test "x$host_vendor" = xsequent; then
 
18310
        # Use $CC to link under sequent, because it throws in some extra .o
 
18311
        # files that make .init and .fini sections work.
 
18312
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18313
      else
 
18314
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18315
      fi
 
18316
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18317
      hardcode_direct_GCJ=yes
 
18318
      hardcode_minus_L_GCJ=yes
 
18319
      hardcode_shlibpath_var_GCJ=no
 
18320
      ;;
 
18321
 
 
18322
    sysv4)
 
18323
      case $host_vendor in
 
18324
        sni)
 
18325
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18326
          hardcode_direct_GCJ=yes # is this really true???
 
18327
        ;;
 
18328
        siemens)
 
18329
          ## LD is ld it makes a PLAMLIB
 
18330
          ## CC just makes a GrossModule.
 
18331
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18332
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18333
          hardcode_direct_GCJ=no
 
18334
        ;;
 
18335
        motorola)
 
18336
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18337
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18338
        ;;
 
18339
      esac
 
18340
      runpath_var='LD_RUN_PATH'
 
18341
      hardcode_shlibpath_var_GCJ=no
 
18342
      ;;
 
18343
 
 
18344
    sysv4.3*)
 
18345
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18346
      hardcode_shlibpath_var_GCJ=no
 
18347
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18348
      ;;
 
18349
 
 
18350
    sysv4*MP*)
 
18351
      if test -d /usr/nec; then
 
18352
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18353
        hardcode_shlibpath_var_GCJ=no
 
18354
        runpath_var=LD_RUN_PATH
 
18355
        hardcode_runpath_var=yes
 
18356
        ld_shlibs_GCJ=yes
 
18357
      fi
 
18358
      ;;
 
18359
 
 
18360
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18361
      no_undefined_flag_GCJ='${wl}-z,text'
 
18362
      archive_cmds_need_lc_GCJ=no
 
18363
      hardcode_shlibpath_var_GCJ=no
 
18364
      runpath_var='LD_RUN_PATH'
 
18365
 
 
18366
      if test "$GCC" = yes; then
 
18367
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18368
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18369
      else
 
18370
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18371
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18372
      fi
 
18373
      ;;
 
18374
 
 
18375
    sysv5* | sco3.2v5* | sco5v6*)
 
18376
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18377
      # link with -lc, and that would cause any symbols used from libc to
 
18378
      # always be unresolved, which means just about no library would
 
18379
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18380
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18381
      # as -z defs.
 
18382
      no_undefined_flag_GCJ='${wl}-z,text'
 
18383
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18384
      archive_cmds_need_lc_GCJ=no
 
18385
      hardcode_shlibpath_var_GCJ=no
 
18386
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18387
      hardcode_libdir_separator_GCJ=':'
 
18388
      link_all_deplibs_GCJ=yes
 
18389
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18390
      runpath_var='LD_RUN_PATH'
 
18391
 
 
18392
      if test "$GCC" = yes; then
 
18393
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18394
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18395
      else
 
18396
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18397
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18398
      fi
 
18399
      ;;
 
18400
 
 
18401
    uts4*)
 
18402
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18403
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18404
      hardcode_shlibpath_var_GCJ=no
 
18405
      ;;
 
18406
 
 
18407
    *)
 
18408
      ld_shlibs_GCJ=no
 
18409
      ;;
 
18410
    esac
 
18411
  fi
 
18412
 
 
18413
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18414
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18415
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18416
 
 
18417
#
 
18418
# Do we need to explicitly link libc?
 
18419
#
 
18420
case "x$archive_cmds_need_lc_GCJ" in
 
18421
x|xyes)
 
18422
  # Assume -lc should be added
 
18423
  archive_cmds_need_lc_GCJ=yes
 
18424
 
 
18425
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18426
    case $archive_cmds_GCJ in
 
18427
    *'~'*)
 
18428
      # FIXME: we may have to deal with multi-command sequences.
 
18429
      ;;
 
18430
    '$CC '*)
 
18431
      # Test whether the compiler implicitly links with -lc since on some
 
18432
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18433
      # to ld, don't add -lc before -lgcc.
 
18434
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18435
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18436
      $rm conftest*
 
18437
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18438
 
 
18439
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18440
  (eval $ac_compile) 2>&5
 
18441
  ac_status=$?
 
18442
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18443
  (exit $ac_status); } 2>conftest.err; then
 
18444
        soname=conftest
 
18445
        lib=conftest
 
18446
        libobjs=conftest.$ac_objext
 
18447
        deplibs=
 
18448
        wl=$lt_prog_compiler_wl_GCJ
 
18449
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18450
        compiler_flags=-v
 
18451
        linker_flags=-v
 
18452
        verstring=
 
18453
        output_objdir=.
 
18454
        libname=conftest
 
18455
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18456
        allow_undefined_flag_GCJ=
 
18457
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18458
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18459
  ac_status=$?
 
18460
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18461
  (exit $ac_status); }
 
18462
        then
 
18463
          archive_cmds_need_lc_GCJ=no
 
18464
        else
 
18465
          archive_cmds_need_lc_GCJ=yes
 
18466
        fi
 
18467
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18468
      else
 
18469
        cat conftest.err 1>&5
 
18470
      fi
 
18471
      $rm conftest*
 
18472
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18473
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18474
      ;;
 
18475
    esac
 
18476
  fi
 
18477
  ;;
 
18478
esac
 
18479
 
 
18480
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18481
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18482
library_names_spec=
 
18483
libname_spec='lib$name'
 
18484
soname_spec=
 
18485
shrext_cmds=".so"
 
18486
postinstall_cmds=
 
18487
postuninstall_cmds=
 
18488
finish_cmds=
 
18489
finish_eval=
 
18490
shlibpath_var=
 
18491
shlibpath_overrides_runpath=unknown
 
18492
version_type=none
 
18493
dynamic_linker="$host_os ld.so"
 
18494
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18495
 
 
18496
need_lib_prefix=unknown
 
18497
hardcode_into_libs=no
 
18498
 
 
18499
# when you set need_version to no, make sure it does not cause -set_version
 
18500
# flags to be left without arguments
 
18501
need_version=unknown
 
18502
 
 
18503
case $host_os in
 
18504
aix3*)
 
18505
  version_type=linux
 
18506
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18507
  shlibpath_var=LIBPATH
 
18508
 
 
18509
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18510
  soname_spec='${libname}${release}${shared_ext}$major'
 
18511
  ;;
 
18512
 
 
18513
aix[4-9]*)
 
18514
  version_type=linux
 
18515
  need_lib_prefix=no
 
18516
  need_version=no
 
18517
  hardcode_into_libs=yes
 
18518
  if test "$host_cpu" = ia64; then
 
18519
    # AIX 5 supports IA64
 
18520
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18521
    shlibpath_var=LD_LIBRARY_PATH
 
18522
  else
 
18523
    # With GCC up to 2.95.x, collect2 would create an import file
 
18524
    # for dependence libraries.  The import file would start with
 
18525
    # the line `#! .'.  This would cause the generated library to
 
18526
    # depend on `.', always an invalid library.  This was fixed in
 
18527
    # development snapshots of GCC prior to 3.0.
 
18528
    case $host_os in
 
18529
      aix4 | aix4.[01] | aix4.[01].*)
 
18530
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18531
           echo ' yes '
 
18532
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18533
        :
 
18534
      else
 
18535
        can_build_shared=no
 
18536
      fi
 
18537
      ;;
 
18538
    esac
 
18539
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18540
    # soname into executable. Probably we can add versioning support to
 
18541
    # collect2, so additional links can be useful in future.
 
18542
    if test "$aix_use_runtimelinking" = yes; then
 
18543
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18544
      # instead of lib<name>.a to let people know that these are not
 
18545
      # typical AIX shared libraries.
 
18546
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18547
    else
 
18548
      # We preserve .a as extension for shared libraries through AIX4.2
 
18549
      # and later when we are not doing run time linking.
 
18550
      library_names_spec='${libname}${release}.a $libname.a'
 
18551
      soname_spec='${libname}${release}${shared_ext}$major'
 
18552
    fi
 
18553
    shlibpath_var=LIBPATH
 
18554
  fi
 
18555
  ;;
 
18556
 
 
18557
amigaos*)
 
18558
  library_names_spec='$libname.ixlibrary $libname.a'
 
18559
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18560
  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'
 
18561
  ;;
 
18562
 
 
18563
beos*)
 
18564
  library_names_spec='${libname}${shared_ext}'
 
18565
  dynamic_linker="$host_os ld.so"
 
18566
  shlibpath_var=LIBRARY_PATH
 
18567
  ;;
 
18568
 
 
18569
bsdi[45]*)
 
18570
  version_type=linux
 
18571
  need_version=no
 
18572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18573
  soname_spec='${libname}${release}${shared_ext}$major'
 
18574
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18575
  shlibpath_var=LD_LIBRARY_PATH
 
18576
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18577
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18578
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18579
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18580
  # libtool to hard-code these into programs
 
18581
  ;;
 
18582
 
 
18583
cygwin* | mingw* | pw32*)
 
18584
  version_type=windows
 
18585
  shrext_cmds=".dll"
 
18586
  need_version=no
 
18587
  need_lib_prefix=no
 
18588
 
 
18589
  case $GCC,$host_os in
 
18590
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18591
    library_names_spec='$libname.dll.a'
 
18592
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18593
    postinstall_cmds='base_file=`basename \${file}`~
 
18594
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18595
      dldir=$destdir/`dirname \$dlpath`~
 
18596
      test -d \$dldir || mkdir -p \$dldir~
 
18597
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18598
      chmod a+x \$dldir/$dlname'
 
18599
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18600
      dlpath=$dir/\$dldll~
 
18601
       $rm \$dlpath'
 
18602
    shlibpath_overrides_runpath=yes
 
18603
 
 
18604
    case $host_os in
 
18605
    cygwin*)
 
18606
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18607
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18608
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18609
      ;;
 
18610
    mingw*)
 
18611
      # MinGW DLLs use traditional 'lib' prefix
 
18612
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18613
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18614
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18615
        # It is most probably a Windows format PATH printed by
 
18616
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18617
        # path with ; separators, and with drive letters. We can handle the
 
18618
        # drive letters (cygwin fileutils understands them), so leave them,
 
18619
        # especially as we might pass files found there to a mingw objdump,
 
18620
        # which wouldn't understand a cygwinified path. Ahh.
 
18621
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18622
      else
 
18623
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18624
      fi
 
18625
      ;;
 
18626
    pw32*)
 
18627
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18628
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18629
      ;;
 
18630
    esac
 
18631
    ;;
 
18632
 
 
18633
  *)
 
18634
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18635
    ;;
 
18636
  esac
 
18637
  dynamic_linker='Win32 ld.exe'
 
18638
  # FIXME: first we should search . and the directory the executable is in
 
18639
  shlibpath_var=PATH
 
18640
  ;;
 
18641
 
 
18642
darwin* | rhapsody*)
 
18643
  dynamic_linker="$host_os dyld"
 
18644
  version_type=darwin
 
18645
  need_lib_prefix=no
 
18646
  need_version=no
 
18647
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18648
  soname_spec='${libname}${release}${major}$shared_ext'
 
18649
  shlibpath_overrides_runpath=yes
 
18650
  shlibpath_var=DYLD_LIBRARY_PATH
 
18651
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18652
 
 
18653
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18654
  ;;
 
18655
 
 
18656
dgux*)
 
18657
  version_type=linux
 
18658
  need_lib_prefix=no
 
18659
  need_version=no
 
18660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18661
  soname_spec='${libname}${release}${shared_ext}$major'
 
18662
  shlibpath_var=LD_LIBRARY_PATH
 
18663
  ;;
 
18664
 
 
18665
freebsd1*)
 
18666
  dynamic_linker=no
 
18667
  ;;
 
18668
 
 
18669
freebsd* | dragonfly*)
 
18670
  # DragonFly does not have aout.  When/if they implement a new
 
18671
  # versioning mechanism, adjust this.
 
18672
  if test -x /usr/bin/objformat; then
 
18673
    objformat=`/usr/bin/objformat`
 
18674
  else
 
18675
    case $host_os in
 
18676
    freebsd[123]*) objformat=aout ;;
 
18677
    *) objformat=elf ;;
 
18678
    esac
 
18679
  fi
 
18680
  version_type=freebsd-$objformat
 
18681
  case $version_type in
 
18682
    freebsd-elf*)
 
18683
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18684
      need_version=no
 
18685
      need_lib_prefix=no
 
18686
      ;;
 
18687
    freebsd-*)
 
18688
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18689
      need_version=yes
 
18690
      ;;
 
18691
  esac
 
18692
  shlibpath_var=LD_LIBRARY_PATH
 
18693
  case $host_os in
 
18694
  freebsd2*)
 
18695
    shlibpath_overrides_runpath=yes
 
18696
    ;;
 
18697
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18698
    shlibpath_overrides_runpath=yes
 
18699
    hardcode_into_libs=yes
 
18700
    ;;
 
18701
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18702
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18703
    shlibpath_overrides_runpath=no
 
18704
    hardcode_into_libs=yes
 
18705
    ;;
 
18706
  *) # from 4.6 on, and DragonFly
 
18707
    shlibpath_overrides_runpath=yes
 
18708
    hardcode_into_libs=yes
 
18709
    ;;
 
18710
  esac
 
18711
  ;;
 
18712
 
 
18713
gnu*)
 
18714
  version_type=linux
 
18715
  need_lib_prefix=no
 
18716
  need_version=no
 
18717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18718
  soname_spec='${libname}${release}${shared_ext}$major'
 
18719
  shlibpath_var=LD_LIBRARY_PATH
 
18720
  hardcode_into_libs=yes
 
18721
  ;;
 
18722
 
 
18723
hpux9* | hpux10* | hpux11*)
 
18724
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18725
  # link against other versions.
 
18726
  version_type=sunos
 
18727
  need_lib_prefix=no
 
18728
  need_version=no
 
18729
  case $host_cpu in
 
18730
  ia64*)
 
18731
    shrext_cmds='.so'
 
18732
    hardcode_into_libs=yes
 
18733
    dynamic_linker="$host_os dld.so"
 
18734
    shlibpath_var=LD_LIBRARY_PATH
 
18735
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18736
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18737
    soname_spec='${libname}${release}${shared_ext}$major'
 
18738
    if test "X$HPUX_IA64_MODE" = X32; then
 
18739
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18740
    else
 
18741
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18742
    fi
 
18743
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18744
    ;;
 
18745
   hppa*64*)
 
18746
     shrext_cmds='.sl'
 
18747
     hardcode_into_libs=yes
 
18748
     dynamic_linker="$host_os dld.sl"
 
18749
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18750
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18751
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18752
     soname_spec='${libname}${release}${shared_ext}$major'
 
18753
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18754
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18755
     ;;
 
18756
   *)
 
18757
    shrext_cmds='.sl'
 
18758
    dynamic_linker="$host_os dld.sl"
 
18759
    shlibpath_var=SHLIB_PATH
 
18760
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18761
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18762
    soname_spec='${libname}${release}${shared_ext}$major'
 
18763
    ;;
 
18764
  esac
 
18765
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18766
  postinstall_cmds='chmod 555 $lib'
 
18767
  ;;
 
18768
 
 
18769
interix[3-9]*)
 
18770
  version_type=linux
 
18771
  need_lib_prefix=no
 
18772
  need_version=no
 
18773
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18774
  soname_spec='${libname}${release}${shared_ext}$major'
 
18775
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18776
  shlibpath_var=LD_LIBRARY_PATH
 
18777
  shlibpath_overrides_runpath=no
 
18778
  hardcode_into_libs=yes
 
18779
  ;;
 
18780
 
 
18781
irix5* | irix6* | nonstopux*)
 
18782
  case $host_os in
 
18783
    nonstopux*) version_type=nonstopux ;;
 
18784
    *)
 
18785
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18786
                version_type=linux
 
18787
        else
 
18788
                version_type=irix
 
18789
        fi ;;
 
18790
  esac
 
18791
  need_lib_prefix=no
 
18792
  need_version=no
 
18793
  soname_spec='${libname}${release}${shared_ext}$major'
 
18794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18795
  case $host_os in
 
18796
  irix5* | nonstopux*)
 
18797
    libsuff= shlibsuff=
 
18798
    ;;
 
18799
  *)
 
18800
    case $LD in # libtool.m4 will add one of these switches to LD
 
18801
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18802
      libsuff= shlibsuff= libmagic=32-bit;;
 
18803
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18804
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18805
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18806
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18807
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18808
    esac
 
18809
    ;;
 
18810
  esac
 
18811
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18812
  shlibpath_overrides_runpath=no
 
18813
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18814
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18815
  hardcode_into_libs=yes
 
18816
  ;;
 
18817
 
 
18818
# No shared lib support for Linux oldld, aout, or coff.
 
18819
linux*oldld* | linux*aout* | linux*coff*)
 
18820
  dynamic_linker=no
 
18821
  ;;
 
18822
 
 
18823
# This must be Linux ELF.
 
18824
linux* | k*bsd*-gnu)
 
18825
  version_type=linux
 
18826
  need_lib_prefix=no
 
18827
  need_version=no
 
18828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18829
  soname_spec='${libname}${release}${shared_ext}$major'
 
18830
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18831
  shlibpath_var=LD_LIBRARY_PATH
 
18832
  shlibpath_overrides_runpath=no
 
18833
  # This implies no fast_install, which is unacceptable.
 
18834
  # Some rework will be needed to allow for fast_install
 
18835
  # before this can be enabled.
 
18836
  hardcode_into_libs=yes
 
18837
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18838
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18839
 
 
18840
  # Append ld.so.conf contents to the search path
 
18841
  if test -f /etc/ld.so.conf; then
 
18842
    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' ' '`
 
18843
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
18844
  fi
 
18845
 
 
18846
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18847
  # powerpc, because MkLinux only supported shared libraries with the
 
18848
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18849
  # most powerpc-linux boxes support dynamic linking these days and
 
18850
  # people can always --disable-shared, the test was removed, and we
 
18851
  # assume the GNU/Linux dynamic linker is in use.
 
18852
  dynamic_linker='GNU/Linux ld.so'
 
18853
  ;;
 
18854
 
 
18855
netbsd*)
 
18856
  version_type=sunos
 
18857
  need_lib_prefix=no
 
18858
  need_version=no
 
18859
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18860
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18861
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18862
    dynamic_linker='NetBSD (a.out) ld.so'
 
18863
  else
 
18864
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18865
    soname_spec='${libname}${release}${shared_ext}$major'
 
18866
    dynamic_linker='NetBSD ld.elf_so'
 
18867
  fi
 
18868
  shlibpath_var=LD_LIBRARY_PATH
 
18869
  shlibpath_overrides_runpath=yes
 
18870
  hardcode_into_libs=yes
 
18871
  ;;
 
18872
 
 
18873
newsos6)
 
18874
  version_type=linux
 
18875
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18876
  shlibpath_var=LD_LIBRARY_PATH
 
18877
  shlibpath_overrides_runpath=yes
 
18878
  ;;
 
18879
 
 
18880
nto-qnx*)
 
18881
  version_type=linux
 
18882
  need_lib_prefix=no
 
18883
  need_version=no
 
18884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18885
  soname_spec='${libname}${release}${shared_ext}$major'
 
18886
  shlibpath_var=LD_LIBRARY_PATH
 
18887
  shlibpath_overrides_runpath=yes
 
18888
  ;;
 
18889
 
 
18890
openbsd*)
 
18891
  version_type=sunos
 
18892
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18893
  need_lib_prefix=no
 
18894
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18895
  case $host_os in
 
18896
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18897
    *)                         need_version=no  ;;
 
18898
  esac
 
18899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18900
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18901
  shlibpath_var=LD_LIBRARY_PATH
 
18902
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18903
    case $host_os in
 
18904
      openbsd2.[89] | openbsd2.[89].*)
 
18905
        shlibpath_overrides_runpath=no
 
18906
        ;;
 
18907
      *)
 
18908
        shlibpath_overrides_runpath=yes
 
18909
        ;;
 
18910
      esac
 
18911
  else
 
18912
    shlibpath_overrides_runpath=yes
 
18913
  fi
 
18914
  ;;
 
18915
 
 
18916
os2*)
 
18917
  libname_spec='$name'
 
18918
  shrext_cmds=".dll"
 
18919
  need_lib_prefix=no
 
18920
  library_names_spec='$libname${shared_ext} $libname.a'
 
18921
  dynamic_linker='OS/2 ld.exe'
 
18922
  shlibpath_var=LIBPATH
 
18923
  ;;
 
18924
 
 
18925
osf3* | osf4* | osf5*)
 
18926
  version_type=osf
 
18927
  need_lib_prefix=no
 
18928
  need_version=no
 
18929
  soname_spec='${libname}${release}${shared_ext}$major'
 
18930
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18931
  shlibpath_var=LD_LIBRARY_PATH
 
18932
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18933
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18934
  ;;
 
18935
 
 
18936
rdos*)
 
18937
  dynamic_linker=no
 
18938
  ;;
 
18939
 
 
18940
solaris*)
 
18941
  version_type=linux
 
18942
  need_lib_prefix=no
 
18943
  need_version=no
 
18944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18945
  soname_spec='${libname}${release}${shared_ext}$major'
 
18946
  shlibpath_var=LD_LIBRARY_PATH
 
18947
  shlibpath_overrides_runpath=yes
 
18948
  hardcode_into_libs=yes
 
18949
  # ldd complains unless libraries are executable
 
18950
  postinstall_cmds='chmod +x $lib'
 
18951
  ;;
 
18952
 
 
18953
sunos4*)
 
18954
  version_type=sunos
 
18955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18956
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18957
  shlibpath_var=LD_LIBRARY_PATH
 
18958
  shlibpath_overrides_runpath=yes
 
18959
  if test "$with_gnu_ld" = yes; then
 
18960
    need_lib_prefix=no
 
18961
  fi
 
18962
  need_version=yes
 
18963
  ;;
 
18964
 
 
18965
sysv4 | sysv4.3*)
 
18966
  version_type=linux
 
18967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18968
  soname_spec='${libname}${release}${shared_ext}$major'
 
18969
  shlibpath_var=LD_LIBRARY_PATH
 
18970
  case $host_vendor in
 
18971
    sni)
 
18972
      shlibpath_overrides_runpath=no
 
18973
      need_lib_prefix=no
 
18974
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18975
      runpath_var=LD_RUN_PATH
 
18976
      ;;
 
18977
    siemens)
 
18978
      need_lib_prefix=no
 
18979
      ;;
 
18980
    motorola)
 
18981
      need_lib_prefix=no
 
18982
      need_version=no
 
18983
      shlibpath_overrides_runpath=no
 
18984
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18985
      ;;
 
18986
  esac
 
18987
  ;;
 
18988
 
 
18989
sysv4*MP*)
 
18990
  if test -d /usr/nec ;then
 
18991
    version_type=linux
 
18992
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18993
    soname_spec='$libname${shared_ext}.$major'
 
18994
    shlibpath_var=LD_LIBRARY_PATH
 
18995
  fi
 
18996
  ;;
 
18997
 
 
18998
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18999
  version_type=freebsd-elf
 
19000
  need_lib_prefix=no
 
19001
  need_version=no
 
19002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19003
  soname_spec='${libname}${release}${shared_ext}$major'
 
19004
  shlibpath_var=LD_LIBRARY_PATH
 
19005
  hardcode_into_libs=yes
 
19006
  if test "$with_gnu_ld" = yes; then
 
19007
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19008
    shlibpath_overrides_runpath=no
 
19009
  else
 
19010
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19011
    shlibpath_overrides_runpath=yes
 
19012
    case $host_os in
 
19013
      sco3.2v5*)
 
19014
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19015
        ;;
 
19016
    esac
 
19017
  fi
 
19018
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19019
  ;;
 
19020
 
 
19021
uts4*)
 
19022
  version_type=linux
 
19023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19024
  soname_spec='${libname}${release}${shared_ext}$major'
 
19025
  shlibpath_var=LD_LIBRARY_PATH
 
19026
  ;;
 
19027
 
 
19028
*)
 
19029
  dynamic_linker=no
 
19030
  ;;
 
19031
esac
 
19032
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19033
$as_echo "$dynamic_linker" >&6; }
 
19034
test "$dynamic_linker" = no && can_build_shared=no
 
19035
 
 
19036
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19037
  $as_echo_n "(cached) " >&6
 
19038
else
 
19039
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19040
fi
 
19041
 
 
19042
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19043
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19044
  $as_echo_n "(cached) " >&6
 
19045
else
 
19046
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19047
fi
 
19048
 
 
19049
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19050
 
 
19051
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19052
if test "$GCC" = yes; then
 
19053
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19054
fi
 
19055
 
 
19056
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19057
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
19058
hardcode_action_GCJ=
 
19059
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19060
   test -n "$runpath_var_GCJ" || \
 
19061
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19062
 
 
19063
  # We can hardcode non-existant directories.
 
19064
  if test "$hardcode_direct_GCJ" != no &&
 
19065
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19066
     # have to relink, otherwise we might link with an installed library
 
19067
     # when we should be linking with a yet-to-be-installed one
 
19068
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19069
     test "$hardcode_minus_L_GCJ" != no; then
 
19070
    # Linking always hardcodes the temporary library directory.
 
19071
    hardcode_action_GCJ=relink
 
19072
  else
 
19073
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19074
    hardcode_action_GCJ=immediate
 
19075
  fi
 
19076
else
 
19077
  # We cannot hardcode anything, or else we can only hardcode existing
 
19078
  # directories.
 
19079
  hardcode_action_GCJ=unsupported
 
19080
fi
 
19081
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19082
$as_echo "$hardcode_action_GCJ" >&6; }
 
19083
 
 
19084
if test "$hardcode_action_GCJ" = relink; then
 
19085
  # Fast installation is not supported
 
19086
  enable_fast_install=no
 
19087
elif test "$shlibpath_overrides_runpath" = yes ||
 
19088
     test "$enable_shared" = no; then
 
19089
  # Fast installation is not necessary
 
19090
  enable_fast_install=needless
 
19091
fi
 
19092
 
 
19093
 
 
19094
# The else clause should only fire when bootstrapping the
 
19095
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19096
# with your package, and you will get complaints that there are
 
19097
# no rules to generate ltmain.sh.
 
19098
if test -f "$ltmain"; then
 
19099
  # See if we are running on zsh, and set the options which allow our commands through
 
19100
  # without removal of \ escapes.
 
19101
  if test -n "${ZSH_VERSION+set}" ; then
 
19102
    setopt NO_GLOB_SUBST
 
19103
  fi
 
19104
  # Now quote all the things that may contain metacharacters while being
 
19105
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19106
  # variables and quote the copies for generation of the libtool script.
 
19107
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19108
    SED SHELL STRIP \
 
19109
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19110
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19111
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19112
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19113
    lt_cv_sys_global_symbol_to_c_name_address \
 
19114
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19115
    old_postinstall_cmds old_postuninstall_cmds \
 
19116
    compiler_GCJ \
 
19117
    CC_GCJ \
 
19118
    LD_GCJ \
 
19119
    lt_prog_compiler_wl_GCJ \
 
19120
    lt_prog_compiler_pic_GCJ \
 
19121
    lt_prog_compiler_static_GCJ \
 
19122
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19123
    export_dynamic_flag_spec_GCJ \
 
19124
    thread_safe_flag_spec_GCJ \
 
19125
    whole_archive_flag_spec_GCJ \
 
19126
    enable_shared_with_static_runtimes_GCJ \
 
19127
    old_archive_cmds_GCJ \
 
19128
    old_archive_from_new_cmds_GCJ \
 
19129
    predep_objects_GCJ \
 
19130
    postdep_objects_GCJ \
 
19131
    predeps_GCJ \
 
19132
    postdeps_GCJ \
 
19133
    compiler_lib_search_path_GCJ \
 
19134
    compiler_lib_search_dirs_GCJ \
 
19135
    archive_cmds_GCJ \
 
19136
    archive_expsym_cmds_GCJ \
 
19137
    postinstall_cmds_GCJ \
 
19138
    postuninstall_cmds_GCJ \
 
19139
    old_archive_from_expsyms_cmds_GCJ \
 
19140
    allow_undefined_flag_GCJ \
 
19141
    no_undefined_flag_GCJ \
 
19142
    export_symbols_cmds_GCJ \
 
19143
    hardcode_libdir_flag_spec_GCJ \
 
19144
    hardcode_libdir_flag_spec_ld_GCJ \
 
19145
    hardcode_libdir_separator_GCJ \
 
19146
    hardcode_automatic_GCJ \
 
19147
    module_cmds_GCJ \
 
19148
    module_expsym_cmds_GCJ \
 
19149
    lt_cv_prog_compiler_c_o_GCJ \
 
19150
    fix_srcfile_path_GCJ \
 
19151
    exclude_expsyms_GCJ \
 
19152
    include_expsyms_GCJ; do
 
19153
 
 
19154
    case $var in
 
19155
    old_archive_cmds_GCJ | \
 
19156
    old_archive_from_new_cmds_GCJ | \
 
19157
    archive_cmds_GCJ | \
 
19158
    archive_expsym_cmds_GCJ | \
 
19159
    module_cmds_GCJ | \
 
19160
    module_expsym_cmds_GCJ | \
 
19161
    old_archive_from_expsyms_cmds_GCJ | \
 
19162
    export_symbols_cmds_GCJ | \
 
19163
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19164
    postinstall_cmds | postuninstall_cmds | \
 
19165
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19166
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19167
      # Double-quote double-evaled strings.
 
19168
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19169
      ;;
 
19170
    *)
 
19171
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19172
      ;;
 
19173
    esac
 
19174
  done
 
19175
 
 
19176
  case $lt_echo in
 
19177
  *'\$0 --fallback-echo"')
 
19178
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19179
    ;;
 
19180
  esac
 
19181
 
 
19182
cfgfile="$ofile"
 
19183
 
 
19184
  cat <<__EOF__ >> "$cfgfile"
 
19185
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19186
 
 
19187
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19188
 
 
19189
# Shell to use when invoking shell scripts.
 
19190
SHELL=$lt_SHELL
 
19191
 
 
19192
# Whether or not to build shared libraries.
 
19193
build_libtool_libs=$enable_shared
 
19194
 
 
19195
# Whether or not to build static libraries.
 
19196
build_old_libs=$enable_static
 
19197
 
 
19198
# Whether or not to add -lc for building shared libraries.
 
19199
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19200
 
 
19201
# Whether or not to disallow shared libs when runtime libs are static
 
19202
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19203
 
 
19204
# Whether or not to optimize for fast installation.
 
19205
fast_install=$enable_fast_install
 
19206
 
 
19207
# The host system.
 
19208
host_alias=$host_alias
 
19209
host=$host
 
19210
host_os=$host_os
 
19211
 
 
19212
# The build system.
 
19213
build_alias=$build_alias
 
19214
build=$build
 
19215
build_os=$build_os
 
19216
 
 
19217
# An echo program that does not interpret backslashes.
 
19218
echo=$lt_echo
 
19219
 
 
19220
# The archiver.
 
19221
AR=$lt_AR
 
19222
AR_FLAGS=$lt_AR_FLAGS
 
19223
 
 
19224
# A C compiler.
 
19225
LTCC=$lt_LTCC
 
19226
 
 
19227
# LTCC compiler flags.
 
19228
LTCFLAGS=$lt_LTCFLAGS
 
19229
 
 
19230
# A language-specific compiler.
 
19231
CC=$lt_compiler_GCJ
 
19232
 
 
19233
# Is the compiler the GNU C compiler?
 
19234
with_gcc=$GCC_GCJ
 
19235
 
 
19236
# An ERE matcher.
 
19237
EGREP=$lt_EGREP
 
19238
 
 
19239
# The linker used to build libraries.
 
19240
LD=$lt_LD_GCJ
 
19241
 
 
19242
# Whether we need hard or soft links.
 
19243
LN_S=$lt_LN_S
 
19244
 
 
19245
# A BSD-compatible nm program.
 
19246
NM=$lt_NM
 
19247
 
 
19248
# A symbol stripping program
 
19249
STRIP=$lt_STRIP
 
19250
 
 
19251
# Used to examine libraries when file_magic_cmd begins "file"
 
19252
MAGIC_CMD=$MAGIC_CMD
 
19253
 
 
19254
# Used on cygwin: DLL creation program.
 
19255
DLLTOOL="$DLLTOOL"
 
19256
 
 
19257
# Used on cygwin: object dumper.
 
19258
OBJDUMP="$OBJDUMP"
 
19259
 
 
19260
# Used on cygwin: assembler.
 
19261
AS="$AS"
 
19262
 
 
19263
# The name of the directory that contains temporary libtool files.
 
19264
objdir=$objdir
 
19265
 
 
19266
# How to create reloadable object files.
 
19267
reload_flag=$lt_reload_flag
 
19268
reload_cmds=$lt_reload_cmds
 
19269
 
 
19270
# How to pass a linker flag through the compiler.
 
19271
wl=$lt_lt_prog_compiler_wl_GCJ
 
19272
 
 
19273
# Object file suffix (normally "o").
 
19274
objext="$ac_objext"
 
19275
 
 
19276
# Old archive suffix (normally "a").
 
19277
libext="$libext"
 
19278
 
 
19279
# Shared library suffix (normally ".so").
 
19280
shrext_cmds='$shrext_cmds'
 
19281
 
 
19282
# Executable file suffix (normally "").
 
19283
exeext="$exeext"
 
19284
 
 
19285
# Additional compiler flags for building library objects.
 
19286
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19287
pic_mode=$pic_mode
 
19288
 
 
19289
# What is the maximum length of a command?
 
19290
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19291
 
 
19292
# Does compiler simultaneously support -c and -o options?
 
19293
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19294
 
 
19295
# Must we lock files when doing compilation?
 
19296
need_locks=$lt_need_locks
 
19297
 
 
19298
# Do we need the lib prefix for modules?
 
19299
need_lib_prefix=$need_lib_prefix
 
19300
 
 
19301
# Do we need a version for libraries?
 
19302
need_version=$need_version
 
19303
 
 
19304
# Whether dlopen is supported.
 
19305
dlopen_support=$enable_dlopen
 
19306
 
 
19307
# Whether dlopen of programs is supported.
 
19308
dlopen_self=$enable_dlopen_self
 
19309
 
 
19310
# Whether dlopen of statically linked programs is supported.
 
19311
dlopen_self_static=$enable_dlopen_self_static
 
19312
 
 
19313
# Compiler flag to prevent dynamic linking.
 
19314
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19315
 
 
19316
# Compiler flag to turn off builtin functions.
 
19317
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19318
 
 
19319
# Compiler flag to allow reflexive dlopens.
 
19320
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19321
 
 
19322
# Compiler flag to generate shared objects directly from archives.
 
19323
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19324
 
 
19325
# Compiler flag to generate thread-safe objects.
 
19326
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19327
 
 
19328
# Library versioning type.
 
19329
version_type=$version_type
 
19330
 
 
19331
# Format of library name prefix.
 
19332
libname_spec=$lt_libname_spec
 
19333
 
 
19334
# List of archive names.  First name is the real one, the rest are links.
 
19335
# The last name is the one that the linker finds with -lNAME.
 
19336
library_names_spec=$lt_library_names_spec
 
19337
 
 
19338
# The coded name of the library, if different from the real name.
 
19339
soname_spec=$lt_soname_spec
 
19340
 
 
19341
# Commands used to build and install an old-style archive.
 
19342
RANLIB=$lt_RANLIB
 
19343
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19344
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19345
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19346
 
 
19347
# Create an old-style archive from a shared archive.
 
19348
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19349
 
 
19350
# Create a temporary old-style archive to link instead of a shared archive.
 
19351
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19352
 
 
19353
# Commands used to build and install a shared archive.
 
19354
archive_cmds=$lt_archive_cmds_GCJ
 
19355
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19356
postinstall_cmds=$lt_postinstall_cmds
 
19357
postuninstall_cmds=$lt_postuninstall_cmds
 
19358
 
 
19359
# Commands used to build a loadable module (assumed same as above if empty)
 
19360
module_cmds=$lt_module_cmds_GCJ
 
19361
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19362
 
 
19363
# Commands to strip libraries.
 
19364
old_striplib=$lt_old_striplib
 
19365
striplib=$lt_striplib
 
19366
 
 
19367
# Dependencies to place before the objects being linked to create a
 
19368
# shared library.
 
19369
predep_objects=$lt_predep_objects_GCJ
 
19370
 
 
19371
# Dependencies to place after the objects being linked to create a
 
19372
# shared library.
 
19373
postdep_objects=$lt_postdep_objects_GCJ
 
19374
 
 
19375
# Dependencies to place before the objects being linked to create a
 
19376
# shared library.
 
19377
predeps=$lt_predeps_GCJ
 
19378
 
 
19379
# Dependencies to place after the objects being linked to create a
 
19380
# shared library.
 
19381
postdeps=$lt_postdeps_GCJ
 
19382
 
 
19383
# The directories searched by this compiler when creating a shared
 
19384
# library
 
19385
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19386
 
 
19387
# The library search path used internally by the compiler when linking
 
19388
# a shared library.
 
19389
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19390
 
 
19391
# Method to check whether dependent libraries are shared objects.
 
19392
deplibs_check_method=$lt_deplibs_check_method
 
19393
 
 
19394
# Command to use when deplibs_check_method == file_magic.
 
19395
file_magic_cmd=$lt_file_magic_cmd
 
19396
 
 
19397
# Flag that allows shared libraries with undefined symbols to be built.
 
19398
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19399
 
 
19400
# Flag that forces no undefined symbols.
 
19401
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19402
 
 
19403
# Commands used to finish a libtool library installation in a directory.
 
19404
finish_cmds=$lt_finish_cmds
 
19405
 
 
19406
# Same as above, but a single script fragment to be evaled but not shown.
 
19407
finish_eval=$lt_finish_eval
 
19408
 
 
19409
# Take the output of nm and produce a listing of raw symbols and C names.
 
19410
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19411
 
 
19412
# Transform the output of nm in a proper C declaration
 
19413
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19414
 
 
19415
# Transform the output of nm in a C name address pair
 
19416
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19417
 
 
19418
# This is the shared library runtime path variable.
 
19419
runpath_var=$runpath_var
 
19420
 
 
19421
# This is the shared library path variable.
 
19422
shlibpath_var=$shlibpath_var
 
19423
 
 
19424
# Is shlibpath searched before the hard-coded library search path?
 
19425
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19426
 
 
19427
# How to hardcode a shared library path into an executable.
 
19428
hardcode_action=$hardcode_action_GCJ
 
19429
 
 
19430
# Whether we should hardcode library paths into libraries.
 
19431
hardcode_into_libs=$hardcode_into_libs
 
19432
 
 
19433
# Flag to hardcode \$libdir into a binary during linking.
 
19434
# This must work even if \$libdir does not exist.
 
19435
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19436
 
 
19437
# If ld is used when linking, flag to hardcode \$libdir into
 
19438
# a binary during linking. This must work even if \$libdir does
 
19439
# not exist.
 
19440
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19441
 
 
19442
# Whether we need a single -rpath flag with a separated argument.
 
19443
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19444
 
 
19445
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19446
# resulting binary.
 
19447
hardcode_direct=$hardcode_direct_GCJ
 
19448
 
 
19449
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19450
# resulting binary.
 
19451
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19452
 
 
19453
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19454
# the resulting binary.
 
19455
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19456
 
 
19457
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19458
# and all subsequent libraries and executables linked against it.
 
19459
hardcode_automatic=$hardcode_automatic_GCJ
 
19460
 
 
19461
# Variables whose values should be saved in libtool wrapper scripts and
 
19462
# restored at relink time.
 
19463
variables_saved_for_relink="$variables_saved_for_relink"
 
19464
 
 
19465
# Whether libtool must link a program against all its dependency libraries.
 
19466
link_all_deplibs=$link_all_deplibs_GCJ
 
19467
 
 
19468
# Compile-time system search path for libraries
 
19469
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19470
 
 
19471
# Run-time system search path for libraries
 
19472
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19473
 
 
19474
# Fix the shell variable \$srcfile for the compiler.
 
19475
fix_srcfile_path=$lt_fix_srcfile_path
 
19476
 
 
19477
# Set to yes if exported symbols are required.
 
19478
always_export_symbols=$always_export_symbols_GCJ
 
19479
 
 
19480
# The commands to list exported symbols.
 
19481
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19482
 
 
19483
# The commands to extract the exported symbol list from a shared archive.
 
19484
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19485
 
 
19486
# Symbols that should not be listed in the preloaded symbols.
 
19487
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19488
 
 
19489
# Symbols that must always be exported.
 
19490
include_expsyms=$lt_include_expsyms_GCJ
 
19491
 
 
19492
# ### END LIBTOOL TAG CONFIG: $tagname
 
19493
 
 
19494
__EOF__
 
19495
 
 
19496
 
 
19497
else
 
19498
  # If there is no Makefile yet, we rely on a make rule to execute
 
19499
  # `config.status --recheck' to rerun these tests and create the
 
19500
  # libtool script then.
 
19501
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19502
  if test -f "$ltmain_in"; then
 
19503
    test -f Makefile && make "$ltmain"
 
19504
  fi
 
19505
fi
 
19506
 
 
19507
 
 
19508
ac_ext=c
 
19509
ac_cpp='$CPP $CPPFLAGS'
 
19510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19513
 
 
19514
CC="$lt_save_CC"
 
19515
 
 
19516
        else
 
19517
          tagname=""
 
19518
        fi
 
19519
        ;;
 
19520
 
 
19521
      RC)
 
19522
 
 
19523
 
 
19524
# Source file extension for RC test sources.
 
19525
ac_ext=rc
 
19526
 
 
19527
# Object file extension for compiled RC test sources.
 
19528
objext=o
 
19529
objext_RC=$objext
 
19530
 
 
19531
# Code to be used in simple compile tests
 
19532
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19533
 
 
19534
# Code to be used in simple link tests
 
19535
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19536
 
 
19537
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19538
 
 
19539
# If no C compiler was specified, use CC.
 
19540
LTCC=${LTCC-"$CC"}
 
19541
 
 
19542
# If no C compiler flags were specified, use CFLAGS.
 
19543
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19544
 
 
19545
# Allow CC to be a program name with arguments.
 
19546
compiler=$CC
 
19547
 
 
19548
 
 
19549
# save warnings/boilerplate of simple test code
 
19550
ac_outfile=conftest.$ac_objext
 
19551
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19552
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19553
_lt_compiler_boilerplate=`cat conftest.err`
 
19554
$rm conftest*
 
19555
 
 
19556
ac_outfile=conftest.$ac_objext
 
19557
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19558
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19559
_lt_linker_boilerplate=`cat conftest.err`
 
19560
$rm -r conftest*
 
19561
 
 
19562
 
 
19563
# Allow CC to be a program name with arguments.
 
19564
lt_save_CC="$CC"
 
19565
CC=${RC-"windres"}
 
19566
compiler=$CC
 
19567
compiler_RC=$CC
 
19568
for cc_temp in $compiler""; do
 
19569
  case $cc_temp in
 
19570
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19571
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19572
    \-*) ;;
 
19573
    *) break;;
 
19574
  esac
 
19575
done
 
19576
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19577
 
 
19578
lt_cv_prog_compiler_c_o_RC=yes
 
19579
 
 
19580
# The else clause should only fire when bootstrapping the
 
19581
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19582
# with your package, and you will get complaints that there are
 
19583
# no rules to generate ltmain.sh.
 
19584
if test -f "$ltmain"; then
 
19585
  # See if we are running on zsh, and set the options which allow our commands through
 
19586
  # without removal of \ escapes.
 
19587
  if test -n "${ZSH_VERSION+set}" ; then
 
19588
    setopt NO_GLOB_SUBST
 
19589
  fi
 
19590
  # Now quote all the things that may contain metacharacters while being
 
19591
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19592
  # variables and quote the copies for generation of the libtool script.
 
19593
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19594
    SED SHELL STRIP \
 
19595
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19596
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19597
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19598
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19599
    lt_cv_sys_global_symbol_to_c_name_address \
 
19600
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19601
    old_postinstall_cmds old_postuninstall_cmds \
 
19602
    compiler_RC \
 
19603
    CC_RC \
 
19604
    LD_RC \
 
19605
    lt_prog_compiler_wl_RC \
 
19606
    lt_prog_compiler_pic_RC \
 
19607
    lt_prog_compiler_static_RC \
 
19608
    lt_prog_compiler_no_builtin_flag_RC \
 
19609
    export_dynamic_flag_spec_RC \
 
19610
    thread_safe_flag_spec_RC \
 
19611
    whole_archive_flag_spec_RC \
 
19612
    enable_shared_with_static_runtimes_RC \
 
19613
    old_archive_cmds_RC \
 
19614
    old_archive_from_new_cmds_RC \
 
19615
    predep_objects_RC \
 
19616
    postdep_objects_RC \
 
19617
    predeps_RC \
 
19618
    postdeps_RC \
 
19619
    compiler_lib_search_path_RC \
 
19620
    compiler_lib_search_dirs_RC \
 
19621
    archive_cmds_RC \
 
19622
    archive_expsym_cmds_RC \
 
19623
    postinstall_cmds_RC \
 
19624
    postuninstall_cmds_RC \
 
19625
    old_archive_from_expsyms_cmds_RC \
 
19626
    allow_undefined_flag_RC \
 
19627
    no_undefined_flag_RC \
 
19628
    export_symbols_cmds_RC \
 
19629
    hardcode_libdir_flag_spec_RC \
 
19630
    hardcode_libdir_flag_spec_ld_RC \
 
19631
    hardcode_libdir_separator_RC \
 
19632
    hardcode_automatic_RC \
 
19633
    module_cmds_RC \
 
19634
    module_expsym_cmds_RC \
 
19635
    lt_cv_prog_compiler_c_o_RC \
 
19636
    fix_srcfile_path_RC \
 
19637
    exclude_expsyms_RC \
 
19638
    include_expsyms_RC; do
 
19639
 
 
19640
    case $var in
 
19641
    old_archive_cmds_RC | \
 
19642
    old_archive_from_new_cmds_RC | \
 
19643
    archive_cmds_RC | \
 
19644
    archive_expsym_cmds_RC | \
 
19645
    module_cmds_RC | \
 
19646
    module_expsym_cmds_RC | \
 
19647
    old_archive_from_expsyms_cmds_RC | \
 
19648
    export_symbols_cmds_RC | \
 
19649
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19650
    postinstall_cmds | postuninstall_cmds | \
 
19651
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19652
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19653
      # Double-quote double-evaled strings.
 
19654
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19655
      ;;
 
19656
    *)
 
19657
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19658
      ;;
 
19659
    esac
 
19660
  done
 
19661
 
 
19662
  case $lt_echo in
 
19663
  *'\$0 --fallback-echo"')
 
19664
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19665
    ;;
 
19666
  esac
 
19667
 
 
19668
cfgfile="$ofile"
 
19669
 
 
19670
  cat <<__EOF__ >> "$cfgfile"
 
19671
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19672
 
 
19673
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19674
 
 
19675
# Shell to use when invoking shell scripts.
 
19676
SHELL=$lt_SHELL
 
19677
 
 
19678
# Whether or not to build shared libraries.
 
19679
build_libtool_libs=$enable_shared
 
19680
 
 
19681
# Whether or not to build static libraries.
 
19682
build_old_libs=$enable_static
 
19683
 
 
19684
# Whether or not to add -lc for building shared libraries.
 
19685
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19686
 
 
19687
# Whether or not to disallow shared libs when runtime libs are static
 
19688
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19689
 
 
19690
# Whether or not to optimize for fast installation.
 
19691
fast_install=$enable_fast_install
 
19692
 
 
19693
# The host system.
 
19694
host_alias=$host_alias
 
19695
host=$host
 
19696
host_os=$host_os
 
19697
 
 
19698
# The build system.
 
19699
build_alias=$build_alias
 
19700
build=$build
 
19701
build_os=$build_os
 
19702
 
 
19703
# An echo program that does not interpret backslashes.
 
19704
echo=$lt_echo
 
19705
 
 
19706
# The archiver.
 
19707
AR=$lt_AR
 
19708
AR_FLAGS=$lt_AR_FLAGS
 
19709
 
 
19710
# A C compiler.
 
19711
LTCC=$lt_LTCC
 
19712
 
 
19713
# LTCC compiler flags.
 
19714
LTCFLAGS=$lt_LTCFLAGS
 
19715
 
 
19716
# A language-specific compiler.
 
19717
CC=$lt_compiler_RC
 
19718
 
 
19719
# Is the compiler the GNU C compiler?
 
19720
with_gcc=$GCC_RC
 
19721
 
 
19722
# An ERE matcher.
 
19723
EGREP=$lt_EGREP
 
19724
 
 
19725
# The linker used to build libraries.
 
19726
LD=$lt_LD_RC
 
19727
 
 
19728
# Whether we need hard or soft links.
 
19729
LN_S=$lt_LN_S
 
19730
 
 
19731
# A BSD-compatible nm program.
 
19732
NM=$lt_NM
 
19733
 
 
19734
# A symbol stripping program
 
19735
STRIP=$lt_STRIP
 
19736
 
 
19737
# Used to examine libraries when file_magic_cmd begins "file"
 
19738
MAGIC_CMD=$MAGIC_CMD
 
19739
 
 
19740
# Used on cygwin: DLL creation program.
 
19741
DLLTOOL="$DLLTOOL"
 
19742
 
 
19743
# Used on cygwin: object dumper.
 
19744
OBJDUMP="$OBJDUMP"
 
19745
 
 
19746
# Used on cygwin: assembler.
 
19747
AS="$AS"
 
19748
 
 
19749
# The name of the directory that contains temporary libtool files.
 
19750
objdir=$objdir
 
19751
 
 
19752
# How to create reloadable object files.
 
19753
reload_flag=$lt_reload_flag
 
19754
reload_cmds=$lt_reload_cmds
 
19755
 
 
19756
# How to pass a linker flag through the compiler.
 
19757
wl=$lt_lt_prog_compiler_wl_RC
 
19758
 
 
19759
# Object file suffix (normally "o").
 
19760
objext="$ac_objext"
 
19761
 
 
19762
# Old archive suffix (normally "a").
 
19763
libext="$libext"
 
19764
 
 
19765
# Shared library suffix (normally ".so").
 
19766
shrext_cmds='$shrext_cmds'
 
19767
 
 
19768
# Executable file suffix (normally "").
 
19769
exeext="$exeext"
 
19770
 
 
19771
# Additional compiler flags for building library objects.
 
19772
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19773
pic_mode=$pic_mode
 
19774
 
 
19775
# What is the maximum length of a command?
 
19776
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19777
 
 
19778
# Does compiler simultaneously support -c and -o options?
 
19779
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19780
 
 
19781
# Must we lock files when doing compilation?
 
19782
need_locks=$lt_need_locks
 
19783
 
 
19784
# Do we need the lib prefix for modules?
 
19785
need_lib_prefix=$need_lib_prefix
 
19786
 
 
19787
# Do we need a version for libraries?
 
19788
need_version=$need_version
 
19789
 
 
19790
# Whether dlopen is supported.
 
19791
dlopen_support=$enable_dlopen
 
19792
 
 
19793
# Whether dlopen of programs is supported.
 
19794
dlopen_self=$enable_dlopen_self
 
19795
 
 
19796
# Whether dlopen of statically linked programs is supported.
 
19797
dlopen_self_static=$enable_dlopen_self_static
 
19798
 
 
19799
# Compiler flag to prevent dynamic linking.
 
19800
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19801
 
 
19802
# Compiler flag to turn off builtin functions.
 
19803
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19804
 
 
19805
# Compiler flag to allow reflexive dlopens.
 
19806
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19807
 
 
19808
# Compiler flag to generate shared objects directly from archives.
 
19809
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19810
 
 
19811
# Compiler flag to generate thread-safe objects.
 
19812
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19813
 
 
19814
# Library versioning type.
 
19815
version_type=$version_type
 
19816
 
 
19817
# Format of library name prefix.
 
19818
libname_spec=$lt_libname_spec
 
19819
 
 
19820
# List of archive names.  First name is the real one, the rest are links.
 
19821
# The last name is the one that the linker finds with -lNAME.
 
19822
library_names_spec=$lt_library_names_spec
 
19823
 
 
19824
# The coded name of the library, if different from the real name.
 
19825
soname_spec=$lt_soname_spec
 
19826
 
 
19827
# Commands used to build and install an old-style archive.
 
19828
RANLIB=$lt_RANLIB
 
19829
old_archive_cmds=$lt_old_archive_cmds_RC
 
19830
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19831
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19832
 
 
19833
# Create an old-style archive from a shared archive.
 
19834
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19835
 
 
19836
# Create a temporary old-style archive to link instead of a shared archive.
 
19837
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19838
 
 
19839
# Commands used to build and install a shared archive.
 
19840
archive_cmds=$lt_archive_cmds_RC
 
19841
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19842
postinstall_cmds=$lt_postinstall_cmds
 
19843
postuninstall_cmds=$lt_postuninstall_cmds
 
19844
 
 
19845
# Commands used to build a loadable module (assumed same as above if empty)
 
19846
module_cmds=$lt_module_cmds_RC
 
19847
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19848
 
 
19849
# Commands to strip libraries.
 
19850
old_striplib=$lt_old_striplib
 
19851
striplib=$lt_striplib
 
19852
 
 
19853
# Dependencies to place before the objects being linked to create a
 
19854
# shared library.
 
19855
predep_objects=$lt_predep_objects_RC
 
19856
 
 
19857
# Dependencies to place after the objects being linked to create a
 
19858
# shared library.
 
19859
postdep_objects=$lt_postdep_objects_RC
 
19860
 
 
19861
# Dependencies to place before the objects being linked to create a
 
19862
# shared library.
 
19863
predeps=$lt_predeps_RC
 
19864
 
 
19865
# Dependencies to place after the objects being linked to create a
 
19866
# shared library.
 
19867
postdeps=$lt_postdeps_RC
 
19868
 
 
19869
# The directories searched by this compiler when creating a shared
 
19870
# library
 
19871
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19872
 
 
19873
# The library search path used internally by the compiler when linking
 
19874
# a shared library.
 
19875
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19876
 
 
19877
# Method to check whether dependent libraries are shared objects.
 
19878
deplibs_check_method=$lt_deplibs_check_method
 
19879
 
 
19880
# Command to use when deplibs_check_method == file_magic.
 
19881
file_magic_cmd=$lt_file_magic_cmd
 
19882
 
 
19883
# Flag that allows shared libraries with undefined symbols to be built.
 
19884
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19885
 
 
19886
# Flag that forces no undefined symbols.
 
19887
no_undefined_flag=$lt_no_undefined_flag_RC
 
19888
 
 
19889
# Commands used to finish a libtool library installation in a directory.
 
19890
finish_cmds=$lt_finish_cmds
 
19891
 
 
19892
# Same as above, but a single script fragment to be evaled but not shown.
 
19893
finish_eval=$lt_finish_eval
 
19894
 
 
19895
# Take the output of nm and produce a listing of raw symbols and C names.
 
19896
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19897
 
 
19898
# Transform the output of nm in a proper C declaration
 
19899
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19900
 
 
19901
# Transform the output of nm in a C name address pair
 
19902
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19903
 
 
19904
# This is the shared library runtime path variable.
 
19905
runpath_var=$runpath_var
 
19906
 
 
19907
# This is the shared library path variable.
 
19908
shlibpath_var=$shlibpath_var
 
19909
 
 
19910
# Is shlibpath searched before the hard-coded library search path?
 
19911
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19912
 
 
19913
# How to hardcode a shared library path into an executable.
 
19914
hardcode_action=$hardcode_action_RC
 
19915
 
 
19916
# Whether we should hardcode library paths into libraries.
 
19917
hardcode_into_libs=$hardcode_into_libs
 
19918
 
 
19919
# Flag to hardcode \$libdir into a binary during linking.
 
19920
# This must work even if \$libdir does not exist.
 
19921
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19922
 
 
19923
# If ld is used when linking, flag to hardcode \$libdir into
 
19924
# a binary during linking. This must work even if \$libdir does
 
19925
# not exist.
 
19926
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19927
 
 
19928
# Whether we need a single -rpath flag with a separated argument.
 
19929
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19930
 
 
19931
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19932
# resulting binary.
 
19933
hardcode_direct=$hardcode_direct_RC
 
19934
 
 
19935
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19936
# resulting binary.
 
19937
hardcode_minus_L=$hardcode_minus_L_RC
 
19938
 
 
19939
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19940
# the resulting binary.
 
19941
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19942
 
 
19943
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19944
# and all subsequent libraries and executables linked against it.
 
19945
hardcode_automatic=$hardcode_automatic_RC
 
19946
 
 
19947
# Variables whose values should be saved in libtool wrapper scripts and
 
19948
# restored at relink time.
 
19949
variables_saved_for_relink="$variables_saved_for_relink"
 
19950
 
 
19951
# Whether libtool must link a program against all its dependency libraries.
 
19952
link_all_deplibs=$link_all_deplibs_RC
 
19953
 
 
19954
# Compile-time system search path for libraries
 
19955
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19956
 
 
19957
# Run-time system search path for libraries
 
19958
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19959
 
 
19960
# Fix the shell variable \$srcfile for the compiler.
 
19961
fix_srcfile_path=$lt_fix_srcfile_path
 
19962
 
 
19963
# Set to yes if exported symbols are required.
 
19964
always_export_symbols=$always_export_symbols_RC
 
19965
 
 
19966
# The commands to list exported symbols.
 
19967
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19968
 
 
19969
# The commands to extract the exported symbol list from a shared archive.
 
19970
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19971
 
 
19972
# Symbols that should not be listed in the preloaded symbols.
 
19973
exclude_expsyms=$lt_exclude_expsyms_RC
 
19974
 
 
19975
# Symbols that must always be exported.
 
19976
include_expsyms=$lt_include_expsyms_RC
 
19977
 
 
19978
# ### END LIBTOOL TAG CONFIG: $tagname
 
19979
 
 
19980
__EOF__
 
19981
 
 
19982
 
 
19983
else
 
19984
  # If there is no Makefile yet, we rely on a make rule to execute
 
19985
  # `config.status --recheck' to rerun these tests and create the
 
19986
  # libtool script then.
 
19987
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19988
  if test -f "$ltmain_in"; then
 
19989
    test -f Makefile && make "$ltmain"
 
19990
  fi
 
19991
fi
 
19992
 
 
19993
 
 
19994
ac_ext=c
 
19995
ac_cpp='$CPP $CPPFLAGS'
 
19996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19999
 
 
20000
CC="$lt_save_CC"
 
20001
 
 
20002
        ;;
 
20003
 
 
20004
      *)
 
20005
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20006
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20007
   { (exit 1); exit 1; }; }
 
20008
        ;;
 
20009
      esac
 
20010
 
 
20011
      # Append the new tag name to the list of available tags.
 
20012
      if test -n "$tagname" ; then
 
20013
      available_tags="$available_tags $tagname"
 
20014
    fi
 
20015
    fi
 
20016
  done
 
20017
  IFS="$lt_save_ifs"
 
20018
 
 
20019
  # Now substitute the updated list of available tags.
 
20020
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20021
    mv "${ofile}T" "$ofile"
 
20022
    chmod +x "$ofile"
 
20023
  else
 
20024
    rm -f "${ofile}T"
 
20025
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20026
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20027
   { (exit 1); exit 1; }; }
 
20028
  fi
 
20029
fi
 
20030
 
 
20031
 
 
20032
 
 
20033
# This can be used to rebuild libtool when needed
 
20034
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20035
 
 
20036
# Always use our own libtool.
 
20037
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20038
 
 
20039
# Prevent multiple expansion
 
20040
 
 
20041
 
 
20042
 
 
20043
 
 
20044
 
 
20045
 
 
20046
 
 
20047
 
 
20048
 
 
20049
 
 
20050
 
 
20051
 
 
20052
 
 
20053
 
 
20054
 
 
20055
 
 
20056
 
 
20057
 
11089
20058
 
11090
20059
 
11091
20060
ac_ext=c
11801
20770
  if test "$am_compiler_list" = ""; then
11802
20771
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11803
20772
  fi
 
20773
  am__universal=false
 
20774
  case " $depcc " in #(
 
20775
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
20776
     esac
 
20777
 
11804
20778
  for depmode in $am_compiler_list; do
11805
20779
    # Setup a source with many dependencies, because some compilers
11806
20780
    # like to wrap large dependency lists on column 80 (with \), and
11818
20792
    done
11819
20793
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11820
20794
 
 
20795
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
20796
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
20797
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
20798
    # versions had trouble with output in subdirs
 
20799
    am__obj=sub/conftest.${OBJEXT-o}
 
20800
    am__minus_obj="-o $am__obj"
11821
20801
    case $depmode in
 
20802
    gcc)
 
20803
      # This depmode causes a compiler race in universal mode.
 
20804
      test "$am__universal" = false || continue
 
20805
      ;;
11822
20806
    nosideeffect)
11823
20807
      # after this tag, mechanisms are not by side-effect, so they'll
11824
20808
      # only be used when explicitly requested
11828
20812
        break
11829
20813
      fi
11830
20814
      ;;
 
20815
    msvisualcpp | msvcmsys)
 
20816
      # This compiler won't grok `-c -o', but also, the minuso test has
 
20817
      # not run yet.  These depmodes are late enough in the game, and
 
20818
      # so weak that their functioning should not be impacted.
 
20819
      am__obj=conftest.${OBJEXT-o}
 
20820
      am__minus_obj=
 
20821
      ;;
11831
20822
    none) break ;;
11832
20823
    esac
11833
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11834
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
11835
 
    # handle `-M -o', and we need to detect this.
11836
20824
    if depmode=$depmode \
11837
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
20825
       source=sub/conftest.c object=$am__obj \
11838
20826
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11839
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
20827
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11840
20828
         >/dev/null 2>conftest.err &&
11841
20829
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11842
20830
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11843
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
20831
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11844
20832
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11845
20833
      # icc doesn't choke on unknown options, it will just issue warnings
11846
20834
      # or remarks (even with -Werror).  So we grep stderr for any message
12364
21352
$as_echo "yes" >&6; }
12365
21353
        :
12366
21354
fi
 
21355
 
 
21356
pkg_failed=no
 
21357
{ $as_echo "$as_me:$LINENO: checking for XEXT" >&5
 
21358
$as_echo_n "checking for XEXT... " >&6; }
 
21359
 
 
21360
if test -n "$XEXT_CFLAGS"; then
 
21361
    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
 
21362
 elif test -n "$PKG_CONFIG"; then
 
21363
    if test -n "$PKG_CONFIG" && \
 
21364
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
 
21365
  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
 
21366
  ac_status=$?
 
21367
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21368
  (exit $ac_status); }; then
 
21369
  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
 
21370
else
 
21371
  pkg_failed=yes
 
21372
fi
 
21373
 else
 
21374
    pkg_failed=untried
 
21375
fi
 
21376
if test -n "$XEXT_LIBS"; then
 
21377
    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
 
21378
 elif test -n "$PKG_CONFIG"; then
 
21379
    if test -n "$PKG_CONFIG" && \
 
21380
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
 
21381
  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
 
21382
  ac_status=$?
 
21383
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21384
  (exit $ac_status); }; then
 
21385
  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
 
21386
else
 
21387
  pkg_failed=yes
 
21388
fi
 
21389
 else
 
21390
    pkg_failed=untried
 
21391
fi
 
21392
 
 
21393
 
 
21394
 
 
21395
if test $pkg_failed = yes; then
 
21396
 
 
21397
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21398
        _pkg_short_errors_supported=yes
 
21399
else
 
21400
        _pkg_short_errors_supported=no
 
21401
fi
 
21402
        if test $_pkg_short_errors_supported = yes; then
 
21403
                XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
 
21404
        else
 
21405
                XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
 
21406
        fi
 
21407
        # Put the nasty error message in config.log where it belongs
 
21408
        echo "$XEXT_PKG_ERRORS" >&5
 
21409
 
 
21410
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
21411
$as_echo "no" >&6; }
 
21412
                HAVE_XEXTPROTO_71="no"
 
21413
elif test $pkg_failed = untried; then
 
21414
        HAVE_XEXTPROTO_71="no"
 
21415
else
 
21416
        XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
 
21417
        XEXT_LIBS=$pkg_cv_XEXT_LIBS
 
21418
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21419
$as_echo "yes" >&6; }
 
21420
        HAVE_XEXTPROTO_71="yes";
 
21421
cat >>confdefs.h <<\_ACEOF
 
21422
#define HAVE_XEXTPROTO_71 1
 
21423
_ACEOF
 
21424
 
 
21425
fi
 
21426
 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
 
21427
  HAVE_XEXTPROTO_71_TRUE=
 
21428
  HAVE_XEXTPROTO_71_FALSE='#'
 
21429
else
 
21430
  HAVE_XEXTPROTO_71_TRUE='#'
 
21431
  HAVE_XEXTPROTO_71_FALSE=
 
21432
fi
 
21433
 
12367
21434
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
12368
21435
 
12369
21436
# Checks for libraries.
13242
22309
LTLIBOBJS=$ac_ltlibobjs
13243
22310
 
13244
22311
 
 
22312
 if test -n "$EXEEXT"; then
 
22313
  am__EXEEXT_TRUE=
 
22314
  am__EXEEXT_FALSE='#'
 
22315
else
 
22316
  am__EXEEXT_TRUE='#'
 
22317
  am__EXEEXT_FALSE=
 
22318
fi
 
22319
 
13245
22320
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13246
22321
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13247
22322
Usually this means the macro was only invoked conditionally." >&5
13263
22338
Usually this means the macro was only invoked conditionally." >&2;}
13264
22339
   { (exit 1); exit 1; }; }
13265
22340
fi
 
22341
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22342
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22343
Usually this means the macro was only invoked conditionally." >&5
 
22344
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22345
Usually this means the macro was only invoked conditionally." >&2;}
 
22346
   { (exit 1); exit 1; }; }
 
22347
fi
13266
22348
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13267
22349
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13268
22350
Usually this means the macro was only invoked conditionally." >&5
13270
22352
Usually this means the macro was only invoked conditionally." >&2;}
13271
22353
   { (exit 1); exit 1; }; }
13272
22354
fi
 
22355
if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
 
22356
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
 
22357
Usually this means the macro was only invoked conditionally." >&5
 
22358
$as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
 
22359
Usually this means the macro was only invoked conditionally." >&2;}
 
22360
   { (exit 1); exit 1; }; }
 
22361
fi
13273
22362
if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
13274
22363
  { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
13275
22364
Usually this means the macro was only invoked conditionally." >&5
13606
22695
# report actual input values of CONFIG_FILES etc. instead of their
13607
22696
# values after options handling.
13608
22697
ac_log="
13609
 
This file was extended by xf86-video-savage $as_me 2.3.0, which was
 
22698
This file was extended by xf86-video-savage $as_me 2.3.1, which was
13610
22699
generated by GNU Autoconf 2.63.  Invocation command line was
13611
22700
 
13612
22701
  CONFIG_FILES    = $CONFIG_FILES
13669
22758
_ACEOF
13670
22759
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671
22760
ac_cs_version="\\
13672
 
xf86-video-savage config.status 2.3.0
 
22761
xf86-video-savage config.status 2.3.1
13673
22762
configured by $0, generated by GNU Autoconf 2.63,
13674
22763
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13675
22764
 
13784
22873
#
13785
22874
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13786
22875
 
13787
 
 
13788
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
13789
 
# if CDPATH is set.
13790
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13791
 
 
13792
 
sed_quote_subst='$sed_quote_subst'
13793
 
double_quote_subst='$double_quote_subst'
13794
 
delay_variable_subst='$delay_variable_subst'
13795
 
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13796
 
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13797
 
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13798
 
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13799
 
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13800
 
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13801
 
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13802
 
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13803
 
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13804
 
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13805
 
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13806
 
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13807
 
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13808
 
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13809
 
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13810
 
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13811
 
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13812
 
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13813
 
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13814
 
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13815
 
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13816
 
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13817
 
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13818
 
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13819
 
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13820
 
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13821
 
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13822
 
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13823
 
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13824
 
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13825
 
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13826
 
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13827
 
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13828
 
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13829
 
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13830
 
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13831
 
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13832
 
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13833
 
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13834
 
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13835
 
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13836
 
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13837
 
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13838
 
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13839
 
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"`'
13840
 
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"`'
13841
 
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13842
 
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13843
 
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13844
 
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13845
 
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13846
 
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13847
 
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13848
 
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13849
 
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13850
 
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13851
 
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13852
 
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13853
 
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13854
 
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13855
 
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13856
 
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13857
 
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13858
 
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13859
 
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13860
 
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13861
 
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13862
 
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13863
 
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13864
 
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13865
 
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13866
 
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13867
 
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13868
 
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13869
 
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13870
 
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13871
 
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13872
 
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13873
 
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13874
 
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13875
 
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13876
 
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13877
 
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13878
 
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13879
 
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13880
 
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13881
 
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13882
 
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13883
 
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13884
 
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13885
 
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13886
 
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13887
 
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13888
 
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13889
 
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13890
 
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13891
 
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13892
 
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13893
 
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13894
 
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13895
 
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13896
 
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13897
 
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13898
 
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13899
 
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13900
 
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13901
 
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13902
 
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13903
 
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13904
 
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13905
 
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13906
 
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13907
 
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13908
 
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13909
 
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13910
 
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13911
 
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13912
 
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13913
 
 
13914
 
LTCC='$LTCC'
13915
 
LTCFLAGS='$LTCFLAGS'
13916
 
compiler='$compiler_DEFAULT'
13917
 
 
13918
 
# Quote evaled strings.
13919
 
for var in SED \
13920
 
GREP \
13921
 
EGREP \
13922
 
FGREP \
13923
 
LD \
13924
 
NM \
13925
 
LN_S \
13926
 
lt_SP2NL \
13927
 
lt_NL2SP \
13928
 
reload_flag \
13929
 
OBJDUMP \
13930
 
deplibs_check_method \
13931
 
file_magic_cmd \
13932
 
AR \
13933
 
AR_FLAGS \
13934
 
STRIP \
13935
 
RANLIB \
13936
 
CC \
13937
 
CFLAGS \
13938
 
compiler \
13939
 
lt_cv_sys_global_symbol_pipe \
13940
 
lt_cv_sys_global_symbol_to_cdecl \
13941
 
lt_cv_sys_global_symbol_to_c_name_address \
13942
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13943
 
SHELL \
13944
 
ECHO \
13945
 
lt_prog_compiler_no_builtin_flag \
13946
 
lt_prog_compiler_wl \
13947
 
lt_prog_compiler_pic \
13948
 
lt_prog_compiler_static \
13949
 
lt_cv_prog_compiler_c_o \
13950
 
need_locks \
13951
 
DSYMUTIL \
13952
 
NMEDIT \
13953
 
LIPO \
13954
 
OTOOL \
13955
 
OTOOL64 \
13956
 
shrext_cmds \
13957
 
export_dynamic_flag_spec \
13958
 
whole_archive_flag_spec \
13959
 
compiler_needs_object \
13960
 
with_gnu_ld \
13961
 
allow_undefined_flag \
13962
 
no_undefined_flag \
13963
 
hardcode_libdir_flag_spec \
13964
 
hardcode_libdir_flag_spec_ld \
13965
 
hardcode_libdir_separator \
13966
 
fix_srcfile_path \
13967
 
exclude_expsyms \
13968
 
include_expsyms \
13969
 
file_list_spec \
13970
 
variables_saved_for_relink \
13971
 
libname_spec \
13972
 
library_names_spec \
13973
 
soname_spec \
13974
 
finish_eval \
13975
 
old_striplib \
13976
 
striplib; do
13977
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13978
 
    *[\\\\\\\`\\"\\\$]*)
13979
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13980
 
      ;;
13981
 
    *)
13982
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13983
 
      ;;
13984
 
    esac
13985
 
done
13986
 
 
13987
 
# Double-quote double-evaled strings.
13988
 
for var in reload_cmds \
13989
 
old_postinstall_cmds \
13990
 
old_postuninstall_cmds \
13991
 
old_archive_cmds \
13992
 
extract_expsyms_cmds \
13993
 
old_archive_from_new_cmds \
13994
 
old_archive_from_expsyms_cmds \
13995
 
archive_cmds \
13996
 
archive_expsym_cmds \
13997
 
module_cmds \
13998
 
module_expsym_cmds \
13999
 
export_symbols_cmds \
14000
 
prelink_cmds \
14001
 
postinstall_cmds \
14002
 
postuninstall_cmds \
14003
 
finish_cmds \
14004
 
sys_lib_search_path_spec \
14005
 
sys_lib_dlsearch_path_spec; do
14006
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14007
 
    *[\\\\\\\`\\"\\\$]*)
14008
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14009
 
      ;;
14010
 
    *)
14011
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14012
 
      ;;
14013
 
    esac
14014
 
done
14015
 
 
14016
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
14017
 
case \$lt_ECHO in
14018
 
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14019
 
  ;;
14020
 
esac
14021
 
 
14022
 
ac_aux_dir='$ac_aux_dir'
14023
 
xsi_shell='$xsi_shell'
14024
 
lt_shell_append='$lt_shell_append'
14025
 
 
14026
 
# See if we are running on zsh, and set the options which allow our
14027
 
# commands through without removal of \ escapes INIT.
14028
 
if test -n "\${ZSH_VERSION+set}" ; then
14029
 
   setopt NO_GLOB_SUBST
14030
 
fi
14031
 
 
14032
 
 
14033
 
    PACKAGE='$PACKAGE'
14034
 
    VERSION='$VERSION'
14035
 
    TIMESTAMP='$TIMESTAMP'
14036
 
    RM='$RM'
14037
 
    ofile='$ofile'
14038
 
 
14039
 
 
14040
 
 
14041
 
 
14042
22876
_ACEOF
14043
22877
 
14044
22878
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14049
22883
  case $ac_config_target in
14050
22884
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14051
22885
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14052
 
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14053
22886
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14054
22887
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14055
22888
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14707
23540
 
14708
23541
 
14709
23542
  case $ac_file$ac_mode in
14710
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14711
 
# are listed without --file.  Let's play safe and only enable the eval
14712
 
# if we detect the quoting.
14713
 
case $CONFIG_FILES in
14714
 
*\'*) eval set x "$CONFIG_FILES" ;;
14715
 
*)   set x $CONFIG_FILES ;;
14716
 
esac
14717
 
shift
14718
 
for mf
14719
 
do
14720
 
  # Strip MF so we end up with the name of the file.
14721
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
14722
 
  # Check whether this is an Automake generated Makefile or not.
14723
 
  # We used to match only the files named `Makefile.in', but
14724
 
  # some people rename them; so instead we look at the file content.
14725
 
  # Grep'ing the first line is not enough: some people post-process
14726
 
  # each Makefile.in and add a new line on top of each file to say so.
14727
 
  # Grep'ing the whole file is not good either: AIX grep has a line
14728
 
  # limit of 2048, but all sed's we know have understand at least 4000.
14729
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14730
 
    dirpart=`$as_dirname -- "$mf" ||
 
23543
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
23544
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
23545
  # are listed without --file.  Let's play safe and only enable the eval
 
23546
  # if we detect the quoting.
 
23547
  case $CONFIG_FILES in
 
23548
  *\'*) eval set x "$CONFIG_FILES" ;;
 
23549
  *)   set x $CONFIG_FILES ;;
 
23550
  esac
 
23551
  shift
 
23552
  for mf
 
23553
  do
 
23554
    # Strip MF so we end up with the name of the file.
 
23555
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23556
    # Check whether this is an Automake generated Makefile or not.
 
23557
    # We used to match only the files named `Makefile.in', but
 
23558
    # some people rename them; so instead we look at the file content.
 
23559
    # Grep'ing the first line is not enough: some people post-process
 
23560
    # each Makefile.in and add a new line on top of each file to say so.
 
23561
    # Grep'ing the whole file is not good either: AIX grep has a line
 
23562
    # limit of 2048, but all sed's we know have understand at least 4000.
 
23563
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
23564
      dirpart=`$as_dirname -- "$mf" ||
14731
23565
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14732
23566
         X"$mf" : 'X\(//\)[^/]' \| \
14733
23567
         X"$mf" : 'X\(//\)$' \| \
14750
23584
            q
14751
23585
          }
14752
23586
          s/.*/./; q'`
14753
 
  else
14754
 
    continue
14755
 
  fi
14756
 
  # Extract the definition of DEPDIR, am__include, and am__quote
14757
 
  # from the Makefile without running `make'.
14758
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14759
 
  test -z "$DEPDIR" && continue
14760
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
14761
 
  test -z "am__include" && continue
14762
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14763
 
  # When using ansi2knr, U may be empty or an underscore; expand it
14764
 
  U=`sed -n 's/^U = //p' < "$mf"`
14765
 
  # Find all dependency output files, they are included files with
14766
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
14767
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
14768
 
  # expansion.
14769
 
  for file in `sed -n "
14770
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14771
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14772
 
    # Make sure the directory exists.
14773
 
    test -f "$dirpart/$file" && continue
14774
 
    fdir=`$as_dirname -- "$file" ||
 
23587
    else
 
23588
      continue
 
23589
    fi
 
23590
    # Extract the definition of DEPDIR, am__include, and am__quote
 
23591
    # from the Makefile without running `make'.
 
23592
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23593
    test -z "$DEPDIR" && continue
 
23594
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23595
    test -z "am__include" && continue
 
23596
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23597
    # When using ansi2knr, U may be empty or an underscore; expand it
 
23598
    U=`sed -n 's/^U = //p' < "$mf"`
 
23599
    # Find all dependency output files, they are included files with
 
23600
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23601
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
23602
    # expansion.
 
23603
    for file in `sed -n "
 
23604
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23605
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23606
      # Make sure the directory exists.
 
23607
      test -f "$dirpart/$file" && continue
 
23608
      fdir=`$as_dirname -- "$file" ||
14775
23609
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14776
23610
         X"$file" : 'X\(//\)[^/]' \| \
14777
23611
         X"$file" : 'X\(//\)$' \| \
14794
23628
            q
14795
23629
          }
14796
23630
          s/.*/./; q'`
14797
 
    { as_dir=$dirpart/$fdir
 
23631
      { as_dir=$dirpart/$fdir
14798
23632
  case $as_dir in #(
14799
23633
  -*) as_dir=./$as_dir;;
14800
23634
  esac
14835
23669
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14836
23670
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14837
23671
   { (exit 1); exit 1; }; }; }
14838
 
    # echo "creating $dirpart/$file"
14839
 
    echo '# dummy' > "$dirpart/$file"
 
23672
      # echo "creating $dirpart/$file"
 
23673
      echo '# dummy' > "$dirpart/$file"
 
23674
    done
14840
23675
  done
14841
 
done
14842
 
 ;;
14843
 
    "libtool":C)
14844
 
 
14845
 
    # See if we are running on zsh, and set the options which allow our
14846
 
    # commands through without removal of \ escapes.
14847
 
    if test -n "${ZSH_VERSION+set}" ; then
14848
 
      setopt NO_GLOB_SUBST
14849
 
    fi
14850
 
 
14851
 
    cfgfile="${ofile}T"
14852
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14853
 
    $RM "$cfgfile"
14854
 
 
14855
 
    cat <<_LT_EOF >> "$cfgfile"
14856
 
#! $SHELL
14857
 
 
14858
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14859
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14860
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14861
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14862
 
#
14863
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14864
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14865
 
#   Written by Gordon Matzigkeit, 1996
14866
 
#
14867
 
#   This file is part of GNU Libtool.
14868
 
#
14869
 
# GNU Libtool is free software; you can redistribute it and/or
14870
 
# modify it under the terms of the GNU General Public License as
14871
 
# published by the Free Software Foundation; either version 2 of
14872
 
# the License, or (at your option) any later version.
14873
 
#
14874
 
# As a special exception to the GNU General Public License,
14875
 
# if you distribute this file as part of a program or library that
14876
 
# is built using GNU Libtool, you may include this file under the
14877
 
# same distribution terms that you use for the rest of that program.
14878
 
#
14879
 
# GNU Libtool is distributed in the hope that it will be useful,
14880
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14881
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14882
 
# GNU General Public License for more details.
14883
 
#
14884
 
# You should have received a copy of the GNU General Public License
14885
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
14886
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14887
 
# obtained by writing to the Free Software Foundation, Inc.,
14888
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14889
 
 
14890
 
 
14891
 
# The names of the tagged configurations supported by this script.
14892
 
available_tags=""
14893
 
 
14894
 
# ### BEGIN LIBTOOL CONFIG
14895
 
 
14896
 
# Whether or not to build static libraries.
14897
 
build_old_libs=$enable_static
14898
 
 
14899
 
# Which release of libtool.m4 was used?
14900
 
macro_version=$macro_version
14901
 
macro_revision=$macro_revision
14902
 
 
14903
 
# Whether or not to build shared libraries.
14904
 
build_libtool_libs=$enable_shared
14905
 
 
14906
 
# What type of objects to build.
14907
 
pic_mode=$pic_mode
14908
 
 
14909
 
# Whether or not to optimize for fast installation.
14910
 
fast_install=$enable_fast_install
14911
 
 
14912
 
# The host system.
14913
 
host_alias=$host_alias
14914
 
host=$host
14915
 
host_os=$host_os
14916
 
 
14917
 
# The build system.
14918
 
build_alias=$build_alias
14919
 
build=$build
14920
 
build_os=$build_os
14921
 
 
14922
 
# A sed program that does not truncate output.
14923
 
SED=$lt_SED
14924
 
 
14925
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14926
 
Xsed="\$SED -e 1s/^X//"
14927
 
 
14928
 
# A grep program that handles long lines.
14929
 
GREP=$lt_GREP
14930
 
 
14931
 
# An ERE matcher.
14932
 
EGREP=$lt_EGREP
14933
 
 
14934
 
# A literal string matcher.
14935
 
FGREP=$lt_FGREP
14936
 
 
14937
 
# A BSD- or MS-compatible name lister.
14938
 
NM=$lt_NM
14939
 
 
14940
 
# Whether we need soft or hard links.
14941
 
LN_S=$lt_LN_S
14942
 
 
14943
 
# What is the maximum length of a command?
14944
 
max_cmd_len=$max_cmd_len
14945
 
 
14946
 
# Object file suffix (normally "o").
14947
 
objext=$ac_objext
14948
 
 
14949
 
# Executable file suffix (normally "").
14950
 
exeext=$exeext
14951
 
 
14952
 
# whether the shell understands "unset".
14953
 
lt_unset=$lt_unset
14954
 
 
14955
 
# turn spaces into newlines.
14956
 
SP2NL=$lt_lt_SP2NL
14957
 
 
14958
 
# turn newlines into spaces.
14959
 
NL2SP=$lt_lt_NL2SP
14960
 
 
14961
 
# How to create reloadable object files.
14962
 
reload_flag=$lt_reload_flag
14963
 
reload_cmds=$lt_reload_cmds
14964
 
 
14965
 
# An object symbol dumper.
14966
 
OBJDUMP=$lt_OBJDUMP
14967
 
 
14968
 
# Method to check whether dependent libraries are shared objects.
14969
 
deplibs_check_method=$lt_deplibs_check_method
14970
 
 
14971
 
# Command to use when deplibs_check_method == "file_magic".
14972
 
file_magic_cmd=$lt_file_magic_cmd
14973
 
 
14974
 
# The archiver.
14975
 
AR=$lt_AR
14976
 
AR_FLAGS=$lt_AR_FLAGS
14977
 
 
14978
 
# A symbol stripping program.
14979
 
STRIP=$lt_STRIP
14980
 
 
14981
 
# Commands used to install an old-style archive.
14982
 
RANLIB=$lt_RANLIB
14983
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14984
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14985
 
 
14986
 
# A C compiler.
14987
 
LTCC=$lt_CC
14988
 
 
14989
 
# LTCC compiler flags.
14990
 
LTCFLAGS=$lt_CFLAGS
14991
 
 
14992
 
# Take the output of nm and produce a listing of raw symbols and C names.
14993
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14994
 
 
14995
 
# Transform the output of nm in a proper C declaration.
14996
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14997
 
 
14998
 
# Transform the output of nm in a C name address pair.
14999
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15000
 
 
15001
 
# Transform the output of nm in a C name address pair when lib prefix is needed.
15002
 
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15003
 
 
15004
 
# The name of the directory that contains temporary libtool files.
15005
 
objdir=$objdir
15006
 
 
15007
 
# Shell to use when invoking shell scripts.
15008
 
SHELL=$lt_SHELL
15009
 
 
15010
 
# An echo program that does not interpret backslashes.
15011
 
ECHO=$lt_ECHO
15012
 
 
15013
 
# Used to examine libraries when file_magic_cmd begins with "file".
15014
 
MAGIC_CMD=$MAGIC_CMD
15015
 
 
15016
 
# Must we lock files when doing compilation?
15017
 
need_locks=$lt_need_locks
15018
 
 
15019
 
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15020
 
DSYMUTIL=$lt_DSYMUTIL
15021
 
 
15022
 
# Tool to change global to local symbols on Mac OS X.
15023
 
NMEDIT=$lt_NMEDIT
15024
 
 
15025
 
# Tool to manipulate fat objects and archives on Mac OS X.
15026
 
LIPO=$lt_LIPO
15027
 
 
15028
 
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15029
 
OTOOL=$lt_OTOOL
15030
 
 
15031
 
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15032
 
OTOOL64=$lt_OTOOL64
15033
 
 
15034
 
# Old archive suffix (normally "a").
15035
 
libext=$libext
15036
 
 
15037
 
# Shared library suffix (normally ".so").
15038
 
shrext_cmds=$lt_shrext_cmds
15039
 
 
15040
 
# The commands to extract the exported symbol list from a shared archive.
15041
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15042
 
 
15043
 
# Variables whose values should be saved in libtool wrapper scripts and
15044
 
# restored at link time.
15045
 
variables_saved_for_relink=$lt_variables_saved_for_relink
15046
 
 
15047
 
# Do we need the "lib" prefix for modules?
15048
 
need_lib_prefix=$need_lib_prefix
15049
 
 
15050
 
# Do we need a version for libraries?
15051
 
need_version=$need_version
15052
 
 
15053
 
# Library versioning type.
15054
 
version_type=$version_type
15055
 
 
15056
 
# Shared library runtime path variable.
15057
 
runpath_var=$runpath_var
15058
 
 
15059
 
# Shared library path variable.
15060
 
shlibpath_var=$shlibpath_var
15061
 
 
15062
 
# Is shlibpath searched before the hard-coded library search path?
15063
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15064
 
 
15065
 
# Format of library name prefix.
15066
 
libname_spec=$lt_libname_spec
15067
 
 
15068
 
# List of archive names.  First name is the real one, the rest are links.
15069
 
# The last name is the one that the linker finds with -lNAME
15070
 
library_names_spec=$lt_library_names_spec
15071
 
 
15072
 
# The coded name of the library, if different from the real name.
15073
 
soname_spec=$lt_soname_spec
15074
 
 
15075
 
# Command to use after installation of a shared archive.
15076
 
postinstall_cmds=$lt_postinstall_cmds
15077
 
 
15078
 
# Command to use after uninstallation of a shared archive.
15079
 
postuninstall_cmds=$lt_postuninstall_cmds
15080
 
 
15081
 
# Commands used to finish a libtool library installation in a directory.
15082
 
finish_cmds=$lt_finish_cmds
15083
 
 
15084
 
# As "finish_cmds", except a single script fragment to be evaled but
15085
 
# not shown.
15086
 
finish_eval=$lt_finish_eval
15087
 
 
15088
 
# Whether we should hardcode library paths into libraries.
15089
 
hardcode_into_libs=$hardcode_into_libs
15090
 
 
15091
 
# Compile-time system search path for libraries.
15092
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15093
 
 
15094
 
# Run-time system search path for libraries.
15095
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15096
 
 
15097
 
# Whether dlopen is supported.
15098
 
dlopen_support=$enable_dlopen
15099
 
 
15100
 
# Whether dlopen of programs is supported.
15101
 
dlopen_self=$enable_dlopen_self
15102
 
 
15103
 
# Whether dlopen of statically linked programs is supported.
15104
 
dlopen_self_static=$enable_dlopen_self_static
15105
 
 
15106
 
# Commands to strip libraries.
15107
 
old_striplib=$lt_old_striplib
15108
 
striplib=$lt_striplib
15109
 
 
15110
 
 
15111
 
# The linker used to build libraries.
15112
 
LD=$lt_LD
15113
 
 
15114
 
# Commands used to build an old-style archive.
15115
 
old_archive_cmds=$lt_old_archive_cmds
15116
 
 
15117
 
# A language specific compiler.
15118
 
CC=$lt_compiler
15119
 
 
15120
 
# Is the compiler the GNU compiler?
15121
 
with_gcc=$GCC
15122
 
 
15123
 
# Compiler flag to turn off builtin functions.
15124
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15125
 
 
15126
 
# How to pass a linker flag through the compiler.
15127
 
wl=$lt_lt_prog_compiler_wl
15128
 
 
15129
 
# Additional compiler flags for building library objects.
15130
 
pic_flag=$lt_lt_prog_compiler_pic
15131
 
 
15132
 
# Compiler flag to prevent dynamic linking.
15133
 
link_static_flag=$lt_lt_prog_compiler_static
15134
 
 
15135
 
# Does compiler simultaneously support -c and -o options?
15136
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15137
 
 
15138
 
# Whether or not to add -lc for building shared libraries.
15139
 
build_libtool_need_lc=$archive_cmds_need_lc
15140
 
 
15141
 
# Whether or not to disallow shared libs when runtime libs are static.
15142
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15143
 
 
15144
 
# Compiler flag to allow reflexive dlopens.
15145
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15146
 
 
15147
 
# Compiler flag to generate shared objects directly from archives.
15148
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15149
 
 
15150
 
# Whether the compiler copes with passing no objects directly.
15151
 
compiler_needs_object=$lt_compiler_needs_object
15152
 
 
15153
 
# Create an old-style archive from a shared archive.
15154
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15155
 
 
15156
 
# Create a temporary old-style archive to link instead of a shared archive.
15157
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15158
 
 
15159
 
# Commands used to build a shared archive.
15160
 
archive_cmds=$lt_archive_cmds
15161
 
archive_expsym_cmds=$lt_archive_expsym_cmds
15162
 
 
15163
 
# Commands used to build a loadable module if different from building
15164
 
# a shared archive.
15165
 
module_cmds=$lt_module_cmds
15166
 
module_expsym_cmds=$lt_module_expsym_cmds
15167
 
 
15168
 
# Whether we are building with GNU ld or not.
15169
 
with_gnu_ld=$lt_with_gnu_ld
15170
 
 
15171
 
# Flag that allows shared libraries with undefined symbols to be built.
15172
 
allow_undefined_flag=$lt_allow_undefined_flag
15173
 
 
15174
 
# Flag that enforces no undefined symbols.
15175
 
no_undefined_flag=$lt_no_undefined_flag
15176
 
 
15177
 
# Flag to hardcode \$libdir into a binary during linking.
15178
 
# This must work even if \$libdir does not exist
15179
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15180
 
 
15181
 
# If ld is used when linking, flag to hardcode \$libdir into a binary
15182
 
# during linking.  This must work even if \$libdir does not exist.
15183
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15184
 
 
15185
 
# Whether we need a single "-rpath" flag with a separated argument.
15186
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15187
 
 
15188
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15189
 
# DIR into the resulting binary.
15190
 
hardcode_direct=$hardcode_direct
15191
 
 
15192
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15193
 
# DIR into the resulting binary and the resulting library dependency is
15194
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15195
 
# library is relocated.
15196
 
hardcode_direct_absolute=$hardcode_direct_absolute
15197
 
 
15198
 
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15199
 
# into the resulting binary.
15200
 
hardcode_minus_L=$hardcode_minus_L
15201
 
 
15202
 
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15203
 
# into the resulting binary.
15204
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
15205
 
 
15206
 
# Set to "yes" if building a shared library automatically hardcodes DIR
15207
 
# into the library and all subsequent libraries and executables linked
15208
 
# against it.
15209
 
hardcode_automatic=$hardcode_automatic
15210
 
 
15211
 
# Set to yes if linker adds runtime paths of dependent libraries
15212
 
# to runtime path list.
15213
 
inherit_rpath=$inherit_rpath
15214
 
 
15215
 
# Whether libtool must link a program against all its dependency libraries.
15216
 
link_all_deplibs=$link_all_deplibs
15217
 
 
15218
 
# Fix the shell variable \$srcfile for the compiler.
15219
 
fix_srcfile_path=$lt_fix_srcfile_path
15220
 
 
15221
 
# Set to "yes" if exported symbols are required.
15222
 
always_export_symbols=$always_export_symbols
15223
 
 
15224
 
# The commands to list exported symbols.
15225
 
export_symbols_cmds=$lt_export_symbols_cmds
15226
 
 
15227
 
# Symbols that should not be listed in the preloaded symbols.
15228
 
exclude_expsyms=$lt_exclude_expsyms
15229
 
 
15230
 
# Symbols that must always be exported.
15231
 
include_expsyms=$lt_include_expsyms
15232
 
 
15233
 
# Commands necessary for linking programs (against libraries) with templates.
15234
 
prelink_cmds=$lt_prelink_cmds
15235
 
 
15236
 
# Specify filename containing input files.
15237
 
file_list_spec=$lt_file_list_spec
15238
 
 
15239
 
# How to hardcode a shared library path into an executable.
15240
 
hardcode_action=$hardcode_action
15241
 
 
15242
 
# ### END LIBTOOL CONFIG
15243
 
 
15244
 
_LT_EOF
15245
 
 
15246
 
  case $host_os in
15247
 
  aix3*)
15248
 
    cat <<\_LT_EOF >> "$cfgfile"
15249
 
# AIX sometimes has problems with the GCC collect2 program.  For some
15250
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
15251
 
# vanish in a puff of smoke.
15252
 
if test "X${COLLECT_NAMES+set}" != Xset; then
15253
 
  COLLECT_NAMES=
15254
 
  export COLLECT_NAMES
15255
 
fi
15256
 
_LT_EOF
15257
 
    ;;
15258
 
  esac
15259
 
 
15260
 
 
15261
 
ltmain="$ac_aux_dir/ltmain.sh"
15262
 
 
15263
 
 
15264
 
  # We use sed instead of cat because bash on DJGPP gets confused if
15265
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15266
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
15267
 
  # is reportedly fixed, but why not run on old versions too?
15268
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15269
 
    || (rm -f "$cfgfile"; exit 1)
15270
 
 
15271
 
  case $xsi_shell in
15272
 
  yes)
15273
 
    cat << \_LT_EOF >> "$cfgfile"
15274
 
 
15275
 
# func_dirname file append nondir_replacement
15276
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15277
 
# otherwise set result to NONDIR_REPLACEMENT.
15278
 
func_dirname ()
15279
 
{
15280
 
  case ${1} in
15281
 
    */*) func_dirname_result="${1%/*}${2}" ;;
15282
 
    *  ) func_dirname_result="${3}" ;;
15283
 
  esac
15284
 
}
15285
 
 
15286
 
# func_basename file
15287
 
func_basename ()
15288
 
{
15289
 
  func_basename_result="${1##*/}"
15290
 
}
15291
 
 
15292
 
# func_dirname_and_basename file append nondir_replacement
15293
 
# perform func_basename and func_dirname in a single function
15294
 
# call:
15295
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
15296
 
#             add APPEND to the result, otherwise set result
15297
 
#             to NONDIR_REPLACEMENT.
15298
 
#             value returned in "$func_dirname_result"
15299
 
#   basename: Compute filename of FILE.
15300
 
#             value retuned in "$func_basename_result"
15301
 
# Implementation must be kept synchronized with func_dirname
15302
 
# and func_basename. For efficiency, we do not delegate to
15303
 
# those functions but instead duplicate the functionality here.
15304
 
func_dirname_and_basename ()
15305
 
{
15306
 
  case ${1} in
15307
 
    */*) func_dirname_result="${1%/*}${2}" ;;
15308
 
    *  ) func_dirname_result="${3}" ;;
15309
 
  esac
15310
 
  func_basename_result="${1##*/}"
15311
 
}
15312
 
 
15313
 
# func_stripname prefix suffix name
15314
 
# strip PREFIX and SUFFIX off of NAME.
15315
 
# PREFIX and SUFFIX must not contain globbing or regex special
15316
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
15317
 
# dot (in which case that matches only a dot).
15318
 
func_stripname ()
15319
 
{
15320
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15321
 
  # positional parameters, so assign one to ordinary parameter first.
15322
 
  func_stripname_result=${3}
15323
 
  func_stripname_result=${func_stripname_result#"${1}"}
15324
 
  func_stripname_result=${func_stripname_result%"${2}"}
15325
 
}
15326
 
 
15327
 
# func_opt_split
15328
 
func_opt_split ()
15329
 
{
15330
 
  func_opt_split_opt=${1%%=*}
15331
 
  func_opt_split_arg=${1#*=}
15332
 
}
15333
 
 
15334
 
# func_lo2o object
15335
 
func_lo2o ()
15336
 
{
15337
 
  case ${1} in
15338
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15339
 
    *)    func_lo2o_result=${1} ;;
15340
 
  esac
15341
 
}
15342
 
 
15343
 
# func_xform libobj-or-source
15344
 
func_xform ()
15345
 
{
15346
 
  func_xform_result=${1%.*}.lo
15347
 
}
15348
 
 
15349
 
# func_arith arithmetic-term...
15350
 
func_arith ()
15351
 
{
15352
 
  func_arith_result=$(( $* ))
15353
 
}
15354
 
 
15355
 
# func_len string
15356
 
# STRING may not start with a hyphen.
15357
 
func_len ()
15358
 
{
15359
 
  func_len_result=${#1}
15360
 
}
15361
 
 
15362
 
_LT_EOF
15363
 
    ;;
15364
 
  *) # Bourne compatible functions.
15365
 
    cat << \_LT_EOF >> "$cfgfile"
15366
 
 
15367
 
# func_dirname file append nondir_replacement
15368
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15369
 
# otherwise set result to NONDIR_REPLACEMENT.
15370
 
func_dirname ()
15371
 
{
15372
 
  # Extract subdirectory from the argument.
15373
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15374
 
  if test "X$func_dirname_result" = "X${1}"; then
15375
 
    func_dirname_result="${3}"
15376
 
  else
15377
 
    func_dirname_result="$func_dirname_result${2}"
15378
 
  fi
15379
 
}
15380
 
 
15381
 
# func_basename file
15382
 
func_basename ()
15383
 
{
15384
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15385
 
}
15386
 
 
15387
 
 
15388
 
# func_stripname prefix suffix name
15389
 
# strip PREFIX and SUFFIX off of NAME.
15390
 
# PREFIX and SUFFIX must not contain globbing or regex special
15391
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
15392
 
# dot (in which case that matches only a dot).
15393
 
# func_strip_suffix prefix name
15394
 
func_stripname ()
15395
 
{
15396
 
  case ${2} in
15397
 
    .*) func_stripname_result=`$ECHO "X${3}" \
15398
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15399
 
    *)  func_stripname_result=`$ECHO "X${3}" \
15400
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15401
 
  esac
15402
 
}
15403
 
 
15404
 
# sed scripts:
15405
 
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15406
 
my_sed_long_arg='1s/^-[^=]*=//'
15407
 
 
15408
 
# func_opt_split
15409
 
func_opt_split ()
15410
 
{
15411
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15412
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15413
 
}
15414
 
 
15415
 
# func_lo2o object
15416
 
func_lo2o ()
15417
 
{
15418
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15419
 
}
15420
 
 
15421
 
# func_xform libobj-or-source
15422
 
func_xform ()
15423
 
{
15424
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15425
 
}
15426
 
 
15427
 
# func_arith arithmetic-term...
15428
 
func_arith ()
15429
 
{
15430
 
  func_arith_result=`expr "$@"`
15431
 
}
15432
 
 
15433
 
# func_len string
15434
 
# STRING may not start with a hyphen.
15435
 
func_len ()
15436
 
{
15437
 
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15438
 
}
15439
 
 
15440
 
_LT_EOF
15441
 
esac
15442
 
 
15443
 
case $lt_shell_append in
15444
 
  yes)
15445
 
    cat << \_LT_EOF >> "$cfgfile"
15446
 
 
15447
 
# func_append var value
15448
 
# Append VALUE to the end of shell variable VAR.
15449
 
func_append ()
15450
 
{
15451
 
  eval "$1+=\$2"
15452
 
}
15453
 
_LT_EOF
15454
 
    ;;
15455
 
  *)
15456
 
    cat << \_LT_EOF >> "$cfgfile"
15457
 
 
15458
 
# func_append var value
15459
 
# Append VALUE to the end of shell variable VAR.
15460
 
func_append ()
15461
 
{
15462
 
  eval "$1=\$$1\$2"
15463
 
}
15464
 
 
15465
 
_LT_EOF
15466
 
    ;;
15467
 
  esac
15468
 
 
15469
 
 
15470
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15471
 
    || (rm -f "$cfgfile"; exit 1)
15472
 
 
15473
 
  mv -f "$cfgfile" "$ofile" ||
15474
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15475
 
  chmod +x "$ofile"
15476
 
 
 
23676
}
15477
23677
 ;;
15478
23678
 
15479
23679
  esac