~ubuntu-branches/ubuntu/natty/libxi/natty-201011191114

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-11-21 18:39:28 UTC
  • mfrom: (1.1.10 upstream) (0.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091121183928-ek2jwqx3rmhv3zjz
Tags: 2:1.3-1
* Bump Standards-Version to 3.8.3.
* Add build-deps on xmlto and asciidoc to build the manpages.
* New upstream release.

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 libXi 1.2.1.
 
3
# Generated by GNU Autoconf 2.63 for libXi 1.3.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
577
577
# Check that we are running under the correct shell.
578
578
SHELL=${CONFIG_SHELL-/bin/sh}
579
579
 
580
 
case X$ECHO in
 
580
case X$lt_ECHO in
581
581
X*--fallback-echo)
582
582
  # Remove one level of quotation (which was required for Make).
583
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
583
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584
584
  ;;
585
585
esac
586
586
 
587
 
echo=${ECHO-echo}
 
587
ECHO=${lt_ECHO-echo}
588
588
if test "X$1" = X--no-reexec; then
589
589
  # Discard the --no-reexec flag, and continue.
590
590
  shift
591
591
elif test "X$1" = X--fallback-echo; then
592
592
  # Avoid inline document here, it may be left over
593
593
  :
594
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595
 
  # Yippee, $echo works!
 
594
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $ECHO works!
596
596
  :
597
597
else
598
598
  # Restart under the correct shell.
602
602
if test "X$1" = X--fallback-echo; then
603
603
  # used as fallback echo
604
604
  shift
605
 
  cat <<EOF
 
605
  cat <<_LT_EOF
606
606
$*
607
 
EOF
 
607
_LT_EOF
608
608
  exit 0
609
609
fi
610
610
 
612
612
# if CDPATH is set.
613
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
614
 
615
 
if test -z "$ECHO"; then
616
 
if test "X${echo_test_string+set}" != Xset; then
617
 
# find a string as large as possible, as long as the shell can cope with it
618
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621
 
       echo_test_string=`eval $cmd` &&
622
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623
 
    then
624
 
      break
625
 
    fi
626
 
  done
627
 
fi
628
 
 
629
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
632
 
  :
633
 
else
634
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
635
 
  # backslashes.  This makes it impossible to quote backslashes using
636
 
  #   echo "$something" | sed 's/\\/\\\\/g'
637
 
  #
638
 
  # So, first we look for a working echo in the user's PATH.
639
 
 
640
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641
 
  for dir in $PATH /usr/ucb; do
 
615
if test -z "$lt_ECHO"; then
 
616
  if test "X${echo_test_string+set}" != Xset; then
 
617
    # find a string as large as possible, as long as the shell can cope with it
 
618
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
621
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
622
      then
 
623
        break
 
624
      fi
 
625
    done
 
626
  fi
 
627
 
 
628
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
629
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
630
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
631
    :
 
632
  else
 
633
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
634
    # backslashes.  This makes it impossible to quote backslashes using
 
635
    #   echo "$something" | sed 's/\\/\\\\/g'
 
636
    #
 
637
    # So, first we look for a working echo in the user's PATH.
 
638
 
 
639
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
640
    for dir in $PATH /usr/ucb; do
 
641
      IFS="$lt_save_ifs"
 
642
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
643
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
644
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
645
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
646
        ECHO="$dir/echo"
 
647
        break
 
648
      fi
 
649
    done
642
650
    IFS="$lt_save_ifs"
643
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
647
 
      echo="$dir/echo"
648
 
      break
649
 
    fi
650
 
  done
651
 
  IFS="$lt_save_ifs"
652
651
 
653
 
  if test "X$echo" = Xecho; then
654
 
    # We didn't find a better echo, so look for alternatives.
655
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
658
 
      # This shell has a builtin print -r that does the trick.
659
 
      echo='print -r'
660
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
662
 
      # If we have ksh, try running configure again with it.
663
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664
 
      export ORIGINAL_CONFIG_SHELL
665
 
      CONFIG_SHELL=/bin/ksh
666
 
      export CONFIG_SHELL
667
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668
 
    else
669
 
      # Try using printf.
670
 
      echo='printf %s\n'
671
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
674
 
        # Cool, printf works
675
 
        :
676
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677
 
           test "X$echo_testing_string" = 'X\t' &&
678
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
680
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681
 
        export CONFIG_SHELL
682
 
        SHELL="$CONFIG_SHELL"
683
 
        export SHELL
684
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
685
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686
 
           test "X$echo_testing_string" = 'X\t' &&
687
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
689
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
652
    if test "X$ECHO" = Xecho; then
 
653
      # We didn't find a better echo, so look for alternatives.
 
654
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
655
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
656
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
        # This shell has a builtin print -r that does the trick.
 
658
        ECHO='print -r'
 
659
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
660
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
661
        # If we have ksh, try running configure again with it.
 
662
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
663
        export ORIGINAL_CONFIG_SHELL
 
664
        CONFIG_SHELL=/bin/ksh
 
665
        export CONFIG_SHELL
 
666
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
690
667
      else
691
 
        # maybe with a smaller string...
692
 
        prev=:
693
 
 
694
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696
 
          then
697
 
            break
 
668
        # Try using printf.
 
669
        ECHO='printf %s\n'
 
670
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
671
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
672
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
673
          # Cool, printf works
 
674
          :
 
675
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
676
             test "X$echo_testing_string" = 'X\t' &&
 
677
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
678
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
679
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
680
          export CONFIG_SHELL
 
681
          SHELL="$CONFIG_SHELL"
 
682
          export SHELL
 
683
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
684
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
685
             test "X$echo_testing_string" = 'X\t' &&
 
686
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
687
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
688
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
689
        else
 
690
          # maybe with a smaller string...
 
691
          prev=:
 
692
 
 
693
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
694
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
695
            then
 
696
              break
 
697
            fi
 
698
            prev="$cmd"
 
699
          done
 
700
 
 
701
          if test "$prev" != 'sed 50q "$0"'; then
 
702
            echo_test_string=`eval $prev`
 
703
            export echo_test_string
 
704
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
705
          else
 
706
            # Oops.  We lost completely, so just stick with echo.
 
707
            ECHO=echo
698
708
          fi
699
 
          prev="$cmd"
700
 
        done
701
 
 
702
 
        if test "$prev" != 'sed 50q "$0"'; then
703
 
          echo_test_string=`eval $prev`
704
 
          export echo_test_string
705
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706
 
        else
707
 
          # Oops.  We lost completely, so just stick with echo.
708
 
          echo=echo
709
 
        fi
 
709
        fi
710
710
      fi
711
711
    fi
712
712
  fi
713
713
fi
714
 
fi
715
714
 
716
715
# Copy echo and quote the copy suitably for passing to libtool from
717
716
# the Makefile, instead of quoting the original, which is used later.
718
 
ECHO=$echo
719
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
717
lt_ECHO=$ECHO
 
718
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
719
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721
720
fi
722
721
 
723
722
 
724
723
 
725
724
 
726
 
tagnames=${tagnames+${tagnames},}CXX
727
 
 
728
 
tagnames=${tagnames+${tagnames},}F77
729
 
 
730
725
exec 7<&0 </dev/null 6>&1
731
726
 
732
727
# Name of the host.
750
745
# Identity of this package.
751
746
PACKAGE_NAME='libXi'
752
747
PACKAGE_TARNAME='libXi'
753
 
PACKAGE_VERSION='1.2.1'
754
 
PACKAGE_STRING='libXi 1.2.1'
 
748
PACKAGE_VERSION='1.3'
 
749
PACKAGE_STRING='libXi 1.3'
755
750
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
756
751
 
757
752
# Factoring default headers for most tests.
790
785
# include <unistd.h>
791
786
#endif"
792
787
 
793
 
ac_subst_vars='LTLIBOBJS
 
788
ac_subst_vars='am__EXEEXT_FALSE
 
789
am__EXEEXT_TRUE
 
790
LTLIBOBJS
794
791
LIBOBJS
 
792
XTMALLOC_ZERO_CFLAGS
 
793
XMALLOC_ZERO_CFLAGS
 
794
MALLOC_ZERO_CFLAGS
 
795
HAVE_DOCTOOLS_FALSE
 
796
HAVE_DOCTOOLS_TRUE
 
797
ASCIIDOC
 
798
XMLTO
 
799
XI_LIBS
 
800
XI_CFLAGS
 
801
PKG_CONFIG
795
802
ADMIN_MAN_DIR
796
803
DRIVER_MAN_DIR
797
804
MISC_MAN_DIR
804
811
FILE_MAN_SUFFIX
805
812
LIB_MAN_SUFFIX
806
813
APP_MAN_SUFFIX
807
 
XTMALLOC_ZERO_CFLAGS
808
 
XMALLOC_ZERO_CFLAGS
809
 
MALLOC_ZERO_CFLAGS
810
 
XI_LIBS
811
 
XI_CFLAGS
812
 
PKG_CONFIG
813
 
LIBTOOL
814
 
ac_ct_F77
815
 
FFLAGS
816
 
F77
817
 
CXXCPP
818
 
am__fastdepCXX_FALSE
819
 
am__fastdepCXX_TRUE
820
 
CXXDEPMODE
821
 
ac_ct_CXX
822
 
CXXFLAGS
823
 
CXX
 
814
distcleancheck_listfiles
 
815
CHANGELOG_CMD
 
816
AM_BACKSLASH
 
817
AM_DEFAULT_VERBOSITY
 
818
CWARNFLAGS
824
819
CPP
 
820
OTOOL64
 
821
OTOOL
 
822
LIPO
825
823
NMEDIT
826
824
DSYMUTIL
 
825
lt_ECHO
827
826
RANLIB
828
827
AR
829
 
ECHO
 
828
OBJDUMP
830
829
LN_S
 
830
NM
 
831
ac_ct_DUMPBIN
 
832
DUMPBIN
 
833
LD
 
834
FGREP
831
835
EGREP
832
836
GREP
833
837
SED
839
843
build_vendor
840
844
build_cpu
841
845
build
 
846
LIBTOOL
842
847
am__fastdepCC_FALSE
843
848
am__fastdepCC_TRUE
844
849
CCDEPMODE
925
930
enable_dependency_tracking
926
931
enable_shared
927
932
enable_static
 
933
with_pic
928
934
enable_fast_install
929
935
with_gnu_ld
930
936
enable_libtool_lock
931
 
with_pic
932
 
with_tags
 
937
enable_silent_rules
 
938
enable_strict_compilation
 
939
with_release_version
933
940
enable_malloc0returnsnull
934
 
with_release_version
935
941
'
936
942
      ac_precious_vars='build_alias
937
943
host_alias
942
948
LIBS
943
949
CPPFLAGS
944
950
CPP
945
 
CXX
946
 
CXXFLAGS
947
 
CCC
948
 
CXXCPP
949
 
F77
950
 
FFLAGS
951
951
PKG_CONFIG
952
952
XI_CFLAGS
953
 
XI_LIBS'
 
953
XI_LIBS
 
954
XMLTO
 
955
ASCIIDOC'
954
956
 
955
957
 
956
958
# Initialize some variables set by options.
1503
1505
  # Omit some internal or obsolete options to make the list less imposing.
1504
1506
  # This message is too long to be a string in the A/UX 3.1 sh.
1505
1507
  cat <<_ACEOF
1506
 
\`configure' configures libXi 1.2.1 to adapt to many kinds of systems.
 
1508
\`configure' configures libXi 1.3 to adapt to many kinds of systems.
1507
1509
 
1508
1510
Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1511
 
1573
1575
 
1574
1576
if test -n "$ac_init_help"; then
1575
1577
  case $ac_init_help in
1576
 
     short | recursive ) echo "Configuration of libXi 1.2.1:";;
 
1578
     short | recursive ) echo "Configuration of libXi 1.3:";;
1577
1579
   esac
1578
1580
  cat <<\_ACEOF
1579
1581
 
1590
1592
  --enable-fast-install[=PKGS]
1591
1593
                          optimize for fast installation [default=yes]
1592
1594
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1595
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1596
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1597
  --enable-strict-compilation
 
1598
                          Enable all warnings from compiler and make them
 
1599
                          errors (default: disabled)
1593
1600
  --enable-malloc0returnsnull
1594
1601
                          malloc(0) returns NULL (default: auto)
1595
1602
 
1596
1603
Optional Packages:
1597
1604
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1598
1605
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1599
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1600
1606
  --with-pic              try to use only PIC/non-PIC objects [default=use
1601
1607
                          both]
1602
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1608
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1603
1609
  --with-release-version=STRING
1604
1610
                          Use release version string in package name
1605
1611
 
1612
1618
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613
1619
              you have headers in a nonstandard directory <include dir>
1614
1620
  CPP         C preprocessor
1615
 
  CXX         C++ compiler command
1616
 
  CXXFLAGS    C++ compiler flags
1617
 
  CXXCPP      C++ preprocessor
1618
 
  F77         Fortran 77 compiler command
1619
 
  FFLAGS      Fortran 77 compiler flags
1620
1621
  PKG_CONFIG  path to pkg-config utility
1621
1622
  XI_CFLAGS   C compiler flags for XI, overriding pkg-config
1622
1623
  XI_LIBS     linker flags for XI, overriding pkg-config
 
1624
  XMLTO       Path to xmlto command
 
1625
  ASCIIDOC    Path to asciidoc command
1623
1626
 
1624
1627
Use these variables to override the choices made by `configure' or to help
1625
1628
it to find libraries and programs with nonstandard names/locations.
1687
1690
test -n "$ac_init_help" && exit $ac_status
1688
1691
if $ac_init_version; then
1689
1692
  cat <<\_ACEOF
1690
 
libXi configure 1.2.1
 
1693
libXi configure 1.3
1691
1694
generated by GNU Autoconf 2.63
1692
1695
 
1693
1696
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1701
1704
This file contains any messages produced by compilers while
1702
1705
running configure, to aid debugging if configure makes a mistake.
1703
1706
 
1704
 
It was created by libXi $as_me 1.2.1, which was
 
1707
It was created by libXi $as_me 1.3, which was
1705
1708
generated by GNU Autoconf 2.63.  Invocation command line was
1706
1709
 
1707
1710
  $ $0 $@
2069
2072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2070
2073
 
2071
2074
 
2072
 
am__api_version='1.10'
 
2075
am__api_version='1.11'
2073
2076
 
2074
2077
ac_aux_dir=
2075
2078
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2200
2203
# Just in case
2201
2204
sleep 1
2202
2205
echo timestamp > conftest.file
 
2206
# Reject unsafe characters in $srcdir or the absolute working directory
 
2207
# name.  Accept space and tab only in the latter.
 
2208
am_lf='
 
2209
'
 
2210
case `pwd` in
 
2211
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2212
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2213
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2214
   { (exit 1); exit 1; }; };;
 
2215
esac
 
2216
case $srcdir in
 
2217
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2218
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2219
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2220
   { (exit 1); exit 1; }; };;
 
2221
esac
 
2222
 
2203
2223
# Do `set' in a subshell so we don't clobber the current shell's
2204
2224
# arguments.  Must try -L first in case configure is actually a
2205
2225
# symlink; some systems play weird games with the mod time of symlinks
2206
2226
# (eg FreeBSD returns the mod time of the symlink's containing
2207
2227
# directory).
2208
2228
if (
2209
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2229
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2210
2230
   if test "$*" = "X"; then
2211
2231
      # -L didn't work.
2212
 
      set X `ls -t $srcdir/configure conftest.file`
 
2232
      set X `ls -t "$srcdir/configure" conftest.file`
2213
2233
   fi
2214
2234
   rm -f conftest.file
2215
2235
   if test "$*" != "X $srcdir/configure conftest.file" \
2253
2273
# expand $ac_aux_dir to an absolute path
2254
2274
am_aux_dir=`cd $ac_aux_dir && pwd`
2255
2275
 
2256
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2276
if test x"${MISSING+set}" != xset; then
 
2277
  case $am_aux_dir in
 
2278
  *\ * | *\     *)
 
2279
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2280
  *)
 
2281
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2282
  esac
 
2283
fi
2257
2284
# Use eval to expand $SHELL
2258
2285
if eval "$MISSING --run true"; then
2259
2286
  am_missing_run="$MISSING --run "
2263
2290
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2264
2291
fi
2265
2292
 
 
2293
if test x"${install_sh}" != xset; then
 
2294
  case $am_aux_dir in
 
2295
  *\ * | *\     *)
 
2296
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2297
  *)
 
2298
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2299
  esac
 
2300
fi
 
2301
 
 
2302
# Installed binaries are usually stripped using `strip' when the user
 
2303
# run `make install-strip'.  However `strip' might not be the right
 
2304
# tool to use in cross-compilation environments, therefore Automake
 
2305
# will honor the `STRIP' environment variable to overrule this program.
 
2306
if test "$cross_compiling" != no; then
 
2307
  if test -n "$ac_tool_prefix"; then
 
2308
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2309
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2310
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2311
$as_echo_n "checking for $ac_word... " >&6; }
 
2312
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2313
  $as_echo_n "(cached) " >&6
 
2314
else
 
2315
  if test -n "$STRIP"; then
 
2316
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2317
else
 
2318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2319
for as_dir in $PATH
 
2320
do
 
2321
  IFS=$as_save_IFS
 
2322
  test -z "$as_dir" && as_dir=.
 
2323
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2324
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2325
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2326
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2327
    break 2
 
2328
  fi
 
2329
done
 
2330
done
 
2331
IFS=$as_save_IFS
 
2332
 
 
2333
fi
 
2334
fi
 
2335
STRIP=$ac_cv_prog_STRIP
 
2336
if test -n "$STRIP"; then
 
2337
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2338
$as_echo "$STRIP" >&6; }
 
2339
else
 
2340
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2341
$as_echo "no" >&6; }
 
2342
fi
 
2343
 
 
2344
 
 
2345
fi
 
2346
if test -z "$ac_cv_prog_STRIP"; then
 
2347
  ac_ct_STRIP=$STRIP
 
2348
  # Extract the first word of "strip", so it can be a program name with args.
 
2349
set dummy strip; ac_word=$2
 
2350
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2351
$as_echo_n "checking for $ac_word... " >&6; }
 
2352
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2353
  $as_echo_n "(cached) " >&6
 
2354
else
 
2355
  if test -n "$ac_ct_STRIP"; then
 
2356
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2357
else
 
2358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2359
for as_dir in $PATH
 
2360
do
 
2361
  IFS=$as_save_IFS
 
2362
  test -z "$as_dir" && as_dir=.
 
2363
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2364
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2365
    ac_cv_prog_ac_ct_STRIP="strip"
 
2366
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2367
    break 2
 
2368
  fi
 
2369
done
 
2370
done
 
2371
IFS=$as_save_IFS
 
2372
 
 
2373
fi
 
2374
fi
 
2375
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2376
if test -n "$ac_ct_STRIP"; then
 
2377
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2378
$as_echo "$ac_ct_STRIP" >&6; }
 
2379
else
 
2380
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2381
$as_echo "no" >&6; }
 
2382
fi
 
2383
 
 
2384
  if test "x$ac_ct_STRIP" = x; then
 
2385
    STRIP=":"
 
2386
  else
 
2387
    case $cross_compiling:$ac_tool_warned in
 
2388
yes:)
 
2389
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2391
ac_tool_warned=yes ;;
 
2392
esac
 
2393
    STRIP=$ac_ct_STRIP
 
2394
  fi
 
2395
else
 
2396
  STRIP="$ac_cv_prog_STRIP"
 
2397
fi
 
2398
 
 
2399
fi
 
2400
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2401
 
2266
2402
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2267
2403
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2268
2404
if test -z "$MKDIR_P"; then
2417
2553
 
2418
2554
# Define the identity of the package.
2419
2555
 PACKAGE='libXi'
2420
 
 VERSION='1.2.1'
 
2556
 VERSION='1.3'
2421
2557
 
2422
2558
 
2423
2559
cat >>confdefs.h <<_ACEOF
2445
2581
 
2446
2582
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2447
2583
 
2448
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2449
 
 
2450
 
# Installed binaries are usually stripped using `strip' when the user
2451
 
# run `make install-strip'.  However `strip' might not be the right
2452
 
# tool to use in cross-compilation environments, therefore Automake
2453
 
# will honor the `STRIP' environment variable to overrule this program.
2454
 
if test "$cross_compiling" != no; then
2455
 
  if test -n "$ac_tool_prefix"; then
2456
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2457
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2458
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2459
 
$as_echo_n "checking for $ac_word... " >&6; }
2460
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2461
 
  $as_echo_n "(cached) " >&6
2462
 
else
2463
 
  if test -n "$STRIP"; then
2464
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2465
 
else
2466
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467
 
for as_dir in $PATH
2468
 
do
2469
 
  IFS=$as_save_IFS
2470
 
  test -z "$as_dir" && as_dir=.
2471
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2472
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2474
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475
 
    break 2
2476
 
  fi
2477
 
done
2478
 
done
2479
 
IFS=$as_save_IFS
2480
 
 
2481
 
fi
2482
 
fi
2483
 
STRIP=$ac_cv_prog_STRIP
2484
 
if test -n "$STRIP"; then
2485
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2486
 
$as_echo "$STRIP" >&6; }
2487
 
else
2488
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2489
 
$as_echo "no" >&6; }
2490
 
fi
2491
 
 
2492
 
 
2493
 
fi
2494
 
if test -z "$ac_cv_prog_STRIP"; then
2495
 
  ac_ct_STRIP=$STRIP
2496
 
  # Extract the first word of "strip", so it can be a program name with args.
2497
 
set dummy strip; ac_word=$2
2498
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2499
 
$as_echo_n "checking for $ac_word... " >&6; }
2500
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2501
 
  $as_echo_n "(cached) " >&6
2502
 
else
2503
 
  if test -n "$ac_ct_STRIP"; then
2504
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2505
 
else
2506
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507
 
for as_dir in $PATH
2508
 
do
2509
 
  IFS=$as_save_IFS
2510
 
  test -z "$as_dir" && as_dir=.
2511
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2512
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513
 
    ac_cv_prog_ac_ct_STRIP="strip"
2514
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515
 
    break 2
2516
 
  fi
2517
 
done
2518
 
done
2519
 
IFS=$as_save_IFS
2520
 
 
2521
 
fi
2522
 
fi
2523
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2524
 
if test -n "$ac_ct_STRIP"; then
2525
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2526
 
$as_echo "$ac_ct_STRIP" >&6; }
2527
 
else
2528
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2529
 
$as_echo "no" >&6; }
2530
 
fi
2531
 
 
2532
 
  if test "x$ac_ct_STRIP" = x; then
2533
 
    STRIP=":"
2534
 
  else
2535
 
    case $cross_compiling:$ac_tool_warned in
2536
 
yes:)
2537
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2538
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2539
 
ac_tool_warned=yes ;;
2540
 
esac
2541
 
    STRIP=$ac_ct_STRIP
2542
 
  fi
2543
 
else
2544
 
  STRIP="$ac_cv_prog_STRIP"
2545
 
fi
2546
 
 
2547
 
fi
2548
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549
 
 
2550
2584
# We need awk for the "check" target.  The system "awk" is bad on
2551
2585
# some platforms.
2552
2586
# Always define AMTAR for backward compatibility.
2559
2593
 
2560
2594
 
2561
2595
 
 
2596
 
2562
2597
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2563
2598
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2564
2599
    # Check whether --enable-maintainer-mode was given.
2582
2617
 
2583
2618
 
2584
2619
 
 
2620
# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
 
2621
 
 
2622
 
 
2623
 
 
2624
 
 
2625
 
 
2626
 
 
2627
 
 
2628
 
 
2629
 
 
2630
 
 
2631
 
2585
2632
ac_config_headers="$ac_config_headers src/config.h"
2586
2633
 
2587
2634
 
3526
3573
am_make=${MAKE-make}
3527
3574
cat > confinc << 'END'
3528
3575
am__doit:
3529
 
        @echo done
 
3576
        @echo this is the am__doit target
3530
3577
.PHONY: am__doit
3531
3578
END
3532
3579
# If we don't find an include directive, just comment out the code.
3537
3584
_am_result=none
3538
3585
# First try GNU make style include.
3539
3586
echo "include confinc" > confmf
3540
 
# We grep out `Entering directory' and `Leaving directory'
3541
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3542
 
# In particular we don't look at `^make:' because GNU make might
3543
 
# be invoked under some other name (usually "gmake"), in which
3544
 
# case it prints its new name instead of `make'.
3545
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3546
 
   am__include=include
3547
 
   am__quote=
3548
 
   _am_result=GNU
3549
 
fi
 
3587
# Ignore all kinds of additional output from `make'.
 
3588
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3589
*the\ am__doit\ target*)
 
3590
  am__include=include
 
3591
  am__quote=
 
3592
  _am_result=GNU
 
3593
  ;;
 
3594
esac
3550
3595
# Now try BSD make style include.
3551
3596
if test "$am__include" = "#"; then
3552
3597
   echo '.include "confinc"' > confmf
3553
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3554
 
      am__include=.include
3555
 
      am__quote="\""
3556
 
      _am_result=BSD
3557
 
   fi
 
3598
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3599
   *the\ am__doit\ target*)
 
3600
     am__include=.include
 
3601
     am__quote="\""
 
3602
     _am_result=BSD
 
3603
     ;;
 
3604
   esac
3558
3605
fi
3559
3606
 
3560
3607
 
3611
3658
  if test "$am_compiler_list" = ""; then
3612
3659
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3613
3660
  fi
 
3661
  am__universal=false
 
3662
  case " $depcc " in #(
 
3663
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3664
     esac
 
3665
 
3614
3666
  for depmode in $am_compiler_list; do
3615
3667
    # Setup a source with many dependencies, because some compilers
3616
3668
    # like to wrap large dependency lists on column 80 (with \), and
3628
3680
    done
3629
3681
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3630
3682
 
 
3683
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3684
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3685
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3686
    # versions had trouble with output in subdirs
 
3687
    am__obj=sub/conftest.${OBJEXT-o}
 
3688
    am__minus_obj="-o $am__obj"
3631
3689
    case $depmode in
 
3690
    gcc)
 
3691
      # This depmode causes a compiler race in universal mode.
 
3692
      test "$am__universal" = false || continue
 
3693
      ;;
3632
3694
    nosideeffect)
3633
3695
      # after this tag, mechanisms are not by side-effect, so they'll
3634
3696
      # only be used when explicitly requested
3638
3700
        break
3639
3701
      fi
3640
3702
      ;;
 
3703
    msvisualcpp | msvcmsys)
 
3704
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3705
      # not run yet.  These depmodes are late enough in the game, and
 
3706
      # so weak that their functioning should not be impacted.
 
3707
      am__obj=conftest.${OBJEXT-o}
 
3708
      am__minus_obj=
 
3709
      ;;
3641
3710
    none) break ;;
3642
3711
    esac
3643
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3644
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3645
 
    # handle `-M -o', and we need to detect this.
3646
3712
    if depmode=$depmode \
3647
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3713
       source=sub/conftest.c object=$am__obj \
3648
3714
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3649
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3715
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3650
3716
         >/dev/null 2>conftest.err &&
3651
3717
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3652
3718
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3653
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3719
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3654
3720
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3655
3721
      # icc doesn't choke on unknown options, it will just issue warnings
3656
3722
      # or remarks (even with -Werror).  So we grep stderr for any message
3689
3755
fi
3690
3756
 
3691
3757
 
3692
 
# Check whether --enable-shared was given.
3693
 
if test "${enable_shared+set}" = set; then
3694
 
  enableval=$enable_shared; p=${PACKAGE-default}
3695
 
    case $enableval in
3696
 
    yes) enable_shared=yes ;;
3697
 
    no) enable_shared=no ;;
3698
 
    *)
3699
 
      enable_shared=no
3700
 
      # Look at the argument we got.  We use all the common list separators.
3701
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3702
 
      for pkg in $enableval; do
3703
 
        IFS="$lt_save_ifs"
3704
 
        if test "X$pkg" = "X$p"; then
3705
 
          enable_shared=yes
3706
 
        fi
3707
 
      done
3708
 
      IFS="$lt_save_ifs"
3709
 
      ;;
3710
 
    esac
3711
 
else
3712
 
  enable_shared=yes
3713
 
fi
3714
 
 
3715
 
 
3716
 
# Check whether --enable-static was given.
3717
 
if test "${enable_static+set}" = set; then
3718
 
  enableval=$enable_static; p=${PACKAGE-default}
3719
 
    case $enableval in
3720
 
    yes) enable_static=yes ;;
3721
 
    no) enable_static=no ;;
3722
 
    *)
3723
 
     enable_static=no
3724
 
      # Look at the argument we got.  We use all the common list separators.
3725
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3726
 
      for pkg in $enableval; do
3727
 
        IFS="$lt_save_ifs"
3728
 
        if test "X$pkg" = "X$p"; then
3729
 
          enable_static=yes
3730
 
        fi
3731
 
      done
3732
 
      IFS="$lt_save_ifs"
3733
 
      ;;
3734
 
    esac
3735
 
else
3736
 
  enable_static=yes
3737
 
fi
3738
 
 
3739
 
 
3740
 
# Check whether --enable-fast-install was given.
3741
 
if test "${enable_fast_install+set}" = set; then
3742
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
3743
 
    case $enableval in
3744
 
    yes) enable_fast_install=yes ;;
3745
 
    no) enable_fast_install=no ;;
3746
 
    *)
3747
 
      enable_fast_install=no
3748
 
      # Look at the argument we got.  We use all the common list separators.
3749
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3750
 
      for pkg in $enableval; do
3751
 
        IFS="$lt_save_ifs"
3752
 
        if test "X$pkg" = "X$p"; then
3753
 
          enable_fast_install=yes
3754
 
        fi
3755
 
      done
3756
 
      IFS="$lt_save_ifs"
3757
 
      ;;
3758
 
    esac
3759
 
else
3760
 
  enable_fast_install=yes
3761
 
fi
3762
 
 
 
3758
case `pwd` in
 
3759
  *\ * | *\     *)
 
3760
    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
3761
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
3762
esac
 
3763
 
 
3764
 
 
3765
 
 
3766
macro_version='2.2.6'
 
3767
macro_revision='1.3012'
 
3768
 
 
3769
 
 
3770
 
 
3771
 
 
3772
 
 
3773
 
 
3774
 
 
3775
 
 
3776
 
 
3777
 
 
3778
 
 
3779
 
 
3780
 
 
3781
ltmain="$ac_aux_dir/ltmain.sh"
3763
3782
 
3764
3783
# Make sure we can run config.sub.
3765
3784
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3846
3865
 
3847
3866
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3848
3867
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3849
 
if test "${lt_cv_path_SED+set}" = set; then
 
3868
if test "${ac_cv_path_SED+set}" = set; then
3850
3869
  $as_echo_n "(cached) " >&6
3851
3870
else
3852
 
  # Loop through the user's path and test for sed and gsed.
3853
 
# Then use that list of sed's as ones to test for truncation.
3854
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3871
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3872
     for ac_i in 1 2 3 4 5 6 7; do
 
3873
       ac_script="$ac_script$as_nl$ac_script"
 
3874
     done
 
3875
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3876
     $as_unset ac_script || ac_script=
 
3877
     if test -z "$SED"; then
 
3878
  ac_path_SED_found=false
 
3879
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3880
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855
3881
for as_dir in $PATH
3856
3882
do
3857
3883
  IFS=$as_save_IFS
3858
3884
  test -z "$as_dir" && as_dir=.
3859
 
  for lt_ac_prog in sed gsed; do
 
3885
  for ac_prog in sed gsed; do
3860
3886
    for ac_exec_ext in '' $ac_executable_extensions; do
3861
 
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3862
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3863
 
      fi
 
3887
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3888
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3889
# Check for GNU ac_path_SED and select it if it is found.
 
3890
  # Check for GNU $ac_path_SED
 
3891
case `"$ac_path_SED" --version 2>&1` in
 
3892
*GNU*)
 
3893
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3894
*)
 
3895
  ac_count=0
 
3896
  $as_echo_n 0123456789 >"conftest.in"
 
3897
  while :
 
3898
  do
 
3899
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3900
    mv "conftest.tmp" "conftest.in"
 
3901
    cp "conftest.in" "conftest.nl"
 
3902
    $as_echo '' >> "conftest.nl"
 
3903
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3904
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3905
    ac_count=`expr $ac_count + 1`
 
3906
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3907
      # Best one so far, save it but keep looking for a better one
 
3908
      ac_cv_path_SED="$ac_path_SED"
 
3909
      ac_path_SED_max=$ac_count
 
3910
    fi
 
3911
    # 10*(2^10) chars as input seems more than enough
 
3912
    test $ac_count -gt 10 && break
 
3913
  done
 
3914
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3915
esac
 
3916
 
 
3917
      $ac_path_SED_found && break 3
3864
3918
    done
3865
3919
  done
3866
3920
done
3867
3921
IFS=$as_save_IFS
3868
 
lt_ac_max=0
3869
 
lt_ac_count=0
3870
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3871
 
# along with /bin/sed that truncates output.
3872
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3873
 
  test ! -f $lt_ac_sed && continue
3874
 
  cat /dev/null > conftest.in
3875
 
  lt_ac_count=0
3876
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3877
 
  # Check for GNU sed and select it if it is found.
3878
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3879
 
    lt_cv_path_SED=$lt_ac_sed
3880
 
    break
 
3922
  if test -z "$ac_cv_path_SED"; then
 
3923
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
3924
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
3925
   { (exit 1); exit 1; }; }
3881
3926
  fi
3882
 
  while true; do
3883
 
    cat conftest.in conftest.in >conftest.tmp
3884
 
    mv conftest.tmp conftest.in
3885
 
    cp conftest.in conftest.nl
3886
 
    echo >>conftest.nl
3887
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3888
 
    cmp -s conftest.out conftest.nl || break
3889
 
    # 10000 chars as input seems more than enough
3890
 
    test $lt_ac_count -gt 10 && break
3891
 
    lt_ac_count=`expr $lt_ac_count + 1`
3892
 
    if test $lt_ac_count -gt $lt_ac_max; then
3893
 
      lt_ac_max=$lt_ac_count
3894
 
      lt_cv_path_SED=$lt_ac_sed
3895
 
    fi
3896
 
  done
3897
 
done
3898
 
 
3899
 
fi
3900
 
 
3901
 
SED=$lt_cv_path_SED
3902
 
 
3903
 
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3904
 
$as_echo "$SED" >&6; }
 
3927
else
 
3928
  ac_cv_path_SED=$SED
 
3929
fi
 
3930
 
 
3931
fi
 
3932
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
3933
$as_echo "$ac_cv_path_SED" >&6; }
 
3934
 SED="$ac_cv_path_SED"
 
3935
  rm -f conftest.sed
 
3936
 
 
3937
test -z "$SED" && SED=sed
 
3938
Xsed="$SED -e 1s/^X//"
 
3939
 
 
3940
 
 
3941
 
 
3942
 
 
3943
 
 
3944
 
 
3945
 
 
3946
 
 
3947
 
 
3948
 
3905
3949
 
3906
3950
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907
3951
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4037
4081
 EGREP="$ac_cv_path_EGREP"
4038
4082
 
4039
4083
 
 
4084
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
 
4085
$as_echo_n "checking for fgrep... " >&6; }
 
4086
if test "${ac_cv_path_FGREP+set}" = set; then
 
4087
  $as_echo_n "(cached) " >&6
 
4088
else
 
4089
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4090
   then ac_cv_path_FGREP="$GREP -F"
 
4091
   else
 
4092
     if test -z "$FGREP"; then
 
4093
  ac_path_FGREP_found=false
 
4094
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4095
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4096
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4097
do
 
4098
  IFS=$as_save_IFS
 
4099
  test -z "$as_dir" && as_dir=.
 
4100
  for ac_prog in fgrep; do
 
4101
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4102
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4103
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4104
# Check for GNU ac_path_FGREP and select it if it is found.
 
4105
  # Check for GNU $ac_path_FGREP
 
4106
case `"$ac_path_FGREP" --version 2>&1` in
 
4107
*GNU*)
 
4108
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4109
*)
 
4110
  ac_count=0
 
4111
  $as_echo_n 0123456789 >"conftest.in"
 
4112
  while :
 
4113
  do
 
4114
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4115
    mv "conftest.tmp" "conftest.in"
 
4116
    cp "conftest.in" "conftest.nl"
 
4117
    $as_echo 'FGREP' >> "conftest.nl"
 
4118
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4119
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4120
    ac_count=`expr $ac_count + 1`
 
4121
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4122
      # Best one so far, save it but keep looking for a better one
 
4123
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4124
      ac_path_FGREP_max=$ac_count
 
4125
    fi
 
4126
    # 10*(2^10) chars as input seems more than enough
 
4127
    test $ac_count -gt 10 && break
 
4128
  done
 
4129
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4130
esac
 
4131
 
 
4132
      $ac_path_FGREP_found && break 3
 
4133
    done
 
4134
  done
 
4135
done
 
4136
IFS=$as_save_IFS
 
4137
  if test -z "$ac_cv_path_FGREP"; then
 
4138
    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4139
$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4140
   { (exit 1); exit 1; }; }
 
4141
  fi
 
4142
else
 
4143
  ac_cv_path_FGREP=$FGREP
 
4144
fi
 
4145
 
 
4146
   fi
 
4147
fi
 
4148
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
4149
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4150
 FGREP="$ac_cv_path_FGREP"
 
4151
 
 
4152
 
 
4153
test -z "$GREP" && GREP=grep
 
4154
 
 
4155
 
 
4156
 
 
4157
 
 
4158
 
 
4159
 
 
4160
 
 
4161
 
 
4162
 
 
4163
 
 
4164
 
 
4165
 
 
4166
 
 
4167
 
 
4168
 
 
4169
 
 
4170
 
 
4171
 
4040
4172
 
4041
4173
# Check whether --with-gnu-ld was given.
4042
4174
if test "${with_gnu_ld+set}" = set; then
4062
4194
    [\\/]* | ?:[\\/]*)
4063
4195
      re_direlt='/[^/][^/]*/\.\./'
4064
4196
      # Canonicalize the pathname of ld
4065
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4066
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4067
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4197
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4198
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4199
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4068
4200
      done
4069
4201
      test -z "$LD" && LD="$ac_prog"
4070
4202
      ;;
4144
4276
with_gnu_ld=$lt_cv_prog_gnu_ld
4145
4277
 
4146
4278
 
4147
 
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4148
 
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4149
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4150
 
  $as_echo_n "(cached) " >&6
4151
 
else
4152
 
  lt_cv_ld_reload_flag='-r'
4153
 
fi
4154
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4155
 
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4156
 
reload_flag=$lt_cv_ld_reload_flag
4157
 
case $reload_flag in
4158
 
"" | " "*) ;;
4159
 
*) reload_flag=" $reload_flag" ;;
4160
 
esac
4161
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4162
 
case $host_os in
4163
 
  darwin*)
4164
 
    if test "$GCC" = yes; then
4165
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4166
 
    else
4167
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4168
 
    fi
4169
 
    ;;
4170
 
esac
4171
 
 
4172
 
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4173
 
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4279
 
 
4280
 
 
4281
 
 
4282
 
 
4283
 
 
4284
 
 
4285
 
 
4286
{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4287
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4174
4288
if test "${lt_cv_path_NM+set}" = set; then
4175
4289
  $as_echo_n "(cached) " >&6
4176
4290
else
4215
4329
    done
4216
4330
    IFS="$lt_save_ifs"
4217
4331
  done
4218
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4332
  : ${lt_cv_path_NM=no}
4219
4333
fi
4220
4334
fi
4221
4335
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4222
4336
$as_echo "$lt_cv_path_NM" >&6; }
4223
 
NM="$lt_cv_path_NM"
 
4337
if test "$lt_cv_path_NM" != "no"; then
 
4338
  NM="$lt_cv_path_NM"
 
4339
else
 
4340
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4341
  if test -n "$ac_tool_prefix"; then
 
4342
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4343
  do
 
4344
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4345
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4346
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4347
$as_echo_n "checking for $ac_word... " >&6; }
 
4348
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
4349
  $as_echo_n "(cached) " >&6
 
4350
else
 
4351
  if test -n "$DUMPBIN"; then
 
4352
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4353
else
 
4354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4355
for as_dir in $PATH
 
4356
do
 
4357
  IFS=$as_save_IFS
 
4358
  test -z "$as_dir" && as_dir=.
 
4359
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4361
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4362
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4363
    break 2
 
4364
  fi
 
4365
done
 
4366
done
 
4367
IFS=$as_save_IFS
 
4368
 
 
4369
fi
 
4370
fi
 
4371
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4372
if test -n "$DUMPBIN"; then
 
4373
  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
4374
$as_echo "$DUMPBIN" >&6; }
 
4375
else
 
4376
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4377
$as_echo "no" >&6; }
 
4378
fi
 
4379
 
 
4380
 
 
4381
    test -n "$DUMPBIN" && break
 
4382
  done
 
4383
fi
 
4384
if test -z "$DUMPBIN"; then
 
4385
  ac_ct_DUMPBIN=$DUMPBIN
 
4386
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4387
do
 
4388
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4389
set dummy $ac_prog; ac_word=$2
 
4390
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4391
$as_echo_n "checking for $ac_word... " >&6; }
 
4392
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
4393
  $as_echo_n "(cached) " >&6
 
4394
else
 
4395
  if test -n "$ac_ct_DUMPBIN"; then
 
4396
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4397
else
 
4398
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4399
for as_dir in $PATH
 
4400
do
 
4401
  IFS=$as_save_IFS
 
4402
  test -z "$as_dir" && as_dir=.
 
4403
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4404
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4405
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4406
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4407
    break 2
 
4408
  fi
 
4409
done
 
4410
done
 
4411
IFS=$as_save_IFS
 
4412
 
 
4413
fi
 
4414
fi
 
4415
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4416
if test -n "$ac_ct_DUMPBIN"; then
 
4417
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
4418
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4419
else
 
4420
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4421
$as_echo "no" >&6; }
 
4422
fi
 
4423
 
 
4424
 
 
4425
  test -n "$ac_ct_DUMPBIN" && break
 
4426
done
 
4427
 
 
4428
  if test "x$ac_ct_DUMPBIN" = x; then
 
4429
    DUMPBIN=":"
 
4430
  else
 
4431
    case $cross_compiling:$ac_tool_warned in
 
4432
yes:)
 
4433
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4434
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4435
ac_tool_warned=yes ;;
 
4436
esac
 
4437
    DUMPBIN=$ac_ct_DUMPBIN
 
4438
  fi
 
4439
fi
 
4440
 
 
4441
 
 
4442
  if test "$DUMPBIN" != ":"; then
 
4443
    NM="$DUMPBIN"
 
4444
  fi
 
4445
fi
 
4446
test -z "$NM" && NM=nm
 
4447
 
 
4448
 
 
4449
 
 
4450
 
 
4451
 
 
4452
 
 
4453
{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
4454
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4455
if test "${lt_cv_nm_interface+set}" = set; then
 
4456
  $as_echo_n "(cached) " >&6
 
4457
else
 
4458
  lt_cv_nm_interface="BSD nm"
 
4459
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4460
  (eval echo "\"\$as_me:4460: $ac_compile\"" >&5)
 
4461
  (eval "$ac_compile" 2>conftest.err)
 
4462
  cat conftest.err >&5
 
4463
  (eval echo "\"\$as_me:4463: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4464
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4465
  cat conftest.err >&5
 
4466
  (eval echo "\"\$as_me:4466: output\"" >&5)
 
4467
  cat conftest.out >&5
 
4468
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4469
    lt_cv_nm_interface="MS dumpbin"
 
4470
  fi
 
4471
  rm -f conftest*
 
4472
fi
 
4473
{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
4474
$as_echo "$lt_cv_nm_interface" >&6; }
4224
4475
 
4225
4476
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4226
4477
$as_echo_n "checking whether ln -s works... " >&6; }
4233
4484
$as_echo "no, using $LN_S" >&6; }
4234
4485
fi
4235
4486
 
 
4487
# find the maximum length of command line arguments
 
4488
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4489
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4490
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4491
  $as_echo_n "(cached) " >&6
 
4492
else
 
4493
    i=0
 
4494
  teststring="ABCD"
 
4495
 
 
4496
  case $build_os in
 
4497
  msdosdjgpp*)
 
4498
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4499
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4500
    # during glob expansion).  Even if it were fixed, the result of this
 
4501
    # check would be larger than it should be.
 
4502
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4503
    ;;
 
4504
 
 
4505
  gnu*)
 
4506
    # Under GNU Hurd, this test is not required because there is
 
4507
    # no limit to the length of command line arguments.
 
4508
    # Libtool will interpret -1 as no limit whatsoever
 
4509
    lt_cv_sys_max_cmd_len=-1;
 
4510
    ;;
 
4511
 
 
4512
  cygwin* | mingw* | cegcc*)
 
4513
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4514
    # about 5 minutes as the teststring grows exponentially.
 
4515
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4516
    # you end up with a "frozen" computer, even though with patience
 
4517
    # the test eventually succeeds (with a max line length of 256k).
 
4518
    # Instead, let's just punt: use the minimum linelength reported by
 
4519
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4520
    lt_cv_sys_max_cmd_len=8192;
 
4521
    ;;
 
4522
 
 
4523
  amigaos*)
 
4524
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4525
    # So we just punt and use a minimum line length of 8192.
 
4526
    lt_cv_sys_max_cmd_len=8192;
 
4527
    ;;
 
4528
 
 
4529
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4530
    # This has been around since 386BSD, at least.  Likely further.
 
4531
    if test -x /sbin/sysctl; then
 
4532
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4533
    elif test -x /usr/sbin/sysctl; then
 
4534
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4535
    else
 
4536
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4537
    fi
 
4538
    # And add a safety zone
 
4539
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4540
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4541
    ;;
 
4542
 
 
4543
  interix*)
 
4544
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4545
    lt_cv_sys_max_cmd_len=196608
 
4546
    ;;
 
4547
 
 
4548
  osf*)
 
4549
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4550
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4551
    # nice to cause kernel panics so lets avoid the loop below.
 
4552
    # First set a reasonable default.
 
4553
    lt_cv_sys_max_cmd_len=16384
 
4554
    #
 
4555
    if test -x /sbin/sysconfig; then
 
4556
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4557
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4558
      esac
 
4559
    fi
 
4560
    ;;
 
4561
  sco3.2v5*)
 
4562
    lt_cv_sys_max_cmd_len=102400
 
4563
    ;;
 
4564
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4565
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4566
    if test -n "$kargmax"; then
 
4567
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4568
    else
 
4569
      lt_cv_sys_max_cmd_len=32768
 
4570
    fi
 
4571
    ;;
 
4572
  *)
 
4573
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4574
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4575
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4576
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4577
    else
 
4578
      # Make teststring a little bigger before we do anything with it.
 
4579
      # a 1K string should be a reasonable start.
 
4580
      for i in 1 2 3 4 5 6 7 8 ; do
 
4581
        teststring=$teststring$teststring
 
4582
      done
 
4583
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4584
      # If test is not a shell built-in, we'll probably end up computing a
 
4585
      # maximum length that is only half of the actual maximum length, but
 
4586
      # we can't tell.
 
4587
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4588
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4589
              test $i != 17 # 1/2 MB should be enough
 
4590
      do
 
4591
        i=`expr $i + 1`
 
4592
        teststring=$teststring$teststring
 
4593
      done
 
4594
      # Only check the string length outside the loop.
 
4595
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4596
      teststring=
 
4597
      # Add a significant safety factor because C++ compilers can tack on
 
4598
      # massive amounts of additional arguments before passing them to the
 
4599
      # linker.  It appears as though 1/2 is a usable value.
 
4600
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4601
    fi
 
4602
    ;;
 
4603
  esac
 
4604
 
 
4605
fi
 
4606
 
 
4607
if test -n $lt_cv_sys_max_cmd_len ; then
 
4608
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4609
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4610
else
 
4611
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
4612
$as_echo "none" >&6; }
 
4613
fi
 
4614
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4615
 
 
4616
 
 
4617
 
 
4618
 
 
4619
 
 
4620
 
 
4621
: ${CP="cp -f"}
 
4622
: ${MV="mv -f"}
 
4623
: ${RM="rm -f"}
 
4624
 
 
4625
{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
4626
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4627
# Try some XSI features
 
4628
xsi_shell=no
 
4629
( _lt_dummy="a/b/c"
 
4630
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4631
      = c,a/b,, \
 
4632
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4633
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4634
  && xsi_shell=yes
 
4635
{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
4636
$as_echo "$xsi_shell" >&6; }
 
4637
 
 
4638
 
 
4639
{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
4640
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4641
lt_shell_append=no
 
4642
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4643
    >/dev/null 2>&1 \
 
4644
  && lt_shell_append=yes
 
4645
{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
4646
$as_echo "$lt_shell_append" >&6; }
 
4647
 
 
4648
 
 
4649
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4650
  lt_unset=unset
 
4651
else
 
4652
  lt_unset=false
 
4653
fi
 
4654
 
 
4655
 
 
4656
 
 
4657
 
 
4658
 
 
4659
# test EBCDIC or ASCII
 
4660
case `echo X|tr X '\101'` in
 
4661
 A) # ASCII based system
 
4662
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4663
  lt_SP2NL='tr \040 \012'
 
4664
  lt_NL2SP='tr \015\012 \040\040'
 
4665
  ;;
 
4666
 *) # EBCDIC based system
 
4667
  lt_SP2NL='tr \100 \n'
 
4668
  lt_NL2SP='tr \r\n \100\100'
 
4669
  ;;
 
4670
esac
 
4671
 
 
4672
 
 
4673
 
 
4674
 
 
4675
 
 
4676
 
 
4677
 
 
4678
 
 
4679
 
 
4680
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4681
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4682
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4683
  $as_echo_n "(cached) " >&6
 
4684
else
 
4685
  lt_cv_ld_reload_flag='-r'
 
4686
fi
 
4687
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4688
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4689
reload_flag=$lt_cv_ld_reload_flag
 
4690
case $reload_flag in
 
4691
"" | " "*) ;;
 
4692
*) reload_flag=" $reload_flag" ;;
 
4693
esac
 
4694
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4695
case $host_os in
 
4696
  darwin*)
 
4697
    if test "$GCC" = yes; then
 
4698
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4699
    else
 
4700
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4701
    fi
 
4702
    ;;
 
4703
esac
 
4704
 
 
4705
 
 
4706
 
 
4707
 
 
4708
 
 
4709
 
 
4710
 
 
4711
 
 
4712
 
 
4713
if test -n "$ac_tool_prefix"; then
 
4714
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4715
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4716
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4717
$as_echo_n "checking for $ac_word... " >&6; }
 
4718
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4719
  $as_echo_n "(cached) " >&6
 
4720
else
 
4721
  if test -n "$OBJDUMP"; then
 
4722
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4723
else
 
4724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4725
for as_dir in $PATH
 
4726
do
 
4727
  IFS=$as_save_IFS
 
4728
  test -z "$as_dir" && as_dir=.
 
4729
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4730
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4731
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4732
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4733
    break 2
 
4734
  fi
 
4735
done
 
4736
done
 
4737
IFS=$as_save_IFS
 
4738
 
 
4739
fi
 
4740
fi
 
4741
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4742
if test -n "$OBJDUMP"; then
 
4743
  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4744
$as_echo "$OBJDUMP" >&6; }
 
4745
else
 
4746
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4747
$as_echo "no" >&6; }
 
4748
fi
 
4749
 
 
4750
 
 
4751
fi
 
4752
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4753
  ac_ct_OBJDUMP=$OBJDUMP
 
4754
  # Extract the first word of "objdump", so it can be a program name with args.
 
4755
set dummy objdump; ac_word=$2
 
4756
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4757
$as_echo_n "checking for $ac_word... " >&6; }
 
4758
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4759
  $as_echo_n "(cached) " >&6
 
4760
else
 
4761
  if test -n "$ac_ct_OBJDUMP"; then
 
4762
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4763
else
 
4764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4765
for as_dir in $PATH
 
4766
do
 
4767
  IFS=$as_save_IFS
 
4768
  test -z "$as_dir" && as_dir=.
 
4769
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4770
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4771
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4772
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4773
    break 2
 
4774
  fi
 
4775
done
 
4776
done
 
4777
IFS=$as_save_IFS
 
4778
 
 
4779
fi
 
4780
fi
 
4781
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4782
if test -n "$ac_ct_OBJDUMP"; then
 
4783
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4784
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4785
else
 
4786
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4787
$as_echo "no" >&6; }
 
4788
fi
 
4789
 
 
4790
  if test "x$ac_ct_OBJDUMP" = x; then
 
4791
    OBJDUMP="false"
 
4792
  else
 
4793
    case $cross_compiling:$ac_tool_warned in
 
4794
yes:)
 
4795
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
4796
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4797
ac_tool_warned=yes ;;
 
4798
esac
 
4799
    OBJDUMP=$ac_ct_OBJDUMP
 
4800
  fi
 
4801
else
 
4802
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4803
fi
 
4804
 
 
4805
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4806
 
 
4807
 
 
4808
 
 
4809
 
 
4810
 
 
4811
 
 
4812
 
 
4813
 
 
4814
 
4236
4815
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4237
4816
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4238
4817
if test "${lt_cv_deplibs_check_method+set}" = set; then
4286
4865
  fi
4287
4866
  ;;
4288
4867
 
 
4868
cegcc)
 
4869
  # use the weaker test based on 'objdump'. See mingw*.
 
4870
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4871
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4872
  ;;
 
4873
 
4289
4874
darwin* | rhapsody*)
4290
4875
  lt_cv_deplibs_check_method=pass_all
4291
4876
  ;;
4292
4877
 
4293
4878
freebsd* | dragonfly*)
4294
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4879
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4295
4880
    case $host_cpu in
4296
4881
    i*86 )
4297
4882
      # Not sure whether the presence of OpenBSD here was a mistake.
4349
4934
  ;;
4350
4935
 
4351
4936
netbsd*)
4352
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4937
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4353
4938
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4354
4939
  else
4355
4940
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4362
4947
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4363
4948
  ;;
4364
4949
 
4365
 
nto-qnx*)
4366
 
  lt_cv_deplibs_check_method=unknown
 
4950
*nto* | *qnx*)
 
4951
  lt_cv_deplibs_check_method=pass_all
4367
4952
  ;;
4368
4953
 
4369
4954
openbsd*)
4370
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4955
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4371
4956
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4372
4957
  else
4373
4958
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4386
4971
  lt_cv_deplibs_check_method=pass_all
4387
4972
  ;;
4388
4973
 
 
4974
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4975
  lt_cv_deplibs_check_method=pass_all
 
4976
  ;;
 
4977
 
4389
4978
sysv4 | sysv4.3*)
4390
4979
  case $host_vendor in
4391
4980
  motorola)
4413
5002
  esac
4414
5003
  ;;
4415
5004
 
4416
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5005
tpf*)
4417
5006
  lt_cv_deplibs_check_method=pass_all
4418
5007
  ;;
4419
5008
esac
4428
5017
 
4429
5018
 
4430
5019
 
 
5020
 
 
5021
 
 
5022
 
 
5023
 
 
5024
 
 
5025
 
 
5026
 
 
5027
 
 
5028
if test -n "$ac_tool_prefix"; then
 
5029
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5030
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5031
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5032
$as_echo_n "checking for $ac_word... " >&6; }
 
5033
if test "${ac_cv_prog_AR+set}" = set; then
 
5034
  $as_echo_n "(cached) " >&6
 
5035
else
 
5036
  if test -n "$AR"; then
 
5037
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5038
else
 
5039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5040
for as_dir in $PATH
 
5041
do
 
5042
  IFS=$as_save_IFS
 
5043
  test -z "$as_dir" && as_dir=.
 
5044
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5045
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5046
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5047
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5048
    break 2
 
5049
  fi
 
5050
done
 
5051
done
 
5052
IFS=$as_save_IFS
 
5053
 
 
5054
fi
 
5055
fi
 
5056
AR=$ac_cv_prog_AR
 
5057
if test -n "$AR"; then
 
5058
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
5059
$as_echo "$AR" >&6; }
 
5060
else
 
5061
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5062
$as_echo "no" >&6; }
 
5063
fi
 
5064
 
 
5065
 
 
5066
fi
 
5067
if test -z "$ac_cv_prog_AR"; then
 
5068
  ac_ct_AR=$AR
 
5069
  # Extract the first word of "ar", so it can be a program name with args.
 
5070
set dummy ar; ac_word=$2
 
5071
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5072
$as_echo_n "checking for $ac_word... " >&6; }
 
5073
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5074
  $as_echo_n "(cached) " >&6
 
5075
else
 
5076
  if test -n "$ac_ct_AR"; then
 
5077
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5078
else
 
5079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5080
for as_dir in $PATH
 
5081
do
 
5082
  IFS=$as_save_IFS
 
5083
  test -z "$as_dir" && as_dir=.
 
5084
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5085
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5086
    ac_cv_prog_ac_ct_AR="ar"
 
5087
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5088
    break 2
 
5089
  fi
 
5090
done
 
5091
done
 
5092
IFS=$as_save_IFS
 
5093
 
 
5094
fi
 
5095
fi
 
5096
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5097
if test -n "$ac_ct_AR"; then
 
5098
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5099
$as_echo "$ac_ct_AR" >&6; }
 
5100
else
 
5101
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5102
$as_echo "no" >&6; }
 
5103
fi
 
5104
 
 
5105
  if test "x$ac_ct_AR" = x; then
 
5106
    AR="false"
 
5107
  else
 
5108
    case $cross_compiling:$ac_tool_warned in
 
5109
yes:)
 
5110
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5111
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5112
ac_tool_warned=yes ;;
 
5113
esac
 
5114
    AR=$ac_ct_AR
 
5115
  fi
 
5116
else
 
5117
  AR="$ac_cv_prog_AR"
 
5118
fi
 
5119
 
 
5120
test -z "$AR" && AR=ar
 
5121
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5122
 
 
5123
 
 
5124
 
 
5125
 
 
5126
 
 
5127
 
 
5128
 
 
5129
 
 
5130
 
 
5131
 
 
5132
 
 
5133
if test -n "$ac_tool_prefix"; then
 
5134
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5135
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5136
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5137
$as_echo_n "checking for $ac_word... " >&6; }
 
5138
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5139
  $as_echo_n "(cached) " >&6
 
5140
else
 
5141
  if test -n "$STRIP"; then
 
5142
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5143
else
 
5144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5145
for as_dir in $PATH
 
5146
do
 
5147
  IFS=$as_save_IFS
 
5148
  test -z "$as_dir" && as_dir=.
 
5149
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5150
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5151
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5152
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5153
    break 2
 
5154
  fi
 
5155
done
 
5156
done
 
5157
IFS=$as_save_IFS
 
5158
 
 
5159
fi
 
5160
fi
 
5161
STRIP=$ac_cv_prog_STRIP
 
5162
if test -n "$STRIP"; then
 
5163
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
5164
$as_echo "$STRIP" >&6; }
 
5165
else
 
5166
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5167
$as_echo "no" >&6; }
 
5168
fi
 
5169
 
 
5170
 
 
5171
fi
 
5172
if test -z "$ac_cv_prog_STRIP"; then
 
5173
  ac_ct_STRIP=$STRIP
 
5174
  # Extract the first word of "strip", so it can be a program name with args.
 
5175
set dummy strip; ac_word=$2
 
5176
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5177
$as_echo_n "checking for $ac_word... " >&6; }
 
5178
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5179
  $as_echo_n "(cached) " >&6
 
5180
else
 
5181
  if test -n "$ac_ct_STRIP"; then
 
5182
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5183
else
 
5184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5185
for as_dir in $PATH
 
5186
do
 
5187
  IFS=$as_save_IFS
 
5188
  test -z "$as_dir" && as_dir=.
 
5189
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5190
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5191
    ac_cv_prog_ac_ct_STRIP="strip"
 
5192
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5193
    break 2
 
5194
  fi
 
5195
done
 
5196
done
 
5197
IFS=$as_save_IFS
 
5198
 
 
5199
fi
 
5200
fi
 
5201
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5202
if test -n "$ac_ct_STRIP"; then
 
5203
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5204
$as_echo "$ac_ct_STRIP" >&6; }
 
5205
else
 
5206
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5207
$as_echo "no" >&6; }
 
5208
fi
 
5209
 
 
5210
  if test "x$ac_ct_STRIP" = x; then
 
5211
    STRIP=":"
 
5212
  else
 
5213
    case $cross_compiling:$ac_tool_warned in
 
5214
yes:)
 
5215
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5216
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5217
ac_tool_warned=yes ;;
 
5218
esac
 
5219
    STRIP=$ac_ct_STRIP
 
5220
  fi
 
5221
else
 
5222
  STRIP="$ac_cv_prog_STRIP"
 
5223
fi
 
5224
 
 
5225
test -z "$STRIP" && STRIP=:
 
5226
 
 
5227
 
 
5228
 
 
5229
 
 
5230
 
 
5231
 
 
5232
if test -n "$ac_tool_prefix"; then
 
5233
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5234
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5235
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5236
$as_echo_n "checking for $ac_word... " >&6; }
 
5237
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5238
  $as_echo_n "(cached) " >&6
 
5239
else
 
5240
  if test -n "$RANLIB"; then
 
5241
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5242
else
 
5243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5244
for as_dir in $PATH
 
5245
do
 
5246
  IFS=$as_save_IFS
 
5247
  test -z "$as_dir" && as_dir=.
 
5248
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5249
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5250
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5251
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5252
    break 2
 
5253
  fi
 
5254
done
 
5255
done
 
5256
IFS=$as_save_IFS
 
5257
 
 
5258
fi
 
5259
fi
 
5260
RANLIB=$ac_cv_prog_RANLIB
 
5261
if test -n "$RANLIB"; then
 
5262
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5263
$as_echo "$RANLIB" >&6; }
 
5264
else
 
5265
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5266
$as_echo "no" >&6; }
 
5267
fi
 
5268
 
 
5269
 
 
5270
fi
 
5271
if test -z "$ac_cv_prog_RANLIB"; then
 
5272
  ac_ct_RANLIB=$RANLIB
 
5273
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5274
set dummy ranlib; ac_word=$2
 
5275
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5276
$as_echo_n "checking for $ac_word... " >&6; }
 
5277
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5278
  $as_echo_n "(cached) " >&6
 
5279
else
 
5280
  if test -n "$ac_ct_RANLIB"; then
 
5281
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5282
else
 
5283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5284
for as_dir in $PATH
 
5285
do
 
5286
  IFS=$as_save_IFS
 
5287
  test -z "$as_dir" && as_dir=.
 
5288
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5289
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5290
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5291
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5292
    break 2
 
5293
  fi
 
5294
done
 
5295
done
 
5296
IFS=$as_save_IFS
 
5297
 
 
5298
fi
 
5299
fi
 
5300
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5301
if test -n "$ac_ct_RANLIB"; then
 
5302
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5303
$as_echo "$ac_ct_RANLIB" >&6; }
 
5304
else
 
5305
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5306
$as_echo "no" >&6; }
 
5307
fi
 
5308
 
 
5309
  if test "x$ac_ct_RANLIB" = x; then
 
5310
    RANLIB=":"
 
5311
  else
 
5312
    case $cross_compiling:$ac_tool_warned in
 
5313
yes:)
 
5314
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5315
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5316
ac_tool_warned=yes ;;
 
5317
esac
 
5318
    RANLIB=$ac_ct_RANLIB
 
5319
  fi
 
5320
else
 
5321
  RANLIB="$ac_cv_prog_RANLIB"
 
5322
fi
 
5323
 
 
5324
test -z "$RANLIB" && RANLIB=:
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
 
 
5330
 
 
5331
# Determine commands to create old-style static archives.
 
5332
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5333
old_postinstall_cmds='chmod 644 $oldlib'
 
5334
old_postuninstall_cmds=
 
5335
 
 
5336
if test -n "$RANLIB"; then
 
5337
  case $host_os in
 
5338
  openbsd*)
 
5339
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5340
    ;;
 
5341
  *)
 
5342
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5343
    ;;
 
5344
  esac
 
5345
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5346
fi
 
5347
 
 
5348
 
 
5349
 
 
5350
 
 
5351
 
 
5352
 
 
5353
 
 
5354
 
 
5355
 
 
5356
 
 
5357
 
 
5358
 
 
5359
 
 
5360
 
 
5361
 
 
5362
 
 
5363
 
 
5364
 
 
5365
 
 
5366
 
 
5367
 
 
5368
 
 
5369
 
 
5370
 
 
5371
 
 
5372
 
 
5373
 
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
 
5379
 
 
5380
 
4431
5381
# If no C compiler was specified, use CC.
4432
5382
LTCC=${LTCC-"$CC"}
4433
5383
 
4438
5388
compiler=$CC
4439
5389
 
4440
5390
 
4441
 
# Check whether --enable-libtool-lock was given.
4442
 
if test "${enable_libtool_lock+set}" = set; then
4443
 
  enableval=$enable_libtool_lock;
4444
 
fi
4445
 
 
4446
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4447
 
 
4448
 
# Some flags need to be propagated to the compiler or linker for good
4449
 
# libtool support.
4450
 
case $host in
4451
 
ia64-*-hpux*)
4452
 
  # Find out which ABI we are using.
4453
 
  echo 'int i;' > conftest.$ac_ext
4454
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455
 
  (eval $ac_compile) 2>&5
4456
 
  ac_status=$?
4457
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458
 
  (exit $ac_status); }; then
4459
 
    case `/usr/bin/file conftest.$ac_objext` in
4460
 
    *ELF-32*)
4461
 
      HPUX_IA64_MODE="32"
4462
 
      ;;
4463
 
    *ELF-64*)
4464
 
      HPUX_IA64_MODE="64"
4465
 
      ;;
4466
 
    esac
4467
 
  fi
4468
 
  rm -rf conftest*
4469
 
  ;;
4470
 
*-*-irix6*)
4471
 
  # Find out which ABI we are using.
4472
 
  echo '#line 4472 "configure"' > conftest.$ac_ext
4473
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474
 
  (eval $ac_compile) 2>&5
4475
 
  ac_status=$?
4476
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477
 
  (exit $ac_status); }; then
4478
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4479
 
    case `/usr/bin/file conftest.$ac_objext` in
4480
 
    *32-bit*)
4481
 
      LD="${LD-ld} -melf32bsmip"
4482
 
      ;;
4483
 
    *N32*)
4484
 
      LD="${LD-ld} -melf32bmipn32"
4485
 
      ;;
4486
 
    *64-bit*)
4487
 
      LD="${LD-ld} -melf64bmip"
4488
 
      ;;
4489
 
    esac
4490
 
   else
4491
 
    case `/usr/bin/file conftest.$ac_objext` in
4492
 
    *32-bit*)
4493
 
      LD="${LD-ld} -32"
4494
 
      ;;
4495
 
    *N32*)
4496
 
      LD="${LD-ld} -n32"
4497
 
      ;;
4498
 
    *64-bit*)
4499
 
      LD="${LD-ld} -64"
4500
 
      ;;
4501
 
    esac
4502
 
   fi
4503
 
  fi
4504
 
  rm -rf conftest*
4505
 
  ;;
4506
 
 
4507
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4508
 
s390*-*linux*|sparc*-*linux*)
4509
 
  # Find out which ABI we are using.
4510
 
  echo 'int i;' > conftest.$ac_ext
4511
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512
 
  (eval $ac_compile) 2>&5
4513
 
  ac_status=$?
4514
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515
 
  (exit $ac_status); }; then
4516
 
    case `/usr/bin/file conftest.o` in
4517
 
    *32-bit*)
4518
 
      case $host in
4519
 
        x86_64-*kfreebsd*-gnu)
4520
 
          LD="${LD-ld} -m elf_i386_fbsd"
4521
 
          ;;
4522
 
        x86_64-*linux*)
4523
 
          LD="${LD-ld} -m elf_i386"
4524
 
          ;;
4525
 
        ppc64-*linux*|powerpc64-*linux*)
4526
 
          LD="${LD-ld} -m elf32ppclinux"
4527
 
          ;;
4528
 
        s390x-*linux*)
4529
 
          LD="${LD-ld} -m elf_s390"
4530
 
          ;;
4531
 
        sparc64-*linux*)
4532
 
          LD="${LD-ld} -m elf32_sparc"
4533
 
          ;;
4534
 
      esac
4535
 
      ;;
4536
 
    *64-bit*)
4537
 
      libsuff=64
4538
 
      case $host in
4539
 
        x86_64-*kfreebsd*-gnu)
4540
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
4541
 
          ;;
4542
 
        x86_64-*linux*)
4543
 
          LD="${LD-ld} -m elf_x86_64"
4544
 
          ;;
4545
 
        ppc*-*linux*|powerpc*-*linux*)
4546
 
          LD="${LD-ld} -m elf64ppc"
4547
 
          ;;
4548
 
        s390*-*linux*)
4549
 
          LD="${LD-ld} -m elf64_s390"
4550
 
          ;;
4551
 
        sparc*-*linux*)
4552
 
          LD="${LD-ld} -m elf64_sparc"
4553
 
          ;;
4554
 
      esac
4555
 
      ;;
4556
 
    esac
4557
 
  fi
4558
 
  rm -rf conftest*
4559
 
  ;;
4560
 
 
4561
 
*-*-sco3.2v5*)
4562
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4563
 
  SAVE_CFLAGS="$CFLAGS"
4564
 
  CFLAGS="$CFLAGS -belf"
4565
 
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4566
 
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4567
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4568
 
  $as_echo_n "(cached) " >&6
4569
 
else
4570
 
  ac_ext=c
4571
 
ac_cpp='$CPP $CPPFLAGS'
4572
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575
 
 
4576
 
     cat >conftest.$ac_ext <<_ACEOF
4577
 
/* confdefs.h.  */
4578
 
_ACEOF
4579
 
cat confdefs.h >>conftest.$ac_ext
4580
 
cat >>conftest.$ac_ext <<_ACEOF
4581
 
/* end confdefs.h.  */
4582
 
 
4583
 
int
4584
 
main ()
4585
 
{
4586
 
 
4587
 
  ;
4588
 
  return 0;
4589
 
}
4590
 
_ACEOF
4591
 
rm -f conftest.$ac_objext conftest$ac_exeext
4592
 
if { (ac_try="$ac_link"
4593
 
case "(($ac_try" in
4594
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595
 
  *) ac_try_echo=$ac_try;;
4596
 
esac
4597
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4598
 
$as_echo "$ac_try_echo") >&5
4599
 
  (eval "$ac_link") 2>conftest.er1
4600
 
  ac_status=$?
4601
 
  grep -v '^ *+' conftest.er1 >conftest.err
4602
 
  rm -f conftest.er1
4603
 
  cat conftest.err >&5
4604
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605
 
  (exit $ac_status); } && {
4606
 
         test -z "$ac_c_werror_flag" ||
4607
 
         test ! -s conftest.err
4608
 
       } && test -s conftest$ac_exeext && {
4609
 
         test "$cross_compiling" = yes ||
4610
 
         $as_test_x conftest$ac_exeext
4611
 
       }; then
4612
 
  lt_cv_cc_needs_belf=yes
4613
 
else
4614
 
  $as_echo "$as_me: failed program was:" >&5
4615
 
sed 's/^/| /' conftest.$ac_ext >&5
4616
 
 
4617
 
        lt_cv_cc_needs_belf=no
4618
 
fi
4619
 
 
4620
 
rm -rf conftest.dSYM
4621
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4622
 
      conftest$ac_exeext conftest.$ac_ext
4623
 
     ac_ext=c
4624
 
ac_cpp='$CPP $CPPFLAGS'
4625
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
 
 
4629
 
fi
4630
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4631
 
$as_echo "$lt_cv_cc_needs_belf" >&6; }
4632
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4633
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4634
 
    CFLAGS="$SAVE_CFLAGS"
4635
 
  fi
4636
 
  ;;
4637
 
sparc*-*solaris*)
4638
 
  # Find out which ABI we are using.
4639
 
  echo 'int i;' > conftest.$ac_ext
4640
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641
 
  (eval $ac_compile) 2>&5
4642
 
  ac_status=$?
4643
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644
 
  (exit $ac_status); }; then
4645
 
    case `/usr/bin/file conftest.o` in
4646
 
    *64-bit*)
4647
 
      case $lt_cv_prog_gnu_ld in
4648
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4649
 
      *)
4650
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4651
 
          LD="${LD-ld} -64"
4652
 
        fi
4653
 
        ;;
4654
 
      esac
4655
 
      ;;
4656
 
    esac
4657
 
  fi
4658
 
  rm -rf conftest*
4659
 
  ;;
4660
 
 
4661
 
 
4662
 
esac
4663
 
 
4664
 
need_locks="$enable_libtool_lock"
4665
 
 
4666
 
 
4667
 
ac_ext=c
4668
 
ac_cpp='$CPP $CPPFLAGS'
4669
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672
 
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4673
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4674
 
# On Suns, sometimes $CPP names a directory.
4675
 
if test -n "$CPP" && test -d "$CPP"; then
4676
 
  CPP=
4677
 
fi
4678
 
if test -z "$CPP"; then
4679
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4680
 
  $as_echo_n "(cached) " >&6
4681
 
else
4682
 
      # Double quotes because CPP needs to be expanded
4683
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4684
 
    do
4685
 
      ac_preproc_ok=false
4686
 
for ac_c_preproc_warn_flag in '' yes
4687
 
do
4688
 
  # Use a header file that comes with gcc, so configuring glibc
4689
 
  # with a fresh cross-compiler works.
4690
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4691
 
  # <limits.h> exists even on freestanding compilers.
4692
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4693
 
  # not just through cpp. "Syntax error" is here to catch this case.
4694
 
  cat >conftest.$ac_ext <<_ACEOF
4695
 
/* confdefs.h.  */
4696
 
_ACEOF
4697
 
cat confdefs.h >>conftest.$ac_ext
4698
 
cat >>conftest.$ac_ext <<_ACEOF
4699
 
/* end confdefs.h.  */
4700
 
#ifdef __STDC__
4701
 
# include <limits.h>
4702
 
#else
4703
 
# include <assert.h>
4704
 
#endif
4705
 
                     Syntax error
4706
 
_ACEOF
4707
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4708
 
case "(($ac_try" in
4709
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710
 
  *) ac_try_echo=$ac_try;;
4711
 
esac
4712
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713
 
$as_echo "$ac_try_echo") >&5
4714
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715
 
  ac_status=$?
4716
 
  grep -v '^ *+' conftest.er1 >conftest.err
4717
 
  rm -f conftest.er1
4718
 
  cat conftest.err >&5
4719
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720
 
  (exit $ac_status); } >/dev/null && {
4721
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722
 
         test ! -s conftest.err
4723
 
       }; then
4724
 
  :
4725
 
else
4726
 
  $as_echo "$as_me: failed program was:" >&5
4727
 
sed 's/^/| /' conftest.$ac_ext >&5
4728
 
 
4729
 
  # Broken: fails on valid input.
4730
 
continue
4731
 
fi
4732
 
 
4733
 
rm -f conftest.err conftest.$ac_ext
4734
 
 
4735
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4736
 
  # can be detected and how.
4737
 
  cat >conftest.$ac_ext <<_ACEOF
4738
 
/* confdefs.h.  */
4739
 
_ACEOF
4740
 
cat confdefs.h >>conftest.$ac_ext
4741
 
cat >>conftest.$ac_ext <<_ACEOF
4742
 
/* end confdefs.h.  */
4743
 
#include <ac_nonexistent.h>
4744
 
_ACEOF
4745
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4746
 
case "(($ac_try" in
4747
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748
 
  *) ac_try_echo=$ac_try;;
4749
 
esac
4750
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751
 
$as_echo "$ac_try_echo") >&5
4752
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753
 
  ac_status=$?
4754
 
  grep -v '^ *+' conftest.er1 >conftest.err
4755
 
  rm -f conftest.er1
4756
 
  cat conftest.err >&5
4757
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758
 
  (exit $ac_status); } >/dev/null && {
4759
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4760
 
         test ! -s conftest.err
4761
 
       }; then
4762
 
  # Broken: success on invalid input.
4763
 
continue
4764
 
else
4765
 
  $as_echo "$as_me: failed program was:" >&5
4766
 
sed 's/^/| /' conftest.$ac_ext >&5
4767
 
 
4768
 
  # Passes both tests.
4769
 
ac_preproc_ok=:
4770
 
break
4771
 
fi
4772
 
 
4773
 
rm -f conftest.err conftest.$ac_ext
4774
 
 
4775
 
done
4776
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777
 
rm -f conftest.err conftest.$ac_ext
4778
 
if $ac_preproc_ok; then
4779
 
  break
4780
 
fi
4781
 
 
4782
 
    done
4783
 
    ac_cv_prog_CPP=$CPP
4784
 
 
4785
 
fi
4786
 
  CPP=$ac_cv_prog_CPP
4787
 
else
4788
 
  ac_cv_prog_CPP=$CPP
4789
 
fi
4790
 
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4791
 
$as_echo "$CPP" >&6; }
4792
 
ac_preproc_ok=false
4793
 
for ac_c_preproc_warn_flag in '' yes
4794
 
do
4795
 
  # Use a header file that comes with gcc, so configuring glibc
4796
 
  # with a fresh cross-compiler works.
4797
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798
 
  # <limits.h> exists even on freestanding compilers.
4799
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4800
 
  # not just through cpp. "Syntax error" is here to catch this case.
4801
 
  cat >conftest.$ac_ext <<_ACEOF
4802
 
/* confdefs.h.  */
4803
 
_ACEOF
4804
 
cat confdefs.h >>conftest.$ac_ext
4805
 
cat >>conftest.$ac_ext <<_ACEOF
4806
 
/* end confdefs.h.  */
4807
 
#ifdef __STDC__
4808
 
# include <limits.h>
4809
 
#else
4810
 
# include <assert.h>
4811
 
#endif
4812
 
                     Syntax error
4813
 
_ACEOF
4814
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4815
 
case "(($ac_try" in
4816
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817
 
  *) ac_try_echo=$ac_try;;
4818
 
esac
4819
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4820
 
$as_echo "$ac_try_echo") >&5
4821
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822
 
  ac_status=$?
4823
 
  grep -v '^ *+' conftest.er1 >conftest.err
4824
 
  rm -f conftest.er1
4825
 
  cat conftest.err >&5
4826
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827
 
  (exit $ac_status); } >/dev/null && {
4828
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4829
 
         test ! -s conftest.err
4830
 
       }; then
4831
 
  :
4832
 
else
4833
 
  $as_echo "$as_me: failed program was:" >&5
4834
 
sed 's/^/| /' conftest.$ac_ext >&5
4835
 
 
4836
 
  # Broken: fails on valid input.
4837
 
continue
4838
 
fi
4839
 
 
4840
 
rm -f conftest.err conftest.$ac_ext
4841
 
 
4842
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4843
 
  # can be detected and how.
4844
 
  cat >conftest.$ac_ext <<_ACEOF
4845
 
/* confdefs.h.  */
4846
 
_ACEOF
4847
 
cat confdefs.h >>conftest.$ac_ext
4848
 
cat >>conftest.$ac_ext <<_ACEOF
4849
 
/* end confdefs.h.  */
4850
 
#include <ac_nonexistent.h>
4851
 
_ACEOF
4852
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4853
 
case "(($ac_try" in
4854
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855
 
  *) ac_try_echo=$ac_try;;
4856
 
esac
4857
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858
 
$as_echo "$ac_try_echo") >&5
4859
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860
 
  ac_status=$?
4861
 
  grep -v '^ *+' conftest.er1 >conftest.err
4862
 
  rm -f conftest.er1
4863
 
  cat conftest.err >&5
4864
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865
 
  (exit $ac_status); } >/dev/null && {
4866
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867
 
         test ! -s conftest.err
4868
 
       }; then
4869
 
  # Broken: success on invalid input.
4870
 
continue
4871
 
else
4872
 
  $as_echo "$as_me: failed program was:" >&5
4873
 
sed 's/^/| /' conftest.$ac_ext >&5
4874
 
 
4875
 
  # Passes both tests.
4876
 
ac_preproc_ok=:
4877
 
break
4878
 
fi
4879
 
 
4880
 
rm -f conftest.err conftest.$ac_ext
4881
 
 
4882
 
done
4883
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884
 
rm -f conftest.err conftest.$ac_ext
4885
 
if $ac_preproc_ok; then
4886
 
  :
4887
 
else
4888
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4889
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4890
 
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4891
 
See \`config.log' for more details." >&5
4892
 
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4893
 
See \`config.log' for more details." >&2;}
4894
 
   { (exit 1); exit 1; }; }; }
4895
 
fi
4896
 
 
4897
 
ac_ext=c
4898
 
ac_cpp='$CPP $CPPFLAGS'
4899
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902
 
 
4903
 
 
4904
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4905
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4906
 
if test "${ac_cv_header_stdc+set}" = set; then
4907
 
  $as_echo_n "(cached) " >&6
4908
 
else
4909
 
  cat >conftest.$ac_ext <<_ACEOF
4910
 
/* confdefs.h.  */
4911
 
_ACEOF
4912
 
cat confdefs.h >>conftest.$ac_ext
4913
 
cat >>conftest.$ac_ext <<_ACEOF
4914
 
/* end confdefs.h.  */
4915
 
#include <stdlib.h>
4916
 
#include <stdarg.h>
4917
 
#include <string.h>
4918
 
#include <float.h>
4919
 
 
4920
 
int
4921
 
main ()
4922
 
{
4923
 
 
4924
 
  ;
4925
 
  return 0;
4926
 
}
4927
 
_ACEOF
4928
 
rm -f conftest.$ac_objext
4929
 
if { (ac_try="$ac_compile"
4930
 
case "(($ac_try" in
4931
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932
 
  *) ac_try_echo=$ac_try;;
4933
 
esac
4934
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4935
 
$as_echo "$ac_try_echo") >&5
4936
 
  (eval "$ac_compile") 2>conftest.er1
4937
 
  ac_status=$?
4938
 
  grep -v '^ *+' conftest.er1 >conftest.err
4939
 
  rm -f conftest.er1
4940
 
  cat conftest.err >&5
4941
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942
 
  (exit $ac_status); } && {
4943
 
         test -z "$ac_c_werror_flag" ||
4944
 
         test ! -s conftest.err
4945
 
       } && test -s conftest.$ac_objext; then
4946
 
  ac_cv_header_stdc=yes
4947
 
else
4948
 
  $as_echo "$as_me: failed program was:" >&5
4949
 
sed 's/^/| /' conftest.$ac_ext >&5
4950
 
 
4951
 
        ac_cv_header_stdc=no
4952
 
fi
4953
 
 
4954
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955
 
 
4956
 
if test $ac_cv_header_stdc = yes; then
4957
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4958
 
  cat >conftest.$ac_ext <<_ACEOF
4959
 
/* confdefs.h.  */
4960
 
_ACEOF
4961
 
cat confdefs.h >>conftest.$ac_ext
4962
 
cat >>conftest.$ac_ext <<_ACEOF
4963
 
/* end confdefs.h.  */
4964
 
#include <string.h>
4965
 
 
4966
 
_ACEOF
4967
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968
 
  $EGREP "memchr" >/dev/null 2>&1; then
4969
 
  :
4970
 
else
4971
 
  ac_cv_header_stdc=no
4972
 
fi
4973
 
rm -f conftest*
4974
 
 
4975
 
fi
4976
 
 
4977
 
if test $ac_cv_header_stdc = yes; then
4978
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4979
 
  cat >conftest.$ac_ext <<_ACEOF
4980
 
/* confdefs.h.  */
4981
 
_ACEOF
4982
 
cat confdefs.h >>conftest.$ac_ext
4983
 
cat >>conftest.$ac_ext <<_ACEOF
4984
 
/* end confdefs.h.  */
4985
 
#include <stdlib.h>
4986
 
 
4987
 
_ACEOF
4988
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4989
 
  $EGREP "free" >/dev/null 2>&1; then
4990
 
  :
4991
 
else
4992
 
  ac_cv_header_stdc=no
4993
 
fi
4994
 
rm -f conftest*
4995
 
 
4996
 
fi
4997
 
 
4998
 
if test $ac_cv_header_stdc = yes; then
4999
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5000
 
  if test "$cross_compiling" = yes; then
5001
 
  :
5002
 
else
5003
 
  cat >conftest.$ac_ext <<_ACEOF
5004
 
/* confdefs.h.  */
5005
 
_ACEOF
5006
 
cat confdefs.h >>conftest.$ac_ext
5007
 
cat >>conftest.$ac_ext <<_ACEOF
5008
 
/* end confdefs.h.  */
5009
 
#include <ctype.h>
5010
 
#include <stdlib.h>
5011
 
#if ((' ' & 0x0FF) == 0x020)
5012
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5013
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5014
 
#else
5015
 
# define ISLOWER(c) \
5016
 
                   (('a' <= (c) && (c) <= 'i') \
5017
 
                     || ('j' <= (c) && (c) <= 'r') \
5018
 
                     || ('s' <= (c) && (c) <= 'z'))
5019
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5020
 
#endif
5021
 
 
5022
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5023
 
int
5024
 
main ()
5025
 
{
5026
 
  int i;
5027
 
  for (i = 0; i < 256; i++)
5028
 
    if (XOR (islower (i), ISLOWER (i))
5029
 
        || toupper (i) != TOUPPER (i))
5030
 
      return 2;
5031
 
  return 0;
5032
 
}
5033
 
_ACEOF
5034
 
rm -f conftest$ac_exeext
5035
 
if { (ac_try="$ac_link"
5036
 
case "(($ac_try" in
5037
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038
 
  *) ac_try_echo=$ac_try;;
5039
 
esac
5040
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041
 
$as_echo "$ac_try_echo") >&5
5042
 
  (eval "$ac_link") 2>&5
5043
 
  ac_status=$?
5044
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5046
 
  { (case "(($ac_try" in
5047
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048
 
  *) ac_try_echo=$ac_try;;
5049
 
esac
5050
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051
 
$as_echo "$ac_try_echo") >&5
5052
 
  (eval "$ac_try") 2>&5
5053
 
  ac_status=$?
5054
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055
 
  (exit $ac_status); }; }; then
5056
 
  :
5057
 
else
5058
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5059
 
$as_echo "$as_me: failed program was:" >&5
5060
 
sed 's/^/| /' conftest.$ac_ext >&5
5061
 
 
5062
 
( exit $ac_status )
5063
 
ac_cv_header_stdc=no
5064
 
fi
5065
 
rm -rf conftest.dSYM
5066
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067
 
fi
5068
 
 
5069
 
 
5070
 
fi
5071
 
fi
5072
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073
 
$as_echo "$ac_cv_header_stdc" >&6; }
5074
 
if test $ac_cv_header_stdc = yes; then
5075
 
 
5076
 
cat >>confdefs.h <<\_ACEOF
5077
 
#define STDC_HEADERS 1
5078
 
_ACEOF
5079
 
 
5080
 
fi
5081
 
 
5082
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5083
 
 
5084
 
 
5085
 
 
5086
 
 
5087
 
 
5088
 
 
5089
 
 
5090
 
 
5091
 
 
5092
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093
 
                  inttypes.h stdint.h unistd.h
5094
 
do
5095
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5097
 
$as_echo_n "checking for $ac_header... " >&6; }
5098
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099
 
  $as_echo_n "(cached) " >&6
5100
 
else
5101
 
  cat >conftest.$ac_ext <<_ACEOF
5102
 
/* confdefs.h.  */
5103
 
_ACEOF
5104
 
cat confdefs.h >>conftest.$ac_ext
5105
 
cat >>conftest.$ac_ext <<_ACEOF
5106
 
/* end confdefs.h.  */
5107
 
$ac_includes_default
5108
 
 
5109
 
#include <$ac_header>
5110
 
_ACEOF
5111
 
rm -f conftest.$ac_objext
5112
 
if { (ac_try="$ac_compile"
5113
 
case "(($ac_try" in
5114
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115
 
  *) ac_try_echo=$ac_try;;
5116
 
esac
5117
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5118
 
$as_echo "$ac_try_echo") >&5
5119
 
  (eval "$ac_compile") 2>conftest.er1
5120
 
  ac_status=$?
5121
 
  grep -v '^ *+' conftest.er1 >conftest.err
5122
 
  rm -f conftest.er1
5123
 
  cat conftest.err >&5
5124
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125
 
  (exit $ac_status); } && {
5126
 
         test -z "$ac_c_werror_flag" ||
5127
 
         test ! -s conftest.err
5128
 
       } && test -s conftest.$ac_objext; then
5129
 
  eval "$as_ac_Header=yes"
5130
 
else
5131
 
  $as_echo "$as_me: failed program was:" >&5
5132
 
sed 's/^/| /' conftest.$ac_ext >&5
5133
 
 
5134
 
        eval "$as_ac_Header=no"
5135
 
fi
5136
 
 
5137
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138
 
fi
5139
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5140
 
                 $as_echo "$as_val"'`
5141
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5142
 
$as_echo "$ac_res" >&6; }
5143
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5144
 
                 $as_echo "$as_val"'`
5145
 
   if test "x$as_val" = x""yes; then
5146
 
  cat >>confdefs.h <<_ACEOF
5147
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5148
 
_ACEOF
5149
 
 
5150
 
fi
5151
 
 
5152
 
done
5153
 
 
5154
 
 
5155
 
 
5156
 
for ac_header in dlfcn.h
5157
 
do
5158
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5160
 
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5161
 
$as_echo_n "checking for $ac_header... " >&6; }
5162
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5163
 
  $as_echo_n "(cached) " >&6
5164
 
fi
5165
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5166
 
                 $as_echo "$as_val"'`
5167
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5168
 
$as_echo "$ac_res" >&6; }
5169
 
else
5170
 
  # Is the header compilable?
5171
 
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5172
 
$as_echo_n "checking $ac_header usability... " >&6; }
5173
 
cat >conftest.$ac_ext <<_ACEOF
5174
 
/* confdefs.h.  */
5175
 
_ACEOF
5176
 
cat confdefs.h >>conftest.$ac_ext
5177
 
cat >>conftest.$ac_ext <<_ACEOF
5178
 
/* end confdefs.h.  */
5179
 
$ac_includes_default
5180
 
#include <$ac_header>
5181
 
_ACEOF
5182
 
rm -f conftest.$ac_objext
5183
 
if { (ac_try="$ac_compile"
5184
 
case "(($ac_try" in
5185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186
 
  *) ac_try_echo=$ac_try;;
5187
 
esac
5188
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189
 
$as_echo "$ac_try_echo") >&5
5190
 
  (eval "$ac_compile") 2>conftest.er1
5191
 
  ac_status=$?
5192
 
  grep -v '^ *+' conftest.er1 >conftest.err
5193
 
  rm -f conftest.er1
5194
 
  cat conftest.err >&5
5195
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196
 
  (exit $ac_status); } && {
5197
 
         test -z "$ac_c_werror_flag" ||
5198
 
         test ! -s conftest.err
5199
 
       } && test -s conftest.$ac_objext; then
5200
 
  ac_header_compiler=yes
5201
 
else
5202
 
  $as_echo "$as_me: failed program was:" >&5
5203
 
sed 's/^/| /' conftest.$ac_ext >&5
5204
 
 
5205
 
        ac_header_compiler=no
5206
 
fi
5207
 
 
5208
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210
 
$as_echo "$ac_header_compiler" >&6; }
5211
 
 
5212
 
# Is the header present?
5213
 
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5214
 
$as_echo_n "checking $ac_header presence... " >&6; }
5215
 
cat >conftest.$ac_ext <<_ACEOF
5216
 
/* confdefs.h.  */
5217
 
_ACEOF
5218
 
cat confdefs.h >>conftest.$ac_ext
5219
 
cat >>conftest.$ac_ext <<_ACEOF
5220
 
/* end confdefs.h.  */
5221
 
#include <$ac_header>
5222
 
_ACEOF
5223
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5224
 
case "(($ac_try" in
5225
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226
 
  *) ac_try_echo=$ac_try;;
5227
 
esac
5228
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229
 
$as_echo "$ac_try_echo") >&5
5230
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231
 
  ac_status=$?
5232
 
  grep -v '^ *+' conftest.er1 >conftest.err
5233
 
  rm -f conftest.er1
5234
 
  cat conftest.err >&5
5235
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236
 
  (exit $ac_status); } >/dev/null && {
5237
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5238
 
         test ! -s conftest.err
5239
 
       }; then
5240
 
  ac_header_preproc=yes
5241
 
else
5242
 
  $as_echo "$as_me: failed program was:" >&5
5243
 
sed 's/^/| /' conftest.$ac_ext >&5
5244
 
 
5245
 
  ac_header_preproc=no
5246
 
fi
5247
 
 
5248
 
rm -f conftest.err conftest.$ac_ext
5249
 
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250
 
$as_echo "$ac_header_preproc" >&6; }
5251
 
 
5252
 
# So?  What about this header?
5253
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5254
 
  yes:no: )
5255
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5256
 
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5258
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5259
 
    ac_header_preproc=yes
5260
 
    ;;
5261
 
  no:yes:* )
5262
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5263
 
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5264
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5265
 
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5266
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5267
 
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5268
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5269
 
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5270
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5271
 
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5272
 
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5273
 
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5274
 
    ( cat <<\_ASBOX
5275
 
## ---------------------------------------------------------------------- ##
5276
 
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5277
 
## ---------------------------------------------------------------------- ##
5278
 
_ASBOX
5279
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5280
 
    ;;
5281
 
esac
5282
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5283
 
$as_echo_n "checking for $ac_header... " >&6; }
5284
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5285
 
  $as_echo_n "(cached) " >&6
5286
 
else
5287
 
  eval "$as_ac_Header=\$ac_header_preproc"
5288
 
fi
5289
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5290
 
                 $as_echo "$as_val"'`
5291
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5292
 
$as_echo "$ac_res" >&6; }
5293
 
 
5294
 
fi
5295
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5296
 
                 $as_echo "$as_val"'`
5297
 
   if test "x$as_val" = x""yes; then
5298
 
  cat >>confdefs.h <<_ACEOF
5299
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300
 
_ACEOF
5301
 
 
5302
 
fi
5303
 
 
5304
 
done
5305
 
 
5306
 
ac_ext=cpp
5307
 
ac_cpp='$CXXCPP $CPPFLAGS'
5308
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311
 
if test -z "$CXX"; then
5312
 
  if test -n "$CCC"; then
5313
 
    CXX=$CCC
5314
 
  else
5315
 
    if test -n "$ac_tool_prefix"; then
5316
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317
 
  do
5318
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5321
 
$as_echo_n "checking for $ac_word... " >&6; }
5322
 
if test "${ac_cv_prog_CXX+set}" = set; then
5323
 
  $as_echo_n "(cached) " >&6
5324
 
else
5325
 
  if test -n "$CXX"; then
5326
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5327
 
else
5328
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329
 
for as_dir in $PATH
5330
 
do
5331
 
  IFS=$as_save_IFS
5332
 
  test -z "$as_dir" && as_dir=.
5333
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5334
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5336
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337
 
    break 2
5338
 
  fi
5339
 
done
5340
 
done
5341
 
IFS=$as_save_IFS
5342
 
 
5343
 
fi
5344
 
fi
5345
 
CXX=$ac_cv_prog_CXX
5346
 
if test -n "$CXX"; then
5347
 
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5348
 
$as_echo "$CXX" >&6; }
5349
 
else
5350
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5351
 
$as_echo "no" >&6; }
5352
 
fi
5353
 
 
5354
 
 
5355
 
    test -n "$CXX" && break
5356
 
  done
5357
 
fi
5358
 
if test -z "$CXX"; then
5359
 
  ac_ct_CXX=$CXX
5360
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361
 
do
5362
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5363
 
set dummy $ac_prog; ac_word=$2
5364
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5365
 
$as_echo_n "checking for $ac_word... " >&6; }
5366
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5367
 
  $as_echo_n "(cached) " >&6
5368
 
else
5369
 
  if test -n "$ac_ct_CXX"; then
5370
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5371
 
else
5372
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373
 
for as_dir in $PATH
5374
 
do
5375
 
  IFS=$as_save_IFS
5376
 
  test -z "$as_dir" && as_dir=.
5377
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5378
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5380
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381
 
    break 2
5382
 
  fi
5383
 
done
5384
 
done
5385
 
IFS=$as_save_IFS
5386
 
 
5387
 
fi
5388
 
fi
5389
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5390
 
if test -n "$ac_ct_CXX"; then
5391
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5392
 
$as_echo "$ac_ct_CXX" >&6; }
5393
 
else
5394
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
5395
 
$as_echo "no" >&6; }
5396
 
fi
5397
 
 
5398
 
 
5399
 
  test -n "$ac_ct_CXX" && break
5400
 
done
5401
 
 
5402
 
  if test "x$ac_ct_CXX" = x; then
5403
 
    CXX="g++"
5404
 
  else
5405
 
    case $cross_compiling:$ac_tool_warned in
5406
 
yes:)
5407
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5408
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409
 
ac_tool_warned=yes ;;
5410
 
esac
5411
 
    CXX=$ac_ct_CXX
5412
 
  fi
5413
 
fi
5414
 
 
5415
 
  fi
5416
 
fi
5417
 
# Provide some information about the compiler.
5418
 
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5419
 
set X $ac_compile
5420
 
ac_compiler=$2
5421
 
{ (ac_try="$ac_compiler --version >&5"
5422
 
case "(($ac_try" in
5423
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424
 
  *) ac_try_echo=$ac_try;;
5425
 
esac
5426
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427
 
$as_echo "$ac_try_echo") >&5
5428
 
  (eval "$ac_compiler --version >&5") 2>&5
5429
 
  ac_status=$?
5430
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431
 
  (exit $ac_status); }
5432
 
{ (ac_try="$ac_compiler -v >&5"
5433
 
case "(($ac_try" in
5434
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435
 
  *) ac_try_echo=$ac_try;;
5436
 
esac
5437
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5438
 
$as_echo "$ac_try_echo") >&5
5439
 
  (eval "$ac_compiler -v >&5") 2>&5
5440
 
  ac_status=$?
5441
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
 
  (exit $ac_status); }
5443
 
{ (ac_try="$ac_compiler -V >&5"
5444
 
case "(($ac_try" in
5445
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446
 
  *) ac_try_echo=$ac_try;;
5447
 
esac
5448
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5449
 
$as_echo "$ac_try_echo") >&5
5450
 
  (eval "$ac_compiler -V >&5") 2>&5
5451
 
  ac_status=$?
5452
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453
 
  (exit $ac_status); }
5454
 
 
5455
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5456
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5457
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5458
 
  $as_echo_n "(cached) " >&6
5459
 
else
5460
 
  cat >conftest.$ac_ext <<_ACEOF
5461
 
/* confdefs.h.  */
5462
 
_ACEOF
5463
 
cat confdefs.h >>conftest.$ac_ext
5464
 
cat >>conftest.$ac_ext <<_ACEOF
5465
 
/* end confdefs.h.  */
5466
 
 
5467
 
int
5468
 
main ()
5469
 
{
5470
 
#ifndef __GNUC__
5471
 
       choke me
5472
 
#endif
5473
 
 
5474
 
  ;
5475
 
  return 0;
5476
 
}
5477
 
_ACEOF
5478
 
rm -f conftest.$ac_objext
5479
 
if { (ac_try="$ac_compile"
5480
 
case "(($ac_try" in
5481
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482
 
  *) ac_try_echo=$ac_try;;
5483
 
esac
5484
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485
 
$as_echo "$ac_try_echo") >&5
5486
 
  (eval "$ac_compile") 2>conftest.er1
5487
 
  ac_status=$?
5488
 
  grep -v '^ *+' conftest.er1 >conftest.err
5489
 
  rm -f conftest.er1
5490
 
  cat conftest.err >&5
5491
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492
 
  (exit $ac_status); } && {
5493
 
         test -z "$ac_cxx_werror_flag" ||
5494
 
         test ! -s conftest.err
5495
 
       } && test -s conftest.$ac_objext; then
5496
 
  ac_compiler_gnu=yes
5497
 
else
5498
 
  $as_echo "$as_me: failed program was:" >&5
5499
 
sed 's/^/| /' conftest.$ac_ext >&5
5500
 
 
5501
 
        ac_compiler_gnu=no
5502
 
fi
5503
 
 
5504
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5506
 
 
5507
 
fi
5508
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5509
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5510
 
if test $ac_compiler_gnu = yes; then
5511
 
  GXX=yes
5512
 
else
5513
 
  GXX=
5514
 
fi
5515
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5516
 
ac_save_CXXFLAGS=$CXXFLAGS
5517
 
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5518
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5519
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5520
 
  $as_echo_n "(cached) " >&6
5521
 
else
5522
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5523
 
   ac_cxx_werror_flag=yes
5524
 
   ac_cv_prog_cxx_g=no
5525
 
   CXXFLAGS="-g"
5526
 
   cat >conftest.$ac_ext <<_ACEOF
5527
 
/* confdefs.h.  */
5528
 
_ACEOF
5529
 
cat confdefs.h >>conftest.$ac_ext
5530
 
cat >>conftest.$ac_ext <<_ACEOF
5531
 
/* end confdefs.h.  */
5532
 
 
5533
 
int
5534
 
main ()
5535
 
{
5536
 
 
5537
 
  ;
5538
 
  return 0;
5539
 
}
5540
 
_ACEOF
5541
 
rm -f conftest.$ac_objext
5542
 
if { (ac_try="$ac_compile"
5543
 
case "(($ac_try" in
5544
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545
 
  *) ac_try_echo=$ac_try;;
5546
 
esac
5547
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5548
 
$as_echo "$ac_try_echo") >&5
5549
 
  (eval "$ac_compile") 2>conftest.er1
5550
 
  ac_status=$?
5551
 
  grep -v '^ *+' conftest.er1 >conftest.err
5552
 
  rm -f conftest.er1
5553
 
  cat conftest.err >&5
5554
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555
 
  (exit $ac_status); } && {
5556
 
         test -z "$ac_cxx_werror_flag" ||
5557
 
         test ! -s conftest.err
5558
 
       } && test -s conftest.$ac_objext; then
5559
 
  ac_cv_prog_cxx_g=yes
5560
 
else
5561
 
  $as_echo "$as_me: failed program was:" >&5
5562
 
sed 's/^/| /' conftest.$ac_ext >&5
5563
 
 
5564
 
        CXXFLAGS=""
5565
 
      cat >conftest.$ac_ext <<_ACEOF
5566
 
/* confdefs.h.  */
5567
 
_ACEOF
5568
 
cat confdefs.h >>conftest.$ac_ext
5569
 
cat >>conftest.$ac_ext <<_ACEOF
5570
 
/* end confdefs.h.  */
5571
 
 
5572
 
int
5573
 
main ()
5574
 
{
5575
 
 
5576
 
  ;
5577
 
  return 0;
5578
 
}
5579
 
_ACEOF
5580
 
rm -f conftest.$ac_objext
5581
 
if { (ac_try="$ac_compile"
5582
 
case "(($ac_try" in
5583
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584
 
  *) ac_try_echo=$ac_try;;
5585
 
esac
5586
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587
 
$as_echo "$ac_try_echo") >&5
5588
 
  (eval "$ac_compile") 2>conftest.er1
5589
 
  ac_status=$?
5590
 
  grep -v '^ *+' conftest.er1 >conftest.err
5591
 
  rm -f conftest.er1
5592
 
  cat conftest.err >&5
5593
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
 
  (exit $ac_status); } && {
5595
 
         test -z "$ac_cxx_werror_flag" ||
5596
 
         test ! -s conftest.err
5597
 
       } && test -s conftest.$ac_objext; then
5598
 
  :
5599
 
else
5600
 
  $as_echo "$as_me: failed program was:" >&5
5601
 
sed 's/^/| /' conftest.$ac_ext >&5
5602
 
 
5603
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5604
 
         CXXFLAGS="-g"
5605
 
         cat >conftest.$ac_ext <<_ACEOF
5606
 
/* confdefs.h.  */
5607
 
_ACEOF
5608
 
cat confdefs.h >>conftest.$ac_ext
5609
 
cat >>conftest.$ac_ext <<_ACEOF
5610
 
/* end confdefs.h.  */
5611
 
 
5612
 
int
5613
 
main ()
5614
 
{
5615
 
 
5616
 
  ;
5617
 
  return 0;
5618
 
}
5619
 
_ACEOF
5620
 
rm -f conftest.$ac_objext
5621
 
if { (ac_try="$ac_compile"
5622
 
case "(($ac_try" in
5623
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624
 
  *) ac_try_echo=$ac_try;;
5625
 
esac
5626
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627
 
$as_echo "$ac_try_echo") >&5
5628
 
  (eval "$ac_compile") 2>conftest.er1
5629
 
  ac_status=$?
5630
 
  grep -v '^ *+' conftest.er1 >conftest.err
5631
 
  rm -f conftest.er1
5632
 
  cat conftest.err >&5
5633
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634
 
  (exit $ac_status); } && {
5635
 
         test -z "$ac_cxx_werror_flag" ||
5636
 
         test ! -s conftest.err
5637
 
       } && test -s conftest.$ac_objext; then
5638
 
  ac_cv_prog_cxx_g=yes
5639
 
else
5640
 
  $as_echo "$as_me: failed program was:" >&5
5641
 
sed 's/^/| /' conftest.$ac_ext >&5
5642
 
 
5643
 
 
5644
 
fi
5645
 
 
5646
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647
 
fi
5648
 
 
5649
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650
 
fi
5651
 
 
5652
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5654
 
fi
5655
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5656
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5657
 
if test "$ac_test_CXXFLAGS" = set; then
5658
 
  CXXFLAGS=$ac_save_CXXFLAGS
5659
 
elif test $ac_cv_prog_cxx_g = yes; then
5660
 
  if test "$GXX" = yes; then
5661
 
    CXXFLAGS="-g -O2"
5662
 
  else
5663
 
    CXXFLAGS="-g"
5664
 
  fi
5665
 
else
5666
 
  if test "$GXX" = yes; then
5667
 
    CXXFLAGS="-O2"
5668
 
  else
5669
 
    CXXFLAGS=
5670
 
  fi
5671
 
fi
5672
 
ac_ext=cpp
5673
 
ac_cpp='$CXXCPP $CPPFLAGS'
5674
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5677
 
 
5678
 
depcc="$CXX"  am_compiler_list=
5679
 
 
5680
 
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5681
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
5682
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5683
 
  $as_echo_n "(cached) " >&6
5684
 
else
5685
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5686
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5687
 
  # making bogus files that we don't know about and never remove.  For
5688
 
  # instance it was reported that on HP-UX the gcc test will end up
5689
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5690
 
  # in D'.
5691
 
  mkdir conftest.dir
5692
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5693
 
  # using a relative directory.
5694
 
  cp "$am_depcomp" conftest.dir
5695
 
  cd conftest.dir
5696
 
  # We will build objects and dependencies in a subdirectory because
5697
 
  # it helps to detect inapplicable dependency modes.  For instance
5698
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5699
 
  # side effect of compilation, but ICC will put the dependencies in
5700
 
  # the current directory while Tru64 will put them in the object
5701
 
  # directory.
5702
 
  mkdir sub
5703
 
 
5704
 
  am_cv_CXX_dependencies_compiler_type=none
5705
 
  if test "$am_compiler_list" = ""; then
5706
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5707
 
  fi
5708
 
  for depmode in $am_compiler_list; do
5709
 
    # Setup a source with many dependencies, because some compilers
5710
 
    # like to wrap large dependency lists on column 80 (with \), and
5711
 
    # we should not choose a depcomp mode which is confused by this.
5712
 
    #
5713
 
    # We need to recreate these files for each test, as the compiler may
5714
 
    # overwrite some of them when testing with obscure command lines.
5715
 
    # This happens at least with the AIX C compiler.
5716
 
    : > sub/conftest.c
5717
 
    for i in 1 2 3 4 5 6; do
5718
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5719
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5720
 
      # Solaris 8's {/usr,}/bin/sh.
5721
 
      touch sub/conftst$i.h
5722
 
    done
5723
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5724
 
 
5725
 
    case $depmode in
5726
 
    nosideeffect)
5727
 
      # after this tag, mechanisms are not by side-effect, so they'll
5728
 
      # only be used when explicitly requested
5729
 
      if test "x$enable_dependency_tracking" = xyes; then
5730
 
        continue
5731
 
      else
5732
 
        break
5733
 
      fi
5734
 
      ;;
5735
 
    none) break ;;
5736
 
    esac
5737
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5738
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5739
 
    # handle `-M -o', and we need to detect this.
5740
 
    if depmode=$depmode \
5741
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5742
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5743
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5744
 
         >/dev/null 2>conftest.err &&
5745
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5746
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5747
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5748
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5749
 
      # icc doesn't choke on unknown options, it will just issue warnings
5750
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5751
 
      # that says an option was ignored or not supported.
5752
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5753
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5754
 
      # The diagnosis changed in icc 8.0:
5755
 
      #   icc: Command line remark: option '-MP' not supported
5756
 
      if (grep 'ignoring option' conftest.err ||
5757
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5758
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5759
 
        break
5760
 
      fi
5761
 
    fi
5762
 
  done
5763
 
 
5764
 
  cd ..
5765
 
  rm -rf conftest.dir
5766
 
else
5767
 
  am_cv_CXX_dependencies_compiler_type=none
5768
 
fi
5769
 
 
5770
 
fi
5771
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5772
 
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5773
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5774
 
 
5775
 
 if
5776
 
  test "x$enable_dependency_tracking" != xno \
5777
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5778
 
  am__fastdepCXX_TRUE=
5779
 
  am__fastdepCXX_FALSE='#'
5780
 
else
5781
 
  am__fastdepCXX_TRUE='#'
5782
 
  am__fastdepCXX_FALSE=
5783
 
fi
5784
 
 
5785
 
 
5786
 
 
5787
 
 
5788
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5789
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5790
 
    (test "X$CXX" != "Xg++"))) ; then
5791
 
  ac_ext=cpp
5792
 
ac_cpp='$CXXCPP $CPPFLAGS'
5793
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5796
 
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5797
 
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5798
 
if test -z "$CXXCPP"; then
5799
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5800
 
  $as_echo_n "(cached) " >&6
5801
 
else
5802
 
      # Double quotes because CXXCPP needs to be expanded
5803
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5804
 
    do
5805
 
      ac_preproc_ok=false
5806
 
for ac_cxx_preproc_warn_flag in '' yes
5807
 
do
5808
 
  # Use a header file that comes with gcc, so configuring glibc
5809
 
  # with a fresh cross-compiler works.
5810
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811
 
  # <limits.h> exists even on freestanding compilers.
5812
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5813
 
  # not just through cpp. "Syntax error" is here to catch this case.
5814
 
  cat >conftest.$ac_ext <<_ACEOF
5815
 
/* confdefs.h.  */
5816
 
_ACEOF
5817
 
cat confdefs.h >>conftest.$ac_ext
5818
 
cat >>conftest.$ac_ext <<_ACEOF
5819
 
/* end confdefs.h.  */
5820
 
#ifdef __STDC__
5821
 
# include <limits.h>
5822
 
#else
5823
 
# include <assert.h>
5824
 
#endif
5825
 
                     Syntax error
5826
 
_ACEOF
5827
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5828
 
case "(($ac_try" in
5829
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830
 
  *) ac_try_echo=$ac_try;;
5831
 
esac
5832
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833
 
$as_echo "$ac_try_echo") >&5
5834
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835
 
  ac_status=$?
5836
 
  grep -v '^ *+' conftest.er1 >conftest.err
5837
 
  rm -f conftest.er1
5838
 
  cat conftest.err >&5
5839
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840
 
  (exit $ac_status); } >/dev/null && {
5841
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5842
 
         test ! -s conftest.err
5843
 
       }; then
5844
 
  :
5845
 
else
5846
 
  $as_echo "$as_me: failed program was:" >&5
5847
 
sed 's/^/| /' conftest.$ac_ext >&5
5848
 
 
5849
 
  # Broken: fails on valid input.
5850
 
continue
5851
 
fi
5852
 
 
5853
 
rm -f conftest.err conftest.$ac_ext
5854
 
 
5855
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5856
 
  # can be detected and how.
5857
 
  cat >conftest.$ac_ext <<_ACEOF
5858
 
/* confdefs.h.  */
5859
 
_ACEOF
5860
 
cat confdefs.h >>conftest.$ac_ext
5861
 
cat >>conftest.$ac_ext <<_ACEOF
5862
 
/* end confdefs.h.  */
5863
 
#include <ac_nonexistent.h>
5864
 
_ACEOF
5865
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5866
 
case "(($ac_try" in
5867
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868
 
  *) ac_try_echo=$ac_try;;
5869
 
esac
5870
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871
 
$as_echo "$ac_try_echo") >&5
5872
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5873
 
  ac_status=$?
5874
 
  grep -v '^ *+' conftest.er1 >conftest.err
5875
 
  rm -f conftest.er1
5876
 
  cat conftest.err >&5
5877
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
 
  (exit $ac_status); } >/dev/null && {
5879
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880
 
         test ! -s conftest.err
5881
 
       }; then
5882
 
  # Broken: success on invalid input.
5883
 
continue
5884
 
else
5885
 
  $as_echo "$as_me: failed program was:" >&5
5886
 
sed 's/^/| /' conftest.$ac_ext >&5
5887
 
 
5888
 
  # Passes both tests.
5889
 
ac_preproc_ok=:
5890
 
break
5891
 
fi
5892
 
 
5893
 
rm -f conftest.err conftest.$ac_ext
5894
 
 
5895
 
done
5896
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897
 
rm -f conftest.err conftest.$ac_ext
5898
 
if $ac_preproc_ok; then
5899
 
  break
5900
 
fi
5901
 
 
5902
 
    done
5903
 
    ac_cv_prog_CXXCPP=$CXXCPP
5904
 
 
5905
 
fi
5906
 
  CXXCPP=$ac_cv_prog_CXXCPP
5907
 
else
5908
 
  ac_cv_prog_CXXCPP=$CXXCPP
5909
 
fi
5910
 
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5911
 
$as_echo "$CXXCPP" >&6; }
5912
 
ac_preproc_ok=false
5913
 
for ac_cxx_preproc_warn_flag in '' yes
5914
 
do
5915
 
  # Use a header file that comes with gcc, so configuring glibc
5916
 
  # with a fresh cross-compiler works.
5917
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918
 
  # <limits.h> exists even on freestanding compilers.
5919
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5920
 
  # not just through cpp. "Syntax error" is here to catch this case.
5921
 
  cat >conftest.$ac_ext <<_ACEOF
5922
 
/* confdefs.h.  */
5923
 
_ACEOF
5924
 
cat confdefs.h >>conftest.$ac_ext
5925
 
cat >>conftest.$ac_ext <<_ACEOF
5926
 
/* end confdefs.h.  */
5927
 
#ifdef __STDC__
5928
 
# include <limits.h>
5929
 
#else
5930
 
# include <assert.h>
5931
 
#endif
5932
 
                     Syntax error
5933
 
_ACEOF
5934
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5935
 
case "(($ac_try" in
5936
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937
 
  *) ac_try_echo=$ac_try;;
5938
 
esac
5939
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940
 
$as_echo "$ac_try_echo") >&5
5941
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942
 
  ac_status=$?
5943
 
  grep -v '^ *+' conftest.er1 >conftest.err
5944
 
  rm -f conftest.er1
5945
 
  cat conftest.err >&5
5946
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947
 
  (exit $ac_status); } >/dev/null && {
5948
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5949
 
         test ! -s conftest.err
5950
 
       }; then
5951
 
  :
5952
 
else
5953
 
  $as_echo "$as_me: failed program was:" >&5
5954
 
sed 's/^/| /' conftest.$ac_ext >&5
5955
 
 
5956
 
  # Broken: fails on valid input.
5957
 
continue
5958
 
fi
5959
 
 
5960
 
rm -f conftest.err conftest.$ac_ext
5961
 
 
5962
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5963
 
  # can be detected and how.
5964
 
  cat >conftest.$ac_ext <<_ACEOF
5965
 
/* confdefs.h.  */
5966
 
_ACEOF
5967
 
cat confdefs.h >>conftest.$ac_ext
5968
 
cat >>conftest.$ac_ext <<_ACEOF
5969
 
/* end confdefs.h.  */
5970
 
#include <ac_nonexistent.h>
5971
 
_ACEOF
5972
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5973
 
case "(($ac_try" in
5974
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975
 
  *) ac_try_echo=$ac_try;;
5976
 
esac
5977
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978
 
$as_echo "$ac_try_echo") >&5
5979
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5980
 
  ac_status=$?
5981
 
  grep -v '^ *+' conftest.er1 >conftest.err
5982
 
  rm -f conftest.er1
5983
 
  cat conftest.err >&5
5984
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985
 
  (exit $ac_status); } >/dev/null && {
5986
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5987
 
         test ! -s conftest.err
5988
 
       }; then
5989
 
  # Broken: success on invalid input.
5990
 
continue
5991
 
else
5992
 
  $as_echo "$as_me: failed program was:" >&5
5993
 
sed 's/^/| /' conftest.$ac_ext >&5
5994
 
 
5995
 
  # Passes both tests.
5996
 
ac_preproc_ok=:
5997
 
break
5998
 
fi
5999
 
 
6000
 
rm -f conftest.err conftest.$ac_ext
6001
 
 
6002
 
done
6003
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6004
 
rm -f conftest.err conftest.$ac_ext
6005
 
if $ac_preproc_ok; then
6006
 
  :
6007
 
else
6008
 
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6009
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010
 
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6011
 
See \`config.log' for more details." >&5
6012
 
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6013
 
See \`config.log' for more details." >&2;}
6014
 
   { (exit 1); exit 1; }; }; }
6015
 
fi
6016
 
 
6017
 
ac_ext=cpp
6018
 
ac_cpp='$CXXCPP $CPPFLAGS'
6019
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6022
 
 
6023
 
fi
6024
 
 
6025
 
 
6026
 
ac_ext=f
6027
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6028
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6030
 
if test -n "$ac_tool_prefix"; then
6031
 
  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
6032
 
  do
6033
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6036
 
$as_echo_n "checking for $ac_word... " >&6; }
6037
 
if test "${ac_cv_prog_F77+set}" = set; then
6038
 
  $as_echo_n "(cached) " >&6
6039
 
else
6040
 
  if test -n "$F77"; then
6041
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6042
 
else
6043
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044
 
for as_dir in $PATH
6045
 
do
6046
 
  IFS=$as_save_IFS
6047
 
  test -z "$as_dir" && as_dir=.
6048
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6049
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6051
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052
 
    break 2
6053
 
  fi
6054
 
done
6055
 
done
6056
 
IFS=$as_save_IFS
6057
 
 
6058
 
fi
6059
 
fi
6060
 
F77=$ac_cv_prog_F77
6061
 
if test -n "$F77"; then
6062
 
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6063
 
$as_echo "$F77" >&6; }
6064
 
else
6065
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6066
 
$as_echo "no" >&6; }
6067
 
fi
6068
 
 
6069
 
 
6070
 
    test -n "$F77" && break
6071
 
  done
6072
 
fi
6073
 
if test -z "$F77"; then
6074
 
  ac_ct_F77=$F77
6075
 
  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
6076
 
do
6077
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6078
 
set dummy $ac_prog; ac_word=$2
6079
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6080
 
$as_echo_n "checking for $ac_word... " >&6; }
6081
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6082
 
  $as_echo_n "(cached) " >&6
6083
 
else
6084
 
  if test -n "$ac_ct_F77"; then
6085
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6086
 
else
6087
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088
 
for as_dir in $PATH
6089
 
do
6090
 
  IFS=$as_save_IFS
6091
 
  test -z "$as_dir" && as_dir=.
6092
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6093
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6095
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096
 
    break 2
6097
 
  fi
6098
 
done
6099
 
done
6100
 
IFS=$as_save_IFS
6101
 
 
6102
 
fi
6103
 
fi
6104
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6105
 
if test -n "$ac_ct_F77"; then
6106
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6107
 
$as_echo "$ac_ct_F77" >&6; }
6108
 
else
6109
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6110
 
$as_echo "no" >&6; }
6111
 
fi
6112
 
 
6113
 
 
6114
 
  test -n "$ac_ct_F77" && break
6115
 
done
6116
 
 
6117
 
  if test "x$ac_ct_F77" = x; then
6118
 
    F77=""
6119
 
  else
6120
 
    case $cross_compiling:$ac_tool_warned in
6121
 
yes:)
6122
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6123
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124
 
ac_tool_warned=yes ;;
6125
 
esac
6126
 
    F77=$ac_ct_F77
6127
 
  fi
6128
 
fi
6129
 
 
6130
 
 
6131
 
# Provide some information about the compiler.
6132
 
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6133
 
set X $ac_compile
6134
 
ac_compiler=$2
6135
 
{ (ac_try="$ac_compiler --version >&5"
6136
 
case "(($ac_try" in
6137
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138
 
  *) ac_try_echo=$ac_try;;
6139
 
esac
6140
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6141
 
$as_echo "$ac_try_echo") >&5
6142
 
  (eval "$ac_compiler --version >&5") 2>&5
6143
 
  ac_status=$?
6144
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145
 
  (exit $ac_status); }
6146
 
{ (ac_try="$ac_compiler -v >&5"
6147
 
case "(($ac_try" in
6148
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149
 
  *) ac_try_echo=$ac_try;;
6150
 
esac
6151
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6152
 
$as_echo "$ac_try_echo") >&5
6153
 
  (eval "$ac_compiler -v >&5") 2>&5
6154
 
  ac_status=$?
6155
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
 
  (exit $ac_status); }
6157
 
{ (ac_try="$ac_compiler -V >&5"
6158
 
case "(($ac_try" in
6159
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160
 
  *) ac_try_echo=$ac_try;;
6161
 
esac
6162
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163
 
$as_echo "$ac_try_echo") >&5
6164
 
  (eval "$ac_compiler -V >&5") 2>&5
6165
 
  ac_status=$?
6166
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167
 
  (exit $ac_status); }
6168
 
rm -f a.out
6169
 
 
6170
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6171
 
# input file.  (Note that this only needs to work for GNU compilers.)
6172
 
ac_save_ext=$ac_ext
6173
 
ac_ext=F
6174
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6175
 
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6176
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6177
 
  $as_echo_n "(cached) " >&6
6178
 
else
6179
 
  cat >conftest.$ac_ext <<_ACEOF
6180
 
      program main
6181
 
#ifndef __GNUC__
6182
 
       choke me
6183
 
#endif
6184
 
 
6185
 
      end
6186
 
_ACEOF
6187
 
rm -f conftest.$ac_objext
6188
 
if { (ac_try="$ac_compile"
6189
 
case "(($ac_try" in
6190
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191
 
  *) ac_try_echo=$ac_try;;
6192
 
esac
6193
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194
 
$as_echo "$ac_try_echo") >&5
6195
 
  (eval "$ac_compile") 2>conftest.er1
6196
 
  ac_status=$?
6197
 
  grep -v '^ *+' conftest.er1 >conftest.err
6198
 
  rm -f conftest.er1
6199
 
  cat conftest.err >&5
6200
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201
 
  (exit $ac_status); } && {
6202
 
         test -z "$ac_f77_werror_flag" ||
6203
 
         test ! -s conftest.err
6204
 
       } && test -s conftest.$ac_objext; then
6205
 
  ac_compiler_gnu=yes
6206
 
else
6207
 
  $as_echo "$as_me: failed program was:" >&5
6208
 
sed 's/^/| /' conftest.$ac_ext >&5
6209
 
 
6210
 
        ac_compiler_gnu=no
6211
 
fi
6212
 
 
6213
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6215
 
 
6216
 
fi
6217
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6218
 
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6219
 
ac_ext=$ac_save_ext
6220
 
ac_test_FFLAGS=${FFLAGS+set}
6221
 
ac_save_FFLAGS=$FFLAGS
6222
 
FFLAGS=
6223
 
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6224
 
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6225
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6226
 
  $as_echo_n "(cached) " >&6
6227
 
else
6228
 
  FFLAGS=-g
6229
 
cat >conftest.$ac_ext <<_ACEOF
6230
 
      program main
6231
 
 
6232
 
      end
6233
 
_ACEOF
6234
 
rm -f conftest.$ac_objext
6235
 
if { (ac_try="$ac_compile"
6236
 
case "(($ac_try" in
6237
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238
 
  *) ac_try_echo=$ac_try;;
6239
 
esac
6240
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6241
 
$as_echo "$ac_try_echo") >&5
6242
 
  (eval "$ac_compile") 2>conftest.er1
6243
 
  ac_status=$?
6244
 
  grep -v '^ *+' conftest.er1 >conftest.err
6245
 
  rm -f conftest.er1
6246
 
  cat conftest.err >&5
6247
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248
 
  (exit $ac_status); } && {
6249
 
         test -z "$ac_f77_werror_flag" ||
6250
 
         test ! -s conftest.err
6251
 
       } && test -s conftest.$ac_objext; then
6252
 
  ac_cv_prog_f77_g=yes
6253
 
else
6254
 
  $as_echo "$as_me: failed program was:" >&5
6255
 
sed 's/^/| /' conftest.$ac_ext >&5
6256
 
 
6257
 
        ac_cv_prog_f77_g=no
6258
 
fi
6259
 
 
6260
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261
 
 
6262
 
fi
6263
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6264
 
$as_echo "$ac_cv_prog_f77_g" >&6; }
6265
 
if test "$ac_test_FFLAGS" = set; then
6266
 
  FFLAGS=$ac_save_FFLAGS
6267
 
elif test $ac_cv_prog_f77_g = yes; then
6268
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6269
 
    FFLAGS="-g -O2"
6270
 
  else
6271
 
    FFLAGS="-g"
6272
 
  fi
6273
 
else
6274
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6275
 
    FFLAGS="-O2"
6276
 
  else
6277
 
    FFLAGS=
6278
 
  fi
6279
 
fi
6280
 
 
6281
 
if test $ac_compiler_gnu = yes; then
6282
 
  G77=yes
6283
 
else
6284
 
  G77=
6285
 
fi
6286
 
ac_ext=c
6287
 
ac_cpp='$CPP $CPPFLAGS'
6288
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
 
 
6292
 
 
6293
 
 
6294
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6295
 
# find the maximum length of command line arguments
6296
 
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6297
 
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6298
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6299
 
  $as_echo_n "(cached) " >&6
6300
 
else
6301
 
    i=0
6302
 
  teststring="ABCD"
6303
 
 
6304
 
  case $build_os in
6305
 
  msdosdjgpp*)
6306
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6307
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6308
 
    # during glob expansion).  Even if it were fixed, the result of this
6309
 
    # check would be larger than it should be.
6310
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6311
 
    ;;
6312
 
 
6313
 
  gnu*)
6314
 
    # Under GNU Hurd, this test is not required because there is
6315
 
    # no limit to the length of command line arguments.
6316
 
    # Libtool will interpret -1 as no limit whatsoever
6317
 
    lt_cv_sys_max_cmd_len=-1;
6318
 
    ;;
6319
 
 
6320
 
  cygwin* | mingw*)
6321
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6322
 
    # about 5 minutes as the teststring grows exponentially.
6323
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6324
 
    # you end up with a "frozen" computer, even though with patience
6325
 
    # the test eventually succeeds (with a max line length of 256k).
6326
 
    # Instead, let's just punt: use the minimum linelength reported by
6327
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6328
 
    lt_cv_sys_max_cmd_len=8192;
6329
 
    ;;
6330
 
 
6331
 
  amigaos*)
6332
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6333
 
    # So we just punt and use a minimum line length of 8192.
6334
 
    lt_cv_sys_max_cmd_len=8192;
6335
 
    ;;
6336
 
 
6337
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6338
 
    # This has been around since 386BSD, at least.  Likely further.
6339
 
    if test -x /sbin/sysctl; then
6340
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6341
 
    elif test -x /usr/sbin/sysctl; then
6342
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6343
 
    else
6344
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6345
 
    fi
6346
 
    # And add a safety zone
6347
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6348
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6349
 
    ;;
6350
 
 
6351
 
  interix*)
6352
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6353
 
    lt_cv_sys_max_cmd_len=196608
6354
 
    ;;
6355
 
 
6356
 
  osf*)
6357
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6358
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6359
 
    # nice to cause kernel panics so lets avoid the loop below.
6360
 
    # First set a reasonable default.
6361
 
    lt_cv_sys_max_cmd_len=16384
6362
 
    #
6363
 
    if test -x /sbin/sysconfig; then
6364
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6365
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6366
 
      esac
6367
 
    fi
6368
 
    ;;
6369
 
  sco3.2v5*)
6370
 
    lt_cv_sys_max_cmd_len=102400
6371
 
    ;;
6372
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6373
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6374
 
    if test -n "$kargmax"; then
6375
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6376
 
    else
6377
 
      lt_cv_sys_max_cmd_len=32768
6378
 
    fi
6379
 
    ;;
6380
 
  *)
6381
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6382
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
6383
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6384
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6385
 
    else
6386
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6387
 
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6388
 
               = "XX$teststring") >/dev/null 2>&1 &&
6389
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
6390
 
              lt_cv_sys_max_cmd_len=$new_result &&
6391
 
              test $i != 17 # 1/2 MB should be enough
6392
 
      do
6393
 
        i=`expr $i + 1`
6394
 
        teststring=$teststring$teststring
6395
 
      done
6396
 
      teststring=
6397
 
      # Add a significant safety factor because C++ compilers can tack on massive
6398
 
      # amounts of additional arguments before passing them to the linker.
6399
 
      # It appears as though 1/2 is a usable value.
6400
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6401
 
    fi
6402
 
    ;;
6403
 
  esac
6404
 
 
6405
 
fi
6406
 
 
6407
 
if test -n $lt_cv_sys_max_cmd_len ; then
6408
 
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6409
 
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410
 
else
6411
 
  { $as_echo "$as_me:$LINENO: result: none" >&5
6412
 
$as_echo "none" >&6; }
6413
 
fi
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
5391
# Check for command to grab the raw symbol name followed by C symbol from nm.
6420
5392
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6421
5393
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6432
5404
# Regexp to match symbols that can be accessed directly from C.
6433
5405
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6434
5406
 
6435
 
# Transform an extracted symbol line into a proper C declaration
6436
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6437
 
 
6438
 
# Transform an extracted symbol line into symbol name and symbol address
6439
 
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'"
6440
 
 
6441
5407
# Define system-specific variables.
6442
5408
case $host_os in
6443
5409
aix*)
6444
5410
  symcode='[BCDT]'
6445
5411
  ;;
6446
 
cygwin* | mingw* | pw32*)
 
5412
cygwin* | mingw* | pw32* | cegcc*)
6447
5413
  symcode='[ABCDGISTW]'
6448
5414
  ;;
6449
 
hpux*) # Its linker distinguishes data from code symbols
 
5415
hpux*)
6450
5416
  if test "$host_cpu" = ia64; then
6451
5417
    symcode='[ABCDEGRST]'
6452
5418
  fi
6453
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6454
 
  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'"
6455
 
  ;;
6456
 
linux* | k*bsd*-gnu)
6457
 
  if test "$host_cpu" = ia64; then
6458
 
    symcode='[ABCDGIRSTW]'
6459
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6460
 
    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'"
6461
 
  fi
6462
5419
  ;;
6463
5420
irix* | nonstopux*)
6464
5421
  symcode='[BCDEGRST]'
6483
5440
  ;;
6484
5441
esac
6485
5442
 
 
5443
# If we're using GNU nm, then use its standard symbol codes.
 
5444
case `$NM -V 2>&1` in
 
5445
*GNU* | *'with BFD'*)
 
5446
  symcode='[ABCDGIRSTW]' ;;
 
5447
esac
 
5448
 
 
5449
# Transform an extracted symbol line into a proper C declaration.
 
5450
# Some systems (esp. on ia64) link data and code symbols differently,
 
5451
# so use this general approach.
 
5452
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5453
 
 
5454
# Transform an extracted symbol line into symbol name and symbol address
 
5455
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5456
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'"
 
5457
 
6486
5458
# Handle CRLF in mingw tool chain
6487
5459
opt_cr=
6488
5460
case $build_os in
6489
5461
mingw*)
6490
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5462
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6491
5463
  ;;
6492
5464
esac
6493
5465
 
6494
 
# If we're using GNU nm, then use its standard symbol codes.
6495
 
case `$NM -V 2>&1` in
6496
 
*GNU* | *'with BFD'*)
6497
 
  symcode='[ABCDGIRSTW]' ;;
6498
 
esac
6499
 
 
6500
 
# Try without a prefix undercore, then with it.
 
5466
# Try without a prefix underscore, then with it.
6501
5467
for ac_symprfx in "" "_"; do
6502
5468
 
6503
5469
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6504
5470
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6505
5471
 
6506
5472
  # Write the raw and C identifiers.
6507
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5473
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5474
    # Fake it for dumpbin and say T for any non-static function
 
5475
    # and D for any global variable.
 
5476
    # Also find C++ and __fastcall symbols from MSVC++,
 
5477
    # which start with @ or ?.
 
5478
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5479
"     {last_section=section; section=\$ 3};"\
 
5480
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5481
"     \$ 0!~/External *\|/{next};"\
 
5482
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5483
"     {if(hide[section]) next};"\
 
5484
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5485
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5486
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5487
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5488
"     ' prfx=^$ac_symprfx"
 
5489
  else
 
5490
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5491
  fi
6508
5492
 
6509
5493
  # Check to see that the pipe works correctly.
6510
5494
  pipe_works=no
6511
5495
 
6512
5496
  rm -f conftest*
6513
 
  cat > conftest.$ac_ext <<EOF
 
5497
  cat > conftest.$ac_ext <<_LT_EOF
6514
5498
#ifdef __cplusplus
6515
5499
extern "C" {
6516
5500
#endif
6517
5501
char nm_test_var;
6518
 
void nm_test_func(){}
 
5502
void nm_test_func(void);
 
5503
void nm_test_func(void){}
6519
5504
#ifdef __cplusplus
6520
5505
}
6521
5506
#endif
6522
5507
int main(){nm_test_var='a';nm_test_func();return(0);}
6523
 
EOF
 
5508
_LT_EOF
6524
5509
 
6525
5510
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526
5511
  (eval $ac_compile) 2>&5
6542
5527
      fi
6543
5528
 
6544
5529
      # Make sure that we snagged all the symbols we need.
6545
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6546
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6547
 
          cat <<EOF > conftest.$ac_ext
 
5530
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5531
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5532
          cat <<_LT_EOF > conftest.$ac_ext
6548
5533
#ifdef __cplusplus
6549
5534
extern "C" {
6550
5535
#endif
6551
5536
 
6552
 
EOF
 
5537
_LT_EOF
6553
5538
          # Now generate the symbol file.
6554
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6555
 
 
6556
 
          cat <<EOF >> conftest.$ac_ext
6557
 
#if defined (__STDC__) && __STDC__
6558
 
# define lt_ptr_t void *
6559
 
#else
6560
 
# define lt_ptr_t char *
6561
 
# define const
6562
 
#endif
6563
 
 
6564
 
/* The mapping between symbol names and symbols. */
 
5539
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5540
 
 
5541
          cat <<_LT_EOF >> conftest.$ac_ext
 
5542
 
 
5543
/* The mapping between symbol names and symbols.  */
6565
5544
const struct {
6566
5545
  const char *name;
6567
 
  lt_ptr_t address;
 
5546
  void       *address;
6568
5547
}
6569
 
lt_preloaded_symbols[] =
 
5548
lt__PROGRAM__LTX_preloaded_symbols[] =
6570
5549
{
6571
 
EOF
6572
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6573
 
          cat <<\EOF >> conftest.$ac_ext
6574
 
  {0, (lt_ptr_t) 0}
 
5550
  { "@PROGRAM@", (void *) 0 },
 
5551
_LT_EOF
 
5552
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5553
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5554
  {0, (void *) 0}
6575
5555
};
6576
5556
 
 
5557
/* This works around a problem in FreeBSD linker */
 
5558
#ifdef FREEBSD_WORKAROUND
 
5559
static const void *lt_preloaded_setup() {
 
5560
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5561
}
 
5562
#endif
 
5563
 
6577
5564
#ifdef __cplusplus
6578
5565
}
6579
5566
#endif
6580
 
EOF
 
5567
_LT_EOF
6581
5568
          # Now try linking the two files.
6582
5569
          mv conftest.$ac_objext conftstm.$ac_objext
6583
5570
          lt_save_LIBS="$LIBS"
6629
5616
$as_echo "ok" >&6; }
6630
5617
fi
6631
5618
 
6632
 
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6633
 
$as_echo_n "checking for objdir... " >&6; }
6634
 
if test "${lt_cv_objdir+set}" = set; then
6635
 
  $as_echo_n "(cached) " >&6
6636
 
else
6637
 
  rm -f .libs 2>/dev/null
6638
 
mkdir .libs 2>/dev/null
6639
 
if test -d .libs; then
6640
 
  lt_cv_objdir=.libs
6641
 
else
6642
 
  # MS-DOS does not allow filenames that begin with a dot.
6643
 
  lt_cv_objdir=_libs
6644
 
fi
6645
 
rmdir .libs 2>/dev/null
6646
 
fi
6647
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6648
 
$as_echo "$lt_cv_objdir" >&6; }
6649
 
objdir=$lt_cv_objdir
6650
 
 
6651
 
 
6652
 
 
6653
 
 
6654
 
 
6655
 
case $host_os in
6656
 
aix3*)
6657
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6658
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6659
 
  # vanish in a puff of smoke.
6660
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6661
 
    COLLECT_NAMES=
6662
 
    export COLLECT_NAMES
6663
 
  fi
6664
 
  ;;
6665
 
esac
6666
 
 
6667
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6668
 
# metacharacters that are still active within double-quoted strings.
6669
 
Xsed='sed -e 1s/^X//'
6670
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6671
 
 
6672
 
# Same as above, but do not quote variable references.
6673
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6674
 
 
6675
 
# Sed substitution to delay expansion of an escaped shell variable in a
6676
 
# double_quote_subst'ed string.
6677
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6678
 
 
6679
 
# Sed substitution to avoid accidental globbing in evaled expressions
6680
 
no_glob_subst='s/\*/\\\*/g'
6681
 
 
6682
 
# Constants:
6683
 
rm="rm -f"
6684
 
 
6685
 
# Global variables:
6686
 
default_ofile=libtool
6687
 
can_build_shared=yes
6688
 
 
6689
 
# All known linkers require a `.a' archive for static linking (except MSVC,
6690
 
# which needs '.lib').
6691
 
libext=a
6692
 
ltmain="$ac_aux_dir/ltmain.sh"
6693
 
ofile="$default_ofile"
6694
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6695
 
 
6696
 
if test -n "$ac_tool_prefix"; then
6697
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6698
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6699
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6700
 
$as_echo_n "checking for $ac_word... " >&6; }
6701
 
if test "${ac_cv_prog_AR+set}" = set; then
6702
 
  $as_echo_n "(cached) " >&6
6703
 
else
6704
 
  if test -n "$AR"; then
6705
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6706
 
else
6707
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708
 
for as_dir in $PATH
6709
 
do
6710
 
  IFS=$as_save_IFS
6711
 
  test -z "$as_dir" && as_dir=.
6712
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6713
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6715
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716
 
    break 2
6717
 
  fi
6718
 
done
6719
 
done
6720
 
IFS=$as_save_IFS
6721
 
 
6722
 
fi
6723
 
fi
6724
 
AR=$ac_cv_prog_AR
6725
 
if test -n "$AR"; then
6726
 
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6727
 
$as_echo "$AR" >&6; }
6728
 
else
6729
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6730
 
$as_echo "no" >&6; }
6731
 
fi
6732
 
 
6733
 
 
6734
 
fi
6735
 
if test -z "$ac_cv_prog_AR"; then
6736
 
  ac_ct_AR=$AR
6737
 
  # Extract the first word of "ar", so it can be a program name with args.
6738
 
set dummy ar; ac_word=$2
6739
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6740
 
$as_echo_n "checking for $ac_word... " >&6; }
6741
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6742
 
  $as_echo_n "(cached) " >&6
6743
 
else
6744
 
  if test -n "$ac_ct_AR"; then
6745
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6746
 
else
6747
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748
 
for as_dir in $PATH
6749
 
do
6750
 
  IFS=$as_save_IFS
6751
 
  test -z "$as_dir" && as_dir=.
6752
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6753
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754
 
    ac_cv_prog_ac_ct_AR="ar"
6755
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756
 
    break 2
6757
 
  fi
6758
 
done
6759
 
done
6760
 
IFS=$as_save_IFS
6761
 
 
6762
 
fi
6763
 
fi
6764
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6765
 
if test -n "$ac_ct_AR"; then
6766
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6767
 
$as_echo "$ac_ct_AR" >&6; }
6768
 
else
6769
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6770
 
$as_echo "no" >&6; }
6771
 
fi
6772
 
 
6773
 
  if test "x$ac_ct_AR" = x; then
6774
 
    AR="false"
6775
 
  else
6776
 
    case $cross_compiling:$ac_tool_warned in
6777
 
yes:)
6778
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6779
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780
 
ac_tool_warned=yes ;;
6781
 
esac
6782
 
    AR=$ac_ct_AR
6783
 
  fi
6784
 
else
6785
 
  AR="$ac_cv_prog_AR"
6786
 
fi
6787
 
 
6788
 
if test -n "$ac_tool_prefix"; then
6789
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6790
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6791
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6792
 
$as_echo_n "checking for $ac_word... " >&6; }
6793
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6794
 
  $as_echo_n "(cached) " >&6
6795
 
else
6796
 
  if test -n "$RANLIB"; then
6797
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6798
 
else
6799
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800
 
for as_dir in $PATH
6801
 
do
6802
 
  IFS=$as_save_IFS
6803
 
  test -z "$as_dir" && as_dir=.
6804
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6805
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6807
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808
 
    break 2
6809
 
  fi
6810
 
done
6811
 
done
6812
 
IFS=$as_save_IFS
6813
 
 
6814
 
fi
6815
 
fi
6816
 
RANLIB=$ac_cv_prog_RANLIB
6817
 
if test -n "$RANLIB"; then
6818
 
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6819
 
$as_echo "$RANLIB" >&6; }
6820
 
else
6821
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6822
 
$as_echo "no" >&6; }
6823
 
fi
6824
 
 
6825
 
 
6826
 
fi
6827
 
if test -z "$ac_cv_prog_RANLIB"; then
6828
 
  ac_ct_RANLIB=$RANLIB
6829
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6830
 
set dummy ranlib; ac_word=$2
6831
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6832
 
$as_echo_n "checking for $ac_word... " >&6; }
6833
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6834
 
  $as_echo_n "(cached) " >&6
6835
 
else
6836
 
  if test -n "$ac_ct_RANLIB"; then
6837
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6838
 
else
6839
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840
 
for as_dir in $PATH
6841
 
do
6842
 
  IFS=$as_save_IFS
6843
 
  test -z "$as_dir" && as_dir=.
6844
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6845
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6847
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848
 
    break 2
6849
 
  fi
6850
 
done
6851
 
done
6852
 
IFS=$as_save_IFS
6853
 
 
6854
 
fi
6855
 
fi
6856
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6857
 
if test -n "$ac_ct_RANLIB"; then
6858
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6859
 
$as_echo "$ac_ct_RANLIB" >&6; }
6860
 
else
6861
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6862
 
$as_echo "no" >&6; }
6863
 
fi
6864
 
 
6865
 
  if test "x$ac_ct_RANLIB" = x; then
6866
 
    RANLIB=":"
6867
 
  else
6868
 
    case $cross_compiling:$ac_tool_warned in
6869
 
yes:)
6870
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6871
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872
 
ac_tool_warned=yes ;;
6873
 
esac
6874
 
    RANLIB=$ac_ct_RANLIB
6875
 
  fi
6876
 
else
6877
 
  RANLIB="$ac_cv_prog_RANLIB"
6878
 
fi
6879
 
 
6880
 
if test -n "$ac_tool_prefix"; then
6881
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6883
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6884
 
$as_echo_n "checking for $ac_word... " >&6; }
6885
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6886
 
  $as_echo_n "(cached) " >&6
6887
 
else
6888
 
  if test -n "$STRIP"; then
6889
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6890
 
else
6891
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892
 
for as_dir in $PATH
6893
 
do
6894
 
  IFS=$as_save_IFS
6895
 
  test -z "$as_dir" && as_dir=.
6896
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6897
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6899
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900
 
    break 2
6901
 
  fi
6902
 
done
6903
 
done
6904
 
IFS=$as_save_IFS
6905
 
 
6906
 
fi
6907
 
fi
6908
 
STRIP=$ac_cv_prog_STRIP
6909
 
if test -n "$STRIP"; then
6910
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6911
 
$as_echo "$STRIP" >&6; }
6912
 
else
6913
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6914
 
$as_echo "no" >&6; }
6915
 
fi
6916
 
 
6917
 
 
6918
 
fi
6919
 
if test -z "$ac_cv_prog_STRIP"; then
6920
 
  ac_ct_STRIP=$STRIP
6921
 
  # Extract the first word of "strip", so it can be a program name with args.
6922
 
set dummy strip; ac_word=$2
6923
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6924
 
$as_echo_n "checking for $ac_word... " >&6; }
6925
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6926
 
  $as_echo_n "(cached) " >&6
6927
 
else
6928
 
  if test -n "$ac_ct_STRIP"; then
6929
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930
 
else
6931
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932
 
for as_dir in $PATH
6933
 
do
6934
 
  IFS=$as_save_IFS
6935
 
  test -z "$as_dir" && as_dir=.
6936
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6937
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938
 
    ac_cv_prog_ac_ct_STRIP="strip"
6939
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940
 
    break 2
6941
 
  fi
6942
 
done
6943
 
done
6944
 
IFS=$as_save_IFS
6945
 
 
6946
 
fi
6947
 
fi
6948
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949
 
if test -n "$ac_ct_STRIP"; then
6950
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6951
 
$as_echo "$ac_ct_STRIP" >&6; }
6952
 
else
6953
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
6954
 
$as_echo "no" >&6; }
6955
 
fi
6956
 
 
6957
 
  if test "x$ac_ct_STRIP" = x; then
6958
 
    STRIP=":"
6959
 
  else
6960
 
    case $cross_compiling:$ac_tool_warned in
6961
 
yes:)
6962
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6963
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964
 
ac_tool_warned=yes ;;
6965
 
esac
6966
 
    STRIP=$ac_ct_STRIP
6967
 
  fi
6968
 
else
6969
 
  STRIP="$ac_cv_prog_STRIP"
6970
 
fi
6971
 
 
6972
 
 
6973
 
old_CC="$CC"
6974
 
old_CFLAGS="$CFLAGS"
6975
 
 
6976
 
# Set sane defaults for various variables
6977
 
test -z "$AR" && AR=ar
6978
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6979
 
test -z "$AS" && AS=as
6980
 
test -z "$CC" && CC=cc
6981
 
test -z "$LTCC" && LTCC=$CC
6982
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6983
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6984
 
test -z "$LD" && LD=ld
6985
 
test -z "$LN_S" && LN_S="ln -s"
6986
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6987
 
test -z "$NM" && NM=nm
6988
 
test -z "$SED" && SED=sed
6989
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6990
 
test -z "$RANLIB" && RANLIB=:
6991
 
test -z "$STRIP" && STRIP=:
6992
 
test -z "$ac_objext" && ac_objext=o
6993
 
 
6994
 
# Determine commands to create old-style static archives.
6995
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6996
 
old_postinstall_cmds='chmod 644 $oldlib'
6997
 
old_postuninstall_cmds=
6998
 
 
6999
 
if test -n "$RANLIB"; then
7000
 
  case $host_os in
7001
 
  openbsd*)
7002
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7003
 
    ;;
7004
 
  *)
7005
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7006
 
    ;;
7007
 
  esac
7008
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7009
 
fi
7010
 
 
7011
 
for cc_temp in $compiler""; do
7012
 
  case $cc_temp in
7013
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7014
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7015
 
    \-*) ;;
7016
 
    *) break;;
7017
 
  esac
7018
 
done
7019
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7020
 
 
7021
 
 
7022
 
# Only perform the check for file, if the check method requires it
7023
 
case $deplibs_check_method in
7024
 
file_magic*)
7025
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7026
 
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7027
 
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7028
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7029
 
  $as_echo_n "(cached) " >&6
7030
 
else
7031
 
  case $MAGIC_CMD in
7032
 
[\\/*] |  ?:[\\/]*)
7033
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7034
 
  ;;
7035
 
*)
7036
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7037
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7038
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7039
 
  for ac_dir in $ac_dummy; do
7040
 
    IFS="$lt_save_ifs"
7041
 
    test -z "$ac_dir" && ac_dir=.
7042
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7043
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7044
 
      if test -n "$file_magic_test_file"; then
7045
 
        case $deplibs_check_method in
7046
 
        "file_magic "*)
7047
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7048
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7050
 
            $EGREP "$file_magic_regex" > /dev/null; then
7051
 
            :
7052
 
          else
7053
 
            cat <<EOF 1>&2
7054
 
 
7055
 
*** Warning: the command libtool uses to detect shared libraries,
7056
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7057
 
*** The result is that libtool may fail to recognize shared libraries
7058
 
*** as such.  This will affect the creation of libtool libraries that
7059
 
*** depend on shared libraries, but programs linked with such libtool
7060
 
*** libraries will work regardless of this problem.  Nevertheless, you
7061
 
*** may want to report the problem to your system manager and/or to
7062
 
*** bug-libtool@gnu.org
7063
 
 
7064
 
EOF
7065
 
          fi ;;
7066
 
        esac
7067
 
      fi
7068
 
      break
7069
 
    fi
7070
 
  done
7071
 
  IFS="$lt_save_ifs"
7072
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7073
 
  ;;
7074
 
esac
7075
 
fi
7076
 
 
7077
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7078
 
if test -n "$MAGIC_CMD"; then
7079
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7080
 
$as_echo "$MAGIC_CMD" >&6; }
7081
 
else
7082
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7083
 
$as_echo "no" >&6; }
7084
 
fi
7085
 
 
7086
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7087
 
  if test -n "$ac_tool_prefix"; then
7088
 
    { $as_echo "$as_me:$LINENO: checking for file" >&5
7089
 
$as_echo_n "checking for file... " >&6; }
7090
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7091
 
  $as_echo_n "(cached) " >&6
7092
 
else
7093
 
  case $MAGIC_CMD in
7094
 
[\\/*] |  ?:[\\/]*)
7095
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7096
 
  ;;
7097
 
*)
7098
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7099
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101
 
  for ac_dir in $ac_dummy; do
7102
 
    IFS="$lt_save_ifs"
7103
 
    test -z "$ac_dir" && ac_dir=.
7104
 
    if test -f $ac_dir/file; then
7105
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7106
 
      if test -n "$file_magic_test_file"; then
7107
 
        case $deplibs_check_method in
7108
 
        "file_magic "*)
7109
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112
 
            $EGREP "$file_magic_regex" > /dev/null; then
7113
 
            :
7114
 
          else
7115
 
            cat <<EOF 1>&2
7116
 
 
7117
 
*** Warning: the command libtool uses to detect shared libraries,
7118
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7119
 
*** The result is that libtool may fail to recognize shared libraries
7120
 
*** as such.  This will affect the creation of libtool libraries that
7121
 
*** depend on shared libraries, but programs linked with such libtool
7122
 
*** libraries will work regardless of this problem.  Nevertheless, you
7123
 
*** may want to report the problem to your system manager and/or to
7124
 
*** bug-libtool@gnu.org
7125
 
 
7126
 
EOF
7127
 
          fi ;;
7128
 
        esac
7129
 
      fi
7130
 
      break
7131
 
    fi
7132
 
  done
7133
 
  IFS="$lt_save_ifs"
7134
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7135
 
  ;;
7136
 
esac
7137
 
fi
7138
 
 
7139
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140
 
if test -n "$MAGIC_CMD"; then
7141
 
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7142
 
$as_echo "$MAGIC_CMD" >&6; }
7143
 
else
7144
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
7145
 
$as_echo "no" >&6; }
7146
 
fi
7147
 
 
7148
 
  else
7149
 
    MAGIC_CMD=:
7150
 
  fi
7151
 
fi
7152
 
 
7153
 
  fi
7154
 
  ;;
7155
 
esac
 
5619
 
 
5620
 
 
5621
 
 
5622
 
 
5623
 
 
5624
 
 
5625
 
 
5626
 
 
5627
 
 
5628
 
 
5629
 
 
5630
 
 
5631
 
 
5632
 
 
5633
 
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
 
 
5641
# Check whether --enable-libtool-lock was given.
 
5642
if test "${enable_libtool_lock+set}" = set; then
 
5643
  enableval=$enable_libtool_lock;
 
5644
fi
 
5645
 
 
5646
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5647
 
 
5648
# Some flags need to be propagated to the compiler or linker for good
 
5649
# libtool support.
 
5650
case $host in
 
5651
ia64-*-hpux*)
 
5652
  # Find out which ABI we are using.
 
5653
  echo 'int i;' > conftest.$ac_ext
 
5654
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5655
  (eval $ac_compile) 2>&5
 
5656
  ac_status=$?
 
5657
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5658
  (exit $ac_status); }; then
 
5659
    case `/usr/bin/file conftest.$ac_objext` in
 
5660
      *ELF-32*)
 
5661
        HPUX_IA64_MODE="32"
 
5662
        ;;
 
5663
      *ELF-64*)
 
5664
        HPUX_IA64_MODE="64"
 
5665
        ;;
 
5666
    esac
 
5667
  fi
 
5668
  rm -rf conftest*
 
5669
  ;;
 
5670
*-*-irix6*)
 
5671
  # Find out which ABI we are using.
 
5672
  echo '#line 5672 "configure"' > conftest.$ac_ext
 
5673
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5674
  (eval $ac_compile) 2>&5
 
5675
  ac_status=$?
 
5676
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5677
  (exit $ac_status); }; then
 
5678
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5679
      case `/usr/bin/file conftest.$ac_objext` in
 
5680
        *32-bit*)
 
5681
          LD="${LD-ld} -melf32bsmip"
 
5682
          ;;
 
5683
        *N32*)
 
5684
          LD="${LD-ld} -melf32bmipn32"
 
5685
          ;;
 
5686
        *64-bit*)
 
5687
          LD="${LD-ld} -melf64bmip"
 
5688
        ;;
 
5689
      esac
 
5690
    else
 
5691
      case `/usr/bin/file conftest.$ac_objext` in
 
5692
        *32-bit*)
 
5693
          LD="${LD-ld} -32"
 
5694
          ;;
 
5695
        *N32*)
 
5696
          LD="${LD-ld} -n32"
 
5697
          ;;
 
5698
        *64-bit*)
 
5699
          LD="${LD-ld} -64"
 
5700
          ;;
 
5701
      esac
 
5702
    fi
 
5703
  fi
 
5704
  rm -rf conftest*
 
5705
  ;;
 
5706
 
 
5707
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5708
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5709
  # Find out which ABI we are using.
 
5710
  echo 'int i;' > conftest.$ac_ext
 
5711
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5712
  (eval $ac_compile) 2>&5
 
5713
  ac_status=$?
 
5714
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5715
  (exit $ac_status); }; then
 
5716
    case `/usr/bin/file conftest.o` in
 
5717
      *32-bit*)
 
5718
        case $host in
 
5719
          x86_64-*kfreebsd*-gnu)
 
5720
            LD="${LD-ld} -m elf_i386_fbsd"
 
5721
            ;;
 
5722
          x86_64-*linux*)
 
5723
            LD="${LD-ld} -m elf_i386"
 
5724
            ;;
 
5725
          ppc64-*linux*|powerpc64-*linux*)
 
5726
            LD="${LD-ld} -m elf32ppclinux"
 
5727
            ;;
 
5728
          s390x-*linux*)
 
5729
            LD="${LD-ld} -m elf_s390"
 
5730
            ;;
 
5731
          sparc64-*linux*)
 
5732
            LD="${LD-ld} -m elf32_sparc"
 
5733
            ;;
 
5734
        esac
 
5735
        ;;
 
5736
      *64-bit*)
 
5737
        case $host in
 
5738
          x86_64-*kfreebsd*-gnu)
 
5739
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5740
            ;;
 
5741
          x86_64-*linux*)
 
5742
            LD="${LD-ld} -m elf_x86_64"
 
5743
            ;;
 
5744
          ppc*-*linux*|powerpc*-*linux*)
 
5745
            LD="${LD-ld} -m elf64ppc"
 
5746
            ;;
 
5747
          s390*-*linux*|s390*-*tpf*)
 
5748
            LD="${LD-ld} -m elf64_s390"
 
5749
            ;;
 
5750
          sparc*-*linux*)
 
5751
            LD="${LD-ld} -m elf64_sparc"
 
5752
            ;;
 
5753
        esac
 
5754
        ;;
 
5755
    esac
 
5756
  fi
 
5757
  rm -rf conftest*
 
5758
  ;;
 
5759
 
 
5760
*-*-sco3.2v5*)
 
5761
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5762
  SAVE_CFLAGS="$CFLAGS"
 
5763
  CFLAGS="$CFLAGS -belf"
 
5764
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5765
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5766
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5767
  $as_echo_n "(cached) " >&6
 
5768
else
 
5769
  ac_ext=c
 
5770
ac_cpp='$CPP $CPPFLAGS'
 
5771
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5772
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5773
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5774
 
 
5775
     cat >conftest.$ac_ext <<_ACEOF
 
5776
/* confdefs.h.  */
 
5777
_ACEOF
 
5778
cat confdefs.h >>conftest.$ac_ext
 
5779
cat >>conftest.$ac_ext <<_ACEOF
 
5780
/* end confdefs.h.  */
 
5781
 
 
5782
int
 
5783
main ()
 
5784
{
 
5785
 
 
5786
  ;
 
5787
  return 0;
 
5788
}
 
5789
_ACEOF
 
5790
rm -f conftest.$ac_objext conftest$ac_exeext
 
5791
if { (ac_try="$ac_link"
 
5792
case "(($ac_try" in
 
5793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5794
  *) ac_try_echo=$ac_try;;
 
5795
esac
 
5796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5797
$as_echo "$ac_try_echo") >&5
 
5798
  (eval "$ac_link") 2>conftest.er1
 
5799
  ac_status=$?
 
5800
  grep -v '^ *+' conftest.er1 >conftest.err
 
5801
  rm -f conftest.er1
 
5802
  cat conftest.err >&5
 
5803
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5804
  (exit $ac_status); } && {
 
5805
         test -z "$ac_c_werror_flag" ||
 
5806
         test ! -s conftest.err
 
5807
       } && test -s conftest$ac_exeext && {
 
5808
         test "$cross_compiling" = yes ||
 
5809
         $as_test_x conftest$ac_exeext
 
5810
       }; then
 
5811
  lt_cv_cc_needs_belf=yes
 
5812
else
 
5813
  $as_echo "$as_me: failed program was:" >&5
 
5814
sed 's/^/| /' conftest.$ac_ext >&5
 
5815
 
 
5816
        lt_cv_cc_needs_belf=no
 
5817
fi
 
5818
 
 
5819
rm -rf conftest.dSYM
 
5820
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5821
      conftest$ac_exeext conftest.$ac_ext
 
5822
     ac_ext=c
 
5823
ac_cpp='$CPP $CPPFLAGS'
 
5824
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5825
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5826
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5827
 
 
5828
fi
 
5829
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5830
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5831
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5832
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5833
    CFLAGS="$SAVE_CFLAGS"
 
5834
  fi
 
5835
  ;;
 
5836
sparc*-*solaris*)
 
5837
  # Find out which ABI we are using.
 
5838
  echo 'int i;' > conftest.$ac_ext
 
5839
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5840
  (eval $ac_compile) 2>&5
 
5841
  ac_status=$?
 
5842
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5843
  (exit $ac_status); }; then
 
5844
    case `/usr/bin/file conftest.o` in
 
5845
    *64-bit*)
 
5846
      case $lt_cv_prog_gnu_ld in
 
5847
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5848
      *)
 
5849
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5850
          LD="${LD-ld} -64"
 
5851
        fi
 
5852
        ;;
 
5853
      esac
 
5854
      ;;
 
5855
    esac
 
5856
  fi
 
5857
  rm -rf conftest*
 
5858
  ;;
 
5859
esac
 
5860
 
 
5861
need_locks="$enable_libtool_lock"
7156
5862
 
7157
5863
 
7158
5864
  case $host_os in
7341
6047
  NMEDIT="$ac_cv_prog_NMEDIT"
7342
6048
fi
7343
6049
 
 
6050
    if test -n "$ac_tool_prefix"; then
 
6051
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6052
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6053
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6054
$as_echo_n "checking for $ac_word... " >&6; }
 
6055
if test "${ac_cv_prog_LIPO+set}" = set; then
 
6056
  $as_echo_n "(cached) " >&6
 
6057
else
 
6058
  if test -n "$LIPO"; then
 
6059
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6060
else
 
6061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6062
for as_dir in $PATH
 
6063
do
 
6064
  IFS=$as_save_IFS
 
6065
  test -z "$as_dir" && as_dir=.
 
6066
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6067
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6068
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6069
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6070
    break 2
 
6071
  fi
 
6072
done
 
6073
done
 
6074
IFS=$as_save_IFS
 
6075
 
 
6076
fi
 
6077
fi
 
6078
LIPO=$ac_cv_prog_LIPO
 
6079
if test -n "$LIPO"; then
 
6080
  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
 
6081
$as_echo "$LIPO" >&6; }
 
6082
else
 
6083
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6084
$as_echo "no" >&6; }
 
6085
fi
 
6086
 
 
6087
 
 
6088
fi
 
6089
if test -z "$ac_cv_prog_LIPO"; then
 
6090
  ac_ct_LIPO=$LIPO
 
6091
  # Extract the first word of "lipo", so it can be a program name with args.
 
6092
set dummy lipo; ac_word=$2
 
6093
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6094
$as_echo_n "checking for $ac_word... " >&6; }
 
6095
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
6096
  $as_echo_n "(cached) " >&6
 
6097
else
 
6098
  if test -n "$ac_ct_LIPO"; then
 
6099
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6100
else
 
6101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6102
for as_dir in $PATH
 
6103
do
 
6104
  IFS=$as_save_IFS
 
6105
  test -z "$as_dir" && as_dir=.
 
6106
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6107
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6108
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6109
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6110
    break 2
 
6111
  fi
 
6112
done
 
6113
done
 
6114
IFS=$as_save_IFS
 
6115
 
 
6116
fi
 
6117
fi
 
6118
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6119
if test -n "$ac_ct_LIPO"; then
 
6120
  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
6121
$as_echo "$ac_ct_LIPO" >&6; }
 
6122
else
 
6123
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6124
$as_echo "no" >&6; }
 
6125
fi
 
6126
 
 
6127
  if test "x$ac_ct_LIPO" = x; then
 
6128
    LIPO=":"
 
6129
  else
 
6130
    case $cross_compiling:$ac_tool_warned in
 
6131
yes:)
 
6132
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6133
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6134
ac_tool_warned=yes ;;
 
6135
esac
 
6136
    LIPO=$ac_ct_LIPO
 
6137
  fi
 
6138
else
 
6139
  LIPO="$ac_cv_prog_LIPO"
 
6140
fi
 
6141
 
 
6142
    if test -n "$ac_tool_prefix"; then
 
6143
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6144
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6145
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6146
$as_echo_n "checking for $ac_word... " >&6; }
 
6147
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
6148
  $as_echo_n "(cached) " >&6
 
6149
else
 
6150
  if test -n "$OTOOL"; then
 
6151
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6152
else
 
6153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6154
for as_dir in $PATH
 
6155
do
 
6156
  IFS=$as_save_IFS
 
6157
  test -z "$as_dir" && as_dir=.
 
6158
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6159
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6160
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6161
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6162
    break 2
 
6163
  fi
 
6164
done
 
6165
done
 
6166
IFS=$as_save_IFS
 
6167
 
 
6168
fi
 
6169
fi
 
6170
OTOOL=$ac_cv_prog_OTOOL
 
6171
if test -n "$OTOOL"; then
 
6172
  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
 
6173
$as_echo "$OTOOL" >&6; }
 
6174
else
 
6175
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6176
$as_echo "no" >&6; }
 
6177
fi
 
6178
 
 
6179
 
 
6180
fi
 
6181
if test -z "$ac_cv_prog_OTOOL"; then
 
6182
  ac_ct_OTOOL=$OTOOL
 
6183
  # Extract the first word of "otool", so it can be a program name with args.
 
6184
set dummy otool; 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_OTOOL+set}" = set; then
 
6188
  $as_echo_n "(cached) " >&6
 
6189
else
 
6190
  if test -n "$ac_ct_OTOOL"; then
 
6191
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
 
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6211
if test -n "$ac_ct_OTOOL"; then
 
6212
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
6213
$as_echo "$ac_ct_OTOOL" >&6; }
 
6214
else
 
6215
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6216
$as_echo "no" >&6; }
 
6217
fi
 
6218
 
 
6219
  if test "x$ac_ct_OTOOL" = x; then
 
6220
    OTOOL=":"
 
6221
  else
 
6222
    case $cross_compiling:$ac_tool_warned in
 
6223
yes:)
 
6224
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6225
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6226
ac_tool_warned=yes ;;
 
6227
esac
 
6228
    OTOOL=$ac_ct_OTOOL
 
6229
  fi
 
6230
else
 
6231
  OTOOL="$ac_cv_prog_OTOOL"
 
6232
fi
 
6233
 
 
6234
    if test -n "$ac_tool_prefix"; then
 
6235
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6236
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6237
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6238
$as_echo_n "checking for $ac_word... " >&6; }
 
6239
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
6240
  $as_echo_n "(cached) " >&6
 
6241
else
 
6242
  if test -n "$OTOOL64"; then
 
6243
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6244
else
 
6245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6246
for as_dir in $PATH
 
6247
do
 
6248
  IFS=$as_save_IFS
 
6249
  test -z "$as_dir" && as_dir=.
 
6250
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6252
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6253
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6254
    break 2
 
6255
  fi
 
6256
done
 
6257
done
 
6258
IFS=$as_save_IFS
 
6259
 
 
6260
fi
 
6261
fi
 
6262
OTOOL64=$ac_cv_prog_OTOOL64
 
6263
if test -n "$OTOOL64"; then
 
6264
  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
6265
$as_echo "$OTOOL64" >&6; }
 
6266
else
 
6267
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6268
$as_echo "no" >&6; }
 
6269
fi
 
6270
 
 
6271
 
 
6272
fi
 
6273
if test -z "$ac_cv_prog_OTOOL64"; then
 
6274
  ac_ct_OTOOL64=$OTOOL64
 
6275
  # Extract the first word of "otool64", so it can be a program name with args.
 
6276
set dummy otool64; ac_word=$2
 
6277
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6278
$as_echo_n "checking for $ac_word... " >&6; }
 
6279
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
6280
  $as_echo_n "(cached) " >&6
 
6281
else
 
6282
  if test -n "$ac_ct_OTOOL64"; then
 
6283
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6284
else
 
6285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6286
for as_dir in $PATH
 
6287
do
 
6288
  IFS=$as_save_IFS
 
6289
  test -z "$as_dir" && as_dir=.
 
6290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6291
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6292
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6293
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6294
    break 2
 
6295
  fi
 
6296
done
 
6297
done
 
6298
IFS=$as_save_IFS
 
6299
 
 
6300
fi
 
6301
fi
 
6302
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6303
if test -n "$ac_ct_OTOOL64"; then
 
6304
  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
6305
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6306
else
 
6307
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6308
$as_echo "no" >&6; }
 
6309
fi
 
6310
 
 
6311
  if test "x$ac_ct_OTOOL64" = x; then
 
6312
    OTOOL64=":"
 
6313
  else
 
6314
    case $cross_compiling:$ac_tool_warned in
 
6315
yes:)
 
6316
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6317
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6318
ac_tool_warned=yes ;;
 
6319
esac
 
6320
    OTOOL64=$ac_ct_OTOOL64
 
6321
  fi
 
6322
else
 
6323
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6324
fi
 
6325
 
 
6326
 
 
6327
 
 
6328
 
 
6329
 
 
6330
 
 
6331
 
 
6332
 
 
6333
 
 
6334
 
 
6335
 
 
6336
 
 
6337
 
 
6338
 
 
6339
 
 
6340
 
 
6341
 
 
6342
 
 
6343
 
 
6344
 
 
6345
 
 
6346
 
 
6347
 
 
6348
 
 
6349
 
 
6350
 
7344
6351
 
7345
6352
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7346
6353
$as_echo_n "checking for -single_module linker flag... " >&6; }
7349
6356
else
7350
6357
  lt_cv_apple_cc_single_mod=no
7351
6358
      if test -z "${LT_MULTI_MODULE}"; then
7352
 
   # By default we will add the -single_module flag. You can override
7353
 
   # by either setting the environment variable LT_MULTI_MODULE
7354
 
   # non-empty at configure time, or by adding -multi_module to the
7355
 
   # link flags.
7356
 
   echo "int foo(void){return 1;}" > conftest.c
7357
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7358
 
     -dynamiclib ${wl}-single_module conftest.c
7359
 
   if test -f libconftest.dylib; then
7360
 
     lt_cv_apple_cc_single_mod=yes
7361
 
     rm -rf libconftest.dylib*
7362
 
   fi
7363
 
   rm conftest.c
 
6359
        # By default we will add the -single_module flag. You can override
 
6360
        # by either setting the environment variable LT_MULTI_MODULE
 
6361
        # non-empty at configure time, or by adding -multi_module to the
 
6362
        # link flags.
 
6363
        rm -rf libconftest.dylib*
 
6364
        echo "int foo(void){return 1;}" > conftest.c
 
6365
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6366
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6367
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6368
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6369
        _lt_result=$?
 
6370
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6371
          lt_cv_apple_cc_single_mod=yes
 
6372
        else
 
6373
          cat conftest.err >&5
 
6374
        fi
 
6375
        rm -rf libconftest.dylib*
 
6376
        rm -f conftest.*
7364
6377
      fi
7365
6378
fi
7366
6379
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7421
6434
rm -rf conftest.dSYM
7422
6435
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7423
6436
      conftest$ac_exeext conftest.$ac_ext
7424
 
   LDFLAGS="$save_LDFLAGS"
 
6437
        LDFLAGS="$save_LDFLAGS"
7425
6438
 
7426
6439
fi
7427
6440
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7428
6441
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7429
6442
    case $host_os in
7430
 
    rhapsody* | darwin1.[0123])
 
6443
    rhapsody* | darwin1.[012])
7431
6444
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7432
6445
    darwin1.*)
7433
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7434
 
    darwin*)
 
6446
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6447
    darwin*) # darwin 5.x on
7435
6448
      # if running on 10.5 or later, the deployment target defaults
7436
6449
      # to the OS version, if on x86, and 10.4, the deployment
7437
6450
      # target defaults to 10.4. Don't you love it?
7438
6451
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7439
 
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7440
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7441
 
   10.[012]*)
7442
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7443
 
   10.*)
7444
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6452
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6453
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6454
        10.[012]*)
 
6455
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6456
        10.*)
 
6457
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7445
6458
      esac
7446
6459
    ;;
7447
6460
  esac
7451
6464
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7452
6465
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7453
6466
    else
7454
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
6467
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7455
6468
    fi
7456
6469
    if test "$DSYMUTIL" != ":"; then
7457
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
6470
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7458
6471
    else
7459
6472
      _lt_dsymutil=
7460
6473
    fi
7461
6474
    ;;
7462
6475
  esac
7463
6476
 
7464
 
 
7465
 
enable_dlopen=no
7466
 
enable_win32_dll=no
7467
 
 
7468
 
# Check whether --enable-libtool-lock was given.
7469
 
if test "${enable_libtool_lock+set}" = set; then
7470
 
  enableval=$enable_libtool_lock;
7471
 
fi
7472
 
 
7473
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6477
ac_ext=c
 
6478
ac_cpp='$CPP $CPPFLAGS'
 
6479
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6480
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6481
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6482
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
6483
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6484
# On Suns, sometimes $CPP names a directory.
 
6485
if test -n "$CPP" && test -d "$CPP"; then
 
6486
  CPP=
 
6487
fi
 
6488
if test -z "$CPP"; then
 
6489
  if test "${ac_cv_prog_CPP+set}" = set; then
 
6490
  $as_echo_n "(cached) " >&6
 
6491
else
 
6492
      # Double quotes because CPP needs to be expanded
 
6493
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6494
    do
 
6495
      ac_preproc_ok=false
 
6496
for ac_c_preproc_warn_flag in '' yes
 
6497
do
 
6498
  # Use a header file that comes with gcc, so configuring glibc
 
6499
  # with a fresh cross-compiler works.
 
6500
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6501
  # <limits.h> exists even on freestanding compilers.
 
6502
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6503
  # not just through cpp. "Syntax error" is here to catch this case.
 
6504
  cat >conftest.$ac_ext <<_ACEOF
 
6505
/* confdefs.h.  */
 
6506
_ACEOF
 
6507
cat confdefs.h >>conftest.$ac_ext
 
6508
cat >>conftest.$ac_ext <<_ACEOF
 
6509
/* end confdefs.h.  */
 
6510
#ifdef __STDC__
 
6511
# include <limits.h>
 
6512
#else
 
6513
# include <assert.h>
 
6514
#endif
 
6515
                     Syntax error
 
6516
_ACEOF
 
6517
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6518
case "(($ac_try" in
 
6519
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6520
  *) ac_try_echo=$ac_try;;
 
6521
esac
 
6522
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6523
$as_echo "$ac_try_echo") >&5
 
6524
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6525
  ac_status=$?
 
6526
  grep -v '^ *+' conftest.er1 >conftest.err
 
6527
  rm -f conftest.er1
 
6528
  cat conftest.err >&5
 
6529
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6530
  (exit $ac_status); } >/dev/null && {
 
6531
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6532
         test ! -s conftest.err
 
6533
       }; then
 
6534
  :
 
6535
else
 
6536
  $as_echo "$as_me: failed program was:" >&5
 
6537
sed 's/^/| /' conftest.$ac_ext >&5
 
6538
 
 
6539
  # Broken: fails on valid input.
 
6540
continue
 
6541
fi
 
6542
 
 
6543
rm -f conftest.err conftest.$ac_ext
 
6544
 
 
6545
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6546
  # can be detected and how.
 
6547
  cat >conftest.$ac_ext <<_ACEOF
 
6548
/* confdefs.h.  */
 
6549
_ACEOF
 
6550
cat confdefs.h >>conftest.$ac_ext
 
6551
cat >>conftest.$ac_ext <<_ACEOF
 
6552
/* end confdefs.h.  */
 
6553
#include <ac_nonexistent.h>
 
6554
_ACEOF
 
6555
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6556
case "(($ac_try" in
 
6557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6558
  *) ac_try_echo=$ac_try;;
 
6559
esac
 
6560
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6561
$as_echo "$ac_try_echo") >&5
 
6562
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6563
  ac_status=$?
 
6564
  grep -v '^ *+' conftest.er1 >conftest.err
 
6565
  rm -f conftest.er1
 
6566
  cat conftest.err >&5
 
6567
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6568
  (exit $ac_status); } >/dev/null && {
 
6569
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6570
         test ! -s conftest.err
 
6571
       }; then
 
6572
  # Broken: success on invalid input.
 
6573
continue
 
6574
else
 
6575
  $as_echo "$as_me: failed program was:" >&5
 
6576
sed 's/^/| /' conftest.$ac_ext >&5
 
6577
 
 
6578
  # Passes both tests.
 
6579
ac_preproc_ok=:
 
6580
break
 
6581
fi
 
6582
 
 
6583
rm -f conftest.err conftest.$ac_ext
 
6584
 
 
6585
done
 
6586
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6587
rm -f conftest.err conftest.$ac_ext
 
6588
if $ac_preproc_ok; then
 
6589
  break
 
6590
fi
 
6591
 
 
6592
    done
 
6593
    ac_cv_prog_CPP=$CPP
 
6594
 
 
6595
fi
 
6596
  CPP=$ac_cv_prog_CPP
 
6597
else
 
6598
  ac_cv_prog_CPP=$CPP
 
6599
fi
 
6600
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
6601
$as_echo "$CPP" >&6; }
 
6602
ac_preproc_ok=false
 
6603
for ac_c_preproc_warn_flag in '' yes
 
6604
do
 
6605
  # Use a header file that comes with gcc, so configuring glibc
 
6606
  # with a fresh cross-compiler works.
 
6607
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6608
  # <limits.h> exists even on freestanding compilers.
 
6609
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6610
  # not just through cpp. "Syntax error" is here to catch this case.
 
6611
  cat >conftest.$ac_ext <<_ACEOF
 
6612
/* confdefs.h.  */
 
6613
_ACEOF
 
6614
cat confdefs.h >>conftest.$ac_ext
 
6615
cat >>conftest.$ac_ext <<_ACEOF
 
6616
/* end confdefs.h.  */
 
6617
#ifdef __STDC__
 
6618
# include <limits.h>
 
6619
#else
 
6620
# include <assert.h>
 
6621
#endif
 
6622
                     Syntax error
 
6623
_ACEOF
 
6624
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6625
case "(($ac_try" in
 
6626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6627
  *) ac_try_echo=$ac_try;;
 
6628
esac
 
6629
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6630
$as_echo "$ac_try_echo") >&5
 
6631
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6632
  ac_status=$?
 
6633
  grep -v '^ *+' conftest.er1 >conftest.err
 
6634
  rm -f conftest.er1
 
6635
  cat conftest.err >&5
 
6636
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6637
  (exit $ac_status); } >/dev/null && {
 
6638
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6639
         test ! -s conftest.err
 
6640
       }; then
 
6641
  :
 
6642
else
 
6643
  $as_echo "$as_me: failed program was:" >&5
 
6644
sed 's/^/| /' conftest.$ac_ext >&5
 
6645
 
 
6646
  # Broken: fails on valid input.
 
6647
continue
 
6648
fi
 
6649
 
 
6650
rm -f conftest.err conftest.$ac_ext
 
6651
 
 
6652
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6653
  # can be detected and how.
 
6654
  cat >conftest.$ac_ext <<_ACEOF
 
6655
/* confdefs.h.  */
 
6656
_ACEOF
 
6657
cat confdefs.h >>conftest.$ac_ext
 
6658
cat >>conftest.$ac_ext <<_ACEOF
 
6659
/* end confdefs.h.  */
 
6660
#include <ac_nonexistent.h>
 
6661
_ACEOF
 
6662
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6663
case "(($ac_try" in
 
6664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6665
  *) ac_try_echo=$ac_try;;
 
6666
esac
 
6667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6668
$as_echo "$ac_try_echo") >&5
 
6669
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6670
  ac_status=$?
 
6671
  grep -v '^ *+' conftest.er1 >conftest.err
 
6672
  rm -f conftest.er1
 
6673
  cat conftest.err >&5
 
6674
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6675
  (exit $ac_status); } >/dev/null && {
 
6676
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6677
         test ! -s conftest.err
 
6678
       }; then
 
6679
  # Broken: success on invalid input.
 
6680
continue
 
6681
else
 
6682
  $as_echo "$as_me: failed program was:" >&5
 
6683
sed 's/^/| /' conftest.$ac_ext >&5
 
6684
 
 
6685
  # Passes both tests.
 
6686
ac_preproc_ok=:
 
6687
break
 
6688
fi
 
6689
 
 
6690
rm -f conftest.err conftest.$ac_ext
 
6691
 
 
6692
done
 
6693
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6694
rm -f conftest.err conftest.$ac_ext
 
6695
if $ac_preproc_ok; then
 
6696
  :
 
6697
else
 
6698
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6699
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6700
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
6701
See \`config.log' for more details." >&5
 
6702
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
6703
See \`config.log' for more details." >&2;}
 
6704
   { (exit 1); exit 1; }; }; }
 
6705
fi
 
6706
 
 
6707
ac_ext=c
 
6708
ac_cpp='$CPP $CPPFLAGS'
 
6709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6712
 
 
6713
 
 
6714
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6715
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6716
if test "${ac_cv_header_stdc+set}" = set; then
 
6717
  $as_echo_n "(cached) " >&6
 
6718
else
 
6719
  cat >conftest.$ac_ext <<_ACEOF
 
6720
/* confdefs.h.  */
 
6721
_ACEOF
 
6722
cat confdefs.h >>conftest.$ac_ext
 
6723
cat >>conftest.$ac_ext <<_ACEOF
 
6724
/* end confdefs.h.  */
 
6725
#include <stdlib.h>
 
6726
#include <stdarg.h>
 
6727
#include <string.h>
 
6728
#include <float.h>
 
6729
 
 
6730
int
 
6731
main ()
 
6732
{
 
6733
 
 
6734
  ;
 
6735
  return 0;
 
6736
}
 
6737
_ACEOF
 
6738
rm -f conftest.$ac_objext
 
6739
if { (ac_try="$ac_compile"
 
6740
case "(($ac_try" in
 
6741
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6742
  *) ac_try_echo=$ac_try;;
 
6743
esac
 
6744
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6745
$as_echo "$ac_try_echo") >&5
 
6746
  (eval "$ac_compile") 2>conftest.er1
 
6747
  ac_status=$?
 
6748
  grep -v '^ *+' conftest.er1 >conftest.err
 
6749
  rm -f conftest.er1
 
6750
  cat conftest.err >&5
 
6751
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6752
  (exit $ac_status); } && {
 
6753
         test -z "$ac_c_werror_flag" ||
 
6754
         test ! -s conftest.err
 
6755
       } && test -s conftest.$ac_objext; then
 
6756
  ac_cv_header_stdc=yes
 
6757
else
 
6758
  $as_echo "$as_me: failed program was:" >&5
 
6759
sed 's/^/| /' conftest.$ac_ext >&5
 
6760
 
 
6761
        ac_cv_header_stdc=no
 
6762
fi
 
6763
 
 
6764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6765
 
 
6766
if test $ac_cv_header_stdc = yes; then
 
6767
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6768
  cat >conftest.$ac_ext <<_ACEOF
 
6769
/* confdefs.h.  */
 
6770
_ACEOF
 
6771
cat confdefs.h >>conftest.$ac_ext
 
6772
cat >>conftest.$ac_ext <<_ACEOF
 
6773
/* end confdefs.h.  */
 
6774
#include <string.h>
 
6775
 
 
6776
_ACEOF
 
6777
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6778
  $EGREP "memchr" >/dev/null 2>&1; then
 
6779
  :
 
6780
else
 
6781
  ac_cv_header_stdc=no
 
6782
fi
 
6783
rm -f conftest*
 
6784
 
 
6785
fi
 
6786
 
 
6787
if test $ac_cv_header_stdc = yes; then
 
6788
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6789
  cat >conftest.$ac_ext <<_ACEOF
 
6790
/* confdefs.h.  */
 
6791
_ACEOF
 
6792
cat confdefs.h >>conftest.$ac_ext
 
6793
cat >>conftest.$ac_ext <<_ACEOF
 
6794
/* end confdefs.h.  */
 
6795
#include <stdlib.h>
 
6796
 
 
6797
_ACEOF
 
6798
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6799
  $EGREP "free" >/dev/null 2>&1; then
 
6800
  :
 
6801
else
 
6802
  ac_cv_header_stdc=no
 
6803
fi
 
6804
rm -f conftest*
 
6805
 
 
6806
fi
 
6807
 
 
6808
if test $ac_cv_header_stdc = yes; then
 
6809
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6810
  if test "$cross_compiling" = yes; then
 
6811
  :
 
6812
else
 
6813
  cat >conftest.$ac_ext <<_ACEOF
 
6814
/* confdefs.h.  */
 
6815
_ACEOF
 
6816
cat confdefs.h >>conftest.$ac_ext
 
6817
cat >>conftest.$ac_ext <<_ACEOF
 
6818
/* end confdefs.h.  */
 
6819
#include <ctype.h>
 
6820
#include <stdlib.h>
 
6821
#if ((' ' & 0x0FF) == 0x020)
 
6822
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6823
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6824
#else
 
6825
# define ISLOWER(c) \
 
6826
                   (('a' <= (c) && (c) <= 'i') \
 
6827
                     || ('j' <= (c) && (c) <= 'r') \
 
6828
                     || ('s' <= (c) && (c) <= 'z'))
 
6829
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6830
#endif
 
6831
 
 
6832
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6833
int
 
6834
main ()
 
6835
{
 
6836
  int i;
 
6837
  for (i = 0; i < 256; i++)
 
6838
    if (XOR (islower (i), ISLOWER (i))
 
6839
        || toupper (i) != TOUPPER (i))
 
6840
      return 2;
 
6841
  return 0;
 
6842
}
 
6843
_ACEOF
 
6844
rm -f conftest$ac_exeext
 
6845
if { (ac_try="$ac_link"
 
6846
case "(($ac_try" in
 
6847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6848
  *) ac_try_echo=$ac_try;;
 
6849
esac
 
6850
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6851
$as_echo "$ac_try_echo") >&5
 
6852
  (eval "$ac_link") 2>&5
 
6853
  ac_status=$?
 
6854
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6855
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6856
  { (case "(($ac_try" in
 
6857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6858
  *) ac_try_echo=$ac_try;;
 
6859
esac
 
6860
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6861
$as_echo "$ac_try_echo") >&5
 
6862
  (eval "$ac_try") 2>&5
 
6863
  ac_status=$?
 
6864
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6865
  (exit $ac_status); }; }; then
 
6866
  :
 
6867
else
 
6868
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
6869
$as_echo "$as_me: failed program was:" >&5
 
6870
sed 's/^/| /' conftest.$ac_ext >&5
 
6871
 
 
6872
( exit $ac_status )
 
6873
ac_cv_header_stdc=no
 
6874
fi
 
6875
rm -rf conftest.dSYM
 
6876
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6877
fi
 
6878
 
 
6879
 
 
6880
fi
 
6881
fi
 
6882
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6883
$as_echo "$ac_cv_header_stdc" >&6; }
 
6884
if test $ac_cv_header_stdc = yes; then
 
6885
 
 
6886
cat >>confdefs.h <<\_ACEOF
 
6887
#define STDC_HEADERS 1
 
6888
_ACEOF
 
6889
 
 
6890
fi
 
6891
 
 
6892
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6893
 
 
6894
 
 
6895
 
 
6896
 
 
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6903
                  inttypes.h stdint.h unistd.h
 
6904
do
 
6905
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6906
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6907
$as_echo_n "checking for $ac_header... " >&6; }
 
6908
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6909
  $as_echo_n "(cached) " >&6
 
6910
else
 
6911
  cat >conftest.$ac_ext <<_ACEOF
 
6912
/* confdefs.h.  */
 
6913
_ACEOF
 
6914
cat confdefs.h >>conftest.$ac_ext
 
6915
cat >>conftest.$ac_ext <<_ACEOF
 
6916
/* end confdefs.h.  */
 
6917
$ac_includes_default
 
6918
 
 
6919
#include <$ac_header>
 
6920
_ACEOF
 
6921
rm -f conftest.$ac_objext
 
6922
if { (ac_try="$ac_compile"
 
6923
case "(($ac_try" in
 
6924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6925
  *) ac_try_echo=$ac_try;;
 
6926
esac
 
6927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6928
$as_echo "$ac_try_echo") >&5
 
6929
  (eval "$ac_compile") 2>conftest.er1
 
6930
  ac_status=$?
 
6931
  grep -v '^ *+' conftest.er1 >conftest.err
 
6932
  rm -f conftest.er1
 
6933
  cat conftest.err >&5
 
6934
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6935
  (exit $ac_status); } && {
 
6936
         test -z "$ac_c_werror_flag" ||
 
6937
         test ! -s conftest.err
 
6938
       } && test -s conftest.$ac_objext; then
 
6939
  eval "$as_ac_Header=yes"
 
6940
else
 
6941
  $as_echo "$as_me: failed program was:" >&5
 
6942
sed 's/^/| /' conftest.$ac_ext >&5
 
6943
 
 
6944
        eval "$as_ac_Header=no"
 
6945
fi
 
6946
 
 
6947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6948
fi
 
6949
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6950
                 $as_echo "$as_val"'`
 
6951
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6952
$as_echo "$ac_res" >&6; }
 
6953
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6954
                 $as_echo "$as_val"'`
 
6955
   if test "x$as_val" = x""yes; then
 
6956
  cat >>confdefs.h <<_ACEOF
 
6957
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6958
_ACEOF
 
6959
 
 
6960
fi
 
6961
 
 
6962
done
 
6963
 
 
6964
 
 
6965
 
 
6966
for ac_header in dlfcn.h
 
6967
do
 
6968
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6969
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6970
$as_echo_n "checking for $ac_header... " >&6; }
 
6971
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6972
  $as_echo_n "(cached) " >&6
 
6973
else
 
6974
  cat >conftest.$ac_ext <<_ACEOF
 
6975
/* confdefs.h.  */
 
6976
_ACEOF
 
6977
cat confdefs.h >>conftest.$ac_ext
 
6978
cat >>conftest.$ac_ext <<_ACEOF
 
6979
/* end confdefs.h.  */
 
6980
$ac_includes_default
 
6981
 
 
6982
#include <$ac_header>
 
6983
_ACEOF
 
6984
rm -f conftest.$ac_objext
 
6985
if { (ac_try="$ac_compile"
 
6986
case "(($ac_try" in
 
6987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6988
  *) ac_try_echo=$ac_try;;
 
6989
esac
 
6990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6991
$as_echo "$ac_try_echo") >&5
 
6992
  (eval "$ac_compile") 2>conftest.er1
 
6993
  ac_status=$?
 
6994
  grep -v '^ *+' conftest.er1 >conftest.err
 
6995
  rm -f conftest.er1
 
6996
  cat conftest.err >&5
 
6997
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6998
  (exit $ac_status); } && {
 
6999
         test -z "$ac_c_werror_flag" ||
 
7000
         test ! -s conftest.err
 
7001
       } && test -s conftest.$ac_objext; then
 
7002
  eval "$as_ac_Header=yes"
 
7003
else
 
7004
  $as_echo "$as_me: failed program was:" >&5
 
7005
sed 's/^/| /' conftest.$ac_ext >&5
 
7006
 
 
7007
        eval "$as_ac_Header=no"
 
7008
fi
 
7009
 
 
7010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7011
fi
 
7012
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
7013
                 $as_echo "$as_val"'`
 
7014
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
7015
$as_echo "$ac_res" >&6; }
 
7016
as_val=`eval 'as_val=${'$as_ac_Header'}
 
7017
                 $as_echo "$as_val"'`
 
7018
   if test "x$as_val" = x""yes; then
 
7019
  cat >>confdefs.h <<_ACEOF
 
7020
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7021
_ACEOF
 
7022
 
 
7023
fi
 
7024
 
 
7025
done
 
7026
 
 
7027
 
 
7028
 
 
7029
# Set options
 
7030
 
 
7031
 
 
7032
 
 
7033
        enable_dlopen=no
 
7034
 
 
7035
 
 
7036
  enable_win32_dll=no
 
7037
 
 
7038
 
 
7039
            # Check whether --enable-shared was given.
 
7040
if test "${enable_shared+set}" = set; then
 
7041
  enableval=$enable_shared; p=${PACKAGE-default}
 
7042
    case $enableval in
 
7043
    yes) enable_shared=yes ;;
 
7044
    no) enable_shared=no ;;
 
7045
    *)
 
7046
      enable_shared=no
 
7047
      # Look at the argument we got.  We use all the common list separators.
 
7048
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7049
      for pkg in $enableval; do
 
7050
        IFS="$lt_save_ifs"
 
7051
        if test "X$pkg" = "X$p"; then
 
7052
          enable_shared=yes
 
7053
        fi
 
7054
      done
 
7055
      IFS="$lt_save_ifs"
 
7056
      ;;
 
7057
    esac
 
7058
else
 
7059
  enable_shared=yes
 
7060
fi
 
7061
 
 
7062
 
 
7063
 
 
7064
 
 
7065
 
 
7066
 
 
7067
 
 
7068
 
 
7069
 
 
7070
  # Check whether --enable-static was given.
 
7071
if test "${enable_static+set}" = set; then
 
7072
  enableval=$enable_static; p=${PACKAGE-default}
 
7073
    case $enableval in
 
7074
    yes) enable_static=yes ;;
 
7075
    no) enable_static=no ;;
 
7076
    *)
 
7077
     enable_static=no
 
7078
      # Look at the argument we got.  We use all the common list separators.
 
7079
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7080
      for pkg in $enableval; do
 
7081
        IFS="$lt_save_ifs"
 
7082
        if test "X$pkg" = "X$p"; then
 
7083
          enable_static=yes
 
7084
        fi
 
7085
      done
 
7086
      IFS="$lt_save_ifs"
 
7087
      ;;
 
7088
    esac
 
7089
else
 
7090
  enable_static=yes
 
7091
fi
 
7092
 
 
7093
 
 
7094
 
 
7095
 
 
7096
 
 
7097
 
 
7098
 
 
7099
 
7474
7100
 
7475
7101
 
7476
7102
# Check whether --with-pic was given.
7480
7106
  pic_mode=default
7481
7107
fi
7482
7108
 
 
7109
 
7483
7110
test -z "$pic_mode" && pic_mode=default
7484
7111
 
 
7112
 
 
7113
 
 
7114
 
 
7115
 
 
7116
 
 
7117
 
 
7118
  # Check whether --enable-fast-install was given.
 
7119
if test "${enable_fast_install+set}" = set; then
 
7120
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7121
    case $enableval in
 
7122
    yes) enable_fast_install=yes ;;
 
7123
    no) enable_fast_install=no ;;
 
7124
    *)
 
7125
      enable_fast_install=no
 
7126
      # Look at the argument we got.  We use all the common list separators.
 
7127
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7128
      for pkg in $enableval; do
 
7129
        IFS="$lt_save_ifs"
 
7130
        if test "X$pkg" = "X$p"; then
 
7131
          enable_fast_install=yes
 
7132
        fi
 
7133
      done
 
7134
      IFS="$lt_save_ifs"
 
7135
      ;;
 
7136
    esac
 
7137
else
 
7138
  enable_fast_install=yes
 
7139
fi
 
7140
 
 
7141
 
 
7142
 
 
7143
 
 
7144
 
 
7145
 
 
7146
 
 
7147
 
 
7148
 
 
7149
 
 
7150
 
 
7151
# This can be used to rebuild libtool when needed
 
7152
LIBTOOL_DEPS="$ltmain"
 
7153
 
 
7154
# Always use our own libtool.
 
7155
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7156
 
 
7157
 
 
7158
 
 
7159
 
 
7160
 
 
7161
 
 
7162
 
 
7163
 
 
7164
 
 
7165
 
 
7166
 
 
7167
 
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
 
 
7180
 
 
7181
test -z "$LN_S" && LN_S="ln -s"
 
7182
 
 
7183
 
 
7184
 
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
 
 
7195
 
 
7196
if test -n "${ZSH_VERSION+set}" ; then
 
7197
   setopt NO_GLOB_SUBST
 
7198
fi
 
7199
 
 
7200
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
7201
$as_echo_n "checking for objdir... " >&6; }
 
7202
if test "${lt_cv_objdir+set}" = set; then
 
7203
  $as_echo_n "(cached) " >&6
 
7204
else
 
7205
  rm -f .libs 2>/dev/null
 
7206
mkdir .libs 2>/dev/null
 
7207
if test -d .libs; then
 
7208
  lt_cv_objdir=.libs
 
7209
else
 
7210
  # MS-DOS does not allow filenames that begin with a dot.
 
7211
  lt_cv_objdir=_libs
 
7212
fi
 
7213
rmdir .libs 2>/dev/null
 
7214
fi
 
7215
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7216
$as_echo "$lt_cv_objdir" >&6; }
 
7217
objdir=$lt_cv_objdir
 
7218
 
 
7219
 
 
7220
 
 
7221
 
 
7222
 
 
7223
cat >>confdefs.h <<_ACEOF
 
7224
#define LT_OBJDIR "$lt_cv_objdir/"
 
7225
_ACEOF
 
7226
 
 
7227
 
 
7228
 
 
7229
 
 
7230
 
 
7231
 
 
7232
 
 
7233
 
 
7234
 
 
7235
 
 
7236
 
 
7237
 
 
7238
 
 
7239
 
 
7240
 
 
7241
 
 
7242
 
 
7243
case $host_os in
 
7244
aix3*)
 
7245
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7246
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7247
  # vanish in a puff of smoke.
 
7248
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7249
    COLLECT_NAMES=
 
7250
    export COLLECT_NAMES
 
7251
  fi
 
7252
  ;;
 
7253
esac
 
7254
 
 
7255
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7256
# metacharacters that are still active within double-quoted strings.
 
7257
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
7258
 
 
7259
# Same as above, but do not quote variable references.
 
7260
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
7261
 
 
7262
# Sed substitution to delay expansion of an escaped shell variable in a
 
7263
# double_quote_subst'ed string.
 
7264
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7265
 
 
7266
# Sed substitution to delay expansion of an escaped single quote.
 
7267
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
7268
 
 
7269
# Sed substitution to avoid accidental globbing in evaled expressions
 
7270
no_glob_subst='s/\*/\\\*/g'
 
7271
 
 
7272
# Global variables:
 
7273
ofile=libtool
 
7274
can_build_shared=yes
 
7275
 
 
7276
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7277
# which needs '.lib').
 
7278
libext=a
 
7279
 
 
7280
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7281
 
 
7282
old_CC="$CC"
 
7283
old_CFLAGS="$CFLAGS"
 
7284
 
 
7285
# Set sane defaults for various variables
 
7286
test -z "$CC" && CC=cc
 
7287
test -z "$LTCC" && LTCC=$CC
 
7288
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7289
test -z "$LD" && LD=ld
 
7290
test -z "$ac_objext" && ac_objext=o
 
7291
 
 
7292
for cc_temp in $compiler""; do
 
7293
  case $cc_temp in
 
7294
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7295
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7296
    \-*) ;;
 
7297
    *) break;;
 
7298
  esac
 
7299
done
 
7300
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7301
 
 
7302
 
 
7303
# Only perform the check for file, if the check method requires it
 
7304
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7305
case $deplibs_check_method in
 
7306
file_magic*)
 
7307
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7308
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7309
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7310
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7311
  $as_echo_n "(cached) " >&6
 
7312
else
 
7313
  case $MAGIC_CMD in
 
7314
[\\/*] |  ?:[\\/]*)
 
7315
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7316
  ;;
 
7317
*)
 
7318
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7319
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7320
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7321
  for ac_dir in $ac_dummy; do
 
7322
    IFS="$lt_save_ifs"
 
7323
    test -z "$ac_dir" && ac_dir=.
 
7324
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7325
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7326
      if test -n "$file_magic_test_file"; then
 
7327
        case $deplibs_check_method in
 
7328
        "file_magic "*)
 
7329
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7330
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7331
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7332
            $EGREP "$file_magic_regex" > /dev/null; then
 
7333
            :
 
7334
          else
 
7335
            cat <<_LT_EOF 1>&2
 
7336
 
 
7337
*** Warning: the command libtool uses to detect shared libraries,
 
7338
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7339
*** The result is that libtool may fail to recognize shared libraries
 
7340
*** as such.  This will affect the creation of libtool libraries that
 
7341
*** depend on shared libraries, but programs linked with such libtool
 
7342
*** libraries will work regardless of this problem.  Nevertheless, you
 
7343
*** may want to report the problem to your system manager and/or to
 
7344
*** bug-libtool@gnu.org
 
7345
 
 
7346
_LT_EOF
 
7347
          fi ;;
 
7348
        esac
 
7349
      fi
 
7350
      break
 
7351
    fi
 
7352
  done
 
7353
  IFS="$lt_save_ifs"
 
7354
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7355
  ;;
 
7356
esac
 
7357
fi
 
7358
 
 
7359
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7360
if test -n "$MAGIC_CMD"; then
 
7361
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7362
$as_echo "$MAGIC_CMD" >&6; }
 
7363
else
 
7364
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7365
$as_echo "no" >&6; }
 
7366
fi
 
7367
 
 
7368
 
 
7369
 
 
7370
 
 
7371
 
 
7372
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7373
  if test -n "$ac_tool_prefix"; then
 
7374
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7375
$as_echo_n "checking for file... " >&6; }
 
7376
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7377
  $as_echo_n "(cached) " >&6
 
7378
else
 
7379
  case $MAGIC_CMD in
 
7380
[\\/*] |  ?:[\\/]*)
 
7381
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7382
  ;;
 
7383
*)
 
7384
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7385
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7386
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7387
  for ac_dir in $ac_dummy; do
 
7388
    IFS="$lt_save_ifs"
 
7389
    test -z "$ac_dir" && ac_dir=.
 
7390
    if test -f $ac_dir/file; then
 
7391
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7392
      if test -n "$file_magic_test_file"; then
 
7393
        case $deplibs_check_method in
 
7394
        "file_magic "*)
 
7395
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7396
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7397
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7398
            $EGREP "$file_magic_regex" > /dev/null; then
 
7399
            :
 
7400
          else
 
7401
            cat <<_LT_EOF 1>&2
 
7402
 
 
7403
*** Warning: the command libtool uses to detect shared libraries,
 
7404
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7405
*** The result is that libtool may fail to recognize shared libraries
 
7406
*** as such.  This will affect the creation of libtool libraries that
 
7407
*** depend on shared libraries, but programs linked with such libtool
 
7408
*** libraries will work regardless of this problem.  Nevertheless, you
 
7409
*** may want to report the problem to your system manager and/or to
 
7410
*** bug-libtool@gnu.org
 
7411
 
 
7412
_LT_EOF
 
7413
          fi ;;
 
7414
        esac
 
7415
      fi
 
7416
      break
 
7417
    fi
 
7418
  done
 
7419
  IFS="$lt_save_ifs"
 
7420
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7421
  ;;
 
7422
esac
 
7423
fi
 
7424
 
 
7425
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7426
if test -n "$MAGIC_CMD"; then
 
7427
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7428
$as_echo "$MAGIC_CMD" >&6; }
 
7429
else
 
7430
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7431
$as_echo "no" >&6; }
 
7432
fi
 
7433
 
 
7434
 
 
7435
  else
 
7436
    MAGIC_CMD=:
 
7437
  fi
 
7438
fi
 
7439
 
 
7440
  fi
 
7441
  ;;
 
7442
esac
 
7443
 
7485
7444
# Use C for the default configuration in the libtool script
7486
 
tagname=
 
7445
 
7487
7446
lt_save_CC="$CC"
7488
7447
ac_ext=c
7489
7448
ac_cpp='$CPP $CPPFLAGS'
7506
7465
lt_simple_link_test_code='int main(){return(0);}'
7507
7466
 
7508
7467
 
 
7468
 
 
7469
 
 
7470
 
 
7471
 
 
7472
 
7509
7473
# If no C compiler was specified, use CC.
7510
7474
LTCC=${LTCC-"$CC"}
7511
7475
 
7515
7479
# Allow CC to be a program name with arguments.
7516
7480
compiler=$CC
7517
7481
 
 
7482
# Save the default compiler, since it gets overwritten when the other
 
7483
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7484
compiler_DEFAULT=$CC
7518
7485
 
7519
7486
# save warnings/boilerplate of simple test code
7520
7487
ac_outfile=conftest.$ac_objext
7521
7488
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7522
7489
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7523
7490
_lt_compiler_boilerplate=`cat conftest.err`
7524
 
$rm conftest*
 
7491
$RM conftest*
7525
7492
 
7526
7493
ac_outfile=conftest.$ac_objext
7527
7494
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7528
7495
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7529
7496
_lt_linker_boilerplate=`cat conftest.err`
7530
 
$rm -r conftest*
7531
 
 
7532
 
 
 
7497
$RM -r conftest*
 
7498
 
 
7499
 
 
7500
if test -n "$compiler"; then
7533
7501
 
7534
7502
lt_prog_compiler_no_builtin_flag=
7535
7503
 
7536
7504
if test "$GCC" = yes; then
7537
7505
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7538
7506
 
7539
 
 
7540
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7507
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7541
7508
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7542
7509
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7543
7510
  $as_echo_n "(cached) " >&6
7544
7511
else
7545
7512
  lt_cv_prog_compiler_rtti_exceptions=no
7546
 
  ac_outfile=conftest.$ac_objext
 
7513
   ac_outfile=conftest.$ac_objext
7547
7514
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7548
7515
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7549
7516
   # Insert the option either (1) after the last *FLAGS variable, or
7555
7522
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7556
7523
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7557
7524
   -e 's:$: $lt_compiler_flag:'`
7558
 
   (eval echo "\"\$as_me:7558: $lt_compile\"" >&5)
 
7525
   (eval echo "\"\$as_me:7525: $lt_compile\"" >&5)
7559
7526
   (eval "$lt_compile" 2>conftest.err)
7560
7527
   ac_status=$?
7561
7528
   cat conftest.err >&5
7562
 
   echo "$as_me:7562: \$? = $ac_status" >&5
 
7529
   echo "$as_me:7529: \$? = $ac_status" >&5
7563
7530
   if (exit $ac_status) && test -s "$ac_outfile"; then
7564
7531
     # The compiler can only warn and ignore the option if not recognized
7565
7532
     # So say no if there are warnings other than the usual output.
7566
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7533
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7567
7534
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7568
7535
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7569
7536
       lt_cv_prog_compiler_rtti_exceptions=yes
7570
7537
     fi
7571
7538
   fi
7572
 
   $rm conftest*
 
7539
   $RM conftest*
7573
7540
 
7574
7541
fi
7575
7542
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7583
7550
 
7584
7551
fi
7585
7552
 
7586
 
lt_prog_compiler_wl=
 
7553
 
 
7554
 
 
7555
 
 
7556
 
 
7557
 
 
7558
  lt_prog_compiler_wl=
7587
7559
lt_prog_compiler_pic=
7588
7560
lt_prog_compiler_static=
7589
7561
 
7604
7576
      ;;
7605
7577
 
7606
7578
    amigaos*)
7607
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7608
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7609
 
      # like `-m68040'.
7610
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7579
      case $host_cpu in
 
7580
      powerpc)
 
7581
            # see comment about AmigaOS4 .so support
 
7582
            lt_prog_compiler_pic='-fPIC'
 
7583
        ;;
 
7584
      m68k)
 
7585
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7586
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7587
            # like `-m68040'.
 
7588
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7589
        ;;
 
7590
      esac
7611
7591
      ;;
7612
7592
 
7613
7593
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7614
7594
      # PIC is the default for these OSes.
7615
7595
      ;;
7616
7596
 
7617
 
    mingw* | cygwin* | pw32* | os2*)
 
7597
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7618
7598
      # This hack is so that the source file can tell whether it is being
7619
7599
      # built for inclusion in a dll (and should export symbols for example).
7620
7600
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7628
7608
      lt_prog_compiler_pic='-fno-common'
7629
7609
      ;;
7630
7610
 
 
7611
    hpux*)
 
7612
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7613
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7614
      # sets the default TLS model and affects inlining.
 
7615
      case $host_cpu in
 
7616
      hppa*64*)
 
7617
        # +Z the default
 
7618
        ;;
 
7619
      *)
 
7620
        lt_prog_compiler_pic='-fPIC'
 
7621
        ;;
 
7622
      esac
 
7623
      ;;
 
7624
 
7631
7625
    interix[3-9]*)
7632
7626
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7633
7627
      # Instead, we relocate shared libraries at runtime.
7640
7634
      enable_shared=no
7641
7635
      ;;
7642
7636
 
 
7637
    *nto* | *qnx*)
 
7638
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7639
      # it will coredump.
 
7640
      lt_prog_compiler_pic='-fPIC -shared'
 
7641
      ;;
 
7642
 
7643
7643
    sysv4*MP*)
7644
7644
      if test -d /usr/nec; then
7645
7645
        lt_prog_compiler_pic=-Kconform_pic
7646
7646
      fi
7647
7647
      ;;
7648
7648
 
7649
 
    hpux*)
7650
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7651
 
      # not for PA HP-UX.
7652
 
      case $host_cpu in
7653
 
      hppa*64*|ia64*)
7654
 
        # +Z the default
7655
 
        ;;
7656
 
      *)
7657
 
        lt_prog_compiler_pic='-fPIC'
7658
 
        ;;
7659
 
      esac
7660
 
      ;;
7661
 
 
7662
7649
    *)
7663
7650
      lt_prog_compiler_pic='-fPIC'
7664
7651
      ;;
7675
7662
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7676
7663
      fi
7677
7664
      ;;
7678
 
      darwin*)
7679
 
        # PIC is the default on this platform
7680
 
        # Common symbols not allowed in MH_DYLIB files
7681
 
       case $cc_basename in
7682
 
         xlc*)
7683
 
         lt_prog_compiler_pic='-qnocommon'
7684
 
         lt_prog_compiler_wl='-Wl,'
7685
 
         ;;
7686
 
       esac
7687
 
       ;;
7688
7665
 
7689
 
    mingw* | cygwin* | pw32* | os2*)
 
7666
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7690
7667
      # This hack is so that the source file can tell whether it is being
7691
7668
      # built for inclusion in a dll (and should export symbols for example).
7692
7669
      lt_prog_compiler_pic='-DDLL_EXPORT'
7714
7691
      lt_prog_compiler_static='-non_shared'
7715
7692
      ;;
7716
7693
 
7717
 
    newsos6)
7718
 
      lt_prog_compiler_pic='-KPIC'
7719
 
      lt_prog_compiler_static='-Bstatic'
7720
 
      ;;
7721
 
 
7722
7694
    linux* | k*bsd*-gnu)
7723
7695
      case $cc_basename in
7724
 
      icc* | ecc*)
 
7696
      # old Intel for x86_64 which still supported -KPIC.
 
7697
      ecc*)
7725
7698
        lt_prog_compiler_wl='-Wl,'
7726
7699
        lt_prog_compiler_pic='-KPIC'
7727
7700
        lt_prog_compiler_static='-static'
7728
7701
        ;;
 
7702
      # icc used to be incompatible with GCC.
 
7703
      # ICC 10 doesn't accept -KPIC any more.
 
7704
      icc* | ifort*)
 
7705
        lt_prog_compiler_wl='-Wl,'
 
7706
        lt_prog_compiler_pic='-fPIC'
 
7707
        lt_prog_compiler_static='-static'
 
7708
        ;;
 
7709
      # Lahey Fortran 8.1.
 
7710
      lf95*)
 
7711
        lt_prog_compiler_wl='-Wl,'
 
7712
        lt_prog_compiler_pic='--shared'
 
7713
        lt_prog_compiler_static='--static'
 
7714
        ;;
7729
7715
      pgcc* | pgf77* | pgf90* | pgf95*)
7730
7716
        # Portland Group compilers (*not* the Pentium gcc compiler,
7731
7717
        # which looks to be a dead project)
7738
7724
        # All Alpha code is PIC.
7739
7725
        lt_prog_compiler_static='-non_shared'
7740
7726
        ;;
 
7727
      xl*)
 
7728
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7729
        lt_prog_compiler_wl='-Wl,'
 
7730
        lt_prog_compiler_pic='-qpic'
 
7731
        lt_prog_compiler_static='-qstaticlink'
 
7732
        ;;
7741
7733
      *)
7742
 
        case `$CC -V 2>&1 | sed 5q` in
 
7734
        case `$CC -V 2>&1 | sed 5q` in
7743
7735
        *Sun\ C*)
7744
7736
          # Sun C 5.9
7745
7737
          lt_prog_compiler_pic='-KPIC'
7757
7749
      esac
7758
7750
      ;;
7759
7751
 
 
7752
    newsos6)
 
7753
      lt_prog_compiler_pic='-KPIC'
 
7754
      lt_prog_compiler_static='-Bstatic'
 
7755
      ;;
 
7756
 
 
7757
    *nto* | *qnx*)
 
7758
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7759
      # it will coredump.
 
7760
      lt_prog_compiler_pic='-fPIC -shared'
 
7761
      ;;
 
7762
 
7760
7763
    osf3* | osf4* | osf5*)
7761
7764
      lt_prog_compiler_wl='-Wl,'
7762
7765
      # All OSF/1 code is PIC.
7819
7822
    esac
7820
7823
  fi
7821
7824
 
 
7825
case $host_os in
 
7826
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7827
  *djgpp*)
 
7828
    lt_prog_compiler_pic=
 
7829
    ;;
 
7830
  *)
 
7831
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7832
    ;;
 
7833
esac
7822
7834
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7823
7835
$as_echo "$lt_prog_compiler_pic" >&6; }
7824
7836
 
 
7837
 
 
7838
 
 
7839
 
 
7840
 
 
7841
 
7825
7842
#
7826
7843
# Check to make sure the PIC flag actually works.
7827
7844
#
7828
7845
if test -n "$lt_prog_compiler_pic"; then
7829
 
 
7830
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7846
  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7831
7847
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7832
7848
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7833
7849
  $as_echo_n "(cached) " >&6
7834
7850
else
7835
7851
  lt_cv_prog_compiler_pic_works=no
7836
 
  ac_outfile=conftest.$ac_objext
 
7852
   ac_outfile=conftest.$ac_objext
7837
7853
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838
7854
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7839
7855
   # Insert the option either (1) after the last *FLAGS variable, or
7845
7861
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846
7862
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847
7863
   -e 's:$: $lt_compiler_flag:'`
7848
 
   (eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
 
7864
   (eval echo "\"\$as_me:7864: $lt_compile\"" >&5)
7849
7865
   (eval "$lt_compile" 2>conftest.err)
7850
7866
   ac_status=$?
7851
7867
   cat conftest.err >&5
7852
 
   echo "$as_me:7852: \$? = $ac_status" >&5
 
7868
   echo "$as_me:7868: \$? = $ac_status" >&5
7853
7869
   if (exit $ac_status) && test -s "$ac_outfile"; then
7854
7870
     # The compiler can only warn and ignore the option if not recognized
7855
7871
     # So say no if there are warnings other than the usual output.
7856
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7872
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7857
7873
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858
7874
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7859
7875
       lt_cv_prog_compiler_pic_works=yes
7860
7876
     fi
7861
7877
   fi
7862
 
   $rm conftest*
 
7878
   $RM conftest*
7863
7879
 
7864
7880
fi
7865
7881
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7876
7892
fi
7877
7893
 
7878
7894
fi
7879
 
case $host_os in
7880
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7881
 
  *djgpp*)
7882
 
    lt_prog_compiler_pic=
7883
 
    ;;
7884
 
  *)
7885
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7886
 
    ;;
7887
 
esac
 
7895
 
 
7896
 
 
7897
 
 
7898
 
 
7899
 
7888
7900
 
7889
7901
#
7890
7902
# Check to make sure the static flag actually works.
7905
7917
     if test -s conftest.err; then
7906
7918
       # Append any errors to the config.log.
7907
7919
       cat conftest.err 1>&5
7908
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7920
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7909
7921
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910
7922
       if diff conftest.exp conftest.er2 >/dev/null; then
7911
7923
         lt_cv_prog_compiler_static_works=yes
7914
7926
       lt_cv_prog_compiler_static_works=yes
7915
7927
     fi
7916
7928
   fi
7917
 
   $rm -r conftest*
 
7929
   $RM -r conftest*
7918
7930
   LDFLAGS="$save_LDFLAGS"
7919
7931
 
7920
7932
fi
7928
7940
fi
7929
7941
 
7930
7942
 
7931
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7932
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7933
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7934
 
  $as_echo_n "(cached) " >&6
7935
 
else
7936
 
  lt_cv_prog_compiler_c_o=no
7937
 
   $rm -r conftest 2>/dev/null
7938
 
   mkdir conftest
7939
 
   cd conftest
7940
 
   mkdir out
7941
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7942
 
 
7943
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7944
 
   # Insert the option either (1) after the last *FLAGS variable, or
7945
 
   # (2) before a word containing "conftest.", or (3) at the end.
7946
 
   # Note that $ac_compile itself does not contain backslashes and begins
7947
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7948
 
   lt_compile=`echo "$ac_compile" | $SED \
7949
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7950
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7951
 
   -e 's:$: $lt_compiler_flag:'`
7952
 
   (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
7953
 
   (eval "$lt_compile" 2>out/conftest.err)
7954
 
   ac_status=$?
7955
 
   cat out/conftest.err >&5
7956
 
   echo "$as_me:7956: \$? = $ac_status" >&5
7957
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7958
 
   then
7959
 
     # The compiler can only warn and ignore the option if not recognized
7960
 
     # So say no if there are warnings
7961
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7962
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7963
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7964
 
       lt_cv_prog_compiler_c_o=yes
7965
 
     fi
7966
 
   fi
7967
 
   chmod u+w . 2>&5
7968
 
   $rm conftest*
7969
 
   # SGI C++ compiler will create directory out/ii_files/ for
7970
 
   # template instantiation
7971
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7972
 
   $rm out/* && rmdir out
7973
 
   cd ..
7974
 
   rmdir conftest
7975
 
   $rm conftest*
7976
 
 
7977
 
fi
7978
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7979
 
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7943
 
 
7944
 
 
7945
 
 
7946
 
 
7947
 
 
7948
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7949
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7950
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7951
  $as_echo_n "(cached) " >&6
 
7952
else
 
7953
  lt_cv_prog_compiler_c_o=no
 
7954
   $RM -r conftest 2>/dev/null
 
7955
   mkdir conftest
 
7956
   cd conftest
 
7957
   mkdir out
 
7958
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7959
 
 
7960
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7961
   # Insert the option either (1) after the last *FLAGS variable, or
 
7962
   # (2) before a word containing "conftest.", or (3) at the end.
 
7963
   # Note that $ac_compile itself does not contain backslashes and begins
 
7964
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7965
   lt_compile=`echo "$ac_compile" | $SED \
 
7966
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7967
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7968
   -e 's:$: $lt_compiler_flag:'`
 
7969
   (eval echo "\"\$as_me:7969: $lt_compile\"" >&5)
 
7970
   (eval "$lt_compile" 2>out/conftest.err)
 
7971
   ac_status=$?
 
7972
   cat out/conftest.err >&5
 
7973
   echo "$as_me:7973: \$? = $ac_status" >&5
 
7974
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7975
   then
 
7976
     # The compiler can only warn and ignore the option if not recognized
 
7977
     # So say no if there are warnings
 
7978
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7979
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7980
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7981
       lt_cv_prog_compiler_c_o=yes
 
7982
     fi
 
7983
   fi
 
7984
   chmod u+w . 2>&5
 
7985
   $RM conftest*
 
7986
   # SGI C++ compiler will create directory out/ii_files/ for
 
7987
   # template instantiation
 
7988
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
7989
   $RM out/* && rmdir out
 
7990
   cd ..
 
7991
   $RM -r conftest
 
7992
   $RM conftest*
 
7993
 
 
7994
fi
 
7995
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7996
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7997
 
 
7998
 
 
7999
 
 
8000
 
 
8001
 
 
8002
 
 
8003
  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8004
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8005
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8006
  $as_echo_n "(cached) " >&6
 
8007
else
 
8008
  lt_cv_prog_compiler_c_o=no
 
8009
   $RM -r conftest 2>/dev/null
 
8010
   mkdir conftest
 
8011
   cd conftest
 
8012
   mkdir out
 
8013
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8014
 
 
8015
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8016
   # Insert the option either (1) after the last *FLAGS variable, or
 
8017
   # (2) before a word containing "conftest.", or (3) at the end.
 
8018
   # Note that $ac_compile itself does not contain backslashes and begins
 
8019
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8020
   lt_compile=`echo "$ac_compile" | $SED \
 
8021
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8022
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8023
   -e 's:$: $lt_compiler_flag:'`
 
8024
   (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
 
8025
   (eval "$lt_compile" 2>out/conftest.err)
 
8026
   ac_status=$?
 
8027
   cat out/conftest.err >&5
 
8028
   echo "$as_me:8028: \$? = $ac_status" >&5
 
8029
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8030
   then
 
8031
     # The compiler can only warn and ignore the option if not recognized
 
8032
     # So say no if there are warnings
 
8033
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8034
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8035
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8036
       lt_cv_prog_compiler_c_o=yes
 
8037
     fi
 
8038
   fi
 
8039
   chmod u+w . 2>&5
 
8040
   $RM conftest*
 
8041
   # SGI C++ compiler will create directory out/ii_files/ for
 
8042
   # template instantiation
 
8043
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8044
   $RM out/* && rmdir out
 
8045
   cd ..
 
8046
   $RM -r conftest
 
8047
   $RM conftest*
 
8048
 
 
8049
fi
 
8050
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8051
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8052
 
 
8053
 
7980
8054
 
7981
8055
 
7982
8056
hard_links="nottested"
7985
8059
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7986
8060
$as_echo_n "checking if we can lock with hard links... " >&6; }
7987
8061
  hard_links=yes
7988
 
  $rm conftest*
 
8062
  $RM conftest*
7989
8063
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7990
8064
  touch conftest.a
7991
8065
  ln conftest.a conftest.b 2>&5 || hard_links=no
8001
8075
  need_locks=no
8002
8076
fi
8003
8077
 
8004
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8078
 
 
8079
 
 
8080
 
 
8081
 
 
8082
 
 
8083
  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8005
8084
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8006
8085
 
8007
8086
  runpath_var=
8008
8087
  allow_undefined_flag=
8009
 
  enable_shared_with_static_runtimes=no
 
8088
  always_export_symbols=no
8010
8089
  archive_cmds=
8011
8090
  archive_expsym_cmds=
8012
 
  old_archive_From_new_cmds=
8013
 
  old_archive_from_expsyms_cmds=
 
8091
  compiler_needs_object=no
 
8092
  enable_shared_with_static_runtimes=no
8014
8093
  export_dynamic_flag_spec=
8015
 
  whole_archive_flag_spec=
8016
 
  thread_safe_flag_spec=
 
8094
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8095
  hardcode_automatic=no
 
8096
  hardcode_direct=no
 
8097
  hardcode_direct_absolute=no
8017
8098
  hardcode_libdir_flag_spec=
8018
8099
  hardcode_libdir_flag_spec_ld=
8019
8100
  hardcode_libdir_separator=
8020
 
  hardcode_direct=no
8021
8101
  hardcode_minus_L=no
8022
8102
  hardcode_shlibpath_var=unsupported
 
8103
  inherit_rpath=no
8023
8104
  link_all_deplibs=unknown
8024
 
  hardcode_automatic=no
8025
8105
  module_cmds=
8026
8106
  module_expsym_cmds=
8027
 
  always_export_symbols=no
8028
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8107
  old_archive_from_new_cmds=
 
8108
  old_archive_from_expsyms_cmds=
 
8109
  thread_safe_flag_spec=
 
8110
  whole_archive_flag_spec=
8029
8111
  # include_expsyms should be a list of space-separated symbols to be *always*
8030
8112
  # included in the symbol list
8031
8113
  include_expsyms=
8041
8123
  # preloaded symbol tables.
8042
8124
  # Exclude shared library initialization/finalization symbols.
8043
8125
  extract_expsyms_cmds=
8044
 
  # Just being paranoid about ensuring that cc_basename is set.
8045
 
  for cc_temp in $compiler""; do
8046
 
  case $cc_temp in
8047
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8048
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8049
 
    \-*) ;;
8050
 
    *) break;;
8051
 
  esac
8052
 
done
8053
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8054
8126
 
8055
8127
  case $host_os in
8056
 
  cygwin* | mingw* | pw32*)
 
8128
  cygwin* | mingw* | pw32* | cegcc*)
8057
8129
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8058
8130
    # When not using gcc, we currently assume that we are using
8059
8131
    # Microsoft Visual C++.
8079
8151
    # are reset later if shared libraries are not supported. Putting them
8080
8152
    # here allows them to be overridden if necessary.
8081
8153
    runpath_var=LD_RUN_PATH
8082
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8154
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8083
8155
    export_dynamic_flag_spec='${wl}--export-dynamic'
8084
8156
    # ancient GNU ld didn't support --whole-archive et. al.
8085
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8086
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8087
 
      else
8088
 
        whole_archive_flag_spec=
 
8157
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8158
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8159
    else
 
8160
      whole_archive_flag_spec=
8089
8161
    fi
8090
8162
    supports_anon_versioning=no
8091
 
    case `$LD -v 2>/dev/null` in
 
8163
    case `$LD -v 2>&1` in
8092
8164
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8093
8165
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8094
8166
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8102
8174
      # On AIX/PPC, the GNU linker is very broken
8103
8175
      if test "$host_cpu" != ia64; then
8104
8176
        ld_shlibs=no
8105
 
        cat <<EOF 1>&2
 
8177
        cat <<_LT_EOF 1>&2
8106
8178
 
8107
8179
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8108
8180
*** to be unable to reliably create shared libraries on AIX.
8110
8182
*** really care for shared libraries, you may want to modify your PATH
8111
8183
*** so that a non-GNU linker is found, and then restart.
8112
8184
 
8113
 
EOF
 
8185
_LT_EOF
8114
8186
      fi
8115
8187
      ;;
8116
8188
 
8117
8189
    amigaos*)
8118
 
      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)'
8119
 
      hardcode_libdir_flag_spec='-L$libdir'
8120
 
      hardcode_minus_L=yes
8121
 
 
8122
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8123
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
8124
 
      # to version 4, is to share data among multiple programs linked
8125
 
      # with the same dynamic library.  Since this doesn't match the
8126
 
      # behavior of shared libraries on other platforms, we can't use
8127
 
      # them.
8128
 
      ld_shlibs=no
 
8190
      case $host_cpu in
 
8191
      powerpc)
 
8192
            # see comment about AmigaOS4 .so support
 
8193
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8194
            archive_expsym_cmds=''
 
8195
        ;;
 
8196
      m68k)
 
8197
            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)'
 
8198
            hardcode_libdir_flag_spec='-L$libdir'
 
8199
            hardcode_minus_L=yes
 
8200
        ;;
 
8201
      esac
8129
8202
      ;;
8130
8203
 
8131
8204
    beos*)
8132
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8205
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8133
8206
        allow_undefined_flag=unsupported
8134
8207
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8135
8208
        # support --undefined.  This deserves some investigation.  FIXME
8139
8212
      fi
8140
8213
      ;;
8141
8214
 
8142
 
    cygwin* | mingw* | pw32*)
8143
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8215
    cygwin* | mingw* | pw32* | cegcc*)
 
8216
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8144
8217
      # as there is no search path for DLLs.
8145
8218
      hardcode_libdir_flag_spec='-L$libdir'
8146
8219
      allow_undefined_flag=unsupported
8147
8220
      always_export_symbols=no
8148
8221
      enable_shared_with_static_runtimes=yes
8149
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8222
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8150
8223
 
8151
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8224
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8152
8225
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8153
8226
        # If the export-symbols file already is a .def file (1st line
8154
8227
        # is EXPORTS), use it as is; otherwise, prepend...
8179
8252
      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'
8180
8253
      ;;
8181
8254
 
8182
 
    gnu* | linux* | k*bsd*-gnu)
8183
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8255
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
8256
      tmp_diet=no
 
8257
      if test "$host_os" = linux-dietlibc; then
 
8258
        case $cc_basename in
 
8259
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8260
        esac
 
8261
      fi
 
8262
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8263
         && test "$tmp_diet" = no
 
8264
      then
8184
8265
        tmp_addflag=
 
8266
        tmp_sharedflag='-shared'
8185
8267
        case $cc_basename,$host_cpu in
8186
 
        pgcc*)                          # Portland Group C compiler
8187
 
          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'
 
8268
        pgcc*)                          # Portland Group C compiler
 
8269
          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'
8188
8270
          tmp_addflag=' $pic_flag'
8189
8271
          ;;
8190
8272
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8191
 
          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'
 
8273
          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'
8192
8274
          tmp_addflag=' $pic_flag -Mnomain' ;;
8193
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8275
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8194
8276
          tmp_addflag=' -i_dynamic' ;;
8195
8277
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8196
8278
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8197
8279
        ifc* | ifort*)                  # Intel Fortran compiler
8198
8280
          tmp_addflag=' -nofor_main' ;;
 
8281
        lf95*)                          # Lahey Fortran 8.1
 
8282
          whole_archive_flag_spec=
 
8283
          tmp_sharedflag='--shared' ;;
 
8284
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
8285
          tmp_sharedflag='-qmkshrobj'
 
8286
          tmp_addflag= ;;
8199
8287
        esac
8200
8288
        case `$CC -V 2>&1 | sed 5q` in
8201
8289
        *Sun\ C*)                       # Sun C 5.9
8202
 
          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'
 
8290
          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'
 
8291
          compiler_needs_object=yes
8203
8292
          tmp_sharedflag='-G' ;;
8204
8293
        *Sun\ F*)                       # Sun Fortran 8.3
8205
8294
          tmp_sharedflag='-G' ;;
8206
 
        *)
8207
 
          tmp_sharedflag='-shared' ;;
8208
8295
        esac
8209
8296
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210
8297
 
8211
 
        if test $supports_anon_versioning = yes; then
8212
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8213
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8214
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8215
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8216
 
        fi
 
8298
        if test "x$supports_anon_versioning" = xyes; then
 
8299
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8300
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8301
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8302
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8303
        fi
 
8304
 
 
8305
        case $cc_basename in
 
8306
        xlf*)
 
8307
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8308
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8309
          hardcode_libdir_flag_spec=
 
8310
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8311
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
8312
          if test "x$supports_anon_versioning" = xyes; then
 
8313
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8314
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8315
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8316
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8317
          fi
 
8318
          ;;
 
8319
        esac
8217
8320
      else
8218
 
        ld_shlibs=no
 
8321
        ld_shlibs=no
8219
8322
      fi
8220
8323
      ;;
8221
8324
 
8222
8325
    netbsd*)
8223
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8326
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8224
8327
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8225
8328
        wlarc=
8226
8329
      else
8230
8333
      ;;
8231
8334
 
8232
8335
    solaris*)
8233
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8336
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8234
8337
        ld_shlibs=no
8235
 
        cat <<EOF 1>&2
 
8338
        cat <<_LT_EOF 1>&2
8236
8339
 
8237
8340
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8238
8341
*** create shared libraries on Solaris systems.  Therefore, libtool
8241
8344
*** your PATH or compiler configuration so that the native linker is
8242
8345
*** used, and then restart.
8243
8346
 
8244
 
EOF
8245
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8347
_LT_EOF
 
8348
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8246
8349
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247
8350
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8248
8351
      else
8266
8369
_LT_EOF
8267
8370
        ;;
8268
8371
        *)
8269
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8270
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8271
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8272
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8372
          # For security reasons, it is highly recommended that you always
 
8373
          # use absolute paths for naming shared libraries, and exclude the
 
8374
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8375
          # requires that you compile everything twice, which is a pain.
 
8376
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8377
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8378
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8379
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273
8380
          else
8274
8381
            ld_shlibs=no
8275
8382
          fi
8285
8392
      ;;
8286
8393
 
8287
8394
    *)
8288
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8395
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8289
8396
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290
8397
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291
8398
      else
8327
8434
      else
8328
8435
        # If we're using GNU nm, then we don't want the "-C" option.
8329
8436
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8330
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8331
 
          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'
 
8437
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8438
          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'
8332
8439
        else
8333
 
          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'
 
8440
          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'
8334
8441
        fi
8335
8442
        aix_use_runtimelinking=no
8336
8443
 
8339
8446
        # need to do runtime linking.
8340
8447
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8341
8448
          for ld_flag in $LDFLAGS; do
8342
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8343
 
            aix_use_runtimelinking=yes
8344
 
            break
8345
 
          fi
 
8449
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8450
            aix_use_runtimelinking=yes
 
8451
            break
 
8452
          fi
8346
8453
          done
8347
8454
          ;;
8348
8455
        esac
8359
8466
 
8360
8467
      archive_cmds=''
8361
8468
      hardcode_direct=yes
 
8469
      hardcode_direct_absolute=yes
8362
8470
      hardcode_libdir_separator=':'
8363
8471
      link_all_deplibs=yes
 
8472
      file_list_spec='${wl}-f,'
8364
8473
 
8365
8474
      if test "$GCC" = yes; then
8366
8475
        case $host_os in aix4.[012]|aix4.[012].*)
8367
8476
        # We only want to do this on AIX 4.2 and lower, the check
8368
8477
        # below for broken collect2 doesn't work under 4.3+
8369
8478
          collect2name=`${CC} -print-prog-name=collect2`
8370
 
          if test -f "$collect2name" && \
8371
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8479
          if test -f "$collect2name" &&
 
8480
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8372
8481
          then
8373
 
          # We have reworked collect2
8374
 
          :
 
8482
          # We have reworked collect2
 
8483
          :
8375
8484
          else
8376
 
          # We have old collect2
8377
 
          hardcode_direct=unsupported
8378
 
          # It fails to find uninstalled libraries when the uninstalled
8379
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8380
 
          # to unsupported forces relinking
8381
 
          hardcode_minus_L=yes
8382
 
          hardcode_libdir_flag_spec='-L$libdir'
8383
 
          hardcode_libdir_separator=
 
8485
          # We have old collect2
 
8486
          hardcode_direct=unsupported
 
8487
          # It fails to find uninstalled libraries when the uninstalled
 
8488
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8489
          # to unsupported forces relinking
 
8490
          hardcode_minus_L=yes
 
8491
          hardcode_libdir_flag_spec='-L$libdir'
 
8492
          hardcode_libdir_separator=
8384
8493
          fi
8385
8494
          ;;
8386
8495
        esac
8391
8500
      else
8392
8501
        # not using gcc
8393
8502
        if test "$host_cpu" = ia64; then
8394
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8395
 
        # chokes on -Wl,-G. The following line is correct:
 
8503
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8504
        # chokes on -Wl,-G. The following line is correct:
8396
8505
          shared_flag='-G'
8397
8506
        else
8398
8507
          if test "$aix_use_runtimelinking" = yes; then
8403
8512
        fi
8404
8513
      fi
8405
8514
 
 
8515
      export_dynamic_flag_spec='${wl}-bexpall'
8406
8516
      # It seems that -bexpall does not export symbols beginning with
8407
8517
      # underscore (_), so it is better to generate a list of symbols to export.
8408
8518
      always_export_symbols=yes
8410
8520
        # Warning - without using the other runtime loading flags (-brtl),
8411
8521
        # -berok will link without error, but may produce a broken library.
8412
8522
        allow_undefined_flag='-berok'
8413
 
       # Determine the default libpath from the value encoded in an empty executable.
8414
 
       cat >conftest.$ac_ext <<_ACEOF
 
8523
        # Determine the default libpath from the value encoded in an
 
8524
        # empty executable.
 
8525
        cat >conftest.$ac_ext <<_ACEOF
8415
8526
/* confdefs.h.  */
8416
8527
_ACEOF
8417
8528
cat confdefs.h >>conftest.$ac_ext
8472
8583
      conftest$ac_exeext conftest.$ac_ext
8473
8584
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8474
8585
 
8475
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476
 
        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"
8477
 
       else
 
8586
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8587
        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"
 
8588
      else
8478
8589
        if test "$host_cpu" = ia64; then
8479
8590
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8480
8591
          allow_undefined_flag="-z nodefs"
8481
8592
          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"
8482
8593
        else
8483
 
         # Determine the default libpath from the value encoded in an empty executable.
 
8594
         # Determine the default libpath from the value encoded in an
 
8595
         # empty executable.
8484
8596
         cat >conftest.$ac_ext <<_ACEOF
8485
8597
/* confdefs.h.  */
8486
8598
_ACEOF
8557
8669
      ;;
8558
8670
 
8559
8671
    amigaos*)
8560
 
      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)'
8561
 
      hardcode_libdir_flag_spec='-L$libdir'
8562
 
      hardcode_minus_L=yes
8563
 
      # see comment about different semantics on the GNU ld section
8564
 
      ld_shlibs=no
 
8672
      case $host_cpu in
 
8673
      powerpc)
 
8674
            # see comment about AmigaOS4 .so support
 
8675
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8676
            archive_expsym_cmds=''
 
8677
        ;;
 
8678
      m68k)
 
8679
            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)'
 
8680
            hardcode_libdir_flag_spec='-L$libdir'
 
8681
            hardcode_minus_L=yes
 
8682
        ;;
 
8683
      esac
8565
8684
      ;;
8566
8685
 
8567
8686
    bsdi[45]*)
8568
8687
      export_dynamic_flag_spec=-rdynamic
8569
8688
      ;;
8570
8689
 
8571
 
    cygwin* | mingw* | pw32*)
 
8690
    cygwin* | mingw* | pw32* | cegcc*)
8572
8691
      # When not using gcc, we currently assume that we are using
8573
8692
      # Microsoft Visual C++.
8574
8693
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8580
8699
      # Tell ltmain to make .dll files, not .so files.
8581
8700
      shrext_cmds=".dll"
8582
8701
      # FIXME: Setting linknames here is a bad hack.
8583
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8702
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584
8703
      # The linker will automatically build a .lib file if we build a DLL.
8585
 
      old_archive_From_new_cmds='true'
 
8704
      old_archive_from_new_cmds='true'
8586
8705
      # FIXME: Should let the user specify the lib program.
8587
8706
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8588
8707
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8590
8709
      ;;
8591
8710
 
8592
8711
    darwin* | rhapsody*)
8593
 
      case $host_os in
8594
 
        rhapsody* | darwin1.[012])
8595
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8596
 
         ;;
8597
 
       *) # Darwin 1.3 on
8598
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600
 
         else
8601
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8602
 
             10.[012])
8603
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8604
 
               ;;
8605
 
             10.*)
8606
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8607
 
               ;;
8608
 
           esac
8609
 
         fi
8610
 
         ;;
8611
 
      esac
8612
 
      archive_cmds_need_lc=no
8613
 
      hardcode_direct=no
8614
 
      hardcode_automatic=yes
8615
 
      hardcode_shlibpath_var=unsupported
8616
 
      whole_archive_flag_spec=''
8617
 
      link_all_deplibs=yes
8618
 
    if test "$GCC" = yes ; then
8619
 
        output_verbose_link_cmd='echo'
8620
 
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8621
 
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8622
 
        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}"
8623
 
        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}"
8624
 
    else
8625
 
      case $cc_basename in
8626
 
        xlc*)
8627
 
         output_verbose_link_cmd='echo'
8628
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8629
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8630
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8631
 
         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}'
8632
 
          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}'
8633
 
          ;;
8634
 
       *)
8635
 
         ld_shlibs=no
8636
 
          ;;
8637
 
      esac
8638
 
    fi
 
8712
 
 
8713
 
 
8714
  archive_cmds_need_lc=no
 
8715
  hardcode_direct=no
 
8716
  hardcode_automatic=yes
 
8717
  hardcode_shlibpath_var=unsupported
 
8718
  whole_archive_flag_spec=''
 
8719
  link_all_deplibs=yes
 
8720
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8721
  case $cc_basename in
 
8722
     ifort*) _lt_dar_can_shared=yes ;;
 
8723
     *) _lt_dar_can_shared=$GCC ;;
 
8724
  esac
 
8725
  if test "$_lt_dar_can_shared" = "yes"; then
 
8726
    output_verbose_link_cmd=echo
 
8727
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8728
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8729
    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}"
 
8730
    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}"
 
8731
 
 
8732
  else
 
8733
  ld_shlibs=no
 
8734
  fi
 
8735
 
8639
8736
      ;;
8640
8737
 
8641
8738
    dgux*)
8677
8774
 
8678
8775
    hpux9*)
8679
8776
      if test "$GCC" = yes; then
8680
 
        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'
 
8777
        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'
8681
8778
      else
8682
 
        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'
 
8779
        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'
8683
8780
      fi
8684
8781
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685
8782
      hardcode_libdir_separator=:
8699
8796
      fi
8700
8797
      if test "$with_gnu_ld" = no; then
8701
8798
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8799
        hardcode_libdir_flag_spec_ld='+b $libdir'
8702
8800
        hardcode_libdir_separator=:
8703
 
 
8704
8801
        hardcode_direct=yes
 
8802
        hardcode_direct_absolute=yes
8705
8803
        export_dynamic_flag_spec='${wl}-E'
8706
 
 
8707
8804
        # hardcode_minus_L: Not really in the search PATH,
8708
8805
        # but as the default location of the library.
8709
8806
        hardcode_minus_L=yes
8717
8814
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718
8815
          ;;
8719
8816
        ia64*)
8720
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8817
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8721
8818
          ;;
8722
8819
        *)
8723
8820
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8742
8839
 
8743
8840
        case $host_cpu in
8744
8841
        hppa*64*|ia64*)
8745
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8746
8842
          hardcode_direct=no
8747
8843
          hardcode_shlibpath_var=no
8748
8844
          ;;
8749
8845
        *)
8750
8846
          hardcode_direct=yes
 
8847
          hardcode_direct_absolute=yes
8751
8848
          export_dynamic_flag_spec='${wl}-E'
8752
8849
 
8753
8850
          # hardcode_minus_L: Not really in the search PATH,
8760
8857
 
8761
8858
    irix5* | irix6* | nonstopux*)
8762
8859
      if test "$GCC" = yes; then
8763
 
        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'
 
8860
        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'
 
8861
        # Try to use the -exported_symbol ld option, if it does not
 
8862
        # work, assume that -exports_file does not work either and
 
8863
        # implicitly export all symbols.
 
8864
        save_LDFLAGS="$LDFLAGS"
 
8865
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
8866
        cat >conftest.$ac_ext <<_ACEOF
 
8867
int foo(void) {}
 
8868
_ACEOF
 
8869
rm -f conftest.$ac_objext conftest$ac_exeext
 
8870
if { (ac_try="$ac_link"
 
8871
case "(($ac_try" in
 
8872
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8873
  *) ac_try_echo=$ac_try;;
 
8874
esac
 
8875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8876
$as_echo "$ac_try_echo") >&5
 
8877
  (eval "$ac_link") 2>conftest.er1
 
8878
  ac_status=$?
 
8879
  grep -v '^ *+' conftest.er1 >conftest.err
 
8880
  rm -f conftest.er1
 
8881
  cat conftest.err >&5
 
8882
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8883
  (exit $ac_status); } && {
 
8884
         test -z "$ac_c_werror_flag" ||
 
8885
         test ! -s conftest.err
 
8886
       } && test -s conftest$ac_exeext && {
 
8887
         test "$cross_compiling" = yes ||
 
8888
         $as_test_x conftest$ac_exeext
 
8889
       }; then
 
8890
  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'
 
8891
 
 
8892
else
 
8893
  $as_echo "$as_me: failed program was:" >&5
 
8894
sed 's/^/| /' conftest.$ac_ext >&5
 
8895
 
 
8896
 
 
8897
fi
 
8898
 
 
8899
rm -rf conftest.dSYM
 
8900
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8901
      conftest$ac_exeext conftest.$ac_ext
 
8902
        LDFLAGS="$save_LDFLAGS"
8764
8903
      else
8765
 
        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'
8766
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8904
        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'
 
8905
        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'
8767
8906
      fi
 
8907
      archive_cmds_need_lc='no'
8768
8908
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769
8909
      hardcode_libdir_separator=:
 
8910
      inherit_rpath=yes
8770
8911
      link_all_deplibs=yes
8771
8912
      ;;
8772
8913
 
8773
8914
    netbsd*)
8774
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8915
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8775
8916
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8776
8917
      else
8777
8918
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8789
8930
      hardcode_shlibpath_var=no
8790
8931
      ;;
8791
8932
 
 
8933
    *nto* | *qnx*)
 
8934
      ;;
 
8935
 
8792
8936
    openbsd*)
8793
8937
      if test -f /usr/libexec/ld.so; then
8794
8938
        hardcode_direct=yes
8795
8939
        hardcode_shlibpath_var=no
8796
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8940
        hardcode_direct_absolute=yes
 
8941
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8797
8942
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798
8943
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8799
8944
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8809
8954
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810
8955
             ;;
8811
8956
          esac
8812
 
        fi
 
8957
        fi
8813
8958
      else
8814
8959
        ld_shlibs=no
8815
8960
      fi
8819
8964
      hardcode_libdir_flag_spec='-L$libdir'
8820
8965
      hardcode_minus_L=yes
8821
8966
      allow_undefined_flag=unsupported
8822
 
      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'
8823
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8967
      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'
 
8968
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8824
8969
      ;;
8825
8970
 
8826
8971
    osf3*)
8827
8972
      if test "$GCC" = yes; then
8828
8973
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8829
 
        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'
 
8974
        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'
8830
8975
      else
8831
8976
        allow_undefined_flag=' -expect_unresolved \*'
8832
 
        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'
 
8977
        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'
8833
8978
      fi
 
8979
      archive_cmds_need_lc='no'
8834
8980
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835
8981
      hardcode_libdir_separator=:
8836
8982
      ;;
8838
8984
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8839
8985
      if test "$GCC" = yes; then
8840
8986
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841
 
        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'
 
8987
        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'
8842
8988
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843
8989
      else
8844
8990
        allow_undefined_flag=' -expect_unresolved \*'
8845
 
        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'
8846
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8847
 
        $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'
 
8991
        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'
 
8992
        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~
 
8993
        $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'
8848
8994
 
8849
8995
        # Both c and cxx compiler support -rpath directly
8850
8996
        hardcode_libdir_flag_spec='-rpath $libdir'
8851
8997
      fi
 
8998
      archive_cmds_need_lc='no'
8852
8999
      hardcode_libdir_separator=:
8853
9000
      ;;
8854
9001
 
8855
9002
    solaris*)
8856
 
      no_undefined_flag=' -z text'
 
9003
      no_undefined_flag=' -z defs'
8857
9004
      if test "$GCC" = yes; then
8858
9005
        wlarc='${wl}'
8859
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9006
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9007
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9008
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8862
9009
      else
8863
 
        wlarc=''
8864
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9010
        case `$CC -V 2>&1` in
 
9011
        *"Compilers 5.0"*)
 
9012
          wlarc=''
 
9013
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9014
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9015
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9016
          ;;
 
9017
        *)
 
9018
          wlarc='${wl}'
 
9019
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9020
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9021
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9022
          ;;
 
9023
        esac
8867
9024
      fi
8868
9025
      hardcode_libdir_flag_spec='-R$libdir'
8869
9026
      hardcode_shlibpath_var=no
8873
9030
        # The compiler driver will combine and reorder linker options,
8874
9031
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8875
9032
        # but is careful enough not to reorder.
8876
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9033
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8877
9034
        if test "$GCC" = yes; then
8878
9035
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8879
9036
        else
8962
9119
      allow_undefined_flag='${wl}-z,nodefs'
8963
9120
      archive_cmds_need_lc=no
8964
9121
      hardcode_shlibpath_var=no
8965
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9122
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8966
9123
      hardcode_libdir_separator=':'
8967
9124
      link_all_deplibs=yes
8968
9125
      export_dynamic_flag_spec='${wl}-Bexport'
8969
9126
      runpath_var='LD_RUN_PATH'
8970
9127
 
8971
9128
      if test "$GCC" = yes; then
8972
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9129
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9130
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8974
9131
      else
8975
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9132
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9133
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8977
9134
      fi
8978
9135
      ;;
8979
9136
 
8987
9144
      ld_shlibs=no
8988
9145
      ;;
8989
9146
    esac
 
9147
 
 
9148
    if test x$host_vendor = xsni; then
 
9149
      case $host in
 
9150
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9151
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9152
        ;;
 
9153
      esac
 
9154
    fi
8990
9155
  fi
8991
9156
 
8992
9157
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8993
9158
$as_echo "$ld_shlibs" >&6; }
8994
9159
test "$ld_shlibs" = no && can_build_shared=no
8995
9160
 
 
9161
with_gnu_ld=$with_gnu_ld
 
9162
 
 
9163
 
 
9164
 
 
9165
 
 
9166
 
 
9167
 
 
9168
 
 
9169
 
 
9170
 
 
9171
 
 
9172
 
 
9173
 
 
9174
 
 
9175
 
 
9176
 
8996
9177
#
8997
9178
# Do we need to explicitly link libc?
8998
9179
#
9012
9193
      # to ld, don't add -lc before -lgcc.
9013
9194
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9014
9195
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9015
 
      $rm conftest*
 
9196
      $RM conftest*
9016
9197
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017
9198
 
9018
9199
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033
9214
        libname=conftest
9034
9215
        lt_save_allow_undefined_flag=$allow_undefined_flag
9035
9216
        allow_undefined_flag=
9036
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9037
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9217
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9218
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9038
9219
  ac_status=$?
9039
9220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040
9221
  (exit $ac_status); }
9047
9228
      else
9048
9229
        cat conftest.err 1>&5
9049
9230
      fi
9050
 
      $rm conftest*
 
9231
      $RM conftest*
9051
9232
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9052
9233
$as_echo "$archive_cmds_need_lc" >&6; }
9053
9234
      ;;
9056
9237
  ;;
9057
9238
esac
9058
9239
 
9059
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
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
 
 
9338
 
 
9339
 
 
9340
 
 
9341
 
 
9342
 
 
9343
 
 
9344
 
 
9345
 
 
9346
 
 
9347
 
 
9348
 
 
9349
 
 
9350
 
 
9351
 
 
9352
 
 
9353
 
 
9354
 
 
9355
 
 
9356
 
 
9357
 
 
9358
 
 
9359
 
 
9360
 
 
9361
 
 
9362
 
 
9363
 
 
9364
 
 
9365
 
 
9366
 
 
9367
 
 
9368
 
 
9369
 
 
9370
 
 
9371
 
 
9372
 
 
9373
 
 
9374
 
 
9375
 
 
9376
 
 
9377
 
 
9378
 
 
9379
 
 
9380
 
 
9381
 
 
9382
 
 
9383
 
 
9384
 
 
9385
 
 
9386
 
 
9387
 
 
9388
 
 
9389
 
 
9390
 
 
9391
 
 
9392
 
 
9393
 
 
9394
 
 
9395
 
 
9396
  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9060
9397
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9061
 
library_names_spec=
9062
 
libname_spec='lib$name'
9063
 
soname_spec=
9064
 
shrext_cmds=".so"
9065
 
postinstall_cmds=
9066
 
postuninstall_cmds=
9067
 
finish_cmds=
9068
 
finish_eval=
9069
 
shlibpath_var=
9070
 
shlibpath_overrides_runpath=unknown
9071
 
version_type=none
9072
 
dynamic_linker="$host_os ld.so"
9073
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9074
9398
 
9075
9399
if test "$GCC" = yes; then
9076
9400
  case $host_os in
9078
9402
    *) lt_awk_arg="/^libraries:/" ;;
9079
9403
  esac
9080
9404
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9081
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9405
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9082
9406
    # if the path contains ";" then we assume it to be the separator
9083
9407
    # otherwise default to the standard path separator (i.e. ":") - it is
9084
9408
    # assumed that no part of a normal pathname contains ";" but that should
9085
9409
    # okay in the real world where ";" in dirpaths is itself problematic.
9086
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9410
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9087
9411
  else
9088
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9412
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9089
9413
  fi
9090
9414
  # Ok, now we have the path, separated by spaces, we can step through it
9091
9415
  # and add multilib dir if necessary.
9099
9423
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9100
9424
    fi
9101
9425
  done
9102
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9426
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9103
9427
BEGIN {RS=" "; FS="/|\n";} {
9104
9428
  lt_foo="";
9105
9429
  lt_count=0;
9119
9443
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9120
9444
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9121
9445
}'`
9122
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9446
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9123
9447
else
9124
9448
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9125
9449
fi
 
9450
library_names_spec=
 
9451
libname_spec='lib$name'
 
9452
soname_spec=
 
9453
shrext_cmds=".so"
 
9454
postinstall_cmds=
 
9455
postuninstall_cmds=
 
9456
finish_cmds=
 
9457
finish_eval=
 
9458
shlibpath_var=
 
9459
shlibpath_overrides_runpath=unknown
 
9460
version_type=none
 
9461
dynamic_linker="$host_os ld.so"
 
9462
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9126
9463
need_lib_prefix=unknown
9127
9464
hardcode_into_libs=no
9128
9465
 
9159
9496
      aix4 | aix4.[01] | aix4.[01].*)
9160
9497
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9161
9498
           echo ' yes '
9162
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9499
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9163
9500
        :
9164
9501
      else
9165
9502
        can_build_shared=no
9185
9522
  ;;
9186
9523
 
9187
9524
amigaos*)
9188
 
  library_names_spec='$libname.ixlibrary $libname.a'
9189
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9190
 
  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'
 
9525
  case $host_cpu in
 
9526
  powerpc)
 
9527
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9528
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9529
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9530
    ;;
 
9531
  m68k)
 
9532
    library_names_spec='$libname.ixlibrary $libname.a'
 
9533
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9534
    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'
 
9535
    ;;
 
9536
  esac
9191
9537
  ;;
9192
9538
 
9193
9539
beos*)
9210
9556
  # libtool to hard-code these into programs
9211
9557
  ;;
9212
9558
 
9213
 
cygwin* | mingw* | pw32*)
 
9559
cygwin* | mingw* | pw32* | cegcc*)
9214
9560
  version_type=windows
9215
9561
  shrext_cmds=".dll"
9216
9562
  need_version=no
9217
9563
  need_lib_prefix=no
9218
9564
 
9219
9565
  case $GCC,$host_os in
9220
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9566
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9221
9567
    library_names_spec='$libname.dll.a'
9222
9568
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9223
9569
    postinstall_cmds='base_file=`basename \${file}`~
9224
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9570
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9225
9571
      dldir=$destdir/`dirname \$dlpath`~
9226
9572
      test -d \$dldir || mkdir -p \$dldir~
9227
9573
      $install_prog $dir/$dlname \$dldir/$dlname~
9228
 
      chmod a+x \$dldir/$dlname'
 
9574
      chmod a+x \$dldir/$dlname~
 
9575
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9576
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9577
      fi'
9229
9578
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9230
9579
      dlpath=$dir/\$dldll~
9231
 
       $rm \$dlpath'
 
9580
       $RM \$dlpath'
9232
9581
    shlibpath_overrides_runpath=yes
9233
9582
 
9234
9583
    case $host_os in
9237
9586
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238
9587
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9239
9588
      ;;
9240
 
    mingw*)
 
9589
    mingw* | cegcc*)
9241
9590
      # MinGW DLLs use traditional 'lib' prefix
9242
9591
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9243
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9244
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9592
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9593
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9245
9594
        # It is most probably a Windows format PATH printed by
9246
9595
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9247
9596
        # path with ; separators, and with drive letters. We can handle the
9248
9597
        # drive letters (cygwin fileutils understands them), so leave them,
9249
9598
        # especially as we might pass files found there to a mingw objdump,
9250
9599
        # which wouldn't understand a cygwinified path. Ahh.
9251
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9600
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9252
9601
      else
9253
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9602
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9254
9603
      fi
9255
9604
      ;;
9256
9605
    pw32*)
9274
9623
  version_type=darwin
9275
9624
  need_lib_prefix=no
9276
9625
  need_version=no
9277
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9626
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9278
9627
  soname_spec='${libname}${release}${major}$shared_ext'
9279
9628
  shlibpath_overrides_runpath=yes
9280
9629
  shlibpath_var=DYLD_LIBRARY_PATH
9373
9722
    fi
9374
9723
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9375
9724
    ;;
9376
 
   hppa*64*)
9377
 
     shrext_cmds='.sl'
9378
 
     hardcode_into_libs=yes
9379
 
     dynamic_linker="$host_os dld.sl"
9380
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9381
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9382
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383
 
     soname_spec='${libname}${release}${shared_ext}$major'
9384
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9385
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9386
 
     ;;
9387
 
   *)
 
9725
  hppa*64*)
 
9726
    shrext_cmds='.sl'
 
9727
    hardcode_into_libs=yes
 
9728
    dynamic_linker="$host_os dld.sl"
 
9729
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9730
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9731
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9732
    soname_spec='${libname}${release}${shared_ext}$major'
 
9733
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9734
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9735
    ;;
 
9736
  *)
9388
9737
    shrext_cmds='.sl'
9389
9738
    dynamic_linker="$host_os dld.sl"
9390
9739
    shlibpath_var=SHLIB_PATH
9461
9810
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9462
9811
  shlibpath_var=LD_LIBRARY_PATH
9463
9812
  shlibpath_overrides_runpath=no
 
9813
  # Some binutils ld are patched to set DT_RUNPATH
 
9814
  save_LDFLAGS=$LDFLAGS
 
9815
  save_libdir=$libdir
 
9816
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
9817
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
9818
  cat >conftest.$ac_ext <<_ACEOF
 
9819
/* confdefs.h.  */
 
9820
_ACEOF
 
9821
cat confdefs.h >>conftest.$ac_ext
 
9822
cat >>conftest.$ac_ext <<_ACEOF
 
9823
/* end confdefs.h.  */
 
9824
 
 
9825
int
 
9826
main ()
 
9827
{
 
9828
 
 
9829
  ;
 
9830
  return 0;
 
9831
}
 
9832
_ACEOF
 
9833
rm -f conftest.$ac_objext conftest$ac_exeext
 
9834
if { (ac_try="$ac_link"
 
9835
case "(($ac_try" in
 
9836
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9837
  *) ac_try_echo=$ac_try;;
 
9838
esac
 
9839
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9840
$as_echo "$ac_try_echo") >&5
 
9841
  (eval "$ac_link") 2>conftest.er1
 
9842
  ac_status=$?
 
9843
  grep -v '^ *+' conftest.er1 >conftest.err
 
9844
  rm -f conftest.er1
 
9845
  cat conftest.err >&5
 
9846
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9847
  (exit $ac_status); } && {
 
9848
         test -z "$ac_c_werror_flag" ||
 
9849
         test ! -s conftest.err
 
9850
       } && test -s conftest$ac_exeext && {
 
9851
         test "$cross_compiling" = yes ||
 
9852
         $as_test_x conftest$ac_exeext
 
9853
       }; then
 
9854
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
9855
  shlibpath_overrides_runpath=yes
 
9856
fi
 
9857
 
 
9858
else
 
9859
  $as_echo "$as_me: failed program was:" >&5
 
9860
sed 's/^/| /' conftest.$ac_ext >&5
 
9861
 
 
9862
 
 
9863
fi
 
9864
 
 
9865
rm -rf conftest.dSYM
 
9866
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9867
      conftest$ac_exeext conftest.$ac_ext
 
9868
  LDFLAGS=$save_LDFLAGS
 
9869
  libdir=$save_libdir
 
9870
 
9464
9871
  # This implies no fast_install, which is unacceptable.
9465
9872
  # Some rework will be needed to allow for fast_install
9466
9873
  # before this can be enabled.
9467
9874
  hardcode_into_libs=yes
9468
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9469
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9875
 
 
9876
  # Add ABI-specific directories to the system library path.
 
9877
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9470
9878
 
9471
9879
  # Append ld.so.conf contents to the search path
9472
9880
  if test -f /etc/ld.so.conf; then
9473
 
    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' ' '`
 
9881
    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' ' '`
9474
9882
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9475
9883
  fi
9476
9884
 
9487
9895
  version_type=sunos
9488
9896
  need_lib_prefix=no
9489
9897
  need_version=no
9490
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9898
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9491
9899
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9492
9900
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9493
9901
    dynamic_linker='NetBSD (a.out) ld.so'
9508
9916
  shlibpath_overrides_runpath=yes
9509
9917
  ;;
9510
9918
 
9511
 
nto-qnx*)
9512
 
  version_type=linux
 
9919
*nto* | *qnx*)
 
9920
  version_type=qnx
9513
9921
  need_lib_prefix=no
9514
9922
  need_version=no
9515
9923
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516
9924
  soname_spec='${libname}${release}${shared_ext}$major'
9517
9925
  shlibpath_var=LD_LIBRARY_PATH
9518
 
  shlibpath_overrides_runpath=yes
 
9926
  shlibpath_overrides_runpath=no
 
9927
  hardcode_into_libs=yes
 
9928
  dynamic_linker='ldqnx.so'
9519
9929
  ;;
9520
9930
 
9521
9931
openbsd*)
9524
9934
  need_lib_prefix=no
9525
9935
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9526
9936
  case $host_os in
9527
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9528
 
    *)                         need_version=no  ;;
 
9937
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
9938
    *)                          need_version=no  ;;
9529
9939
  esac
9530
9940
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531
9941
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9532
9942
  shlibpath_var=LD_LIBRARY_PATH
9533
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9943
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534
9944
    case $host_os in
9535
9945
      openbsd2.[89] | openbsd2.[89].*)
9536
9946
        shlibpath_overrides_runpath=no
9602
10012
    sni)
9603
10013
      shlibpath_overrides_runpath=no
9604
10014
      need_lib_prefix=no
9605
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9606
10015
      runpath_var=LD_RUN_PATH
9607
10016
      ;;
9608
10017
    siemens)
9633
10042
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9634
10043
  soname_spec='${libname}${release}${shared_ext}$major'
9635
10044
  shlibpath_var=LD_LIBRARY_PATH
 
10045
  shlibpath_overrides_runpath=yes
9636
10046
  hardcode_into_libs=yes
9637
10047
  if test "$with_gnu_ld" = yes; then
9638
10048
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9639
 
    shlibpath_overrides_runpath=no
9640
10049
  else
9641
10050
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9642
 
    shlibpath_overrides_runpath=yes
9643
10051
    case $host_os in
9644
10052
      sco3.2v5*)
9645
10053
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9649
10057
  sys_lib_dlsearch_path_spec='/usr/lib'
9650
10058
  ;;
9651
10059
 
 
10060
tpf*)
 
10061
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10062
  version_type=linux
 
10063
  need_lib_prefix=no
 
10064
  need_version=no
 
10065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10066
  shlibpath_var=LD_LIBRARY_PATH
 
10067
  shlibpath_overrides_runpath=no
 
10068
  hardcode_into_libs=yes
 
10069
  ;;
 
10070
 
9652
10071
uts4*)
9653
10072
  version_type=linux
9654
10073
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664
10083
$as_echo "$dynamic_linker" >&6; }
9665
10084
test "$dynamic_linker" = no && can_build_shared=no
9666
10085
 
9667
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9668
 
  $as_echo_n "(cached) " >&6
9669
 
else
9670
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9671
 
fi
9672
 
 
9673
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9674
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9675
 
  $as_echo_n "(cached) " >&6
9676
 
else
9677
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9678
 
fi
9679
 
 
9680
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9681
 
 
9682
10086
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9683
10087
if test "$GCC" = yes; then
9684
10088
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9685
10089
fi
9686
10090
 
9687
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10091
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10092
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10093
fi
 
10094
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10095
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10096
fi
 
10097
 
 
10098
 
 
10099
 
 
10100
 
 
10101
 
 
10102
 
 
10103
 
 
10104
 
 
10105
 
 
10106
 
 
10107
 
 
10108
 
 
10109
 
 
10110
 
 
10111
 
 
10112
 
 
10113
 
 
10114
 
 
10115
 
 
10116
 
 
10117
 
 
10118
 
 
10119
 
 
10120
 
 
10121
 
 
10122
 
 
10123
 
 
10124
 
 
10125
 
 
10126
 
 
10127
 
 
10128
 
 
10129
 
 
10130
 
 
10131
 
 
10132
 
 
10133
 
 
10134
 
 
10135
 
 
10136
 
 
10137
 
 
10138
 
 
10139
 
 
10140
 
 
10141
 
 
10142
 
 
10143
 
 
10144
 
 
10145
 
 
10146
 
 
10147
 
 
10148
 
 
10149
 
 
10150
 
 
10151
 
 
10152
 
 
10153
 
 
10154
 
 
10155
 
 
10156
 
 
10157
 
 
10158
 
 
10159
 
 
10160
 
 
10161
 
 
10162
 
 
10163
 
 
10164
 
 
10165
 
 
10166
 
 
10167
 
 
10168
 
 
10169
 
 
10170
 
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
 
 
10177
 
 
10178
 
 
10179
 
 
10180
 
 
10181
 
 
10182
 
 
10183
 
 
10184
  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9688
10185
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9689
10186
hardcode_action=
9690
 
if test -n "$hardcode_libdir_flag_spec" || \
9691
 
   test -n "$runpath_var" || \
 
10187
if test -n "$hardcode_libdir_flag_spec" ||
 
10188
   test -n "$runpath_var" ||
9692
10189
   test "X$hardcode_automatic" = "Xyes" ; then
9693
10190
 
9694
 
  # We can hardcode non-existant directories.
 
10191
  # We can hardcode non-existent directories.
9695
10192
  if test "$hardcode_direct" != no &&
9696
10193
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9697
10194
     # have to relink, otherwise we might link with an installed library
9698
10195
     # when we should be linking with a yet-to-be-installed one
9699
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10196
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9700
10197
     test "$hardcode_minus_L" != no; then
9701
10198
    # Linking always hardcodes the temporary library directory.
9702
10199
    hardcode_action=relink
9712
10209
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9713
10210
$as_echo "$hardcode_action" >&6; }
9714
10211
 
9715
 
if test "$hardcode_action" = relink; then
 
10212
if test "$hardcode_action" = relink ||
 
10213
   test "$inherit_rpath" = yes; then
9716
10214
  # Fast installation is not supported
9717
10215
  enable_fast_install=no
9718
10216
elif test "$shlibpath_overrides_runpath" = yes ||
9721
10219
  enable_fast_install=needless
9722
10220
fi
9723
10221
 
9724
 
striplib=
9725
 
old_striplib=
9726
 
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9727
 
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9728
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9729
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9730
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9731
 
  { $as_echo "$as_me:$LINENO: result: yes" >&5
9732
 
$as_echo "yes" >&6; }
9733
 
else
9734
 
# FIXME - insert some real tests, host_os isn't really good enough
9735
 
  case $host_os in
9736
 
   darwin*)
9737
 
       if test -n "$STRIP" ; then
9738
 
         striplib="$STRIP -x"
9739
 
         old_striplib="$STRIP -S"
9740
 
         { $as_echo "$as_me:$LINENO: result: yes" >&5
9741
 
$as_echo "yes" >&6; }
9742
 
       else
9743
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
9744
 
$as_echo "no" >&6; }
9745
 
fi
9746
 
       ;;
9747
 
   *)
9748
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
9749
 
$as_echo "no" >&6; }
9750
 
    ;;
9751
 
  esac
9752
 
fi
9753
 
 
9754
 
if test "x$enable_dlopen" != xyes; then
 
10222
 
 
10223
 
 
10224
 
 
10225
 
 
10226
 
 
10227
  if test "x$enable_dlopen" != xyes; then
9755
10228
  enable_dlopen=unknown
9756
10229
  enable_dlopen_self=unknown
9757
10230
  enable_dlopen_self_static=unknown
9766
10239
    lt_cv_dlopen_self=yes
9767
10240
    ;;
9768
10241
 
9769
 
  mingw* | pw32*)
 
10242
  mingw* | pw32* | cegcc*)
9770
10243
    lt_cv_dlopen="LoadLibrary"
9771
10244
    lt_cv_dlopen_libs=
9772
 
   ;;
 
10245
    ;;
9773
10246
 
9774
10247
  cygwin*)
9775
10248
    lt_cv_dlopen="dlopen"
9776
10249
    lt_cv_dlopen_libs=
9777
 
   ;;
 
10250
    ;;
9778
10251
 
9779
10252
  darwin*)
9780
10253
  # if libdl is installed we need to link against it
9853
10326
 
9854
10327
fi
9855
10328
 
9856
 
   ;;
 
10329
    ;;
9857
10330
 
9858
10331
  *)
9859
10332
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10350
10823
else
10351
10824
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10352
10825
  lt_status=$lt_dlunknown
10353
 
  cat > conftest.$ac_ext <<EOF
10354
 
#line 10354 "configure"
 
10826
  cat > conftest.$ac_ext <<_LT_EOF
 
10827
#line 10827 "configure"
10355
10828
#include "confdefs.h"
10356
10829
 
10357
10830
#if HAVE_DLFCN_H
10392
10865
#  endif
10393
10866
#endif
10394
10867
 
10395
 
#ifdef __cplusplus
10396
 
extern "C" void exit (int);
10397
 
#endif
10398
 
 
10399
10868
void fnord() { int i=42;}
10400
10869
int main ()
10401
10870
{
10411
10880
  else
10412
10881
    puts (dlerror ());
10413
10882
 
10414
 
    exit (status);
 
10883
  return status;
10415
10884
}
10416
 
EOF
 
10885
_LT_EOF
10417
10886
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418
10887
  (eval $ac_link) 2>&5
10419
10888
  ac_status=$?
10450
10919
else
10451
10920
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452
10921
  lt_status=$lt_dlunknown
10453
 
  cat > conftest.$ac_ext <<EOF
10454
 
#line 10454 "configure"
 
10922
  cat > conftest.$ac_ext <<_LT_EOF
 
10923
#line 10923 "configure"
10455
10924
#include "confdefs.h"
10456
10925
 
10457
10926
#if HAVE_DLFCN_H
10492
10961
#  endif
10493
10962
#endif
10494
10963
 
10495
 
#ifdef __cplusplus
10496
 
extern "C" void exit (int);
10497
 
#endif
10498
 
 
10499
10964
void fnord() { int i=42;}
10500
10965
int main ()
10501
10966
{
10511
10976
  else
10512
10977
    puts (dlerror ());
10513
10978
 
10514
 
    exit (status);
 
10979
  return status;
10515
10980
}
10516
 
EOF
 
10981
_LT_EOF
10517
10982
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518
10983
  (eval $ac_link) 2>&5
10519
10984
  ac_status=$?
10557
11022
fi
10558
11023
 
10559
11024
 
10560
 
# Report which library types will actually be built
10561
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10562
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10563
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10564
 
$as_echo "$can_build_shared" >&6; }
10565
 
 
10566
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10567
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
10568
 
test "$can_build_shared" = "no" && enable_shared=no
10569
 
 
10570
 
# On AIX, shared libraries and static libraries use the same namespace, and
10571
 
# are all built from PIC.
10572
 
case $host_os in
10573
 
aix3*)
10574
 
  test "$enable_shared" = yes && enable_static=no
10575
 
  if test -n "$RANLIB"; then
10576
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10577
 
    postinstall_cmds='$RANLIB $lib'
10578
 
  fi
10579
 
  ;;
10580
 
 
10581
 
aix[4-9]*)
10582
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10583
 
    test "$enable_shared" = yes && enable_static=no
10584
 
  fi
10585
 
    ;;
10586
 
esac
10587
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10588
 
$as_echo "$enable_shared" >&6; }
10589
 
 
10590
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10591
 
$as_echo_n "checking whether to build static libraries... " >&6; }
10592
 
# Make sure either enable_shared or enable_static is yes.
10593
 
test "$enable_shared" = yes || enable_static=yes
10594
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10595
 
$as_echo "$enable_static" >&6; }
10596
 
 
10597
 
# The else clause should only fire when bootstrapping the
10598
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10599
 
# with your package, and you will get complaints that there are
10600
 
# no rules to generate ltmain.sh.
10601
 
if test -f "$ltmain"; then
10602
 
  # See if we are running on zsh, and set the options which allow our commands through
10603
 
  # without removal of \ escapes.
10604
 
  if test -n "${ZSH_VERSION+set}" ; then
10605
 
    setopt NO_GLOB_SUBST
10606
 
  fi
10607
 
  # Now quote all the things that may contain metacharacters while being
10608
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10609
 
  # variables and quote the copies for generation of the libtool script.
10610
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10611
 
    SED SHELL STRIP \
10612
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10613
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10614
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10615
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10616
 
    lt_cv_sys_global_symbol_to_c_name_address \
10617
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10618
 
    old_postinstall_cmds old_postuninstall_cmds \
10619
 
    compiler \
10620
 
    CC \
10621
 
    LD \
10622
 
    lt_prog_compiler_wl \
10623
 
    lt_prog_compiler_pic \
10624
 
    lt_prog_compiler_static \
10625
 
    lt_prog_compiler_no_builtin_flag \
10626
 
    export_dynamic_flag_spec \
10627
 
    thread_safe_flag_spec \
10628
 
    whole_archive_flag_spec \
10629
 
    enable_shared_with_static_runtimes \
10630
 
    old_archive_cmds \
10631
 
    old_archive_from_new_cmds \
10632
 
    predep_objects \
10633
 
    postdep_objects \
10634
 
    predeps \
10635
 
    postdeps \
10636
 
    compiler_lib_search_path \
10637
 
    compiler_lib_search_dirs \
10638
 
    archive_cmds \
10639
 
    archive_expsym_cmds \
10640
 
    postinstall_cmds \
10641
 
    postuninstall_cmds \
10642
 
    old_archive_from_expsyms_cmds \
10643
 
    allow_undefined_flag \
10644
 
    no_undefined_flag \
10645
 
    export_symbols_cmds \
10646
 
    hardcode_libdir_flag_spec \
10647
 
    hardcode_libdir_flag_spec_ld \
10648
 
    hardcode_libdir_separator \
10649
 
    hardcode_automatic \
10650
 
    module_cmds \
10651
 
    module_expsym_cmds \
10652
 
    lt_cv_prog_compiler_c_o \
10653
 
    fix_srcfile_path \
10654
 
    exclude_expsyms \
10655
 
    include_expsyms; do
10656
 
 
10657
 
    case $var in
10658
 
    old_archive_cmds | \
10659
 
    old_archive_from_new_cmds | \
10660
 
    archive_cmds | \
10661
 
    archive_expsym_cmds | \
10662
 
    module_cmds | \
10663
 
    module_expsym_cmds | \
10664
 
    old_archive_from_expsyms_cmds | \
10665
 
    export_symbols_cmds | \
10666
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10667
 
    postinstall_cmds | postuninstall_cmds | \
10668
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10669
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10670
 
      # Double-quote double-evaled strings.
10671
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10672
 
      ;;
10673
 
    *)
10674
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10675
 
      ;;
10676
 
    esac
10677
 
  done
10678
 
 
10679
 
  case $lt_echo in
10680
 
  *'\$0 --fallback-echo"')
10681
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10682
 
    ;;
10683
 
  esac
10684
 
 
10685
 
cfgfile="${ofile}T"
10686
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10687
 
  $rm -f "$cfgfile"
10688
 
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10689
 
$as_echo "$as_me: creating $ofile" >&6;}
10690
 
 
10691
 
  cat <<__EOF__ >> "$cfgfile"
10692
 
#! $SHELL
10693
 
 
10694
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10695
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10696
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10697
 
#
10698
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10699
 
# Free Software Foundation, Inc.
10700
 
#
10701
 
# This file is part of GNU Libtool:
10702
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10703
 
#
10704
 
# This program is free software; you can redistribute it and/or modify
10705
 
# it under the terms of the GNU General Public License as published by
10706
 
# the Free Software Foundation; either version 2 of the License, or
10707
 
# (at your option) any later version.
10708
 
#
10709
 
# This program is distributed in the hope that it will be useful, but
10710
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10711
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10712
 
# General Public License for more details.
10713
 
#
10714
 
# You should have received a copy of the GNU General Public License
10715
 
# along with this program; if not, write to the Free Software
10716
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10717
 
#
10718
 
# As a special exception to the GNU General Public License, if you
10719
 
# distribute this file as part of a program that contains a
10720
 
# configuration script generated by Autoconf, you may include it under
10721
 
# the same distribution terms that you use for the rest of that program.
10722
 
 
10723
 
# A sed program that does not truncate output.
10724
 
SED=$lt_SED
10725
 
 
10726
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10727
 
Xsed="$SED -e 1s/^X//"
10728
 
 
10729
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10730
 
# if CDPATH is set.
10731
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10732
 
 
10733
 
# The names of the tagged configurations supported by this script.
10734
 
available_tags=
10735
 
 
10736
 
# ### BEGIN LIBTOOL CONFIG
10737
 
 
10738
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10739
 
 
10740
 
# Shell to use when invoking shell scripts.
10741
 
SHELL=$lt_SHELL
10742
 
 
10743
 
# Whether or not to build shared libraries.
10744
 
build_libtool_libs=$enable_shared
10745
 
 
10746
 
# Whether or not to build static libraries.
10747
 
build_old_libs=$enable_static
10748
 
 
10749
 
# Whether or not to add -lc for building shared libraries.
10750
 
build_libtool_need_lc=$archive_cmds_need_lc
10751
 
 
10752
 
# Whether or not to disallow shared libs when runtime libs are static
10753
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10754
 
 
10755
 
# Whether or not to optimize for fast installation.
10756
 
fast_install=$enable_fast_install
10757
 
 
10758
 
# The host system.
10759
 
host_alias=$host_alias
10760
 
host=$host
10761
 
host_os=$host_os
10762
 
 
10763
 
# The build system.
10764
 
build_alias=$build_alias
10765
 
build=$build
10766
 
build_os=$build_os
10767
 
 
10768
 
# An echo program that does not interpret backslashes.
10769
 
echo=$lt_echo
10770
 
 
10771
 
# The archiver.
10772
 
AR=$lt_AR
10773
 
AR_FLAGS=$lt_AR_FLAGS
10774
 
 
10775
 
# A C compiler.
10776
 
LTCC=$lt_LTCC
10777
 
 
10778
 
# LTCC compiler flags.
10779
 
LTCFLAGS=$lt_LTCFLAGS
10780
 
 
10781
 
# A language-specific compiler.
10782
 
CC=$lt_compiler
10783
 
 
10784
 
# Is the compiler the GNU C compiler?
10785
 
with_gcc=$GCC
10786
 
 
10787
 
# An ERE matcher.
10788
 
EGREP=$lt_EGREP
10789
 
 
10790
 
# The linker used to build libraries.
10791
 
LD=$lt_LD
10792
 
 
10793
 
# Whether we need hard or soft links.
10794
 
LN_S=$lt_LN_S
10795
 
 
10796
 
# A BSD-compatible nm program.
10797
 
NM=$lt_NM
10798
 
 
10799
 
# A symbol stripping program
10800
 
STRIP=$lt_STRIP
10801
 
 
10802
 
# Used to examine libraries when file_magic_cmd begins "file"
10803
 
MAGIC_CMD=$MAGIC_CMD
10804
 
 
10805
 
# Used on cygwin: DLL creation program.
10806
 
DLLTOOL="$DLLTOOL"
10807
 
 
10808
 
# Used on cygwin: object dumper.
10809
 
OBJDUMP="$OBJDUMP"
10810
 
 
10811
 
# Used on cygwin: assembler.
10812
 
AS="$AS"
10813
 
 
10814
 
# The name of the directory that contains temporary libtool files.
10815
 
objdir=$objdir
10816
 
 
10817
 
# How to create reloadable object files.
10818
 
reload_flag=$lt_reload_flag
10819
 
reload_cmds=$lt_reload_cmds
10820
 
 
10821
 
# How to pass a linker flag through the compiler.
10822
 
wl=$lt_lt_prog_compiler_wl
10823
 
 
10824
 
# Object file suffix (normally "o").
10825
 
objext="$ac_objext"
10826
 
 
10827
 
# Old archive suffix (normally "a").
10828
 
libext="$libext"
10829
 
 
10830
 
# Shared library suffix (normally ".so").
10831
 
shrext_cmds='$shrext_cmds'
10832
 
 
10833
 
# Executable file suffix (normally "").
10834
 
exeext="$exeext"
10835
 
 
10836
 
# Additional compiler flags for building library objects.
10837
 
pic_flag=$lt_lt_prog_compiler_pic
10838
 
pic_mode=$pic_mode
10839
 
 
10840
 
# What is the maximum length of a command?
10841
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10842
 
 
10843
 
# Does compiler simultaneously support -c and -o options?
10844
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10845
 
 
10846
 
# Must we lock files when doing compilation?
10847
 
need_locks=$lt_need_locks
10848
 
 
10849
 
# Do we need the lib prefix for modules?
10850
 
need_lib_prefix=$need_lib_prefix
10851
 
 
10852
 
# Do we need a version for libraries?
10853
 
need_version=$need_version
10854
 
 
10855
 
# Whether dlopen is supported.
10856
 
dlopen_support=$enable_dlopen
10857
 
 
10858
 
# Whether dlopen of programs is supported.
10859
 
dlopen_self=$enable_dlopen_self
10860
 
 
10861
 
# Whether dlopen of statically linked programs is supported.
10862
 
dlopen_self_static=$enable_dlopen_self_static
10863
 
 
10864
 
# Compiler flag to prevent dynamic linking.
10865
 
link_static_flag=$lt_lt_prog_compiler_static
10866
 
 
10867
 
# Compiler flag to turn off builtin functions.
10868
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10869
 
 
10870
 
# Compiler flag to allow reflexive dlopens.
10871
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10872
 
 
10873
 
# Compiler flag to generate shared objects directly from archives.
10874
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10875
 
 
10876
 
# Compiler flag to generate thread-safe objects.
10877
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10878
 
 
10879
 
# Library versioning type.
10880
 
version_type=$version_type
10881
 
 
10882
 
# Format of library name prefix.
10883
 
libname_spec=$lt_libname_spec
10884
 
 
10885
 
# List of archive names.  First name is the real one, the rest are links.
10886
 
# The last name is the one that the linker finds with -lNAME.
10887
 
library_names_spec=$lt_library_names_spec
10888
 
 
10889
 
# The coded name of the library, if different from the real name.
10890
 
soname_spec=$lt_soname_spec
10891
 
 
10892
 
# Commands used to build and install an old-style archive.
10893
 
RANLIB=$lt_RANLIB
10894
 
old_archive_cmds=$lt_old_archive_cmds
10895
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10896
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10897
 
 
10898
 
# Create an old-style archive from a shared archive.
10899
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10900
 
 
10901
 
# Create a temporary old-style archive to link instead of a shared archive.
10902
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10903
 
 
10904
 
# Commands used to build and install a shared archive.
10905
 
archive_cmds=$lt_archive_cmds
10906
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10907
 
postinstall_cmds=$lt_postinstall_cmds
10908
 
postuninstall_cmds=$lt_postuninstall_cmds
10909
 
 
10910
 
# Commands used to build a loadable module (assumed same as above if empty)
10911
 
module_cmds=$lt_module_cmds
10912
 
module_expsym_cmds=$lt_module_expsym_cmds
10913
 
 
10914
 
# Commands to strip libraries.
10915
 
old_striplib=$lt_old_striplib
10916
 
striplib=$lt_striplib
10917
 
 
10918
 
# Dependencies to place before the objects being linked to create a
10919
 
# shared library.
10920
 
predep_objects=$lt_predep_objects
10921
 
 
10922
 
# Dependencies to place after the objects being linked to create a
10923
 
# shared library.
10924
 
postdep_objects=$lt_postdep_objects
10925
 
 
10926
 
# Dependencies to place before the objects being linked to create a
10927
 
# shared library.
10928
 
predeps=$lt_predeps
10929
 
 
10930
 
# Dependencies to place after the objects being linked to create a
10931
 
# shared library.
10932
 
postdeps=$lt_postdeps
10933
 
 
10934
 
# The directories searched by this compiler when creating a shared
10935
 
# library
10936
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10937
 
 
10938
 
# The library search path used internally by the compiler when linking
10939
 
# a shared library.
10940
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10941
 
 
10942
 
# Method to check whether dependent libraries are shared objects.
10943
 
deplibs_check_method=$lt_deplibs_check_method
10944
 
 
10945
 
# Command to use when deplibs_check_method == file_magic.
10946
 
file_magic_cmd=$lt_file_magic_cmd
10947
 
 
10948
 
# Flag that allows shared libraries with undefined symbols to be built.
10949
 
allow_undefined_flag=$lt_allow_undefined_flag
10950
 
 
10951
 
# Flag that forces no undefined symbols.
10952
 
no_undefined_flag=$lt_no_undefined_flag
10953
 
 
10954
 
# Commands used to finish a libtool library installation in a directory.
10955
 
finish_cmds=$lt_finish_cmds
10956
 
 
10957
 
# Same as above, but a single script fragment to be evaled but not shown.
10958
 
finish_eval=$lt_finish_eval
10959
 
 
10960
 
# Take the output of nm and produce a listing of raw symbols and C names.
10961
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10962
 
 
10963
 
# Transform the output of nm in a proper C declaration
10964
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10965
 
 
10966
 
# Transform the output of nm in a C name address pair
10967
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10968
 
 
10969
 
# This is the shared library runtime path variable.
10970
 
runpath_var=$runpath_var
10971
 
 
10972
 
# This is the shared library path variable.
10973
 
shlibpath_var=$shlibpath_var
10974
 
 
10975
 
# Is shlibpath searched before the hard-coded library search path?
10976
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10977
 
 
10978
 
# How to hardcode a shared library path into an executable.
10979
 
hardcode_action=$hardcode_action
10980
 
 
10981
 
# Whether we should hardcode library paths into libraries.
10982
 
hardcode_into_libs=$hardcode_into_libs
10983
 
 
10984
 
# Flag to hardcode \$libdir into a binary during linking.
10985
 
# This must work even if \$libdir does not exist.
10986
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10987
 
 
10988
 
# If ld is used when linking, flag to hardcode \$libdir into
10989
 
# a binary during linking. This must work even if \$libdir does
10990
 
# not exist.
10991
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10992
 
 
10993
 
# Whether we need a single -rpath flag with a separated argument.
10994
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10995
 
 
10996
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10997
 
# resulting binary.
10998
 
hardcode_direct=$hardcode_direct
10999
 
 
11000
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11001
 
# resulting binary.
11002
 
hardcode_minus_L=$hardcode_minus_L
11003
 
 
11004
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11005
 
# the resulting binary.
11006
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
11007
 
 
11008
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
11009
 
# and all subsequent libraries and executables linked against it.
11010
 
hardcode_automatic=$hardcode_automatic
11011
 
 
11012
 
# Variables whose values should be saved in libtool wrapper scripts and
11013
 
# restored at relink time.
11014
 
variables_saved_for_relink="$variables_saved_for_relink"
11015
 
 
11016
 
# Whether libtool must link a program against all its dependency libraries.
11017
 
link_all_deplibs=$link_all_deplibs
11018
 
 
11019
 
# Compile-time system search path for libraries
11020
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11021
 
 
11022
 
# Run-time system search path for libraries
11023
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11024
 
 
11025
 
# Fix the shell variable \$srcfile for the compiler.
11026
 
fix_srcfile_path=$lt_fix_srcfile_path
11027
 
 
11028
 
# Set to yes if exported symbols are required.
11029
 
always_export_symbols=$always_export_symbols
11030
 
 
11031
 
# The commands to list exported symbols.
11032
 
export_symbols_cmds=$lt_export_symbols_cmds
11033
 
 
11034
 
# The commands to extract the exported symbol list from a shared archive.
11035
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11036
 
 
11037
 
# Symbols that should not be listed in the preloaded symbols.
11038
 
exclude_expsyms=$lt_exclude_expsyms
11039
 
 
11040
 
# Symbols that must always be exported.
11041
 
include_expsyms=$lt_include_expsyms
11042
 
 
11043
 
# ### END LIBTOOL CONFIG
11044
 
 
11045
 
__EOF__
11046
 
 
11047
 
 
11048
 
  case $host_os in
11049
 
  aix3*)
11050
 
    cat <<\EOF >> "$cfgfile"
11051
 
 
11052
 
# AIX sometimes has problems with the GCC collect2 program.  For some
11053
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
11054
 
# vanish in a puff of smoke.
11055
 
if test "X${COLLECT_NAMES+set}" != Xset; then
11056
 
  COLLECT_NAMES=
11057
 
  export COLLECT_NAMES
11058
 
fi
11059
 
EOF
11060
 
    ;;
11061
 
  esac
11062
 
 
11063
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11064
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11065
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11066
 
  # is reportedly fixed, but why not run on old versions too?
11067
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11068
 
 
11069
 
  mv -f "$cfgfile" "$ofile" || \
11070
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11071
 
  chmod +x "$ofile"
11072
 
 
11073
 
else
11074
 
  # If there is no Makefile yet, we rely on a make rule to execute
11075
 
  # `config.status --recheck' to rerun these tests and create the
11076
 
  # libtool script then.
11077
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11078
 
  if test -f "$ltmain_in"; then
11079
 
    test -f Makefile && make "$ltmain"
11080
 
  fi
11081
 
fi
11082
 
 
11083
 
 
11084
 
ac_ext=c
11085
 
ac_cpp='$CPP $CPPFLAGS'
11086
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11087
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11088
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11089
 
 
11090
 
CC="$lt_save_CC"
11091
 
 
11092
 
 
11093
 
# Check whether --with-tags was given.
11094
 
if test "${with_tags+set}" = set; then
11095
 
  withval=$with_tags; tagnames="$withval"
11096
 
fi
11097
 
 
11098
 
 
11099
 
if test -f "$ltmain" && test -n "$tagnames"; then
11100
 
  if test ! -f "${ofile}"; then
11101
 
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11102
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11103
 
  fi
11104
 
 
11105
 
  if test -z "$LTCC"; then
11106
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11107
 
    if test -z "$LTCC"; then
11108
 
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11109
 
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11110
 
    else
11111
 
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11112
 
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11113
 
    fi
11114
 
  fi
11115
 
  if test -z "$LTCFLAGS"; then
11116
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11117
 
  fi
11118
 
 
11119
 
  # Extract list of available tagged configurations in $ofile.
11120
 
  # Note that this assumes the entire list is on one line.
11121
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11122
 
 
11123
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11124
 
  for tagname in $tagnames; do
11125
 
    IFS="$lt_save_ifs"
11126
 
    # Check whether tagname contains only valid characters
11127
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11128
 
    "") ;;
11129
 
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11130
 
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11131
 
   { (exit 1); exit 1; }; }
11132
 
        ;;
11133
 
    esac
11134
 
 
11135
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11136
 
    then
11137
 
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11138
 
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11139
 
   { (exit 1); exit 1; }; }
11140
 
    fi
11141
 
 
11142
 
    # Update the list of available tags.
11143
 
    if test -n "$tagname"; then
11144
 
      echo appending configuration tag \"$tagname\" to $ofile
11145
 
 
11146
 
      case $tagname in
11147
 
      CXX)
11148
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11149
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11150
 
            (test "X$CXX" != "Xg++"))) ; then
11151
 
          ac_ext=cpp
11152
 
ac_cpp='$CXXCPP $CPPFLAGS'
11153
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11154
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11155
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
archive_cmds_need_lc_CXX=no
11161
 
allow_undefined_flag_CXX=
11162
 
always_export_symbols_CXX=no
11163
 
archive_expsym_cmds_CXX=
11164
 
export_dynamic_flag_spec_CXX=
11165
 
hardcode_direct_CXX=no
11166
 
hardcode_libdir_flag_spec_CXX=
11167
 
hardcode_libdir_flag_spec_ld_CXX=
11168
 
hardcode_libdir_separator_CXX=
11169
 
hardcode_minus_L_CXX=no
11170
 
hardcode_shlibpath_var_CXX=unsupported
11171
 
hardcode_automatic_CXX=no
11172
 
module_cmds_CXX=
11173
 
module_expsym_cmds_CXX=
11174
 
link_all_deplibs_CXX=unknown
11175
 
old_archive_cmds_CXX=$old_archive_cmds
11176
 
no_undefined_flag_CXX=
11177
 
whole_archive_flag_spec_CXX=
11178
 
enable_shared_with_static_runtimes_CXX=no
11179
 
 
11180
 
# Dependencies to place before and after the object being linked:
11181
 
predep_objects_CXX=
11182
 
postdep_objects_CXX=
11183
 
predeps_CXX=
11184
 
postdeps_CXX=
11185
 
compiler_lib_search_path_CXX=
11186
 
compiler_lib_search_dirs_CXX=
11187
 
 
11188
 
# Source file extension for C++ test sources.
11189
 
ac_ext=cpp
11190
 
 
11191
 
# Object file extension for compiled C++ test sources.
11192
 
objext=o
11193
 
objext_CXX=$objext
11194
 
 
11195
 
# Code to be used in simple compile tests
11196
 
lt_simple_compile_test_code="int some_variable = 0;"
11197
 
 
11198
 
# Code to be used in simple link tests
11199
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11200
 
 
11201
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11202
 
 
11203
 
# If no C compiler was specified, use CC.
11204
 
LTCC=${LTCC-"$CC"}
11205
 
 
11206
 
# If no C compiler flags were specified, use CFLAGS.
11207
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11208
 
 
11209
 
# Allow CC to be a program name with arguments.
11210
 
compiler=$CC
11211
 
 
11212
 
 
11213
 
# save warnings/boilerplate of simple test code
11214
 
ac_outfile=conftest.$ac_objext
11215
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11216
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11217
 
_lt_compiler_boilerplate=`cat conftest.err`
11218
 
$rm conftest*
11219
 
 
11220
 
ac_outfile=conftest.$ac_objext
11221
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11222
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11223
 
_lt_linker_boilerplate=`cat conftest.err`
11224
 
$rm -r conftest*
11225
 
 
11226
 
 
11227
 
# Allow CC to be a program name with arguments.
11228
 
lt_save_CC=$CC
11229
 
lt_save_LD=$LD
11230
 
lt_save_GCC=$GCC
11231
 
GCC=$GXX
11232
 
lt_save_with_gnu_ld=$with_gnu_ld
11233
 
lt_save_path_LD=$lt_cv_path_LD
11234
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11235
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11236
 
else
11237
 
  $as_unset lt_cv_prog_gnu_ld
11238
 
fi
11239
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11240
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11241
 
else
11242
 
  $as_unset lt_cv_path_LD
11243
 
fi
11244
 
test -z "${LDCXX+set}" || LD=$LDCXX
11245
 
CC=${CXX-"c++"}
11246
 
compiler=$CC
11247
 
compiler_CXX=$CC
11248
 
for cc_temp in $compiler""; do
11249
 
  case $cc_temp in
11250
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11251
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11252
 
    \-*) ;;
11253
 
    *) break;;
11254
 
  esac
11255
 
done
11256
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11257
 
 
11258
 
 
11259
 
# We don't want -fno-exception wen compiling C++ code, so set the
11260
 
# no_builtin_flag separately
11261
 
if test "$GXX" = yes; then
11262
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11263
 
else
11264
 
  lt_prog_compiler_no_builtin_flag_CXX=
11265
 
fi
11266
 
 
11267
 
if test "$GXX" = yes; then
11268
 
  # Set up default GNU C++ configuration
11269
 
 
11270
 
 
11271
 
# Check whether --with-gnu-ld was given.
11272
 
if test "${with_gnu_ld+set}" = set; then
11273
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11274
 
else
11275
 
  with_gnu_ld=no
11276
 
fi
11277
 
 
11278
 
ac_prog=ld
11279
 
if test "$GCC" = yes; then
11280
 
  # Check if gcc -print-prog-name=ld gives a path.
11281
 
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11282
 
$as_echo_n "checking for ld used by $CC... " >&6; }
11283
 
  case $host in
11284
 
  *-*-mingw*)
11285
 
    # gcc leaves a trailing carriage return which upsets mingw
11286
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11287
 
  *)
11288
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11289
 
  esac
11290
 
  case $ac_prog in
11291
 
    # Accept absolute paths.
11292
 
    [\\/]* | ?:[\\/]*)
11293
 
      re_direlt='/[^/][^/]*/\.\./'
11294
 
      # Canonicalize the pathname of ld
11295
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11296
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11297
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11298
 
      done
11299
 
      test -z "$LD" && LD="$ac_prog"
11300
 
      ;;
11301
 
  "")
11302
 
    # If it fails, then pretend we aren't using GCC.
11303
 
    ac_prog=ld
11304
 
    ;;
11305
 
  *)
11306
 
    # If it is relative, then search for the first ld in PATH.
11307
 
    with_gnu_ld=unknown
11308
 
    ;;
11309
 
  esac
11310
 
elif test "$with_gnu_ld" = yes; then
11311
 
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11312
 
$as_echo_n "checking for GNU ld... " >&6; }
11313
 
else
11314
 
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11315
 
$as_echo_n "checking for non-GNU ld... " >&6; }
11316
 
fi
11317
 
if test "${lt_cv_path_LD+set}" = set; then
11318
 
  $as_echo_n "(cached) " >&6
11319
 
else
11320
 
  if test -z "$LD"; then
11321
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11322
 
  for ac_dir in $PATH; do
11323
 
    IFS="$lt_save_ifs"
11324
 
    test -z "$ac_dir" && ac_dir=.
11325
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11326
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11327
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11328
 
      # but apparently some variants of GNU ld only accept -v.
11329
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11330
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11331
 
      *GNU* | *'with BFD'*)
11332
 
        test "$with_gnu_ld" != no && break
11333
 
        ;;
11334
 
      *)
11335
 
        test "$with_gnu_ld" != yes && break
11336
 
        ;;
11337
 
      esac
11338
 
    fi
11339
 
  done
11340
 
  IFS="$lt_save_ifs"
11341
 
else
11342
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11343
 
fi
11344
 
fi
11345
 
 
11346
 
LD="$lt_cv_path_LD"
11347
 
if test -n "$LD"; then
11348
 
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11349
 
$as_echo "$LD" >&6; }
11350
 
else
11351
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
11352
 
$as_echo "no" >&6; }
11353
 
fi
11354
 
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11355
 
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11356
 
   { (exit 1); exit 1; }; }
11357
 
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11358
 
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11359
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11360
 
  $as_echo_n "(cached) " >&6
11361
 
else
11362
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11363
 
case `$LD -v 2>&1 </dev/null` in
11364
 
*GNU* | *'with BFD'*)
11365
 
  lt_cv_prog_gnu_ld=yes
11366
 
  ;;
11367
 
*)
11368
 
  lt_cv_prog_gnu_ld=no
11369
 
  ;;
11370
 
esac
11371
 
fi
11372
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11373
 
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11374
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11375
 
 
11376
 
 
11377
 
 
11378
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11379
 
  # archiving commands below assume that GNU ld is being used.
11380
 
  if test "$with_gnu_ld" = yes; then
11381
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11382
 
    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'
11383
 
 
11384
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11385
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11386
 
 
11387
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11388
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11389
 
    #     investigate it a little bit more. (MM)
11390
 
    wlarc='${wl}'
11391
 
 
11392
 
    # ancient GNU ld didn't support --whole-archive et. al.
11393
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11394
 
        grep 'no-whole-archive' > /dev/null; then
11395
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11396
 
    else
11397
 
      whole_archive_flag_spec_CXX=
11398
 
    fi
11399
 
  else
11400
 
    with_gnu_ld=no
11401
 
    wlarc=
11402
 
 
11403
 
    # A generic and very simple default shared library creation
11404
 
    # command for GNU C++ for the case where it uses the native
11405
 
    # linker, instead of GNU ld.  If possible, this setting should
11406
 
    # overridden to take advantage of the native linker features on
11407
 
    # the platform it is being used on.
11408
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11409
 
  fi
11410
 
 
11411
 
  # Commands to make compiler produce verbose output that lists
11412
 
  # what "hidden" libraries, object files and flags are used when
11413
 
  # linking a shared library.
11414
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11415
 
 
11416
 
else
11417
 
  GXX=no
11418
 
  with_gnu_ld=no
11419
 
  wlarc=
11420
 
fi
11421
 
 
11422
 
# PORTME: fill in a description of your system's C++ link characteristics
11423
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11424
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11425
 
ld_shlibs_CXX=yes
11426
 
case $host_os in
11427
 
  aix3*)
11428
 
    # FIXME: insert proper C++ library support
11429
 
    ld_shlibs_CXX=no
11430
 
    ;;
11431
 
  aix[4-9]*)
11432
 
    if test "$host_cpu" = ia64; then
11433
 
      # On IA64, the linker does run time linking by default, so we don't
11434
 
      # have to do anything special.
11435
 
      aix_use_runtimelinking=no
11436
 
      exp_sym_flag='-Bexport'
11437
 
      no_entry_flag=""
11438
 
    else
11439
 
      aix_use_runtimelinking=no
11440
 
 
11441
 
      # Test if we are trying to use run time linking or normal
11442
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11443
 
      # need to do runtime linking.
11444
 
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11445
 
        for ld_flag in $LDFLAGS; do
11446
 
          case $ld_flag in
11447
 
          *-brtl*)
11448
 
            aix_use_runtimelinking=yes
11449
 
            break
11450
 
            ;;
11451
 
          esac
11452
 
        done
11453
 
        ;;
11454
 
      esac
11455
 
 
11456
 
      exp_sym_flag='-bexport'
11457
 
      no_entry_flag='-bnoentry'
11458
 
    fi
11459
 
 
11460
 
    # When large executables or shared objects are built, AIX ld can
11461
 
    # have problems creating the table of contents.  If linking a library
11462
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11463
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11464
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11465
 
 
11466
 
    archive_cmds_CXX=''
11467
 
    hardcode_direct_CXX=yes
11468
 
    hardcode_libdir_separator_CXX=':'
11469
 
    link_all_deplibs_CXX=yes
11470
 
 
11471
 
    if test "$GXX" = yes; then
11472
 
      case $host_os in aix4.[012]|aix4.[012].*)
11473
 
      # We only want to do this on AIX 4.2 and lower, the check
11474
 
      # below for broken collect2 doesn't work under 4.3+
11475
 
        collect2name=`${CC} -print-prog-name=collect2`
11476
 
        if test -f "$collect2name" && \
11477
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11478
 
        then
11479
 
          # We have reworked collect2
11480
 
          :
11481
 
        else
11482
 
          # We have old collect2
11483
 
          hardcode_direct_CXX=unsupported
11484
 
          # It fails to find uninstalled libraries when the uninstalled
11485
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11486
 
          # to unsupported forces relinking
11487
 
          hardcode_minus_L_CXX=yes
11488
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11489
 
          hardcode_libdir_separator_CXX=
11490
 
        fi
11491
 
        ;;
11492
 
      esac
11493
 
      shared_flag='-shared'
11494
 
      if test "$aix_use_runtimelinking" = yes; then
11495
 
        shared_flag="$shared_flag "'${wl}-G'
11496
 
      fi
11497
 
    else
11498
 
      # not using gcc
11499
 
      if test "$host_cpu" = ia64; then
11500
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11501
 
        # chokes on -Wl,-G. The following line is correct:
11502
 
        shared_flag='-G'
11503
 
      else
11504
 
        if test "$aix_use_runtimelinking" = yes; then
11505
 
          shared_flag='${wl}-G'
11506
 
        else
11507
 
          shared_flag='${wl}-bM:SRE'
11508
 
        fi
11509
 
      fi
11510
 
    fi
11511
 
 
11512
 
    # It seems that -bexpall does not export symbols beginning with
11513
 
    # underscore (_), so it is better to generate a list of symbols to export.
11514
 
    always_export_symbols_CXX=yes
11515
 
    if test "$aix_use_runtimelinking" = yes; then
11516
 
      # Warning - without using the other runtime loading flags (-brtl),
11517
 
      # -berok will link without error, but may produce a broken library.
11518
 
      allow_undefined_flag_CXX='-berok'
11519
 
      # Determine the default libpath from the value encoded in an empty executable.
11520
 
      cat >conftest.$ac_ext <<_ACEOF
11521
 
/* confdefs.h.  */
11522
 
_ACEOF
11523
 
cat confdefs.h >>conftest.$ac_ext
11524
 
cat >>conftest.$ac_ext <<_ACEOF
11525
 
/* end confdefs.h.  */
11526
 
 
11527
 
int
11528
 
main ()
11529
 
{
11530
 
 
11531
 
  ;
11532
 
  return 0;
11533
 
}
11534
 
_ACEOF
11535
 
rm -f conftest.$ac_objext conftest$ac_exeext
11536
 
if { (ac_try="$ac_link"
11537
 
case "(($ac_try" in
11538
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539
 
  *) ac_try_echo=$ac_try;;
11540
 
esac
11541
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11542
 
$as_echo "$ac_try_echo") >&5
11543
 
  (eval "$ac_link") 2>conftest.er1
11544
 
  ac_status=$?
11545
 
  grep -v '^ *+' conftest.er1 >conftest.err
11546
 
  rm -f conftest.er1
11547
 
  cat conftest.err >&5
11548
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549
 
  (exit $ac_status); } && {
11550
 
         test -z "$ac_cxx_werror_flag" ||
11551
 
         test ! -s conftest.err
11552
 
       } && test -s conftest$ac_exeext && {
11553
 
         test "$cross_compiling" = yes ||
11554
 
         $as_test_x conftest$ac_exeext
11555
 
       }; then
11556
 
 
11557
 
lt_aix_libpath_sed='
11558
 
    /Import File Strings/,/^$/ {
11559
 
        /^0/ {
11560
 
            s/^0  *\(.*\)$/\1/
11561
 
            p
11562
 
        }
11563
 
    }'
11564
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11565
 
# Check for a 64-bit object if we didn't find anything.
11566
 
if test -z "$aix_libpath"; then
11567
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11568
 
fi
11569
 
else
11570
 
  $as_echo "$as_me: failed program was:" >&5
11571
 
sed 's/^/| /' conftest.$ac_ext >&5
11572
 
 
11573
 
 
11574
 
fi
11575
 
 
11576
 
rm -rf conftest.dSYM
11577
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578
 
      conftest$ac_exeext conftest.$ac_ext
11579
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11580
 
 
11581
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11582
 
 
11583
 
      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"
11584
 
     else
11585
 
      if test "$host_cpu" = ia64; then
11586
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11587
 
        allow_undefined_flag_CXX="-z nodefs"
11588
 
        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"
11589
 
      else
11590
 
        # Determine the default libpath from the value encoded in an empty executable.
11591
 
        cat >conftest.$ac_ext <<_ACEOF
11592
 
/* confdefs.h.  */
11593
 
_ACEOF
11594
 
cat confdefs.h >>conftest.$ac_ext
11595
 
cat >>conftest.$ac_ext <<_ACEOF
11596
 
/* end confdefs.h.  */
11597
 
 
11598
 
int
11599
 
main ()
11600
 
{
11601
 
 
11602
 
  ;
11603
 
  return 0;
11604
 
}
11605
 
_ACEOF
11606
 
rm -f conftest.$ac_objext conftest$ac_exeext
11607
 
if { (ac_try="$ac_link"
11608
 
case "(($ac_try" in
11609
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610
 
  *) ac_try_echo=$ac_try;;
11611
 
esac
11612
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11613
 
$as_echo "$ac_try_echo") >&5
11614
 
  (eval "$ac_link") 2>conftest.er1
11615
 
  ac_status=$?
11616
 
  grep -v '^ *+' conftest.er1 >conftest.err
11617
 
  rm -f conftest.er1
11618
 
  cat conftest.err >&5
11619
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620
 
  (exit $ac_status); } && {
11621
 
         test -z "$ac_cxx_werror_flag" ||
11622
 
         test ! -s conftest.err
11623
 
       } && test -s conftest$ac_exeext && {
11624
 
         test "$cross_compiling" = yes ||
11625
 
         $as_test_x conftest$ac_exeext
11626
 
       }; then
11627
 
 
11628
 
lt_aix_libpath_sed='
11629
 
    /Import File Strings/,/^$/ {
11630
 
        /^0/ {
11631
 
            s/^0  *\(.*\)$/\1/
11632
 
            p
11633
 
        }
11634
 
    }'
11635
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11636
 
# Check for a 64-bit object if we didn't find anything.
11637
 
if test -z "$aix_libpath"; then
11638
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11639
 
fi
11640
 
else
11641
 
  $as_echo "$as_me: failed program was:" >&5
11642
 
sed 's/^/| /' conftest.$ac_ext >&5
11643
 
 
11644
 
 
11645
 
fi
11646
 
 
11647
 
rm -rf conftest.dSYM
11648
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11649
 
      conftest$ac_exeext conftest.$ac_ext
11650
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11651
 
 
11652
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653
 
        # Warning - without using the other run time loading flags,
11654
 
        # -berok will link without error, but may produce a broken library.
11655
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11656
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11657
 
        # Exported symbols can be pulled into shared objects from archives
11658
 
        whole_archive_flag_spec_CXX='$convenience'
11659
 
        archive_cmds_need_lc_CXX=yes
11660
 
        # This is similar to how AIX traditionally builds its shared libraries.
11661
 
        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'
11662
 
      fi
11663
 
    fi
11664
 
    ;;
11665
 
 
11666
 
  beos*)
11667
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11668
 
      allow_undefined_flag_CXX=unsupported
11669
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11670
 
      # support --undefined.  This deserves some investigation.  FIXME
11671
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11672
 
    else
11673
 
      ld_shlibs_CXX=no
11674
 
    fi
11675
 
    ;;
11676
 
 
11677
 
  chorus*)
11678
 
    case $cc_basename in
11679
 
      *)
11680
 
        # FIXME: insert proper C++ library support
11681
 
        ld_shlibs_CXX=no
11682
 
        ;;
11683
 
    esac
11684
 
    ;;
11685
 
 
11686
 
  cygwin* | mingw* | pw32*)
11687
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11688
 
    # as there is no search path for DLLs.
11689
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11690
 
    allow_undefined_flag_CXX=unsupported
11691
 
    always_export_symbols_CXX=no
11692
 
    enable_shared_with_static_runtimes_CXX=yes
11693
 
 
11694
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11695
 
      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'
11696
 
      # If the export-symbols file already is a .def file (1st line
11697
 
      # is EXPORTS), use it as is; otherwise, prepend...
11698
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11699
 
        cp $export_symbols $output_objdir/$soname.def;
11700
 
      else
11701
 
        echo EXPORTS > $output_objdir/$soname.def;
11702
 
        cat $export_symbols >> $output_objdir/$soname.def;
11703
 
      fi~
11704
 
      $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'
11705
 
    else
11706
 
      ld_shlibs_CXX=no
11707
 
    fi
11708
 
  ;;
11709
 
      darwin* | rhapsody*)
11710
 
      archive_cmds_need_lc_CXX=no
11711
 
      hardcode_direct_CXX=no
11712
 
      hardcode_automatic_CXX=yes
11713
 
      hardcode_shlibpath_var_CXX=unsupported
11714
 
      whole_archive_flag_spec_CXX=''
11715
 
      link_all_deplibs_CXX=yes
11716
 
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11717
 
      if test "$GXX" = yes ; then
11718
 
      output_verbose_link_cmd='echo'
11719
 
      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}"
11720
 
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11721
 
      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}"
11722
 
      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}"
11723
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11724
 
        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}"
11725
 
        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}"
11726
 
      fi
11727
 
      else
11728
 
      case $cc_basename in
11729
 
        xlc*)
11730
 
         output_verbose_link_cmd='echo'
11731
 
          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'
11732
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11733
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11734
 
          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}'
11735
 
          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}'
11736
 
          ;;
11737
 
       *)
11738
 
         ld_shlibs_CXX=no
11739
 
          ;;
11740
 
      esac
11741
 
      fi
11742
 
        ;;
11743
 
 
11744
 
  dgux*)
11745
 
    case $cc_basename in
11746
 
      ec++*)
11747
 
        # FIXME: insert proper C++ library support
11748
 
        ld_shlibs_CXX=no
11749
 
        ;;
11750
 
      ghcx*)
11751
 
        # Green Hills C++ Compiler
11752
 
        # FIXME: insert proper C++ library support
11753
 
        ld_shlibs_CXX=no
11754
 
        ;;
11755
 
      *)
11756
 
        # FIXME: insert proper C++ library support
11757
 
        ld_shlibs_CXX=no
11758
 
        ;;
11759
 
    esac
11760
 
    ;;
11761
 
  freebsd[12]*)
11762
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11763
 
    ld_shlibs_CXX=no
11764
 
    ;;
11765
 
  freebsd-elf*)
11766
 
    archive_cmds_need_lc_CXX=no
11767
 
    ;;
11768
 
  freebsd* | dragonfly*)
11769
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11770
 
    # conventions
11771
 
    ld_shlibs_CXX=yes
11772
 
    ;;
11773
 
  gnu*)
11774
 
    ;;
11775
 
  hpux9*)
11776
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11777
 
    hardcode_libdir_separator_CXX=:
11778
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11779
 
    hardcode_direct_CXX=yes
11780
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11781
 
                                # but as the default
11782
 
                                # location of the library.
11783
 
 
11784
 
    case $cc_basename in
11785
 
    CC*)
11786
 
      # FIXME: insert proper C++ library support
11787
 
      ld_shlibs_CXX=no
11788
 
      ;;
11789
 
    aCC*)
11790
 
      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'
11791
 
      # Commands to make compiler produce verbose output that lists
11792
 
      # what "hidden" libraries, object files and flags are used when
11793
 
      # linking a shared library.
11794
 
      #
11795
 
      # There doesn't appear to be a way to prevent this compiler from
11796
 
      # explicitly linking system object files so we need to strip them
11797
 
      # from the output so that they don't get included in the library
11798
 
      # dependencies.
11799
 
      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'
11800
 
      ;;
11801
 
    *)
11802
 
      if test "$GXX" = yes; then
11803
 
        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'
11804
 
      else
11805
 
        # FIXME: insert proper C++ library support
11806
 
        ld_shlibs_CXX=no
11807
 
      fi
11808
 
      ;;
11809
 
    esac
11810
 
    ;;
11811
 
  hpux10*|hpux11*)
11812
 
    if test $with_gnu_ld = no; then
11813
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11814
 
      hardcode_libdir_separator_CXX=:
11815
 
 
11816
 
      case $host_cpu in
11817
 
      hppa*64*|ia64*) ;;
11818
 
      *)
11819
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11820
 
        ;;
11821
 
      esac
11822
 
    fi
11823
 
    case $host_cpu in
11824
 
    hppa*64*|ia64*)
11825
 
      hardcode_direct_CXX=no
11826
 
      hardcode_shlibpath_var_CXX=no
11827
 
      ;;
11828
 
    *)
11829
 
      hardcode_direct_CXX=yes
11830
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11831
 
                                              # but as the default
11832
 
                                              # location of the library.
11833
 
      ;;
11834
 
    esac
11835
 
 
11836
 
    case $cc_basename in
11837
 
      CC*)
11838
 
        # FIXME: insert proper C++ library support
11839
 
        ld_shlibs_CXX=no
11840
 
        ;;
11841
 
      aCC*)
11842
 
        case $host_cpu in
11843
 
        hppa*64*)
11844
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11845
 
          ;;
11846
 
        ia64*)
11847
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11848
 
          ;;
11849
 
        *)
11850
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11851
 
          ;;
11852
 
        esac
11853
 
        # Commands to make compiler produce verbose output that lists
11854
 
        # what "hidden" libraries, object files and flags are used when
11855
 
        # linking a shared library.
11856
 
        #
11857
 
        # There doesn't appear to be a way to prevent this compiler from
11858
 
        # explicitly linking system object files so we need to strip them
11859
 
        # from the output so that they don't get included in the library
11860
 
        # dependencies.
11861
 
        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'
11862
 
        ;;
11863
 
      *)
11864
 
        if test "$GXX" = yes; then
11865
 
          if test $with_gnu_ld = no; then
11866
 
            case $host_cpu in
11867
 
            hppa*64*)
11868
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11869
 
              ;;
11870
 
            ia64*)
11871
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11872
 
              ;;
11873
 
            *)
11874
 
              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'
11875
 
              ;;
11876
 
            esac
11877
 
          fi
11878
 
        else
11879
 
          # FIXME: insert proper C++ library support
11880
 
          ld_shlibs_CXX=no
11881
 
        fi
11882
 
        ;;
11883
 
    esac
11884
 
    ;;
11885
 
  interix[3-9]*)
11886
 
    hardcode_direct_CXX=no
11887
 
    hardcode_shlibpath_var_CXX=no
11888
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11889
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11890
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11891
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11892
 
    # default) and relocated if they conflict, which is a slow very memory
11893
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11894
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11895
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11896
 
    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'
11897
 
    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'
11898
 
    ;;
11899
 
  irix5* | irix6*)
11900
 
    case $cc_basename in
11901
 
      CC*)
11902
 
        # SGI C++
11903
 
        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'
11904
 
 
11905
 
        # Archives containing C++ object files must be created using
11906
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11907
 
        # necessary to make sure instantiated templates are included
11908
 
        # in the archive.
11909
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11910
 
        ;;
11911
 
      *)
11912
 
        if test "$GXX" = yes; then
11913
 
          if test "$with_gnu_ld" = no; then
11914
 
            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'
11915
 
          else
11916
 
            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'
11917
 
          fi
11918
 
        fi
11919
 
        link_all_deplibs_CXX=yes
11920
 
        ;;
11921
 
    esac
11922
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923
 
    hardcode_libdir_separator_CXX=:
11924
 
    ;;
11925
 
  linux* | k*bsd*-gnu)
11926
 
    case $cc_basename in
11927
 
      KCC*)
11928
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11929
 
 
11930
 
        # KCC will only create a shared library if the output file
11931
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11932
 
        # to its proper name (with version) after linking.
11933
 
        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'
11934
 
        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'
11935
 
        # Commands to make compiler produce verbose output that lists
11936
 
        # what "hidden" libraries, object files and flags are used when
11937
 
        # linking a shared library.
11938
 
        #
11939
 
        # There doesn't appear to be a way to prevent this compiler from
11940
 
        # explicitly linking system object files so we need to strip them
11941
 
        # from the output so that they don't get included in the library
11942
 
        # dependencies.
11943
 
        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'
11944
 
 
11945
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11947
 
 
11948
 
        # Archives containing C++ object files must be created using
11949
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11951
 
        ;;
11952
 
      icpc*)
11953
 
        # Intel C++
11954
 
        with_gnu_ld=yes
11955
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11956
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11957
 
        # earlier do not add the objects themselves.
11958
 
        case `$CC -V 2>&1` in
11959
 
        *"Version 7."*)
11960
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11961
 
          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'
11962
 
          ;;
11963
 
        *)  # Version 8.0 or newer
11964
 
          tmp_idyn=
11965
 
          case $host_cpu in
11966
 
            ia64*) tmp_idyn=' -i_dynamic';;
11967
 
          esac
11968
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11969
 
          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'
11970
 
          ;;
11971
 
        esac
11972
 
        archive_cmds_need_lc_CXX=no
11973
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11975
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11976
 
        ;;
11977
 
      pgCC* | pgcpp*)
11978
 
        # Portland Group C++ compiler
11979
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11980
 
        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'
11981
 
 
11982
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11983
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11984
 
        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'
11985
 
        ;;
11986
 
      cxx*)
11987
 
        # Compaq C++
11988
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11989
 
        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'
11990
 
 
11991
 
        runpath_var=LD_RUN_PATH
11992
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11993
 
        hardcode_libdir_separator_CXX=:
11994
 
 
11995
 
        # Commands to make compiler produce verbose output that lists
11996
 
        # what "hidden" libraries, object files and flags are used when
11997
 
        # linking a shared library.
11998
 
        #
11999
 
        # There doesn't appear to be a way to prevent this compiler from
12000
 
        # explicitly linking system object files so we need to strip them
12001
 
        # from the output so that they don't get included in the library
12002
 
        # dependencies.
12003
 
        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'
12004
 
        ;;
12005
 
      *)
12006
 
        case `$CC -V 2>&1 | sed 5q` in
12007
 
        *Sun\ C*)
12008
 
          # Sun C++ 5.9
12009
 
          no_undefined_flag_CXX=' -zdefs'
12010
 
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12011
 
          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'
12012
 
          hardcode_libdir_flag_spec_CXX='-R$libdir'
12013
 
          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'
12014
 
 
12015
 
          # Not sure whether something based on
12016
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12017
 
          # would be better.
12018
 
          output_verbose_link_cmd='echo'
12019
 
 
12020
 
          # Archives containing C++ object files must be created using
12021
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12022
 
          # necessary to make sure instantiated templates are included
12023
 
          # in the archive.
12024
 
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12025
 
          ;;
12026
 
        esac
12027
 
        ;;
12028
 
    esac
12029
 
    ;;
12030
 
  lynxos*)
12031
 
    # FIXME: insert proper C++ library support
12032
 
    ld_shlibs_CXX=no
12033
 
    ;;
12034
 
  m88k*)
12035
 
    # FIXME: insert proper C++ library support
12036
 
    ld_shlibs_CXX=no
12037
 
    ;;
12038
 
  mvs*)
12039
 
    case $cc_basename in
12040
 
      cxx*)
12041
 
        # FIXME: insert proper C++ library support
12042
 
        ld_shlibs_CXX=no
12043
 
        ;;
12044
 
      *)
12045
 
        # FIXME: insert proper C++ library support
12046
 
        ld_shlibs_CXX=no
12047
 
        ;;
12048
 
    esac
12049
 
    ;;
12050
 
  netbsd*)
12051
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12052
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12053
 
      wlarc=
12054
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12055
 
      hardcode_direct_CXX=yes
12056
 
      hardcode_shlibpath_var_CXX=no
12057
 
    fi
12058
 
    # Workaround some broken pre-1.5 toolchains
12059
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12060
 
    ;;
12061
 
  openbsd2*)
12062
 
    # C++ shared libraries are fairly broken
12063
 
    ld_shlibs_CXX=no
12064
 
    ;;
12065
 
  openbsd*)
12066
 
    if test -f /usr/libexec/ld.so; then
12067
 
      hardcode_direct_CXX=yes
12068
 
      hardcode_shlibpath_var_CXX=no
12069
 
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12070
 
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12071
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12072
 
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12073
 
        export_dynamic_flag_spec_CXX='${wl}-E'
12074
 
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12075
 
      fi
12076
 
      output_verbose_link_cmd='echo'
12077
 
    else
12078
 
      ld_shlibs_CXX=no
12079
 
    fi
12080
 
    ;;
12081
 
  osf3*)
12082
 
    case $cc_basename in
12083
 
      KCC*)
12084
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12085
 
 
12086
 
        # KCC will only create a shared library if the output file
12087
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12088
 
        # to its proper name (with version) after linking.
12089
 
        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'
12090
 
 
12091
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12092
 
        hardcode_libdir_separator_CXX=:
12093
 
 
12094
 
        # Archives containing C++ object files must be created using
12095
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12096
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12097
 
 
12098
 
        ;;
12099
 
      RCC*)
12100
 
        # Rational C++ 2.4.1
12101
 
        # FIXME: insert proper C++ library support
12102
 
        ld_shlibs_CXX=no
12103
 
        ;;
12104
 
      cxx*)
12105
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12106
 
        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'
12107
 
 
12108
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12109
 
        hardcode_libdir_separator_CXX=:
12110
 
 
12111
 
        # Commands to make compiler produce verbose output that lists
12112
 
        # what "hidden" libraries, object files and flags are used when
12113
 
        # linking a shared library.
12114
 
        #
12115
 
        # There doesn't appear to be a way to prevent this compiler from
12116
 
        # explicitly linking system object files so we need to strip them
12117
 
        # from the output so that they don't get included in the library
12118
 
        # dependencies.
12119
 
        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'
12120
 
        ;;
12121
 
      *)
12122
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12123
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12124
 
          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'
12125
 
 
12126
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12127
 
          hardcode_libdir_separator_CXX=:
12128
 
 
12129
 
          # Commands to make compiler produce verbose output that lists
12130
 
          # what "hidden" libraries, object files and flags are used when
12131
 
          # linking a shared library.
12132
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12133
 
 
12134
 
        else
12135
 
          # FIXME: insert proper C++ library support
12136
 
          ld_shlibs_CXX=no
12137
 
        fi
12138
 
        ;;
12139
 
    esac
12140
 
    ;;
12141
 
  osf4* | osf5*)
12142
 
    case $cc_basename in
12143
 
      KCC*)
12144
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12145
 
 
12146
 
        # KCC will only create a shared library if the output file
12147
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12148
 
        # to its proper name (with version) after linking.
12149
 
        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'
12150
 
 
12151
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12152
 
        hardcode_libdir_separator_CXX=:
12153
 
 
12154
 
        # Archives containing C++ object files must be created using
12155
 
        # the KAI C++ compiler.
12156
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12157
 
        ;;
12158
 
      RCC*)
12159
 
        # Rational C++ 2.4.1
12160
 
        # FIXME: insert proper C++ library support
12161
 
        ld_shlibs_CXX=no
12162
 
        ;;
12163
 
      cxx*)
12164
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12165
 
        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'
12166
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12167
 
          echo "-hidden">> $lib.exp~
12168
 
          $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~
12169
 
          $rm $lib.exp'
12170
 
 
12171
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12172
 
        hardcode_libdir_separator_CXX=:
12173
 
 
12174
 
        # Commands to make compiler produce verbose output that lists
12175
 
        # what "hidden" libraries, object files and flags are used when
12176
 
        # linking a shared library.
12177
 
        #
12178
 
        # There doesn't appear to be a way to prevent this compiler from
12179
 
        # explicitly linking system object files so we need to strip them
12180
 
        # from the output so that they don't get included in the library
12181
 
        # dependencies.
12182
 
        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'
12183
 
        ;;
12184
 
      *)
12185
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12186
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12187
 
         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'
12188
 
 
12189
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12190
 
          hardcode_libdir_separator_CXX=:
12191
 
 
12192
 
          # Commands to make compiler produce verbose output that lists
12193
 
          # what "hidden" libraries, object files and flags are used when
12194
 
          # linking a shared library.
12195
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12196
 
 
12197
 
        else
12198
 
          # FIXME: insert proper C++ library support
12199
 
          ld_shlibs_CXX=no
12200
 
        fi
12201
 
        ;;
12202
 
    esac
12203
 
    ;;
12204
 
  psos*)
12205
 
    # FIXME: insert proper C++ library support
12206
 
    ld_shlibs_CXX=no
12207
 
    ;;
12208
 
  sunos4*)
12209
 
    case $cc_basename in
12210
 
      CC*)
12211
 
        # Sun C++ 4.x
12212
 
        # FIXME: insert proper C++ library support
12213
 
        ld_shlibs_CXX=no
12214
 
        ;;
12215
 
      lcc*)
12216
 
        # Lucid
12217
 
        # FIXME: insert proper C++ library support
12218
 
        ld_shlibs_CXX=no
12219
 
        ;;
12220
 
      *)
12221
 
        # FIXME: insert proper C++ library support
12222
 
        ld_shlibs_CXX=no
12223
 
        ;;
12224
 
    esac
12225
 
    ;;
12226
 
  solaris*)
12227
 
    case $cc_basename in
12228
 
      CC*)
12229
 
        # Sun C++ 4.2, 5.x and Centerline C++
12230
 
        archive_cmds_need_lc_CXX=yes
12231
 
        no_undefined_flag_CXX=' -zdefs'
12232
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12234
 
        $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'
12235
 
 
12236
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12237
 
        hardcode_shlibpath_var_CXX=no
12238
 
        case $host_os in
12239
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12240
 
          *)
12241
 
            # The compiler driver will combine and reorder linker options,
12242
 
            # but understands `-z linker_flag'.
12243
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12244
 
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12245
 
            ;;
12246
 
        esac
12247
 
        link_all_deplibs_CXX=yes
12248
 
 
12249
 
        output_verbose_link_cmd='echo'
12250
 
 
12251
 
        # Archives containing C++ object files must be created using
12252
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12253
 
        # necessary to make sure instantiated templates are included
12254
 
        # in the archive.
12255
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12256
 
        ;;
12257
 
      gcx*)
12258
 
        # Green Hills C++ Compiler
12259
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12260
 
 
12261
 
        # The C++ compiler must be used to create the archive.
12262
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12263
 
        ;;
12264
 
      *)
12265
 
        # GNU C++ compiler with Solaris linker
12266
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12267
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12268
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12269
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12270
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12271
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12272
 
 
12273
 
            # Commands to make compiler produce verbose output that lists
12274
 
            # what "hidden" libraries, object files and flags are used when
12275
 
            # linking a shared library.
12276
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12277
 
          else
12278
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12279
 
            # platform.
12280
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12281
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12282
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12283
 
 
12284
 
            # Commands to make compiler produce verbose output that lists
12285
 
            # what "hidden" libraries, object files and flags are used when
12286
 
            # linking a shared library.
12287
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12288
 
          fi
12289
 
 
12290
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12291
 
          case $host_os in
12292
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12293
 
          *)
12294
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12295
 
            ;;
12296
 
          esac
12297
 
        fi
12298
 
        ;;
12299
 
    esac
12300
 
    ;;
12301
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12302
 
    no_undefined_flag_CXX='${wl}-z,text'
12303
 
    archive_cmds_need_lc_CXX=no
12304
 
    hardcode_shlibpath_var_CXX=no
12305
 
    runpath_var='LD_RUN_PATH'
12306
 
 
12307
 
    case $cc_basename in
12308
 
      CC*)
12309
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311
 
        ;;
12312
 
      *)
12313
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12314
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12315
 
        ;;
12316
 
    esac
12317
 
    ;;
12318
 
  sysv5* | sco3.2v5* | sco5v6*)
12319
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12320
 
    # link with -lc, and that would cause any symbols used from libc to
12321
 
    # always be unresolved, which means just about no library would
12322
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12323
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12324
 
    # as -z defs.
12325
 
    # For security reasons, it is highly recommended that you always
12326
 
    # use absolute paths for naming shared libraries, and exclude the
12327
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12328
 
    # requires that you compile everything twice, which is a pain.
12329
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12330
 
    # non-empty value in the environment.  Most likely only useful for
12331
 
    # creating official distributions of packages.
12332
 
    # This is a hack until libtool officially supports absolute path
12333
 
    # names for shared libraries.
12334
 
    no_undefined_flag_CXX='${wl}-z,text'
12335
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12336
 
    archive_cmds_need_lc_CXX=no
12337
 
    hardcode_shlibpath_var_CXX=no
12338
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12339
 
    hardcode_libdir_separator_CXX=':'
12340
 
    link_all_deplibs_CXX=yes
12341
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12342
 
    runpath_var='LD_RUN_PATH'
12343
 
 
12344
 
    case $cc_basename in
12345
 
      CC*)
12346
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12347
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12348
 
        ;;
12349
 
      *)
12350
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12351
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12352
 
        ;;
12353
 
    esac
12354
 
    ;;
12355
 
  tandem*)
12356
 
    case $cc_basename in
12357
 
      NCC*)
12358
 
        # NonStop-UX NCC 3.20
12359
 
        # FIXME: insert proper C++ library support
12360
 
        ld_shlibs_CXX=no
12361
 
        ;;
12362
 
      *)
12363
 
        # FIXME: insert proper C++ library support
12364
 
        ld_shlibs_CXX=no
12365
 
        ;;
12366
 
    esac
12367
 
    ;;
12368
 
  vxworks*)
12369
 
    # FIXME: insert proper C++ library support
12370
 
    ld_shlibs_CXX=no
12371
 
    ;;
12372
 
  *)
12373
 
    # FIXME: insert proper C++ library support
12374
 
    ld_shlibs_CXX=no
12375
 
    ;;
12376
 
esac
12377
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12378
 
$as_echo "$ld_shlibs_CXX" >&6; }
12379
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12380
 
 
12381
 
GCC_CXX="$GXX"
12382
 
LD_CXX="$LD"
12383
 
 
12384
 
cat > conftest.$ac_ext <<EOF
12385
 
class Foo
12386
 
{
12387
 
public:
12388
 
  Foo (void) { a = 0; }
12389
 
private:
12390
 
  int a;
12391
 
};
12392
 
EOF
12393
 
 
12394
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12395
 
  (eval $ac_compile) 2>&5
12396
 
  ac_status=$?
12397
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398
 
  (exit $ac_status); }; then
12399
 
  # Parse the compiler output and extract the necessary
12400
 
  # objects, libraries and library flags.
12401
 
 
12402
 
  # Sentinel used to keep track of whether or not we are before
12403
 
  # the conftest object file.
12404
 
  pre_test_object_deps_done=no
12405
 
 
12406
 
  # The `*' in the case matches for architectures that use `case' in
12407
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12408
 
  # eval without this substitution.
12409
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12410
 
 
12411
 
  for p in `eval $output_verbose_link_cmd`; do
12412
 
    case $p in
12413
 
 
12414
 
    -L* | -R* | -l*)
12415
 
       # Some compilers place space between "-{L,R}" and the path.
12416
 
       # Remove the space.
12417
 
       if test $p = "-L" \
12418
 
          || test $p = "-R"; then
12419
 
         prev=$p
12420
 
         continue
12421
 
       else
12422
 
         prev=
12423
 
       fi
12424
 
 
12425
 
       if test "$pre_test_object_deps_done" = no; then
12426
 
         case $p in
12427
 
         -L* | -R*)
12428
 
           # Internal compiler library paths should come after those
12429
 
           # provided the user.  The postdeps already come after the
12430
 
           # user supplied libs so there is no need to process them.
12431
 
           if test -z "$compiler_lib_search_path_CXX"; then
12432
 
             compiler_lib_search_path_CXX="${prev}${p}"
12433
 
           else
12434
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12435
 
           fi
12436
 
           ;;
12437
 
         # The "-l" case would never come before the object being
12438
 
         # linked, so don't bother handling this case.
12439
 
         esac
12440
 
       else
12441
 
         if test -z "$postdeps_CXX"; then
12442
 
           postdeps_CXX="${prev}${p}"
12443
 
         else
12444
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12445
 
         fi
12446
 
       fi
12447
 
       ;;
12448
 
 
12449
 
    *.$objext)
12450
 
       # This assumes that the test object file only shows up
12451
 
       # once in the compiler output.
12452
 
       if test "$p" = "conftest.$objext"; then
12453
 
         pre_test_object_deps_done=yes
12454
 
         continue
12455
 
       fi
12456
 
 
12457
 
       if test "$pre_test_object_deps_done" = no; then
12458
 
         if test -z "$predep_objects_CXX"; then
12459
 
           predep_objects_CXX="$p"
12460
 
         else
12461
 
           predep_objects_CXX="$predep_objects_CXX $p"
12462
 
         fi
12463
 
       else
12464
 
         if test -z "$postdep_objects_CXX"; then
12465
 
           postdep_objects_CXX="$p"
12466
 
         else
12467
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12468
 
         fi
12469
 
       fi
12470
 
       ;;
12471
 
 
12472
 
    *) ;; # Ignore the rest.
12473
 
 
12474
 
    esac
12475
 
  done
12476
 
 
12477
 
  # Clean up.
12478
 
  rm -f a.out a.exe
12479
 
else
12480
 
  echo "libtool.m4: error: problem compiling CXX test program"
12481
 
fi
12482
 
 
12483
 
$rm -f confest.$objext
12484
 
 
12485
 
compiler_lib_search_dirs_CXX=
12486
 
if test -n "$compiler_lib_search_path_CXX"; then
12487
 
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12488
 
fi
12489
 
 
12490
 
# PORTME: override above test on systems where it is broken
12491
 
case $host_os in
12492
 
interix[3-9]*)
12493
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12494
 
  # hack all around it, let's just trust "g++" to DTRT.
12495
 
  predep_objects_CXX=
12496
 
  postdep_objects_CXX=
12497
 
  postdeps_CXX=
12498
 
  ;;
12499
 
 
12500
 
linux*)
12501
 
  case `$CC -V 2>&1 | sed 5q` in
12502
 
  *Sun\ C*)
12503
 
    # Sun C++ 5.9
12504
 
    #
12505
 
    # The more standards-conforming stlport4 library is
12506
 
    # incompatible with the Cstd library. Avoid specifying
12507
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12508
 
    # -library=stlport4 depends on it.
12509
 
    case " $CXX $CXXFLAGS " in
12510
 
    *" -library=stlport4 "*)
12511
 
      solaris_use_stlport4=yes
12512
 
      ;;
12513
 
    esac
12514
 
    if test "$solaris_use_stlport4" != yes; then
12515
 
      postdeps_CXX='-library=Cstd -library=Crun'
12516
 
    fi
12517
 
    ;;
12518
 
  esac
12519
 
  ;;
12520
 
 
12521
 
solaris*)
12522
 
  case $cc_basename in
12523
 
  CC*)
12524
 
    # The more standards-conforming stlport4 library is
12525
 
    # incompatible with the Cstd library. Avoid specifying
12526
 
    # it if it's in CXXFLAGS. Ignore libCrun as
12527
 
    # -library=stlport4 depends on it.
12528
 
    case " $CXX $CXXFLAGS " in
12529
 
    *" -library=stlport4 "*)
12530
 
      solaris_use_stlport4=yes
12531
 
      ;;
12532
 
    esac
12533
 
 
12534
 
    # Adding this requires a known-good setup of shared libraries for
12535
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12536
 
    # archive will be linked into the output, leading to subtle bugs.
12537
 
    if test "$solaris_use_stlport4" != yes; then
12538
 
      postdeps_CXX='-library=Cstd -library=Crun'
12539
 
    fi
12540
 
    ;;
12541
 
  esac
12542
 
  ;;
12543
 
esac
12544
 
 
12545
 
case " $postdeps_CXX " in
12546
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12547
 
esac
12548
 
 
12549
 
lt_prog_compiler_wl_CXX=
12550
 
lt_prog_compiler_pic_CXX=
12551
 
lt_prog_compiler_static_CXX=
12552
 
 
12553
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12554
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12555
 
 
12556
 
  # C++ specific cases for pic, static, wl, etc.
12557
 
  if test "$GXX" = yes; then
12558
 
    lt_prog_compiler_wl_CXX='-Wl,'
12559
 
    lt_prog_compiler_static_CXX='-static'
12560
 
 
12561
 
    case $host_os in
12562
 
    aix*)
12563
 
      # All AIX code is PIC.
12564
 
      if test "$host_cpu" = ia64; then
12565
 
        # AIX 5 now supports IA64 processor
12566
 
        lt_prog_compiler_static_CXX='-Bstatic'
12567
 
      fi
12568
 
      ;;
12569
 
    amigaos*)
12570
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12571
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12572
 
      # like `-m68040'.
12573
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12574
 
      ;;
12575
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12576
 
      # PIC is the default for these OSes.
12577
 
      ;;
12578
 
    mingw* | cygwin* | os2* | pw32*)
12579
 
      # This hack is so that the source file can tell whether it is being
12580
 
      # built for inclusion in a dll (and should export symbols for example).
12581
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12582
 
      # (--disable-auto-import) libraries
12583
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12584
 
      ;;
12585
 
    darwin* | rhapsody*)
12586
 
      # PIC is the default on this platform
12587
 
      # Common symbols not allowed in MH_DYLIB files
12588
 
      lt_prog_compiler_pic_CXX='-fno-common'
12589
 
      ;;
12590
 
    *djgpp*)
12591
 
      # DJGPP does not support shared libraries at all
12592
 
      lt_prog_compiler_pic_CXX=
12593
 
      ;;
12594
 
    interix[3-9]*)
12595
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12596
 
      # Instead, we relocate shared libraries at runtime.
12597
 
      ;;
12598
 
    sysv4*MP*)
12599
 
      if test -d /usr/nec; then
12600
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12601
 
      fi
12602
 
      ;;
12603
 
    hpux*)
12604
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12605
 
      # not for PA HP-UX.
12606
 
      case $host_cpu in
12607
 
      hppa*64*|ia64*)
12608
 
        ;;
12609
 
      *)
12610
 
        lt_prog_compiler_pic_CXX='-fPIC'
12611
 
        ;;
12612
 
      esac
12613
 
      ;;
12614
 
    *)
12615
 
      lt_prog_compiler_pic_CXX='-fPIC'
12616
 
      ;;
12617
 
    esac
12618
 
  else
12619
 
    case $host_os in
12620
 
      aix[4-9]*)
12621
 
        # All AIX code is PIC.
12622
 
        if test "$host_cpu" = ia64; then
12623
 
          # AIX 5 now supports IA64 processor
12624
 
          lt_prog_compiler_static_CXX='-Bstatic'
12625
 
        else
12626
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12627
 
        fi
12628
 
        ;;
12629
 
      chorus*)
12630
 
        case $cc_basename in
12631
 
        cxch68*)
12632
 
          # Green Hills C++ Compiler
12633
 
          # _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"
12634
 
          ;;
12635
 
        esac
12636
 
        ;;
12637
 
       darwin*)
12638
 
         # PIC is the default on this platform
12639
 
         # Common symbols not allowed in MH_DYLIB files
12640
 
         case $cc_basename in
12641
 
           xlc*)
12642
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12643
 
           lt_prog_compiler_wl_CXX='-Wl,'
12644
 
           ;;
12645
 
         esac
12646
 
       ;;
12647
 
      dgux*)
12648
 
        case $cc_basename in
12649
 
          ec++*)
12650
 
            lt_prog_compiler_pic_CXX='-KPIC'
12651
 
            ;;
12652
 
          ghcx*)
12653
 
            # Green Hills C++ Compiler
12654
 
            lt_prog_compiler_pic_CXX='-pic'
12655
 
            ;;
12656
 
          *)
12657
 
            ;;
12658
 
        esac
12659
 
        ;;
12660
 
      freebsd* | dragonfly*)
12661
 
        # FreeBSD uses GNU C++
12662
 
        ;;
12663
 
      hpux9* | hpux10* | hpux11*)
12664
 
        case $cc_basename in
12665
 
          CC*)
12666
 
            lt_prog_compiler_wl_CXX='-Wl,'
12667
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12668
 
            if test "$host_cpu" != ia64; then
12669
 
              lt_prog_compiler_pic_CXX='+Z'
12670
 
            fi
12671
 
            ;;
12672
 
          aCC*)
12673
 
            lt_prog_compiler_wl_CXX='-Wl,'
12674
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12675
 
            case $host_cpu in
12676
 
            hppa*64*|ia64*)
12677
 
              # +Z the default
12678
 
              ;;
12679
 
            *)
12680
 
              lt_prog_compiler_pic_CXX='+Z'
12681
 
              ;;
12682
 
            esac
12683
 
            ;;
12684
 
          *)
12685
 
            ;;
12686
 
        esac
12687
 
        ;;
12688
 
      interix*)
12689
 
        # This is c89, which is MS Visual C++ (no shared libs)
12690
 
        # Anyone wants to do a port?
12691
 
        ;;
12692
 
      irix5* | irix6* | nonstopux*)
12693
 
        case $cc_basename in
12694
 
          CC*)
12695
 
            lt_prog_compiler_wl_CXX='-Wl,'
12696
 
            lt_prog_compiler_static_CXX='-non_shared'
12697
 
            # CC pic flag -KPIC is the default.
12698
 
            ;;
12699
 
          *)
12700
 
            ;;
12701
 
        esac
12702
 
        ;;
12703
 
      linux* | k*bsd*-gnu)
12704
 
        case $cc_basename in
12705
 
          KCC*)
12706
 
            # KAI C++ Compiler
12707
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12708
 
            lt_prog_compiler_pic_CXX='-fPIC'
12709
 
            ;;
12710
 
          icpc* | ecpc*)
12711
 
            # Intel C++
12712
 
            lt_prog_compiler_wl_CXX='-Wl,'
12713
 
            lt_prog_compiler_pic_CXX='-KPIC'
12714
 
            lt_prog_compiler_static_CXX='-static'
12715
 
            ;;
12716
 
          pgCC* | pgcpp*)
12717
 
            # Portland Group C++ compiler.
12718
 
            lt_prog_compiler_wl_CXX='-Wl,'
12719
 
            lt_prog_compiler_pic_CXX='-fpic'
12720
 
            lt_prog_compiler_static_CXX='-Bstatic'
12721
 
            ;;
12722
 
          cxx*)
12723
 
            # Compaq C++
12724
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12725
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12726
 
            lt_prog_compiler_pic_CXX=
12727
 
            lt_prog_compiler_static_CXX='-non_shared'
12728
 
            ;;
12729
 
          *)
12730
 
            case `$CC -V 2>&1 | sed 5q` in
12731
 
            *Sun\ C*)
12732
 
              # Sun C++ 5.9
12733
 
              lt_prog_compiler_pic_CXX='-KPIC'
12734
 
              lt_prog_compiler_static_CXX='-Bstatic'
12735
 
              lt_prog_compiler_wl_CXX='-Qoption ld '
12736
 
              ;;
12737
 
            esac
12738
 
            ;;
12739
 
        esac
12740
 
        ;;
12741
 
      lynxos*)
12742
 
        ;;
12743
 
      m88k*)
12744
 
        ;;
12745
 
      mvs*)
12746
 
        case $cc_basename in
12747
 
          cxx*)
12748
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12749
 
            ;;
12750
 
          *)
12751
 
            ;;
12752
 
        esac
12753
 
        ;;
12754
 
      netbsd*)
12755
 
        ;;
12756
 
      osf3* | osf4* | osf5*)
12757
 
        case $cc_basename in
12758
 
          KCC*)
12759
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12760
 
            ;;
12761
 
          RCC*)
12762
 
            # Rational C++ 2.4.1
12763
 
            lt_prog_compiler_pic_CXX='-pic'
12764
 
            ;;
12765
 
          cxx*)
12766
 
            # Digital/Compaq C++
12767
 
            lt_prog_compiler_wl_CXX='-Wl,'
12768
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12769
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12770
 
            lt_prog_compiler_pic_CXX=
12771
 
            lt_prog_compiler_static_CXX='-non_shared'
12772
 
            ;;
12773
 
          *)
12774
 
            ;;
12775
 
        esac
12776
 
        ;;
12777
 
      psos*)
12778
 
        ;;
12779
 
      solaris*)
12780
 
        case $cc_basename in
12781
 
          CC*)
12782
 
            # Sun C++ 4.2, 5.x and Centerline C++
12783
 
            lt_prog_compiler_pic_CXX='-KPIC'
12784
 
            lt_prog_compiler_static_CXX='-Bstatic'
12785
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12786
 
            ;;
12787
 
          gcx*)
12788
 
            # Green Hills C++ Compiler
12789
 
            lt_prog_compiler_pic_CXX='-PIC'
12790
 
            ;;
12791
 
          *)
12792
 
            ;;
12793
 
        esac
12794
 
        ;;
12795
 
      sunos4*)
12796
 
        case $cc_basename in
12797
 
          CC*)
12798
 
            # Sun C++ 4.x
12799
 
            lt_prog_compiler_pic_CXX='-pic'
12800
 
            lt_prog_compiler_static_CXX='-Bstatic'
12801
 
            ;;
12802
 
          lcc*)
12803
 
            # Lucid
12804
 
            lt_prog_compiler_pic_CXX='-pic'
12805
 
            ;;
12806
 
          *)
12807
 
            ;;
12808
 
        esac
12809
 
        ;;
12810
 
      tandem*)
12811
 
        case $cc_basename in
12812
 
          NCC*)
12813
 
            # NonStop-UX NCC 3.20
12814
 
            lt_prog_compiler_pic_CXX='-KPIC'
12815
 
            ;;
12816
 
          *)
12817
 
            ;;
12818
 
        esac
12819
 
        ;;
12820
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12821
 
        case $cc_basename in
12822
 
          CC*)
12823
 
            lt_prog_compiler_wl_CXX='-Wl,'
12824
 
            lt_prog_compiler_pic_CXX='-KPIC'
12825
 
            lt_prog_compiler_static_CXX='-Bstatic'
12826
 
            ;;
12827
 
        esac
12828
 
        ;;
12829
 
      vxworks*)
12830
 
        ;;
12831
 
      *)
12832
 
        lt_prog_compiler_can_build_shared_CXX=no
12833
 
        ;;
12834
 
    esac
12835
 
  fi
12836
 
 
12837
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12838
 
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12839
 
 
12840
 
#
12841
 
# Check to make sure the PIC flag actually works.
12842
 
#
12843
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12844
 
 
12845
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12846
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12847
 
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12848
 
  $as_echo_n "(cached) " >&6
12849
 
else
12850
 
  lt_cv_prog_compiler_pic_works_CXX=no
12851
 
  ac_outfile=conftest.$ac_objext
12852
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12853
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12854
 
   # Insert the option either (1) after the last *FLAGS variable, or
12855
 
   # (2) before a word containing "conftest.", or (3) at the end.
12856
 
   # Note that $ac_compile itself does not contain backslashes and begins
12857
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12858
 
   # The option is referenced via a variable to avoid confusing sed.
12859
 
   lt_compile=`echo "$ac_compile" | $SED \
12860
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12861
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12862
 
   -e 's:$: $lt_compiler_flag:'`
12863
 
   (eval echo "\"\$as_me:12863: $lt_compile\"" >&5)
12864
 
   (eval "$lt_compile" 2>conftest.err)
12865
 
   ac_status=$?
12866
 
   cat conftest.err >&5
12867
 
   echo "$as_me:12867: \$? = $ac_status" >&5
12868
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12869
 
     # The compiler can only warn and ignore the option if not recognized
12870
 
     # So say no if there are warnings other than the usual output.
12871
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12872
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12873
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12874
 
       lt_cv_prog_compiler_pic_works_CXX=yes
12875
 
     fi
12876
 
   fi
12877
 
   $rm conftest*
12878
 
 
12879
 
fi
12880
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12881
 
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12882
 
 
12883
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12884
 
    case $lt_prog_compiler_pic_CXX in
12885
 
     "" | " "*) ;;
12886
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12887
 
     esac
12888
 
else
12889
 
    lt_prog_compiler_pic_CXX=
12890
 
     lt_prog_compiler_can_build_shared_CXX=no
12891
 
fi
12892
 
 
12893
 
fi
12894
 
case $host_os in
12895
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12896
 
  *djgpp*)
12897
 
    lt_prog_compiler_pic_CXX=
12898
 
    ;;
12899
 
  *)
12900
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12901
 
    ;;
12902
 
esac
12903
 
 
12904
 
#
12905
 
# Check to make sure the static flag actually works.
12906
 
#
12907
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12908
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12909
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12910
 
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12911
 
  $as_echo_n "(cached) " >&6
12912
 
else
12913
 
  lt_cv_prog_compiler_static_works_CXX=no
12914
 
   save_LDFLAGS="$LDFLAGS"
12915
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12916
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12917
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12918
 
     # The linker can only warn and ignore the option if not recognized
12919
 
     # So say no if there are warnings
12920
 
     if test -s conftest.err; then
12921
 
       # Append any errors to the config.log.
12922
 
       cat conftest.err 1>&5
12923
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12924
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12925
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12926
 
         lt_cv_prog_compiler_static_works_CXX=yes
12927
 
       fi
12928
 
     else
12929
 
       lt_cv_prog_compiler_static_works_CXX=yes
12930
 
     fi
12931
 
   fi
12932
 
   $rm -r conftest*
12933
 
   LDFLAGS="$save_LDFLAGS"
12934
 
 
12935
 
fi
12936
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12937
 
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12938
 
 
12939
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12940
 
    :
12941
 
else
12942
 
    lt_prog_compiler_static_CXX=
12943
 
fi
12944
 
 
12945
 
 
12946
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12947
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12948
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12949
 
  $as_echo_n "(cached) " >&6
12950
 
else
12951
 
  lt_cv_prog_compiler_c_o_CXX=no
12952
 
   $rm -r conftest 2>/dev/null
12953
 
   mkdir conftest
12954
 
   cd conftest
12955
 
   mkdir out
12956
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12957
 
 
12958
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12959
 
   # Insert the option either (1) after the last *FLAGS variable, or
12960
 
   # (2) before a word containing "conftest.", or (3) at the end.
12961
 
   # Note that $ac_compile itself does not contain backslashes and begins
12962
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12963
 
   lt_compile=`echo "$ac_compile" | $SED \
12964
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12965
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12966
 
   -e 's:$: $lt_compiler_flag:'`
12967
 
   (eval echo "\"\$as_me:12967: $lt_compile\"" >&5)
12968
 
   (eval "$lt_compile" 2>out/conftest.err)
12969
 
   ac_status=$?
12970
 
   cat out/conftest.err >&5
12971
 
   echo "$as_me:12971: \$? = $ac_status" >&5
12972
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12973
 
   then
12974
 
     # The compiler can only warn and ignore the option if not recognized
12975
 
     # So say no if there are warnings
12976
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12977
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12978
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12979
 
       lt_cv_prog_compiler_c_o_CXX=yes
12980
 
     fi
12981
 
   fi
12982
 
   chmod u+w . 2>&5
12983
 
   $rm conftest*
12984
 
   # SGI C++ compiler will create directory out/ii_files/ for
12985
 
   # template instantiation
12986
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12987
 
   $rm out/* && rmdir out
12988
 
   cd ..
12989
 
   rmdir conftest
12990
 
   $rm conftest*
12991
 
 
12992
 
fi
12993
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12994
 
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12995
 
 
12996
 
 
12997
 
hard_links="nottested"
12998
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12999
 
  # do not overwrite the value of need_locks provided by the user
13000
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13001
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
13002
 
  hard_links=yes
13003
 
  $rm conftest*
13004
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13005
 
  touch conftest.a
13006
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13007
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13008
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13009
 
$as_echo "$hard_links" >&6; }
13010
 
  if test "$hard_links" = no; then
13011
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13012
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13013
 
    need_locks=warn
13014
 
  fi
13015
 
else
13016
 
  need_locks=no
13017
 
fi
13018
 
 
13019
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13020
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13021
 
 
13022
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13023
 
  case $host_os in
13024
 
  aix[4-9]*)
13025
 
    # If we're using GNU nm, then we don't want the "-C" option.
13026
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13027
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13028
 
      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'
13029
 
    else
13030
 
      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'
13031
 
    fi
13032
 
    ;;
13033
 
  pw32*)
13034
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13035
 
  ;;
13036
 
  cygwin* | mingw*)
13037
 
    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'
13038
 
  ;;
13039
 
  *)
13040
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13041
 
  ;;
13042
 
  esac
13043
 
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13044
 
 
13045
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13046
 
$as_echo "$ld_shlibs_CXX" >&6; }
13047
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13048
 
 
13049
 
#
13050
 
# Do we need to explicitly link libc?
13051
 
#
13052
 
case "x$archive_cmds_need_lc_CXX" in
13053
 
x|xyes)
13054
 
  # Assume -lc should be added
13055
 
  archive_cmds_need_lc_CXX=yes
13056
 
 
13057
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13058
 
    case $archive_cmds_CXX in
13059
 
    *'~'*)
13060
 
      # FIXME: we may have to deal with multi-command sequences.
13061
 
      ;;
13062
 
    '$CC '*)
13063
 
      # Test whether the compiler implicitly links with -lc since on some
13064
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13065
 
      # to ld, don't add -lc before -lgcc.
13066
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13067
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13068
 
      $rm conftest*
13069
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13070
 
 
13071
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072
 
  (eval $ac_compile) 2>&5
13073
 
  ac_status=$?
13074
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075
 
  (exit $ac_status); } 2>conftest.err; then
13076
 
        soname=conftest
13077
 
        lib=conftest
13078
 
        libobjs=conftest.$ac_objext
13079
 
        deplibs=
13080
 
        wl=$lt_prog_compiler_wl_CXX
13081
 
        pic_flag=$lt_prog_compiler_pic_CXX
13082
 
        compiler_flags=-v
13083
 
        linker_flags=-v
13084
 
        verstring=
13085
 
        output_objdir=.
13086
 
        libname=conftest
13087
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13088
 
        allow_undefined_flag_CXX=
13089
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13090
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13091
 
  ac_status=$?
13092
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093
 
  (exit $ac_status); }
13094
 
        then
13095
 
          archive_cmds_need_lc_CXX=no
13096
 
        else
13097
 
          archive_cmds_need_lc_CXX=yes
13098
 
        fi
13099
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13100
 
      else
13101
 
        cat conftest.err 1>&5
13102
 
      fi
13103
 
      $rm conftest*
13104
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13105
 
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13106
 
      ;;
13107
 
    esac
13108
 
  fi
13109
 
  ;;
13110
 
esac
13111
 
 
13112
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13113
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13114
 
library_names_spec=
13115
 
libname_spec='lib$name'
13116
 
soname_spec=
13117
 
shrext_cmds=".so"
13118
 
postinstall_cmds=
13119
 
postuninstall_cmds=
13120
 
finish_cmds=
13121
 
finish_eval=
13122
 
shlibpath_var=
13123
 
shlibpath_overrides_runpath=unknown
13124
 
version_type=none
13125
 
dynamic_linker="$host_os ld.so"
13126
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13127
 
 
13128
 
need_lib_prefix=unknown
13129
 
hardcode_into_libs=no
13130
 
 
13131
 
# when you set need_version to no, make sure it does not cause -set_version
13132
 
# flags to be left without arguments
13133
 
need_version=unknown
13134
 
 
13135
 
case $host_os in
13136
 
aix3*)
13137
 
  version_type=linux
13138
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13139
 
  shlibpath_var=LIBPATH
13140
 
 
13141
 
  # AIX 3 has no versioning support, so we append a major version to the name.
13142
 
  soname_spec='${libname}${release}${shared_ext}$major'
13143
 
  ;;
13144
 
 
13145
 
aix[4-9]*)
13146
 
  version_type=linux
13147
 
  need_lib_prefix=no
13148
 
  need_version=no
13149
 
  hardcode_into_libs=yes
13150
 
  if test "$host_cpu" = ia64; then
13151
 
    # AIX 5 supports IA64
13152
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13153
 
    shlibpath_var=LD_LIBRARY_PATH
13154
 
  else
13155
 
    # With GCC up to 2.95.x, collect2 would create an import file
13156
 
    # for dependence libraries.  The import file would start with
13157
 
    # the line `#! .'.  This would cause the generated library to
13158
 
    # depend on `.', always an invalid library.  This was fixed in
13159
 
    # development snapshots of GCC prior to 3.0.
13160
 
    case $host_os in
13161
 
      aix4 | aix4.[01] | aix4.[01].*)
13162
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13163
 
           echo ' yes '
13164
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13165
 
        :
13166
 
      else
13167
 
        can_build_shared=no
13168
 
      fi
13169
 
      ;;
13170
 
    esac
13171
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13172
 
    # soname into executable. Probably we can add versioning support to
13173
 
    # collect2, so additional links can be useful in future.
13174
 
    if test "$aix_use_runtimelinking" = yes; then
13175
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13176
 
      # instead of lib<name>.a to let people know that these are not
13177
 
      # typical AIX shared libraries.
13178
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179
 
    else
13180
 
      # We preserve .a as extension for shared libraries through AIX4.2
13181
 
      # and later when we are not doing run time linking.
13182
 
      library_names_spec='${libname}${release}.a $libname.a'
13183
 
      soname_spec='${libname}${release}${shared_ext}$major'
13184
 
    fi
13185
 
    shlibpath_var=LIBPATH
13186
 
  fi
13187
 
  ;;
13188
 
 
13189
 
amigaos*)
13190
 
  library_names_spec='$libname.ixlibrary $libname.a'
13191
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13192
 
  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'
13193
 
  ;;
13194
 
 
13195
 
beos*)
13196
 
  library_names_spec='${libname}${shared_ext}'
13197
 
  dynamic_linker="$host_os ld.so"
13198
 
  shlibpath_var=LIBRARY_PATH
13199
 
  ;;
13200
 
 
13201
 
bsdi[45]*)
13202
 
  version_type=linux
13203
 
  need_version=no
13204
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205
 
  soname_spec='${libname}${release}${shared_ext}$major'
13206
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13207
 
  shlibpath_var=LD_LIBRARY_PATH
13208
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13209
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13210
 
  # the default ld.so.conf also contains /usr/contrib/lib and
13211
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13212
 
  # libtool to hard-code these into programs
13213
 
  ;;
13214
 
 
13215
 
cygwin* | mingw* | pw32*)
13216
 
  version_type=windows
13217
 
  shrext_cmds=".dll"
13218
 
  need_version=no
13219
 
  need_lib_prefix=no
13220
 
 
13221
 
  case $GCC,$host_os in
13222
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
13223
 
    library_names_spec='$libname.dll.a'
13224
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13225
 
    postinstall_cmds='base_file=`basename \${file}`~
13226
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13227
 
      dldir=$destdir/`dirname \$dlpath`~
13228
 
      test -d \$dldir || mkdir -p \$dldir~
13229
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13230
 
      chmod a+x \$dldir/$dlname'
13231
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13232
 
      dlpath=$dir/\$dldll~
13233
 
       $rm \$dlpath'
13234
 
    shlibpath_overrides_runpath=yes
13235
 
 
13236
 
    case $host_os in
13237
 
    cygwin*)
13238
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13239
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13240
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13241
 
      ;;
13242
 
    mingw*)
13243
 
      # MinGW DLLs use traditional 'lib' prefix
13244
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13245
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13246
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13247
 
        # It is most probably a Windows format PATH printed by
13248
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13249
 
        # path with ; separators, and with drive letters. We can handle the
13250
 
        # drive letters (cygwin fileutils understands them), so leave them,
13251
 
        # especially as we might pass files found there to a mingw objdump,
13252
 
        # which wouldn't understand a cygwinified path. Ahh.
13253
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13254
 
      else
13255
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13256
 
      fi
13257
 
      ;;
13258
 
    pw32*)
13259
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13260
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13261
 
      ;;
13262
 
    esac
13263
 
    ;;
13264
 
 
13265
 
  *)
13266
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13267
 
    ;;
13268
 
  esac
13269
 
  dynamic_linker='Win32 ld.exe'
13270
 
  # FIXME: first we should search . and the directory the executable is in
13271
 
  shlibpath_var=PATH
13272
 
  ;;
13273
 
 
13274
 
darwin* | rhapsody*)
13275
 
  dynamic_linker="$host_os dyld"
13276
 
  version_type=darwin
13277
 
  need_lib_prefix=no
13278
 
  need_version=no
13279
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13280
 
  soname_spec='${libname}${release}${major}$shared_ext'
13281
 
  shlibpath_overrides_runpath=yes
13282
 
  shlibpath_var=DYLD_LIBRARY_PATH
13283
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13284
 
 
13285
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13286
 
  ;;
13287
 
 
13288
 
dgux*)
13289
 
  version_type=linux
13290
 
  need_lib_prefix=no
13291
 
  need_version=no
13292
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13293
 
  soname_spec='${libname}${release}${shared_ext}$major'
13294
 
  shlibpath_var=LD_LIBRARY_PATH
13295
 
  ;;
13296
 
 
13297
 
freebsd1*)
13298
 
  dynamic_linker=no
13299
 
  ;;
13300
 
 
13301
 
freebsd* | dragonfly*)
13302
 
  # DragonFly does not have aout.  When/if they implement a new
13303
 
  # versioning mechanism, adjust this.
13304
 
  if test -x /usr/bin/objformat; then
13305
 
    objformat=`/usr/bin/objformat`
13306
 
  else
13307
 
    case $host_os in
13308
 
    freebsd[123]*) objformat=aout ;;
13309
 
    *) objformat=elf ;;
13310
 
    esac
13311
 
  fi
13312
 
  version_type=freebsd-$objformat
13313
 
  case $version_type in
13314
 
    freebsd-elf*)
13315
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13316
 
      need_version=no
13317
 
      need_lib_prefix=no
13318
 
      ;;
13319
 
    freebsd-*)
13320
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13321
 
      need_version=yes
13322
 
      ;;
13323
 
  esac
13324
 
  shlibpath_var=LD_LIBRARY_PATH
13325
 
  case $host_os in
13326
 
  freebsd2*)
13327
 
    shlibpath_overrides_runpath=yes
13328
 
    ;;
13329
 
  freebsd3.[01]* | freebsdelf3.[01]*)
13330
 
    shlibpath_overrides_runpath=yes
13331
 
    hardcode_into_libs=yes
13332
 
    ;;
13333
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13334
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13335
 
    shlibpath_overrides_runpath=no
13336
 
    hardcode_into_libs=yes
13337
 
    ;;
13338
 
  *) # from 4.6 on, and DragonFly
13339
 
    shlibpath_overrides_runpath=yes
13340
 
    hardcode_into_libs=yes
13341
 
    ;;
13342
 
  esac
13343
 
  ;;
13344
 
 
13345
 
gnu*)
13346
 
  version_type=linux
13347
 
  need_lib_prefix=no
13348
 
  need_version=no
13349
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13350
 
  soname_spec='${libname}${release}${shared_ext}$major'
13351
 
  shlibpath_var=LD_LIBRARY_PATH
13352
 
  hardcode_into_libs=yes
13353
 
  ;;
13354
 
 
13355
 
hpux9* | hpux10* | hpux11*)
13356
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13357
 
  # link against other versions.
13358
 
  version_type=sunos
13359
 
  need_lib_prefix=no
13360
 
  need_version=no
13361
 
  case $host_cpu in
13362
 
  ia64*)
13363
 
    shrext_cmds='.so'
13364
 
    hardcode_into_libs=yes
13365
 
    dynamic_linker="$host_os dld.so"
13366
 
    shlibpath_var=LD_LIBRARY_PATH
13367
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13368
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369
 
    soname_spec='${libname}${release}${shared_ext}$major'
13370
 
    if test "X$HPUX_IA64_MODE" = X32; then
13371
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13372
 
    else
13373
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13374
 
    fi
13375
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13376
 
    ;;
13377
 
   hppa*64*)
13378
 
     shrext_cmds='.sl'
13379
 
     hardcode_into_libs=yes
13380
 
     dynamic_linker="$host_os dld.sl"
13381
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13382
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13383
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13384
 
     soname_spec='${libname}${release}${shared_ext}$major'
13385
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13386
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13387
 
     ;;
13388
 
   *)
13389
 
    shrext_cmds='.sl'
13390
 
    dynamic_linker="$host_os dld.sl"
13391
 
    shlibpath_var=SHLIB_PATH
13392
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13393
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13394
 
    soname_spec='${libname}${release}${shared_ext}$major'
13395
 
    ;;
13396
 
  esac
13397
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13398
 
  postinstall_cmds='chmod 555 $lib'
13399
 
  ;;
13400
 
 
13401
 
interix[3-9]*)
13402
 
  version_type=linux
13403
 
  need_lib_prefix=no
13404
 
  need_version=no
13405
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13406
 
  soname_spec='${libname}${release}${shared_ext}$major'
13407
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13408
 
  shlibpath_var=LD_LIBRARY_PATH
13409
 
  shlibpath_overrides_runpath=no
13410
 
  hardcode_into_libs=yes
13411
 
  ;;
13412
 
 
13413
 
irix5* | irix6* | nonstopux*)
13414
 
  case $host_os in
13415
 
    nonstopux*) version_type=nonstopux ;;
13416
 
    *)
13417
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
13418
 
                version_type=linux
13419
 
        else
13420
 
                version_type=irix
13421
 
        fi ;;
13422
 
  esac
13423
 
  need_lib_prefix=no
13424
 
  need_version=no
13425
 
  soname_spec='${libname}${release}${shared_ext}$major'
13426
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13427
 
  case $host_os in
13428
 
  irix5* | nonstopux*)
13429
 
    libsuff= shlibsuff=
13430
 
    ;;
13431
 
  *)
13432
 
    case $LD in # libtool.m4 will add one of these switches to LD
13433
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13434
 
      libsuff= shlibsuff= libmagic=32-bit;;
13435
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13436
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13437
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13438
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13439
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13440
 
    esac
13441
 
    ;;
13442
 
  esac
13443
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13444
 
  shlibpath_overrides_runpath=no
13445
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13446
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13447
 
  hardcode_into_libs=yes
13448
 
  ;;
13449
 
 
13450
 
# No shared lib support for Linux oldld, aout, or coff.
13451
 
linux*oldld* | linux*aout* | linux*coff*)
13452
 
  dynamic_linker=no
13453
 
  ;;
13454
 
 
13455
 
# This must be Linux ELF.
13456
 
linux* | k*bsd*-gnu)
13457
 
  version_type=linux
13458
 
  need_lib_prefix=no
13459
 
  need_version=no
13460
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461
 
  soname_spec='${libname}${release}${shared_ext}$major'
13462
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13463
 
  shlibpath_var=LD_LIBRARY_PATH
13464
 
  shlibpath_overrides_runpath=no
13465
 
  # This implies no fast_install, which is unacceptable.
13466
 
  # Some rework will be needed to allow for fast_install
13467
 
  # before this can be enabled.
13468
 
  hardcode_into_libs=yes
13469
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13470
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13471
 
 
13472
 
  # Append ld.so.conf contents to the search path
13473
 
  if test -f /etc/ld.so.conf; then
13474
 
    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' ' '`
13475
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13476
 
  fi
13477
 
 
13478
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13479
 
  # powerpc, because MkLinux only supported shared libraries with the
13480
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13481
 
  # most powerpc-linux boxes support dynamic linking these days and
13482
 
  # people can always --disable-shared, the test was removed, and we
13483
 
  # assume the GNU/Linux dynamic linker is in use.
13484
 
  dynamic_linker='GNU/Linux ld.so'
13485
 
  ;;
13486
 
 
13487
 
netbsd*)
13488
 
  version_type=sunos
13489
 
  need_lib_prefix=no
13490
 
  need_version=no
13491
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13492
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13493
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13494
 
    dynamic_linker='NetBSD (a.out) ld.so'
13495
 
  else
13496
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13497
 
    soname_spec='${libname}${release}${shared_ext}$major'
13498
 
    dynamic_linker='NetBSD ld.elf_so'
13499
 
  fi
13500
 
  shlibpath_var=LD_LIBRARY_PATH
13501
 
  shlibpath_overrides_runpath=yes
13502
 
  hardcode_into_libs=yes
13503
 
  ;;
13504
 
 
13505
 
newsos6)
13506
 
  version_type=linux
13507
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508
 
  shlibpath_var=LD_LIBRARY_PATH
13509
 
  shlibpath_overrides_runpath=yes
13510
 
  ;;
13511
 
 
13512
 
nto-qnx*)
13513
 
  version_type=linux
13514
 
  need_lib_prefix=no
13515
 
  need_version=no
13516
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517
 
  soname_spec='${libname}${release}${shared_ext}$major'
13518
 
  shlibpath_var=LD_LIBRARY_PATH
13519
 
  shlibpath_overrides_runpath=yes
13520
 
  ;;
13521
 
 
13522
 
openbsd*)
13523
 
  version_type=sunos
13524
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13525
 
  need_lib_prefix=no
13526
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13527
 
  case $host_os in
13528
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13529
 
    *)                         need_version=no  ;;
13530
 
  esac
13531
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13532
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13533
 
  shlibpath_var=LD_LIBRARY_PATH
13534
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13535
 
    case $host_os in
13536
 
      openbsd2.[89] | openbsd2.[89].*)
13537
 
        shlibpath_overrides_runpath=no
13538
 
        ;;
13539
 
      *)
13540
 
        shlibpath_overrides_runpath=yes
13541
 
        ;;
13542
 
      esac
13543
 
  else
13544
 
    shlibpath_overrides_runpath=yes
13545
 
  fi
13546
 
  ;;
13547
 
 
13548
 
os2*)
13549
 
  libname_spec='$name'
13550
 
  shrext_cmds=".dll"
13551
 
  need_lib_prefix=no
13552
 
  library_names_spec='$libname${shared_ext} $libname.a'
13553
 
  dynamic_linker='OS/2 ld.exe'
13554
 
  shlibpath_var=LIBPATH
13555
 
  ;;
13556
 
 
13557
 
osf3* | osf4* | osf5*)
13558
 
  version_type=osf
13559
 
  need_lib_prefix=no
13560
 
  need_version=no
13561
 
  soname_spec='${libname}${release}${shared_ext}$major'
13562
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563
 
  shlibpath_var=LD_LIBRARY_PATH
13564
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13565
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13566
 
  ;;
13567
 
 
13568
 
rdos*)
13569
 
  dynamic_linker=no
13570
 
  ;;
13571
 
 
13572
 
solaris*)
13573
 
  version_type=linux
13574
 
  need_lib_prefix=no
13575
 
  need_version=no
13576
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577
 
  soname_spec='${libname}${release}${shared_ext}$major'
13578
 
  shlibpath_var=LD_LIBRARY_PATH
13579
 
  shlibpath_overrides_runpath=yes
13580
 
  hardcode_into_libs=yes
13581
 
  # ldd complains unless libraries are executable
13582
 
  postinstall_cmds='chmod +x $lib'
13583
 
  ;;
13584
 
 
13585
 
sunos4*)
13586
 
  version_type=sunos
13587
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13588
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13589
 
  shlibpath_var=LD_LIBRARY_PATH
13590
 
  shlibpath_overrides_runpath=yes
13591
 
  if test "$with_gnu_ld" = yes; then
13592
 
    need_lib_prefix=no
13593
 
  fi
13594
 
  need_version=yes
13595
 
  ;;
13596
 
 
13597
 
sysv4 | sysv4.3*)
13598
 
  version_type=linux
13599
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600
 
  soname_spec='${libname}${release}${shared_ext}$major'
13601
 
  shlibpath_var=LD_LIBRARY_PATH
13602
 
  case $host_vendor in
13603
 
    sni)
13604
 
      shlibpath_overrides_runpath=no
13605
 
      need_lib_prefix=no
13606
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13607
 
      runpath_var=LD_RUN_PATH
13608
 
      ;;
13609
 
    siemens)
13610
 
      need_lib_prefix=no
13611
 
      ;;
13612
 
    motorola)
13613
 
      need_lib_prefix=no
13614
 
      need_version=no
13615
 
      shlibpath_overrides_runpath=no
13616
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13617
 
      ;;
13618
 
  esac
13619
 
  ;;
13620
 
 
13621
 
sysv4*MP*)
13622
 
  if test -d /usr/nec ;then
13623
 
    version_type=linux
13624
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13625
 
    soname_spec='$libname${shared_ext}.$major'
13626
 
    shlibpath_var=LD_LIBRARY_PATH
13627
 
  fi
13628
 
  ;;
13629
 
 
13630
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13631
 
  version_type=freebsd-elf
13632
 
  need_lib_prefix=no
13633
 
  need_version=no
13634
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13635
 
  soname_spec='${libname}${release}${shared_ext}$major'
13636
 
  shlibpath_var=LD_LIBRARY_PATH
13637
 
  hardcode_into_libs=yes
13638
 
  if test "$with_gnu_ld" = yes; then
13639
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13640
 
    shlibpath_overrides_runpath=no
13641
 
  else
13642
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13643
 
    shlibpath_overrides_runpath=yes
13644
 
    case $host_os in
13645
 
      sco3.2v5*)
13646
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13647
 
        ;;
13648
 
    esac
13649
 
  fi
13650
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13651
 
  ;;
13652
 
 
13653
 
uts4*)
13654
 
  version_type=linux
13655
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656
 
  soname_spec='${libname}${release}${shared_ext}$major'
13657
 
  shlibpath_var=LD_LIBRARY_PATH
13658
 
  ;;
13659
 
 
13660
 
*)
13661
 
  dynamic_linker=no
13662
 
  ;;
13663
 
esac
13664
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13665
 
$as_echo "$dynamic_linker" >&6; }
13666
 
test "$dynamic_linker" = no && can_build_shared=no
13667
 
 
13668
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13669
 
  $as_echo_n "(cached) " >&6
13670
 
else
13671
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13672
 
fi
13673
 
 
13674
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13675
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13676
 
  $as_echo_n "(cached) " >&6
13677
 
else
13678
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13679
 
fi
13680
 
 
13681
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13682
 
 
13683
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13684
 
if test "$GCC" = yes; then
13685
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13686
 
fi
13687
 
 
13688
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13689
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13690
 
hardcode_action_CXX=
13691
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13692
 
   test -n "$runpath_var_CXX" || \
13693
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13694
 
 
13695
 
  # We can hardcode non-existant directories.
13696
 
  if test "$hardcode_direct_CXX" != no &&
13697
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13698
 
     # have to relink, otherwise we might link with an installed library
13699
 
     # when we should be linking with a yet-to-be-installed one
13700
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13701
 
     test "$hardcode_minus_L_CXX" != no; then
13702
 
    # Linking always hardcodes the temporary library directory.
13703
 
    hardcode_action_CXX=relink
13704
 
  else
13705
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13706
 
    hardcode_action_CXX=immediate
13707
 
  fi
13708
 
else
13709
 
  # We cannot hardcode anything, or else we can only hardcode existing
13710
 
  # directories.
13711
 
  hardcode_action_CXX=unsupported
13712
 
fi
13713
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13714
 
$as_echo "$hardcode_action_CXX" >&6; }
13715
 
 
13716
 
if test "$hardcode_action_CXX" = relink; then
13717
 
  # Fast installation is not supported
13718
 
  enable_fast_install=no
13719
 
elif test "$shlibpath_overrides_runpath" = yes ||
13720
 
     test "$enable_shared" = no; then
13721
 
  # Fast installation is not necessary
13722
 
  enable_fast_install=needless
13723
 
fi
13724
 
 
13725
 
 
13726
 
# The else clause should only fire when bootstrapping the
13727
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13728
 
# with your package, and you will get complaints that there are
13729
 
# no rules to generate ltmain.sh.
13730
 
if test -f "$ltmain"; then
13731
 
  # See if we are running on zsh, and set the options which allow our commands through
13732
 
  # without removal of \ escapes.
13733
 
  if test -n "${ZSH_VERSION+set}" ; then
13734
 
    setopt NO_GLOB_SUBST
13735
 
  fi
13736
 
  # Now quote all the things that may contain metacharacters while being
13737
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13738
 
  # variables and quote the copies for generation of the libtool script.
13739
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13740
 
    SED SHELL STRIP \
13741
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13742
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13743
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13744
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13745
 
    lt_cv_sys_global_symbol_to_c_name_address \
13746
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13747
 
    old_postinstall_cmds old_postuninstall_cmds \
13748
 
    compiler_CXX \
13749
 
    CC_CXX \
13750
 
    LD_CXX \
13751
 
    lt_prog_compiler_wl_CXX \
13752
 
    lt_prog_compiler_pic_CXX \
13753
 
    lt_prog_compiler_static_CXX \
13754
 
    lt_prog_compiler_no_builtin_flag_CXX \
13755
 
    export_dynamic_flag_spec_CXX \
13756
 
    thread_safe_flag_spec_CXX \
13757
 
    whole_archive_flag_spec_CXX \
13758
 
    enable_shared_with_static_runtimes_CXX \
13759
 
    old_archive_cmds_CXX \
13760
 
    old_archive_from_new_cmds_CXX \
13761
 
    predep_objects_CXX \
13762
 
    postdep_objects_CXX \
13763
 
    predeps_CXX \
13764
 
    postdeps_CXX \
13765
 
    compiler_lib_search_path_CXX \
13766
 
    compiler_lib_search_dirs_CXX \
13767
 
    archive_cmds_CXX \
13768
 
    archive_expsym_cmds_CXX \
13769
 
    postinstall_cmds_CXX \
13770
 
    postuninstall_cmds_CXX \
13771
 
    old_archive_from_expsyms_cmds_CXX \
13772
 
    allow_undefined_flag_CXX \
13773
 
    no_undefined_flag_CXX \
13774
 
    export_symbols_cmds_CXX \
13775
 
    hardcode_libdir_flag_spec_CXX \
13776
 
    hardcode_libdir_flag_spec_ld_CXX \
13777
 
    hardcode_libdir_separator_CXX \
13778
 
    hardcode_automatic_CXX \
13779
 
    module_cmds_CXX \
13780
 
    module_expsym_cmds_CXX \
13781
 
    lt_cv_prog_compiler_c_o_CXX \
13782
 
    fix_srcfile_path_CXX \
13783
 
    exclude_expsyms_CXX \
13784
 
    include_expsyms_CXX; do
13785
 
 
13786
 
    case $var in
13787
 
    old_archive_cmds_CXX | \
13788
 
    old_archive_from_new_cmds_CXX | \
13789
 
    archive_cmds_CXX | \
13790
 
    archive_expsym_cmds_CXX | \
13791
 
    module_cmds_CXX | \
13792
 
    module_expsym_cmds_CXX | \
13793
 
    old_archive_from_expsyms_cmds_CXX | \
13794
 
    export_symbols_cmds_CXX | \
13795
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13796
 
    postinstall_cmds | postuninstall_cmds | \
13797
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13798
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13799
 
      # Double-quote double-evaled strings.
13800
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13801
 
      ;;
13802
 
    *)
13803
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13804
 
      ;;
13805
 
    esac
13806
 
  done
13807
 
 
13808
 
  case $lt_echo in
13809
 
  *'\$0 --fallback-echo"')
13810
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13811
 
    ;;
13812
 
  esac
13813
 
 
13814
 
cfgfile="$ofile"
13815
 
 
13816
 
  cat <<__EOF__ >> "$cfgfile"
13817
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13818
 
 
13819
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13820
 
 
13821
 
# Shell to use when invoking shell scripts.
13822
 
SHELL=$lt_SHELL
13823
 
 
13824
 
# Whether or not to build shared libraries.
13825
 
build_libtool_libs=$enable_shared
13826
 
 
13827
 
# Whether or not to build static libraries.
13828
 
build_old_libs=$enable_static
13829
 
 
13830
 
# Whether or not to add -lc for building shared libraries.
13831
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13832
 
 
13833
 
# Whether or not to disallow shared libs when runtime libs are static
13834
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13835
 
 
13836
 
# Whether or not to optimize for fast installation.
13837
 
fast_install=$enable_fast_install
13838
 
 
13839
 
# The host system.
13840
 
host_alias=$host_alias
13841
 
host=$host
13842
 
host_os=$host_os
13843
 
 
13844
 
# The build system.
13845
 
build_alias=$build_alias
13846
 
build=$build
13847
 
build_os=$build_os
13848
 
 
13849
 
# An echo program that does not interpret backslashes.
13850
 
echo=$lt_echo
13851
 
 
13852
 
# The archiver.
13853
 
AR=$lt_AR
13854
 
AR_FLAGS=$lt_AR_FLAGS
13855
 
 
13856
 
# A C compiler.
13857
 
LTCC=$lt_LTCC
13858
 
 
13859
 
# LTCC compiler flags.
13860
 
LTCFLAGS=$lt_LTCFLAGS
13861
 
 
13862
 
# A language-specific compiler.
13863
 
CC=$lt_compiler_CXX
13864
 
 
13865
 
# Is the compiler the GNU C compiler?
13866
 
with_gcc=$GCC_CXX
13867
 
 
13868
 
# An ERE matcher.
13869
 
EGREP=$lt_EGREP
13870
 
 
13871
 
# The linker used to build libraries.
13872
 
LD=$lt_LD_CXX
13873
 
 
13874
 
# Whether we need hard or soft links.
13875
 
LN_S=$lt_LN_S
13876
 
 
13877
 
# A BSD-compatible nm program.
13878
 
NM=$lt_NM
13879
 
 
13880
 
# A symbol stripping program
13881
 
STRIP=$lt_STRIP
13882
 
 
13883
 
# Used to examine libraries when file_magic_cmd begins "file"
13884
 
MAGIC_CMD=$MAGIC_CMD
13885
 
 
13886
 
# Used on cygwin: DLL creation program.
13887
 
DLLTOOL="$DLLTOOL"
13888
 
 
13889
 
# Used on cygwin: object dumper.
13890
 
OBJDUMP="$OBJDUMP"
13891
 
 
13892
 
# Used on cygwin: assembler.
13893
 
AS="$AS"
13894
 
 
13895
 
# The name of the directory that contains temporary libtool files.
13896
 
objdir=$objdir
13897
 
 
13898
 
# How to create reloadable object files.
13899
 
reload_flag=$lt_reload_flag
13900
 
reload_cmds=$lt_reload_cmds
13901
 
 
13902
 
# How to pass a linker flag through the compiler.
13903
 
wl=$lt_lt_prog_compiler_wl_CXX
13904
 
 
13905
 
# Object file suffix (normally "o").
13906
 
objext="$ac_objext"
13907
 
 
13908
 
# Old archive suffix (normally "a").
13909
 
libext="$libext"
13910
 
 
13911
 
# Shared library suffix (normally ".so").
13912
 
shrext_cmds='$shrext_cmds'
13913
 
 
13914
 
# Executable file suffix (normally "").
13915
 
exeext="$exeext"
13916
 
 
13917
 
# Additional compiler flags for building library objects.
13918
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13919
 
pic_mode=$pic_mode
13920
 
 
13921
 
# What is the maximum length of a command?
13922
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13923
 
 
13924
 
# Does compiler simultaneously support -c and -o options?
13925
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13926
 
 
13927
 
# Must we lock files when doing compilation?
13928
 
need_locks=$lt_need_locks
13929
 
 
13930
 
# Do we need the lib prefix for modules?
13931
 
need_lib_prefix=$need_lib_prefix
13932
 
 
13933
 
# Do we need a version for libraries?
13934
 
need_version=$need_version
13935
 
 
13936
 
# Whether dlopen is supported.
13937
 
dlopen_support=$enable_dlopen
13938
 
 
13939
 
# Whether dlopen of programs is supported.
13940
 
dlopen_self=$enable_dlopen_self
13941
 
 
13942
 
# Whether dlopen of statically linked programs is supported.
13943
 
dlopen_self_static=$enable_dlopen_self_static
13944
 
 
13945
 
# Compiler flag to prevent dynamic linking.
13946
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13947
 
 
13948
 
# Compiler flag to turn off builtin functions.
13949
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13950
 
 
13951
 
# Compiler flag to allow reflexive dlopens.
13952
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13953
 
 
13954
 
# Compiler flag to generate shared objects directly from archives.
13955
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13956
 
 
13957
 
# Compiler flag to generate thread-safe objects.
13958
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13959
 
 
13960
 
# Library versioning type.
13961
 
version_type=$version_type
13962
 
 
13963
 
# Format of library name prefix.
13964
 
libname_spec=$lt_libname_spec
13965
 
 
13966
 
# List of archive names.  First name is the real one, the rest are links.
13967
 
# The last name is the one that the linker finds with -lNAME.
13968
 
library_names_spec=$lt_library_names_spec
13969
 
 
13970
 
# The coded name of the library, if different from the real name.
13971
 
soname_spec=$lt_soname_spec
13972
 
 
13973
 
# Commands used to build and install an old-style archive.
13974
 
RANLIB=$lt_RANLIB
13975
 
old_archive_cmds=$lt_old_archive_cmds_CXX
13976
 
old_postinstall_cmds=$lt_old_postinstall_cmds
13977
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13978
 
 
13979
 
# Create an old-style archive from a shared archive.
13980
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13981
 
 
13982
 
# Create a temporary old-style archive to link instead of a shared archive.
13983
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13984
 
 
13985
 
# Commands used to build and install a shared archive.
13986
 
archive_cmds=$lt_archive_cmds_CXX
13987
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13988
 
postinstall_cmds=$lt_postinstall_cmds
13989
 
postuninstall_cmds=$lt_postuninstall_cmds
13990
 
 
13991
 
# Commands used to build a loadable module (assumed same as above if empty)
13992
 
module_cmds=$lt_module_cmds_CXX
13993
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13994
 
 
13995
 
# Commands to strip libraries.
13996
 
old_striplib=$lt_old_striplib
13997
 
striplib=$lt_striplib
13998
 
 
13999
 
# Dependencies to place before the objects being linked to create a
14000
 
# shared library.
14001
 
predep_objects=$lt_predep_objects_CXX
14002
 
 
14003
 
# Dependencies to place after the objects being linked to create a
14004
 
# shared library.
14005
 
postdep_objects=$lt_postdep_objects_CXX
14006
 
 
14007
 
# Dependencies to place before the objects being linked to create a
14008
 
# shared library.
14009
 
predeps=$lt_predeps_CXX
14010
 
 
14011
 
# Dependencies to place after the objects being linked to create a
14012
 
# shared library.
14013
 
postdeps=$lt_postdeps_CXX
14014
 
 
14015
 
# The directories searched by this compiler when creating a shared
14016
 
# library
14017
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14018
 
 
14019
 
# The library search path used internally by the compiler when linking
14020
 
# a shared library.
14021
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14022
 
 
14023
 
# Method to check whether dependent libraries are shared objects.
14024
 
deplibs_check_method=$lt_deplibs_check_method
14025
 
 
14026
 
# Command to use when deplibs_check_method == file_magic.
14027
 
file_magic_cmd=$lt_file_magic_cmd
14028
 
 
14029
 
# Flag that allows shared libraries with undefined symbols to be built.
14030
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14031
 
 
14032
 
# Flag that forces no undefined symbols.
14033
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14034
 
 
14035
 
# Commands used to finish a libtool library installation in a directory.
14036
 
finish_cmds=$lt_finish_cmds
14037
 
 
14038
 
# Same as above, but a single script fragment to be evaled but not shown.
14039
 
finish_eval=$lt_finish_eval
14040
 
 
14041
 
# Take the output of nm and produce a listing of raw symbols and C names.
14042
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14043
 
 
14044
 
# Transform the output of nm in a proper C declaration
14045
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14046
 
 
14047
 
# Transform the output of nm in a C name address pair
14048
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14049
 
 
14050
 
# This is the shared library runtime path variable.
14051
 
runpath_var=$runpath_var
14052
 
 
14053
 
# This is the shared library path variable.
14054
 
shlibpath_var=$shlibpath_var
14055
 
 
14056
 
# Is shlibpath searched before the hard-coded library search path?
14057
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14058
 
 
14059
 
# How to hardcode a shared library path into an executable.
14060
 
hardcode_action=$hardcode_action_CXX
14061
 
 
14062
 
# Whether we should hardcode library paths into libraries.
14063
 
hardcode_into_libs=$hardcode_into_libs
14064
 
 
14065
 
# Flag to hardcode \$libdir into a binary during linking.
14066
 
# This must work even if \$libdir does not exist.
14067
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14068
 
 
14069
 
# If ld is used when linking, flag to hardcode \$libdir into
14070
 
# a binary during linking. This must work even if \$libdir does
14071
 
# not exist.
14072
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14073
 
 
14074
 
# Whether we need a single -rpath flag with a separated argument.
14075
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14076
 
 
14077
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14078
 
# resulting binary.
14079
 
hardcode_direct=$hardcode_direct_CXX
14080
 
 
14081
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14082
 
# resulting binary.
14083
 
hardcode_minus_L=$hardcode_minus_L_CXX
14084
 
 
14085
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14086
 
# the resulting binary.
14087
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14088
 
 
14089
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14090
 
# and all subsequent libraries and executables linked against it.
14091
 
hardcode_automatic=$hardcode_automatic_CXX
14092
 
 
14093
 
# Variables whose values should be saved in libtool wrapper scripts and
14094
 
# restored at relink time.
14095
 
variables_saved_for_relink="$variables_saved_for_relink"
14096
 
 
14097
 
# Whether libtool must link a program against all its dependency libraries.
14098
 
link_all_deplibs=$link_all_deplibs_CXX
14099
 
 
14100
 
# Compile-time system search path for libraries
14101
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14102
 
 
14103
 
# Run-time system search path for libraries
14104
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14105
 
 
14106
 
# Fix the shell variable \$srcfile for the compiler.
14107
 
fix_srcfile_path=$lt_fix_srcfile_path
14108
 
 
14109
 
# Set to yes if exported symbols are required.
14110
 
always_export_symbols=$always_export_symbols_CXX
14111
 
 
14112
 
# The commands to list exported symbols.
14113
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14114
 
 
14115
 
# The commands to extract the exported symbol list from a shared archive.
14116
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14117
 
 
14118
 
# Symbols that should not be listed in the preloaded symbols.
14119
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14120
 
 
14121
 
# Symbols that must always be exported.
14122
 
include_expsyms=$lt_include_expsyms_CXX
14123
 
 
14124
 
# ### END LIBTOOL TAG CONFIG: $tagname
14125
 
 
14126
 
__EOF__
14127
 
 
14128
 
 
14129
 
else
14130
 
  # If there is no Makefile yet, we rely on a make rule to execute
14131
 
  # `config.status --recheck' to rerun these tests and create the
14132
 
  # libtool script then.
14133
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14134
 
  if test -f "$ltmain_in"; then
14135
 
    test -f Makefile && make "$ltmain"
14136
 
  fi
14137
 
fi
14138
 
 
14139
 
 
14140
 
ac_ext=c
14141
 
ac_cpp='$CPP $CPPFLAGS'
14142
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14143
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14144
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14145
 
 
14146
 
CC=$lt_save_CC
14147
 
LDCXX=$LD
14148
 
LD=$lt_save_LD
14149
 
GCC=$lt_save_GCC
14150
 
with_gnu_ldcxx=$with_gnu_ld
14151
 
with_gnu_ld=$lt_save_with_gnu_ld
14152
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14153
 
lt_cv_path_LD=$lt_save_path_LD
14154
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14155
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14156
 
 
14157
 
        else
14158
 
          tagname=""
14159
 
        fi
14160
 
        ;;
14161
 
 
14162
 
      F77)
14163
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14164
 
 
14165
 
ac_ext=f
14166
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14167
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14169
 
 
14170
 
 
14171
 
archive_cmds_need_lc_F77=no
14172
 
allow_undefined_flag_F77=
14173
 
always_export_symbols_F77=no
14174
 
archive_expsym_cmds_F77=
14175
 
export_dynamic_flag_spec_F77=
14176
 
hardcode_direct_F77=no
14177
 
hardcode_libdir_flag_spec_F77=
14178
 
hardcode_libdir_flag_spec_ld_F77=
14179
 
hardcode_libdir_separator_F77=
14180
 
hardcode_minus_L_F77=no
14181
 
hardcode_automatic_F77=no
14182
 
module_cmds_F77=
14183
 
module_expsym_cmds_F77=
14184
 
link_all_deplibs_F77=unknown
14185
 
old_archive_cmds_F77=$old_archive_cmds
14186
 
no_undefined_flag_F77=
14187
 
whole_archive_flag_spec_F77=
14188
 
enable_shared_with_static_runtimes_F77=no
14189
 
 
14190
 
# Source file extension for f77 test sources.
14191
 
ac_ext=f
14192
 
 
14193
 
# Object file extension for compiled f77 test sources.
14194
 
objext=o
14195
 
objext_F77=$objext
14196
 
 
14197
 
# Code to be used in simple compile tests
14198
 
lt_simple_compile_test_code="\
14199
 
      subroutine t
14200
 
      return
14201
 
      end
14202
 
"
14203
 
 
14204
 
# Code to be used in simple link tests
14205
 
lt_simple_link_test_code="\
14206
 
      program t
14207
 
      end
14208
 
"
14209
 
 
14210
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14211
 
 
14212
 
# If no C compiler was specified, use CC.
14213
 
LTCC=${LTCC-"$CC"}
14214
 
 
14215
 
# If no C compiler flags were specified, use CFLAGS.
14216
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14217
 
 
14218
 
# Allow CC to be a program name with arguments.
14219
 
compiler=$CC
14220
 
 
14221
 
 
14222
 
# save warnings/boilerplate of simple test code
14223
 
ac_outfile=conftest.$ac_objext
14224
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14225
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14226
 
_lt_compiler_boilerplate=`cat conftest.err`
14227
 
$rm conftest*
14228
 
 
14229
 
ac_outfile=conftest.$ac_objext
14230
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14231
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14232
 
_lt_linker_boilerplate=`cat conftest.err`
14233
 
$rm -r conftest*
14234
 
 
14235
 
 
14236
 
# Allow CC to be a program name with arguments.
14237
 
lt_save_CC="$CC"
14238
 
CC=${F77-"f77"}
14239
 
compiler=$CC
14240
 
compiler_F77=$CC
14241
 
for cc_temp in $compiler""; do
14242
 
  case $cc_temp in
14243
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14244
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14245
 
    \-*) ;;
14246
 
    *) break;;
14247
 
  esac
14248
 
done
14249
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14250
 
 
14251
 
 
14252
 
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14253
 
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14254
 
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14255
 
$as_echo "$can_build_shared" >&6; }
14256
 
 
14257
 
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14258
 
$as_echo_n "checking whether to build shared libraries... " >&6; }
14259
 
test "$can_build_shared" = "no" && enable_shared=no
14260
 
 
14261
 
# On AIX, shared libraries and static libraries use the same namespace, and
14262
 
# are all built from PIC.
14263
 
case $host_os in
14264
 
aix3*)
14265
 
  test "$enable_shared" = yes && enable_static=no
14266
 
  if test -n "$RANLIB"; then
14267
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14268
 
    postinstall_cmds='$RANLIB $lib'
14269
 
  fi
14270
 
  ;;
14271
 
aix[4-9]*)
14272
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14273
 
    test "$enable_shared" = yes && enable_static=no
14274
 
  fi
14275
 
  ;;
14276
 
esac
14277
 
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14278
 
$as_echo "$enable_shared" >&6; }
14279
 
 
14280
 
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14281
 
$as_echo_n "checking whether to build static libraries... " >&6; }
14282
 
# Make sure either enable_shared or enable_static is yes.
14283
 
test "$enable_shared" = yes || enable_static=yes
14284
 
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14285
 
$as_echo "$enable_static" >&6; }
14286
 
 
14287
 
GCC_F77="$G77"
14288
 
LD_F77="$LD"
14289
 
 
14290
 
lt_prog_compiler_wl_F77=
14291
 
lt_prog_compiler_pic_F77=
14292
 
lt_prog_compiler_static_F77=
14293
 
 
14294
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14295
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14296
 
 
14297
 
  if test "$GCC" = yes; then
14298
 
    lt_prog_compiler_wl_F77='-Wl,'
14299
 
    lt_prog_compiler_static_F77='-static'
14300
 
 
14301
 
    case $host_os in
14302
 
      aix*)
14303
 
      # All AIX code is PIC.
14304
 
      if test "$host_cpu" = ia64; then
14305
 
        # AIX 5 now supports IA64 processor
14306
 
        lt_prog_compiler_static_F77='-Bstatic'
14307
 
      fi
14308
 
      ;;
14309
 
 
14310
 
    amigaos*)
14311
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14312
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14313
 
      # like `-m68040'.
14314
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14315
 
      ;;
14316
 
 
14317
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14318
 
      # PIC is the default for these OSes.
14319
 
      ;;
14320
 
 
14321
 
    mingw* | cygwin* | pw32* | os2*)
14322
 
      # This hack is so that the source file can tell whether it is being
14323
 
      # built for inclusion in a dll (and should export symbols for example).
14324
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14325
 
      # (--disable-auto-import) libraries
14326
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14327
 
      ;;
14328
 
 
14329
 
    darwin* | rhapsody*)
14330
 
      # PIC is the default on this platform
14331
 
      # Common symbols not allowed in MH_DYLIB files
14332
 
      lt_prog_compiler_pic_F77='-fno-common'
14333
 
      ;;
14334
 
 
14335
 
    interix[3-9]*)
14336
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14337
 
      # Instead, we relocate shared libraries at runtime.
14338
 
      ;;
14339
 
 
14340
 
    msdosdjgpp*)
14341
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14342
 
      # on systems that don't support them.
14343
 
      lt_prog_compiler_can_build_shared_F77=no
14344
 
      enable_shared=no
14345
 
      ;;
14346
 
 
14347
 
    sysv4*MP*)
14348
 
      if test -d /usr/nec; then
14349
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14350
 
      fi
14351
 
      ;;
14352
 
 
14353
 
    hpux*)
14354
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14355
 
      # not for PA HP-UX.
14356
 
      case $host_cpu in
14357
 
      hppa*64*|ia64*)
14358
 
        # +Z the default
14359
 
        ;;
14360
 
      *)
14361
 
        lt_prog_compiler_pic_F77='-fPIC'
14362
 
        ;;
14363
 
      esac
14364
 
      ;;
14365
 
 
14366
 
    *)
14367
 
      lt_prog_compiler_pic_F77='-fPIC'
14368
 
      ;;
14369
 
    esac
14370
 
  else
14371
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14372
 
    case $host_os in
14373
 
    aix*)
14374
 
      lt_prog_compiler_wl_F77='-Wl,'
14375
 
      if test "$host_cpu" = ia64; then
14376
 
        # AIX 5 now supports IA64 processor
14377
 
        lt_prog_compiler_static_F77='-Bstatic'
14378
 
      else
14379
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14380
 
      fi
14381
 
      ;;
14382
 
      darwin*)
14383
 
        # PIC is the default on this platform
14384
 
        # Common symbols not allowed in MH_DYLIB files
14385
 
       case $cc_basename in
14386
 
         xlc*)
14387
 
         lt_prog_compiler_pic_F77='-qnocommon'
14388
 
         lt_prog_compiler_wl_F77='-Wl,'
14389
 
         ;;
14390
 
       esac
14391
 
       ;;
14392
 
 
14393
 
    mingw* | cygwin* | pw32* | os2*)
14394
 
      # This hack is so that the source file can tell whether it is being
14395
 
      # built for inclusion in a dll (and should export symbols for example).
14396
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14397
 
      ;;
14398
 
 
14399
 
    hpux9* | hpux10* | hpux11*)
14400
 
      lt_prog_compiler_wl_F77='-Wl,'
14401
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14402
 
      # not for PA HP-UX.
14403
 
      case $host_cpu in
14404
 
      hppa*64*|ia64*)
14405
 
        # +Z the default
14406
 
        ;;
14407
 
      *)
14408
 
        lt_prog_compiler_pic_F77='+Z'
14409
 
        ;;
14410
 
      esac
14411
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14412
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14413
 
      ;;
14414
 
 
14415
 
    irix5* | irix6* | nonstopux*)
14416
 
      lt_prog_compiler_wl_F77='-Wl,'
14417
 
      # PIC (with -KPIC) is the default.
14418
 
      lt_prog_compiler_static_F77='-non_shared'
14419
 
      ;;
14420
 
 
14421
 
    newsos6)
14422
 
      lt_prog_compiler_pic_F77='-KPIC'
14423
 
      lt_prog_compiler_static_F77='-Bstatic'
14424
 
      ;;
14425
 
 
14426
 
    linux* | k*bsd*-gnu)
14427
 
      case $cc_basename in
14428
 
      icc* | ecc*)
14429
 
        lt_prog_compiler_wl_F77='-Wl,'
14430
 
        lt_prog_compiler_pic_F77='-KPIC'
14431
 
        lt_prog_compiler_static_F77='-static'
14432
 
        ;;
14433
 
      pgcc* | pgf77* | pgf90* | pgf95*)
14434
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14435
 
        # which looks to be a dead project)
14436
 
        lt_prog_compiler_wl_F77='-Wl,'
14437
 
        lt_prog_compiler_pic_F77='-fpic'
14438
 
        lt_prog_compiler_static_F77='-Bstatic'
14439
 
        ;;
14440
 
      ccc*)
14441
 
        lt_prog_compiler_wl_F77='-Wl,'
14442
 
        # All Alpha code is PIC.
14443
 
        lt_prog_compiler_static_F77='-non_shared'
14444
 
        ;;
14445
 
      *)
14446
 
        case `$CC -V 2>&1 | sed 5q` in
14447
 
        *Sun\ C*)
14448
 
          # Sun C 5.9
14449
 
          lt_prog_compiler_pic_F77='-KPIC'
14450
 
          lt_prog_compiler_static_F77='-Bstatic'
14451
 
          lt_prog_compiler_wl_F77='-Wl,'
14452
 
          ;;
14453
 
        *Sun\ F*)
14454
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
14455
 
          lt_prog_compiler_pic_F77='-KPIC'
14456
 
          lt_prog_compiler_static_F77='-Bstatic'
14457
 
          lt_prog_compiler_wl_F77=''
14458
 
          ;;
14459
 
        esac
14460
 
        ;;
14461
 
      esac
14462
 
      ;;
14463
 
 
14464
 
    osf3* | osf4* | osf5*)
14465
 
      lt_prog_compiler_wl_F77='-Wl,'
14466
 
      # All OSF/1 code is PIC.
14467
 
      lt_prog_compiler_static_F77='-non_shared'
14468
 
      ;;
14469
 
 
14470
 
    rdos*)
14471
 
      lt_prog_compiler_static_F77='-non_shared'
14472
 
      ;;
14473
 
 
14474
 
    solaris*)
14475
 
      lt_prog_compiler_pic_F77='-KPIC'
14476
 
      lt_prog_compiler_static_F77='-Bstatic'
14477
 
      case $cc_basename in
14478
 
      f77* | f90* | f95*)
14479
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14480
 
      *)
14481
 
        lt_prog_compiler_wl_F77='-Wl,';;
14482
 
      esac
14483
 
      ;;
14484
 
 
14485
 
    sunos4*)
14486
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14487
 
      lt_prog_compiler_pic_F77='-PIC'
14488
 
      lt_prog_compiler_static_F77='-Bstatic'
14489
 
      ;;
14490
 
 
14491
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
14492
 
      lt_prog_compiler_wl_F77='-Wl,'
14493
 
      lt_prog_compiler_pic_F77='-KPIC'
14494
 
      lt_prog_compiler_static_F77='-Bstatic'
14495
 
      ;;
14496
 
 
14497
 
    sysv4*MP*)
14498
 
      if test -d /usr/nec ;then
14499
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14500
 
        lt_prog_compiler_static_F77='-Bstatic'
14501
 
      fi
14502
 
      ;;
14503
 
 
14504
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14505
 
      lt_prog_compiler_wl_F77='-Wl,'
14506
 
      lt_prog_compiler_pic_F77='-KPIC'
14507
 
      lt_prog_compiler_static_F77='-Bstatic'
14508
 
      ;;
14509
 
 
14510
 
    unicos*)
14511
 
      lt_prog_compiler_wl_F77='-Wl,'
14512
 
      lt_prog_compiler_can_build_shared_F77=no
14513
 
      ;;
14514
 
 
14515
 
    uts4*)
14516
 
      lt_prog_compiler_pic_F77='-pic'
14517
 
      lt_prog_compiler_static_F77='-Bstatic'
14518
 
      ;;
14519
 
 
14520
 
    *)
14521
 
      lt_prog_compiler_can_build_shared_F77=no
14522
 
      ;;
14523
 
    esac
14524
 
  fi
14525
 
 
14526
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14527
 
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14528
 
 
14529
 
#
14530
 
# Check to make sure the PIC flag actually works.
14531
 
#
14532
 
if test -n "$lt_prog_compiler_pic_F77"; then
14533
 
 
14534
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14535
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14536
 
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14537
 
  $as_echo_n "(cached) " >&6
14538
 
else
14539
 
  lt_cv_prog_compiler_pic_works_F77=no
14540
 
  ac_outfile=conftest.$ac_objext
14541
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14542
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14543
 
   # Insert the option either (1) after the last *FLAGS variable, or
14544
 
   # (2) before a word containing "conftest.", or (3) at the end.
14545
 
   # Note that $ac_compile itself does not contain backslashes and begins
14546
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14547
 
   # The option is referenced via a variable to avoid confusing sed.
14548
 
   lt_compile=`echo "$ac_compile" | $SED \
14549
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14550
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14551
 
   -e 's:$: $lt_compiler_flag:'`
14552
 
   (eval echo "\"\$as_me:14552: $lt_compile\"" >&5)
14553
 
   (eval "$lt_compile" 2>conftest.err)
14554
 
   ac_status=$?
14555
 
   cat conftest.err >&5
14556
 
   echo "$as_me:14556: \$? = $ac_status" >&5
14557
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14558
 
     # The compiler can only warn and ignore the option if not recognized
14559
 
     # So say no if there are warnings other than the usual output.
14560
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14561
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14562
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14563
 
       lt_cv_prog_compiler_pic_works_F77=yes
14564
 
     fi
14565
 
   fi
14566
 
   $rm conftest*
14567
 
 
14568
 
fi
14569
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14570
 
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14571
 
 
14572
 
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14573
 
    case $lt_prog_compiler_pic_F77 in
14574
 
     "" | " "*) ;;
14575
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14576
 
     esac
14577
 
else
14578
 
    lt_prog_compiler_pic_F77=
14579
 
     lt_prog_compiler_can_build_shared_F77=no
14580
 
fi
14581
 
 
14582
 
fi
14583
 
case $host_os in
14584
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14585
 
  *djgpp*)
14586
 
    lt_prog_compiler_pic_F77=
14587
 
    ;;
14588
 
  *)
14589
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14590
 
    ;;
14591
 
esac
14592
 
 
14593
 
#
14594
 
# Check to make sure the static flag actually works.
14595
 
#
14596
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14597
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14598
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14599
 
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14600
 
  $as_echo_n "(cached) " >&6
14601
 
else
14602
 
  lt_cv_prog_compiler_static_works_F77=no
14603
 
   save_LDFLAGS="$LDFLAGS"
14604
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14605
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14606
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14607
 
     # The linker can only warn and ignore the option if not recognized
14608
 
     # So say no if there are warnings
14609
 
     if test -s conftest.err; then
14610
 
       # Append any errors to the config.log.
14611
 
       cat conftest.err 1>&5
14612
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14613
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14614
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14615
 
         lt_cv_prog_compiler_static_works_F77=yes
14616
 
       fi
14617
 
     else
14618
 
       lt_cv_prog_compiler_static_works_F77=yes
14619
 
     fi
14620
 
   fi
14621
 
   $rm -r conftest*
14622
 
   LDFLAGS="$save_LDFLAGS"
14623
 
 
14624
 
fi
14625
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14626
 
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14627
 
 
14628
 
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14629
 
    :
14630
 
else
14631
 
    lt_prog_compiler_static_F77=
14632
 
fi
14633
 
 
14634
 
 
14635
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14636
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14637
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14638
 
  $as_echo_n "(cached) " >&6
14639
 
else
14640
 
  lt_cv_prog_compiler_c_o_F77=no
14641
 
   $rm -r conftest 2>/dev/null
14642
 
   mkdir conftest
14643
 
   cd conftest
14644
 
   mkdir out
14645
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646
 
 
14647
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14648
 
   # Insert the option either (1) after the last *FLAGS variable, or
14649
 
   # (2) before a word containing "conftest.", or (3) at the end.
14650
 
   # Note that $ac_compile itself does not contain backslashes and begins
14651
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14652
 
   lt_compile=`echo "$ac_compile" | $SED \
14653
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655
 
   -e 's:$: $lt_compiler_flag:'`
14656
 
   (eval echo "\"\$as_me:14656: $lt_compile\"" >&5)
14657
 
   (eval "$lt_compile" 2>out/conftest.err)
14658
 
   ac_status=$?
14659
 
   cat out/conftest.err >&5
14660
 
   echo "$as_me:14660: \$? = $ac_status" >&5
14661
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14662
 
   then
14663
 
     # The compiler can only warn and ignore the option if not recognized
14664
 
     # So say no if there are warnings
14665
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14666
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14667
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14668
 
       lt_cv_prog_compiler_c_o_F77=yes
14669
 
     fi
14670
 
   fi
14671
 
   chmod u+w . 2>&5
14672
 
   $rm conftest*
14673
 
   # SGI C++ compiler will create directory out/ii_files/ for
14674
 
   # template instantiation
14675
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14676
 
   $rm out/* && rmdir out
14677
 
   cd ..
14678
 
   rmdir conftest
14679
 
   $rm conftest*
14680
 
 
14681
 
fi
14682
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14683
 
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14684
 
 
14685
 
 
14686
 
hard_links="nottested"
14687
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14688
 
  # do not overwrite the value of need_locks provided by the user
14689
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14690
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
14691
 
  hard_links=yes
14692
 
  $rm conftest*
14693
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14694
 
  touch conftest.a
14695
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14696
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14697
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14698
 
$as_echo "$hard_links" >&6; }
14699
 
  if test "$hard_links" = no; then
14700
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14701
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14702
 
    need_locks=warn
14703
 
  fi
14704
 
else
14705
 
  need_locks=no
14706
 
fi
14707
 
 
14708
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14709
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14710
 
 
14711
 
  runpath_var=
14712
 
  allow_undefined_flag_F77=
14713
 
  enable_shared_with_static_runtimes_F77=no
14714
 
  archive_cmds_F77=
14715
 
  archive_expsym_cmds_F77=
14716
 
  old_archive_From_new_cmds_F77=
14717
 
  old_archive_from_expsyms_cmds_F77=
14718
 
  export_dynamic_flag_spec_F77=
14719
 
  whole_archive_flag_spec_F77=
14720
 
  thread_safe_flag_spec_F77=
14721
 
  hardcode_libdir_flag_spec_F77=
14722
 
  hardcode_libdir_flag_spec_ld_F77=
14723
 
  hardcode_libdir_separator_F77=
14724
 
  hardcode_direct_F77=no
14725
 
  hardcode_minus_L_F77=no
14726
 
  hardcode_shlibpath_var_F77=unsupported
14727
 
  link_all_deplibs_F77=unknown
14728
 
  hardcode_automatic_F77=no
14729
 
  module_cmds_F77=
14730
 
  module_expsym_cmds_F77=
14731
 
  always_export_symbols_F77=no
14732
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14733
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14734
 
  # included in the symbol list
14735
 
  include_expsyms_F77=
14736
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14737
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14738
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14739
 
  # as well as any symbol that contains `d'.
14740
 
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14741
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14742
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14743
 
  # the symbol is explicitly referenced.  Since portable code cannot
14744
 
  # rely on this symbol name, it's probably fine to never include it in
14745
 
  # preloaded symbol tables.
14746
 
  # Exclude shared library initialization/finalization symbols.
14747
 
  extract_expsyms_cmds=
14748
 
  # Just being paranoid about ensuring that cc_basename is set.
14749
 
  for cc_temp in $compiler""; do
14750
 
  case $cc_temp in
14751
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14752
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14753
 
    \-*) ;;
14754
 
    *) break;;
14755
 
  esac
14756
 
done
14757
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14758
 
 
14759
 
  case $host_os in
14760
 
  cygwin* | mingw* | pw32*)
14761
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14762
 
    # When not using gcc, we currently assume that we are using
14763
 
    # Microsoft Visual C++.
14764
 
    if test "$GCC" != yes; then
14765
 
      with_gnu_ld=no
14766
 
    fi
14767
 
    ;;
14768
 
  interix*)
14769
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14770
 
    with_gnu_ld=yes
14771
 
    ;;
14772
 
  openbsd*)
14773
 
    with_gnu_ld=no
14774
 
    ;;
14775
 
  esac
14776
 
 
14777
 
  ld_shlibs_F77=yes
14778
 
  if test "$with_gnu_ld" = yes; then
14779
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14780
 
    wlarc='${wl}'
14781
 
 
14782
 
    # Set some defaults for GNU ld with shared library support. These
14783
 
    # are reset later if shared libraries are not supported. Putting them
14784
 
    # here allows them to be overridden if necessary.
14785
 
    runpath_var=LD_RUN_PATH
14786
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14787
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14788
 
    # ancient GNU ld didn't support --whole-archive et. al.
14789
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14790
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14791
 
      else
14792
 
        whole_archive_flag_spec_F77=
14793
 
    fi
14794
 
    supports_anon_versioning=no
14795
 
    case `$LD -v 2>/dev/null` in
14796
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14797
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14798
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14799
 
      *\ 2.11.*) ;; # other 2.11 versions
14800
 
      *) supports_anon_versioning=yes ;;
14801
 
    esac
14802
 
 
14803
 
    # See if GNU ld supports shared libraries.
14804
 
    case $host_os in
14805
 
    aix[3-9]*)
14806
 
      # On AIX/PPC, the GNU linker is very broken
14807
 
      if test "$host_cpu" != ia64; then
14808
 
        ld_shlibs_F77=no
14809
 
        cat <<EOF 1>&2
14810
 
 
14811
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14812
 
*** to be unable to reliably create shared libraries on AIX.
14813
 
*** Therefore, libtool is disabling shared libraries support.  If you
14814
 
*** really care for shared libraries, you may want to modify your PATH
14815
 
*** so that a non-GNU linker is found, and then restart.
14816
 
 
14817
 
EOF
14818
 
      fi
14819
 
      ;;
14820
 
 
14821
 
    amigaos*)
14822
 
      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)'
14823
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14824
 
      hardcode_minus_L_F77=yes
14825
 
 
14826
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14827
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14828
 
      # to version 4, is to share data among multiple programs linked
14829
 
      # with the same dynamic library.  Since this doesn't match the
14830
 
      # behavior of shared libraries on other platforms, we can't use
14831
 
      # them.
14832
 
      ld_shlibs_F77=no
14833
 
      ;;
14834
 
 
14835
 
    beos*)
14836
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837
 
        allow_undefined_flag_F77=unsupported
14838
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14839
 
        # support --undefined.  This deserves some investigation.  FIXME
14840
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14841
 
      else
14842
 
        ld_shlibs_F77=no
14843
 
      fi
14844
 
      ;;
14845
 
 
14846
 
    cygwin* | mingw* | pw32*)
14847
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14848
 
      # as there is no search path for DLLs.
14849
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14850
 
      allow_undefined_flag_F77=unsupported
14851
 
      always_export_symbols_F77=no
14852
 
      enable_shared_with_static_runtimes_F77=yes
14853
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14854
 
 
14855
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14856
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14857
 
        # If the export-symbols file already is a .def file (1st line
14858
 
        # is EXPORTS), use it as is; otherwise, prepend...
14859
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14860
 
          cp $export_symbols $output_objdir/$soname.def;
14861
 
        else
14862
 
          echo EXPORTS > $output_objdir/$soname.def;
14863
 
          cat $export_symbols >> $output_objdir/$soname.def;
14864
 
        fi~
14865
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14866
 
      else
14867
 
        ld_shlibs_F77=no
14868
 
      fi
14869
 
      ;;
14870
 
 
14871
 
    interix[3-9]*)
14872
 
      hardcode_direct_F77=no
14873
 
      hardcode_shlibpath_var_F77=no
14874
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14875
 
      export_dynamic_flag_spec_F77='${wl}-E'
14876
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14877
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14878
 
      # default) and relocated if they conflict, which is a slow very memory
14879
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14880
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14881
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14882
 
      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'
14883
 
      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'
14884
 
      ;;
14885
 
 
14886
 
    gnu* | linux* | k*bsd*-gnu)
14887
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14888
 
        tmp_addflag=
14889
 
        case $cc_basename,$host_cpu in
14890
 
        pgcc*)                          # Portland Group C compiler
14891
 
          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'
14892
 
          tmp_addflag=' $pic_flag'
14893
 
          ;;
14894
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14895
 
          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'
14896
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14897
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14898
 
          tmp_addflag=' -i_dynamic' ;;
14899
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14900
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14901
 
        ifc* | ifort*)                  # Intel Fortran compiler
14902
 
          tmp_addflag=' -nofor_main' ;;
14903
 
        esac
14904
 
        case `$CC -V 2>&1 | sed 5q` in
14905
 
        *Sun\ C*)                       # Sun C 5.9
14906
 
          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'
14907
 
          tmp_sharedflag='-G' ;;
14908
 
        *Sun\ F*)                       # Sun Fortran 8.3
14909
 
          tmp_sharedflag='-G' ;;
14910
 
        *)
14911
 
          tmp_sharedflag='-shared' ;;
14912
 
        esac
14913
 
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14914
 
 
14915
 
        if test $supports_anon_versioning = yes; then
14916
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14917
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14918
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14919
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14920
 
        fi
14921
 
      else
14922
 
        ld_shlibs_F77=no
14923
 
      fi
14924
 
      ;;
14925
 
 
14926
 
    netbsd*)
14927
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14928
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14929
 
        wlarc=
14930
 
      else
14931
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14933
 
      fi
14934
 
      ;;
14935
 
 
14936
 
    solaris*)
14937
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14938
 
        ld_shlibs_F77=no
14939
 
        cat <<EOF 1>&2
14940
 
 
14941
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14942
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14943
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14944
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14945
 
*** your PATH or compiler configuration so that the native linker is
14946
 
*** used, and then restart.
14947
 
 
14948
 
EOF
14949
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14950
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14951
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14952
 
      else
14953
 
        ld_shlibs_F77=no
14954
 
      fi
14955
 
      ;;
14956
 
 
14957
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14958
 
      case `$LD -v 2>&1` in
14959
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14960
 
        ld_shlibs_F77=no
14961
 
        cat <<_LT_EOF 1>&2
14962
 
 
14963
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14964
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14965
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14966
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14967
 
*** your PATH or compiler configuration so that the native linker is
14968
 
*** used, and then restart.
14969
 
 
14970
 
_LT_EOF
14971
 
        ;;
14972
 
        *)
14973
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14974
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14975
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14976
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14977
 
          else
14978
 
            ld_shlibs_F77=no
14979
 
          fi
14980
 
        ;;
14981
 
      esac
14982
 
      ;;
14983
 
 
14984
 
    sunos4*)
14985
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14986
 
      wlarc=
14987
 
      hardcode_direct_F77=yes
14988
 
      hardcode_shlibpath_var_F77=no
14989
 
      ;;
14990
 
 
14991
 
    *)
14992
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14993
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14994
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14995
 
      else
14996
 
        ld_shlibs_F77=no
14997
 
      fi
14998
 
      ;;
14999
 
    esac
15000
 
 
15001
 
    if test "$ld_shlibs_F77" = no; then
15002
 
      runpath_var=
15003
 
      hardcode_libdir_flag_spec_F77=
15004
 
      export_dynamic_flag_spec_F77=
15005
 
      whole_archive_flag_spec_F77=
15006
 
    fi
15007
 
  else
15008
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15009
 
    case $host_os in
15010
 
    aix3*)
15011
 
      allow_undefined_flag_F77=unsupported
15012
 
      always_export_symbols_F77=yes
15013
 
      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'
15014
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15015
 
      # are no directories specified by -L.
15016
 
      hardcode_minus_L_F77=yes
15017
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15018
 
        # Neither direct hardcoding nor static linking is supported with a
15019
 
        # broken collect2.
15020
 
        hardcode_direct_F77=unsupported
15021
 
      fi
15022
 
      ;;
15023
 
 
15024
 
    aix[4-9]*)
15025
 
      if test "$host_cpu" = ia64; then
15026
 
        # On IA64, the linker does run time linking by default, so we don't
15027
 
        # have to do anything special.
15028
 
        aix_use_runtimelinking=no
15029
 
        exp_sym_flag='-Bexport'
15030
 
        no_entry_flag=""
15031
 
      else
15032
 
        # If we're using GNU nm, then we don't want the "-C" option.
15033
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15034
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15035
 
          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'
15036
 
        else
15037
 
          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'
15038
 
        fi
15039
 
        aix_use_runtimelinking=no
15040
 
 
15041
 
        # Test if we are trying to use run time linking or normal
15042
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15043
 
        # need to do runtime linking.
15044
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15045
 
          for ld_flag in $LDFLAGS; do
15046
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15047
 
            aix_use_runtimelinking=yes
15048
 
            break
15049
 
          fi
15050
 
          done
15051
 
          ;;
15052
 
        esac
15053
 
 
15054
 
        exp_sym_flag='-bexport'
15055
 
        no_entry_flag='-bnoentry'
15056
 
      fi
15057
 
 
15058
 
      # When large executables or shared objects are built, AIX ld can
15059
 
      # have problems creating the table of contents.  If linking a library
15060
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15061
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15062
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15063
 
 
15064
 
      archive_cmds_F77=''
15065
 
      hardcode_direct_F77=yes
15066
 
      hardcode_libdir_separator_F77=':'
15067
 
      link_all_deplibs_F77=yes
15068
 
 
15069
 
      if test "$GCC" = yes; then
15070
 
        case $host_os in aix4.[012]|aix4.[012].*)
15071
 
        # We only want to do this on AIX 4.2 and lower, the check
15072
 
        # below for broken collect2 doesn't work under 4.3+
15073
 
          collect2name=`${CC} -print-prog-name=collect2`
15074
 
          if test -f "$collect2name" && \
15075
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15076
 
          then
15077
 
          # We have reworked collect2
15078
 
          :
15079
 
          else
15080
 
          # We have old collect2
15081
 
          hardcode_direct_F77=unsupported
15082
 
          # It fails to find uninstalled libraries when the uninstalled
15083
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15084
 
          # to unsupported forces relinking
15085
 
          hardcode_minus_L_F77=yes
15086
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15087
 
          hardcode_libdir_separator_F77=
15088
 
          fi
15089
 
          ;;
15090
 
        esac
15091
 
        shared_flag='-shared'
15092
 
        if test "$aix_use_runtimelinking" = yes; then
15093
 
          shared_flag="$shared_flag "'${wl}-G'
15094
 
        fi
15095
 
      else
15096
 
        # not using gcc
15097
 
        if test "$host_cpu" = ia64; then
15098
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15099
 
        # chokes on -Wl,-G. The following line is correct:
15100
 
          shared_flag='-G'
15101
 
        else
15102
 
          if test "$aix_use_runtimelinking" = yes; then
15103
 
            shared_flag='${wl}-G'
15104
 
          else
15105
 
            shared_flag='${wl}-bM:SRE'
15106
 
          fi
15107
 
        fi
15108
 
      fi
15109
 
 
15110
 
      # It seems that -bexpall does not export symbols beginning with
15111
 
      # underscore (_), so it is better to generate a list of symbols to export.
15112
 
      always_export_symbols_F77=yes
15113
 
      if test "$aix_use_runtimelinking" = yes; then
15114
 
        # Warning - without using the other runtime loading flags (-brtl),
15115
 
        # -berok will link without error, but may produce a broken library.
15116
 
        allow_undefined_flag_F77='-berok'
15117
 
       # Determine the default libpath from the value encoded in an empty executable.
15118
 
       cat >conftest.$ac_ext <<_ACEOF
15119
 
      program main
15120
 
 
15121
 
      end
15122
 
_ACEOF
15123
 
rm -f conftest.$ac_objext conftest$ac_exeext
15124
 
if { (ac_try="$ac_link"
15125
 
case "(($ac_try" in
15126
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127
 
  *) ac_try_echo=$ac_try;;
15128
 
esac
15129
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15130
 
$as_echo "$ac_try_echo") >&5
15131
 
  (eval "$ac_link") 2>conftest.er1
15132
 
  ac_status=$?
15133
 
  grep -v '^ *+' conftest.er1 >conftest.err
15134
 
  rm -f conftest.er1
15135
 
  cat conftest.err >&5
15136
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137
 
  (exit $ac_status); } && {
15138
 
         test -z "$ac_f77_werror_flag" ||
15139
 
         test ! -s conftest.err
15140
 
       } && test -s conftest$ac_exeext && {
15141
 
         test "$cross_compiling" = yes ||
15142
 
         $as_test_x conftest$ac_exeext
15143
 
       }; then
15144
 
 
15145
 
lt_aix_libpath_sed='
15146
 
    /Import File Strings/,/^$/ {
15147
 
        /^0/ {
15148
 
            s/^0  *\(.*\)$/\1/
15149
 
            p
15150
 
        }
15151
 
    }'
15152
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15153
 
# Check for a 64-bit object if we didn't find anything.
15154
 
if test -z "$aix_libpath"; then
15155
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15156
 
fi
15157
 
else
15158
 
  $as_echo "$as_me: failed program was:" >&5
15159
 
sed 's/^/| /' conftest.$ac_ext >&5
15160
 
 
15161
 
 
15162
 
fi
15163
 
 
15164
 
rm -rf conftest.dSYM
15165
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166
 
      conftest$ac_exeext conftest.$ac_ext
15167
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15168
 
 
15169
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15170
 
        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"
15171
 
       else
15172
 
        if test "$host_cpu" = ia64; then
15173
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15174
 
          allow_undefined_flag_F77="-z nodefs"
15175
 
          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"
15176
 
        else
15177
 
         # Determine the default libpath from the value encoded in an empty executable.
15178
 
         cat >conftest.$ac_ext <<_ACEOF
15179
 
      program main
15180
 
 
15181
 
      end
15182
 
_ACEOF
15183
 
rm -f conftest.$ac_objext conftest$ac_exeext
15184
 
if { (ac_try="$ac_link"
15185
 
case "(($ac_try" in
15186
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187
 
  *) ac_try_echo=$ac_try;;
15188
 
esac
15189
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15190
 
$as_echo "$ac_try_echo") >&5
15191
 
  (eval "$ac_link") 2>conftest.er1
15192
 
  ac_status=$?
15193
 
  grep -v '^ *+' conftest.er1 >conftest.err
15194
 
  rm -f conftest.er1
15195
 
  cat conftest.err >&5
15196
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197
 
  (exit $ac_status); } && {
15198
 
         test -z "$ac_f77_werror_flag" ||
15199
 
         test ! -s conftest.err
15200
 
       } && test -s conftest$ac_exeext && {
15201
 
         test "$cross_compiling" = yes ||
15202
 
         $as_test_x conftest$ac_exeext
15203
 
       }; then
15204
 
 
15205
 
lt_aix_libpath_sed='
15206
 
    /Import File Strings/,/^$/ {
15207
 
        /^0/ {
15208
 
            s/^0  *\(.*\)$/\1/
15209
 
            p
15210
 
        }
15211
 
    }'
15212
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15213
 
# Check for a 64-bit object if we didn't find anything.
15214
 
if test -z "$aix_libpath"; then
15215
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15216
 
fi
15217
 
else
15218
 
  $as_echo "$as_me: failed program was:" >&5
15219
 
sed 's/^/| /' conftest.$ac_ext >&5
15220
 
 
15221
 
 
15222
 
fi
15223
 
 
15224
 
rm -rf conftest.dSYM
15225
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226
 
      conftest$ac_exeext conftest.$ac_ext
15227
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15228
 
 
15229
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15230
 
          # Warning - without using the other run time loading flags,
15231
 
          # -berok will link without error, but may produce a broken library.
15232
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15233
 
          allow_undefined_flag_F77=' ${wl}-berok'
15234
 
          # Exported symbols can be pulled into shared objects from archives
15235
 
          whole_archive_flag_spec_F77='$convenience'
15236
 
          archive_cmds_need_lc_F77=yes
15237
 
          # This is similar to how AIX traditionally builds its shared libraries.
15238
 
          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'
15239
 
        fi
15240
 
      fi
15241
 
      ;;
15242
 
 
15243
 
    amigaos*)
15244
 
      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)'
15245
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15246
 
      hardcode_minus_L_F77=yes
15247
 
      # see comment about different semantics on the GNU ld section
15248
 
      ld_shlibs_F77=no
15249
 
      ;;
15250
 
 
15251
 
    bsdi[45]*)
15252
 
      export_dynamic_flag_spec_F77=-rdynamic
15253
 
      ;;
15254
 
 
15255
 
    cygwin* | mingw* | pw32*)
15256
 
      # When not using gcc, we currently assume that we are using
15257
 
      # Microsoft Visual C++.
15258
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15259
 
      # no search path for DLLs.
15260
 
      hardcode_libdir_flag_spec_F77=' '
15261
 
      allow_undefined_flag_F77=unsupported
15262
 
      # Tell ltmain to make .lib files, not .a files.
15263
 
      libext=lib
15264
 
      # Tell ltmain to make .dll files, not .so files.
15265
 
      shrext_cmds=".dll"
15266
 
      # FIXME: Setting linknames here is a bad hack.
15267
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15268
 
      # The linker will automatically build a .lib file if we build a DLL.
15269
 
      old_archive_From_new_cmds_F77='true'
15270
 
      # FIXME: Should let the user specify the lib program.
15271
 
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15272
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15273
 
      enable_shared_with_static_runtimes_F77=yes
15274
 
      ;;
15275
 
 
15276
 
    darwin* | rhapsody*)
15277
 
      case $host_os in
15278
 
        rhapsody* | darwin1.[012])
15279
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15280
 
         ;;
15281
 
       *) # Darwin 1.3 on
15282
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15283
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15284
 
         else
15285
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15286
 
             10.[012])
15287
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15288
 
               ;;
15289
 
             10.*)
15290
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15291
 
               ;;
15292
 
           esac
15293
 
         fi
15294
 
         ;;
15295
 
      esac
15296
 
      archive_cmds_need_lc_F77=no
15297
 
      hardcode_direct_F77=no
15298
 
      hardcode_automatic_F77=yes
15299
 
      hardcode_shlibpath_var_F77=unsupported
15300
 
      whole_archive_flag_spec_F77=''
15301
 
      link_all_deplibs_F77=yes
15302
 
    if test "$GCC" = yes ; then
15303
 
        output_verbose_link_cmd='echo'
15304
 
        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}"
15305
 
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15306
 
        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}"
15307
 
        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}"
15308
 
    else
15309
 
      case $cc_basename in
15310
 
        xlc*)
15311
 
         output_verbose_link_cmd='echo'
15312
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15313
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15314
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15315
 
         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}'
15316
 
          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}'
15317
 
          ;;
15318
 
       *)
15319
 
         ld_shlibs_F77=no
15320
 
          ;;
15321
 
      esac
15322
 
    fi
15323
 
      ;;
15324
 
 
15325
 
    dgux*)
15326
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15328
 
      hardcode_shlibpath_var_F77=no
15329
 
      ;;
15330
 
 
15331
 
    freebsd1*)
15332
 
      ld_shlibs_F77=no
15333
 
      ;;
15334
 
 
15335
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15336
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15337
 
    # does not break anything, and helps significantly (at the cost of a little
15338
 
    # extra space).
15339
 
    freebsd2.2*)
15340
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15341
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15342
 
      hardcode_direct_F77=yes
15343
 
      hardcode_shlibpath_var_F77=no
15344
 
      ;;
15345
 
 
15346
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15347
 
    freebsd2*)
15348
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15349
 
      hardcode_direct_F77=yes
15350
 
      hardcode_minus_L_F77=yes
15351
 
      hardcode_shlibpath_var_F77=no
15352
 
      ;;
15353
 
 
15354
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15355
 
    freebsd* | dragonfly*)
15356
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15357
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15358
 
      hardcode_direct_F77=yes
15359
 
      hardcode_shlibpath_var_F77=no
15360
 
      ;;
15361
 
 
15362
 
    hpux9*)
15363
 
      if test "$GCC" = yes; then
15364
 
        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'
15365
 
      else
15366
 
        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'
15367
 
      fi
15368
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15369
 
      hardcode_libdir_separator_F77=:
15370
 
      hardcode_direct_F77=yes
15371
 
 
15372
 
      # hardcode_minus_L: Not really in the search PATH,
15373
 
      # but as the default location of the library.
15374
 
      hardcode_minus_L_F77=yes
15375
 
      export_dynamic_flag_spec_F77='${wl}-E'
15376
 
      ;;
15377
 
 
15378
 
    hpux10*)
15379
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15380
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15381
 
      else
15382
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15383
 
      fi
15384
 
      if test "$with_gnu_ld" = no; then
15385
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15386
 
        hardcode_libdir_separator_F77=:
15387
 
 
15388
 
        hardcode_direct_F77=yes
15389
 
        export_dynamic_flag_spec_F77='${wl}-E'
15390
 
 
15391
 
        # hardcode_minus_L: Not really in the search PATH,
15392
 
        # but as the default location of the library.
15393
 
        hardcode_minus_L_F77=yes
15394
 
      fi
15395
 
      ;;
15396
 
 
15397
 
    hpux11*)
15398
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15399
 
        case $host_cpu in
15400
 
        hppa*64*)
15401
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15402
 
          ;;
15403
 
        ia64*)
15404
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15405
 
          ;;
15406
 
        *)
15407
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15408
 
          ;;
15409
 
        esac
15410
 
      else
15411
 
        case $host_cpu in
15412
 
        hppa*64*)
15413
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414
 
          ;;
15415
 
        ia64*)
15416
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15417
 
          ;;
15418
 
        *)
15419
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15420
 
          ;;
15421
 
        esac
15422
 
      fi
15423
 
      if test "$with_gnu_ld" = no; then
15424
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15425
 
        hardcode_libdir_separator_F77=:
15426
 
 
15427
 
        case $host_cpu in
15428
 
        hppa*64*|ia64*)
15429
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15430
 
          hardcode_direct_F77=no
15431
 
          hardcode_shlibpath_var_F77=no
15432
 
          ;;
15433
 
        *)
15434
 
          hardcode_direct_F77=yes
15435
 
          export_dynamic_flag_spec_F77='${wl}-E'
15436
 
 
15437
 
          # hardcode_minus_L: Not really in the search PATH,
15438
 
          # but as the default location of the library.
15439
 
          hardcode_minus_L_F77=yes
15440
 
          ;;
15441
 
        esac
15442
 
      fi
15443
 
      ;;
15444
 
 
15445
 
    irix5* | irix6* | nonstopux*)
15446
 
      if test "$GCC" = yes; then
15447
 
        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'
15448
 
      else
15449
 
        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'
15450
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15451
 
      fi
15452
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15453
 
      hardcode_libdir_separator_F77=:
15454
 
      link_all_deplibs_F77=yes
15455
 
      ;;
15456
 
 
15457
 
    netbsd*)
15458
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15459
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15460
 
      else
15461
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15462
 
      fi
15463
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15464
 
      hardcode_direct_F77=yes
15465
 
      hardcode_shlibpath_var_F77=no
15466
 
      ;;
15467
 
 
15468
 
    newsos6)
15469
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15470
 
      hardcode_direct_F77=yes
15471
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15472
 
      hardcode_libdir_separator_F77=:
15473
 
      hardcode_shlibpath_var_F77=no
15474
 
      ;;
15475
 
 
15476
 
    openbsd*)
15477
 
      if test -f /usr/libexec/ld.so; then
15478
 
        hardcode_direct_F77=yes
15479
 
        hardcode_shlibpath_var_F77=no
15480
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15481
 
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15482
 
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15483
 
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15484
 
          export_dynamic_flag_spec_F77='${wl}-E'
15485
 
        else
15486
 
          case $host_os in
15487
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15488
 
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15489
 
             hardcode_libdir_flag_spec_F77='-R$libdir'
15490
 
             ;;
15491
 
           *)
15492
 
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15493
 
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15494
 
             ;;
15495
 
          esac
15496
 
        fi
15497
 
      else
15498
 
        ld_shlibs_F77=no
15499
 
      fi
15500
 
      ;;
15501
 
 
15502
 
    os2*)
15503
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15504
 
      hardcode_minus_L_F77=yes
15505
 
      allow_undefined_flag_F77=unsupported
15506
 
      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'
15507
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15508
 
      ;;
15509
 
 
15510
 
    osf3*)
15511
 
      if test "$GCC" = yes; then
15512
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15513
 
        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'
15514
 
      else
15515
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15516
 
        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'
15517
 
      fi
15518
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15519
 
      hardcode_libdir_separator_F77=:
15520
 
      ;;
15521
 
 
15522
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15523
 
      if test "$GCC" = yes; then
15524
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15525
 
        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'
15526
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15527
 
      else
15528
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15529
 
        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'
15530
 
        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~
15531
 
        $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'
15532
 
 
15533
 
        # Both c and cxx compiler support -rpath directly
15534
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15535
 
      fi
15536
 
      hardcode_libdir_separator_F77=:
15537
 
      ;;
15538
 
 
15539
 
    solaris*)
15540
 
      no_undefined_flag_F77=' -z text'
15541
 
      if test "$GCC" = yes; then
15542
 
        wlarc='${wl}'
15543
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15545
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15546
 
      else
15547
 
        wlarc=''
15548
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15549
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15550
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15551
 
      fi
15552
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15553
 
      hardcode_shlibpath_var_F77=no
15554
 
      case $host_os in
15555
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15556
 
      *)
15557
 
        # The compiler driver will combine and reorder linker options,
15558
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
15559
 
        # but is careful enough not to reorder.
15560
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15561
 
        if test "$GCC" = yes; then
15562
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15563
 
        else
15564
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15565
 
        fi
15566
 
        ;;
15567
 
      esac
15568
 
      link_all_deplibs_F77=yes
15569
 
      ;;
15570
 
 
15571
 
    sunos4*)
15572
 
      if test "x$host_vendor" = xsequent; then
15573
 
        # Use $CC to link under sequent, because it throws in some extra .o
15574
 
        # files that make .init and .fini sections work.
15575
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15576
 
      else
15577
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15578
 
      fi
15579
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15580
 
      hardcode_direct_F77=yes
15581
 
      hardcode_minus_L_F77=yes
15582
 
      hardcode_shlibpath_var_F77=no
15583
 
      ;;
15584
 
 
15585
 
    sysv4)
15586
 
      case $host_vendor in
15587
 
        sni)
15588
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589
 
          hardcode_direct_F77=yes # is this really true???
15590
 
        ;;
15591
 
        siemens)
15592
 
          ## LD is ld it makes a PLAMLIB
15593
 
          ## CC just makes a GrossModule.
15594
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15595
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15596
 
          hardcode_direct_F77=no
15597
 
        ;;
15598
 
        motorola)
15599
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15600
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15601
 
        ;;
15602
 
      esac
15603
 
      runpath_var='LD_RUN_PATH'
15604
 
      hardcode_shlibpath_var_F77=no
15605
 
      ;;
15606
 
 
15607
 
    sysv4.3*)
15608
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15609
 
      hardcode_shlibpath_var_F77=no
15610
 
      export_dynamic_flag_spec_F77='-Bexport'
15611
 
      ;;
15612
 
 
15613
 
    sysv4*MP*)
15614
 
      if test -d /usr/nec; then
15615
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616
 
        hardcode_shlibpath_var_F77=no
15617
 
        runpath_var=LD_RUN_PATH
15618
 
        hardcode_runpath_var=yes
15619
 
        ld_shlibs_F77=yes
15620
 
      fi
15621
 
      ;;
15622
 
 
15623
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15624
 
      no_undefined_flag_F77='${wl}-z,text'
15625
 
      archive_cmds_need_lc_F77=no
15626
 
      hardcode_shlibpath_var_F77=no
15627
 
      runpath_var='LD_RUN_PATH'
15628
 
 
15629
 
      if test "$GCC" = yes; then
15630
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15632
 
      else
15633
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15634
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15635
 
      fi
15636
 
      ;;
15637
 
 
15638
 
    sysv5* | sco3.2v5* | sco5v6*)
15639
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15640
 
      # link with -lc, and that would cause any symbols used from libc to
15641
 
      # always be unresolved, which means just about no library would
15642
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15643
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15644
 
      # as -z defs.
15645
 
      no_undefined_flag_F77='${wl}-z,text'
15646
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15647
 
      archive_cmds_need_lc_F77=no
15648
 
      hardcode_shlibpath_var_F77=no
15649
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15650
 
      hardcode_libdir_separator_F77=':'
15651
 
      link_all_deplibs_F77=yes
15652
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15653
 
      runpath_var='LD_RUN_PATH'
15654
 
 
15655
 
      if test "$GCC" = yes; then
15656
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15658
 
      else
15659
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15661
 
      fi
15662
 
      ;;
15663
 
 
15664
 
    uts4*)
15665
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15667
 
      hardcode_shlibpath_var_F77=no
15668
 
      ;;
15669
 
 
15670
 
    *)
15671
 
      ld_shlibs_F77=no
15672
 
      ;;
15673
 
    esac
15674
 
  fi
15675
 
 
15676
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15677
 
$as_echo "$ld_shlibs_F77" >&6; }
15678
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15679
 
 
15680
 
#
15681
 
# Do we need to explicitly link libc?
15682
 
#
15683
 
case "x$archive_cmds_need_lc_F77" in
15684
 
x|xyes)
15685
 
  # Assume -lc should be added
15686
 
  archive_cmds_need_lc_F77=yes
15687
 
 
15688
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15689
 
    case $archive_cmds_F77 in
15690
 
    *'~'*)
15691
 
      # FIXME: we may have to deal with multi-command sequences.
15692
 
      ;;
15693
 
    '$CC '*)
15694
 
      # Test whether the compiler implicitly links with -lc since on some
15695
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15696
 
      # to ld, don't add -lc before -lgcc.
15697
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15698
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15699
 
      $rm conftest*
15700
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15701
 
 
15702
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703
 
  (eval $ac_compile) 2>&5
15704
 
  ac_status=$?
15705
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706
 
  (exit $ac_status); } 2>conftest.err; then
15707
 
        soname=conftest
15708
 
        lib=conftest
15709
 
        libobjs=conftest.$ac_objext
15710
 
        deplibs=
15711
 
        wl=$lt_prog_compiler_wl_F77
15712
 
        pic_flag=$lt_prog_compiler_pic_F77
15713
 
        compiler_flags=-v
15714
 
        linker_flags=-v
15715
 
        verstring=
15716
 
        output_objdir=.
15717
 
        libname=conftest
15718
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15719
 
        allow_undefined_flag_F77=
15720
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15721
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15722
 
  ac_status=$?
15723
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724
 
  (exit $ac_status); }
15725
 
        then
15726
 
          archive_cmds_need_lc_F77=no
15727
 
        else
15728
 
          archive_cmds_need_lc_F77=yes
15729
 
        fi
15730
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15731
 
      else
15732
 
        cat conftest.err 1>&5
15733
 
      fi
15734
 
      $rm conftest*
15735
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15736
 
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15737
 
      ;;
15738
 
    esac
15739
 
  fi
15740
 
  ;;
15741
 
esac
15742
 
 
15743
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15744
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15745
 
library_names_spec=
15746
 
libname_spec='lib$name'
15747
 
soname_spec=
15748
 
shrext_cmds=".so"
15749
 
postinstall_cmds=
15750
 
postuninstall_cmds=
15751
 
finish_cmds=
15752
 
finish_eval=
15753
 
shlibpath_var=
15754
 
shlibpath_overrides_runpath=unknown
15755
 
version_type=none
15756
 
dynamic_linker="$host_os ld.so"
15757
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15758
 
 
15759
 
need_lib_prefix=unknown
15760
 
hardcode_into_libs=no
15761
 
 
15762
 
# when you set need_version to no, make sure it does not cause -set_version
15763
 
# flags to be left without arguments
15764
 
need_version=unknown
15765
 
 
15766
 
case $host_os in
15767
 
aix3*)
15768
 
  version_type=linux
15769
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15770
 
  shlibpath_var=LIBPATH
15771
 
 
15772
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15773
 
  soname_spec='${libname}${release}${shared_ext}$major'
15774
 
  ;;
15775
 
 
15776
 
aix[4-9]*)
15777
 
  version_type=linux
15778
 
  need_lib_prefix=no
15779
 
  need_version=no
15780
 
  hardcode_into_libs=yes
15781
 
  if test "$host_cpu" = ia64; then
15782
 
    # AIX 5 supports IA64
15783
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15784
 
    shlibpath_var=LD_LIBRARY_PATH
15785
 
  else
15786
 
    # With GCC up to 2.95.x, collect2 would create an import file
15787
 
    # for dependence libraries.  The import file would start with
15788
 
    # the line `#! .'.  This would cause the generated library to
15789
 
    # depend on `.', always an invalid library.  This was fixed in
15790
 
    # development snapshots of GCC prior to 3.0.
15791
 
    case $host_os in
15792
 
      aix4 | aix4.[01] | aix4.[01].*)
15793
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15794
 
           echo ' yes '
15795
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15796
 
        :
15797
 
      else
15798
 
        can_build_shared=no
15799
 
      fi
15800
 
      ;;
15801
 
    esac
15802
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15803
 
    # soname into executable. Probably we can add versioning support to
15804
 
    # collect2, so additional links can be useful in future.
15805
 
    if test "$aix_use_runtimelinking" = yes; then
15806
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15807
 
      # instead of lib<name>.a to let people know that these are not
15808
 
      # typical AIX shared libraries.
15809
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810
 
    else
15811
 
      # We preserve .a as extension for shared libraries through AIX4.2
15812
 
      # and later when we are not doing run time linking.
15813
 
      library_names_spec='${libname}${release}.a $libname.a'
15814
 
      soname_spec='${libname}${release}${shared_ext}$major'
15815
 
    fi
15816
 
    shlibpath_var=LIBPATH
15817
 
  fi
15818
 
  ;;
15819
 
 
15820
 
amigaos*)
15821
 
  library_names_spec='$libname.ixlibrary $libname.a'
15822
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15823
 
  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'
15824
 
  ;;
15825
 
 
15826
 
beos*)
15827
 
  library_names_spec='${libname}${shared_ext}'
15828
 
  dynamic_linker="$host_os ld.so"
15829
 
  shlibpath_var=LIBRARY_PATH
15830
 
  ;;
15831
 
 
15832
 
bsdi[45]*)
15833
 
  version_type=linux
15834
 
  need_version=no
15835
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836
 
  soname_spec='${libname}${release}${shared_ext}$major'
15837
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15838
 
  shlibpath_var=LD_LIBRARY_PATH
15839
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15840
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15841
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15842
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15843
 
  # libtool to hard-code these into programs
15844
 
  ;;
15845
 
 
15846
 
cygwin* | mingw* | pw32*)
15847
 
  version_type=windows
15848
 
  shrext_cmds=".dll"
15849
 
  need_version=no
15850
 
  need_lib_prefix=no
15851
 
 
15852
 
  case $GCC,$host_os in
15853
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15854
 
    library_names_spec='$libname.dll.a'
15855
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15856
 
    postinstall_cmds='base_file=`basename \${file}`~
15857
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15858
 
      dldir=$destdir/`dirname \$dlpath`~
15859
 
      test -d \$dldir || mkdir -p \$dldir~
15860
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15861
 
      chmod a+x \$dldir/$dlname'
15862
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15863
 
      dlpath=$dir/\$dldll~
15864
 
       $rm \$dlpath'
15865
 
    shlibpath_overrides_runpath=yes
15866
 
 
15867
 
    case $host_os in
15868
 
    cygwin*)
15869
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15870
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15871
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15872
 
      ;;
15873
 
    mingw*)
15874
 
      # MinGW DLLs use traditional 'lib' prefix
15875
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15876
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15877
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15878
 
        # It is most probably a Windows format PATH printed by
15879
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15880
 
        # path with ; separators, and with drive letters. We can handle the
15881
 
        # drive letters (cygwin fileutils understands them), so leave them,
15882
 
        # especially as we might pass files found there to a mingw objdump,
15883
 
        # which wouldn't understand a cygwinified path. Ahh.
15884
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15885
 
      else
15886
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15887
 
      fi
15888
 
      ;;
15889
 
    pw32*)
15890
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15891
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15892
 
      ;;
15893
 
    esac
15894
 
    ;;
15895
 
 
15896
 
  *)
15897
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15898
 
    ;;
15899
 
  esac
15900
 
  dynamic_linker='Win32 ld.exe'
15901
 
  # FIXME: first we should search . and the directory the executable is in
15902
 
  shlibpath_var=PATH
15903
 
  ;;
15904
 
 
15905
 
darwin* | rhapsody*)
15906
 
  dynamic_linker="$host_os dyld"
15907
 
  version_type=darwin
15908
 
  need_lib_prefix=no
15909
 
  need_version=no
15910
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15911
 
  soname_spec='${libname}${release}${major}$shared_ext'
15912
 
  shlibpath_overrides_runpath=yes
15913
 
  shlibpath_var=DYLD_LIBRARY_PATH
15914
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15915
 
 
15916
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15917
 
  ;;
15918
 
 
15919
 
dgux*)
15920
 
  version_type=linux
15921
 
  need_lib_prefix=no
15922
 
  need_version=no
15923
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15924
 
  soname_spec='${libname}${release}${shared_ext}$major'
15925
 
  shlibpath_var=LD_LIBRARY_PATH
15926
 
  ;;
15927
 
 
15928
 
freebsd1*)
15929
 
  dynamic_linker=no
15930
 
  ;;
15931
 
 
15932
 
freebsd* | dragonfly*)
15933
 
  # DragonFly does not have aout.  When/if they implement a new
15934
 
  # versioning mechanism, adjust this.
15935
 
  if test -x /usr/bin/objformat; then
15936
 
    objformat=`/usr/bin/objformat`
15937
 
  else
15938
 
    case $host_os in
15939
 
    freebsd[123]*) objformat=aout ;;
15940
 
    *) objformat=elf ;;
15941
 
    esac
15942
 
  fi
15943
 
  version_type=freebsd-$objformat
15944
 
  case $version_type in
15945
 
    freebsd-elf*)
15946
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15947
 
      need_version=no
15948
 
      need_lib_prefix=no
15949
 
      ;;
15950
 
    freebsd-*)
15951
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15952
 
      need_version=yes
15953
 
      ;;
15954
 
  esac
15955
 
  shlibpath_var=LD_LIBRARY_PATH
15956
 
  case $host_os in
15957
 
  freebsd2*)
15958
 
    shlibpath_overrides_runpath=yes
15959
 
    ;;
15960
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15961
 
    shlibpath_overrides_runpath=yes
15962
 
    hardcode_into_libs=yes
15963
 
    ;;
15964
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15965
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15966
 
    shlibpath_overrides_runpath=no
15967
 
    hardcode_into_libs=yes
15968
 
    ;;
15969
 
  *) # from 4.6 on, and DragonFly
15970
 
    shlibpath_overrides_runpath=yes
15971
 
    hardcode_into_libs=yes
15972
 
    ;;
15973
 
  esac
15974
 
  ;;
15975
 
 
15976
 
gnu*)
15977
 
  version_type=linux
15978
 
  need_lib_prefix=no
15979
 
  need_version=no
15980
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15981
 
  soname_spec='${libname}${release}${shared_ext}$major'
15982
 
  shlibpath_var=LD_LIBRARY_PATH
15983
 
  hardcode_into_libs=yes
15984
 
  ;;
15985
 
 
15986
 
hpux9* | hpux10* | hpux11*)
15987
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15988
 
  # link against other versions.
15989
 
  version_type=sunos
15990
 
  need_lib_prefix=no
15991
 
  need_version=no
15992
 
  case $host_cpu in
15993
 
  ia64*)
15994
 
    shrext_cmds='.so'
15995
 
    hardcode_into_libs=yes
15996
 
    dynamic_linker="$host_os dld.so"
15997
 
    shlibpath_var=LD_LIBRARY_PATH
15998
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15999
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000
 
    soname_spec='${libname}${release}${shared_ext}$major'
16001
 
    if test "X$HPUX_IA64_MODE" = X32; then
16002
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16003
 
    else
16004
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16005
 
    fi
16006
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16007
 
    ;;
16008
 
   hppa*64*)
16009
 
     shrext_cmds='.sl'
16010
 
     hardcode_into_libs=yes
16011
 
     dynamic_linker="$host_os dld.sl"
16012
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16013
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16014
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16015
 
     soname_spec='${libname}${release}${shared_ext}$major'
16016
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16017
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16018
 
     ;;
16019
 
   *)
16020
 
    shrext_cmds='.sl'
16021
 
    dynamic_linker="$host_os dld.sl"
16022
 
    shlibpath_var=SHLIB_PATH
16023
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16024
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025
 
    soname_spec='${libname}${release}${shared_ext}$major'
16026
 
    ;;
16027
 
  esac
16028
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16029
 
  postinstall_cmds='chmod 555 $lib'
16030
 
  ;;
16031
 
 
16032
 
interix[3-9]*)
16033
 
  version_type=linux
16034
 
  need_lib_prefix=no
16035
 
  need_version=no
16036
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16037
 
  soname_spec='${libname}${release}${shared_ext}$major'
16038
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16039
 
  shlibpath_var=LD_LIBRARY_PATH
16040
 
  shlibpath_overrides_runpath=no
16041
 
  hardcode_into_libs=yes
16042
 
  ;;
16043
 
 
16044
 
irix5* | irix6* | nonstopux*)
16045
 
  case $host_os in
16046
 
    nonstopux*) version_type=nonstopux ;;
16047
 
    *)
16048
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16049
 
                version_type=linux
16050
 
        else
16051
 
                version_type=irix
16052
 
        fi ;;
16053
 
  esac
16054
 
  need_lib_prefix=no
16055
 
  need_version=no
16056
 
  soname_spec='${libname}${release}${shared_ext}$major'
16057
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16058
 
  case $host_os in
16059
 
  irix5* | nonstopux*)
16060
 
    libsuff= shlibsuff=
16061
 
    ;;
16062
 
  *)
16063
 
    case $LD in # libtool.m4 will add one of these switches to LD
16064
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16065
 
      libsuff= shlibsuff= libmagic=32-bit;;
16066
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16067
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16068
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16069
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16070
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16071
 
    esac
16072
 
    ;;
16073
 
  esac
16074
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16075
 
  shlibpath_overrides_runpath=no
16076
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16077
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16078
 
  hardcode_into_libs=yes
16079
 
  ;;
16080
 
 
16081
 
# No shared lib support for Linux oldld, aout, or coff.
16082
 
linux*oldld* | linux*aout* | linux*coff*)
16083
 
  dynamic_linker=no
16084
 
  ;;
16085
 
 
16086
 
# This must be Linux ELF.
16087
 
linux* | k*bsd*-gnu)
16088
 
  version_type=linux
16089
 
  need_lib_prefix=no
16090
 
  need_version=no
16091
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092
 
  soname_spec='${libname}${release}${shared_ext}$major'
16093
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16094
 
  shlibpath_var=LD_LIBRARY_PATH
16095
 
  shlibpath_overrides_runpath=no
16096
 
  # This implies no fast_install, which is unacceptable.
16097
 
  # Some rework will be needed to allow for fast_install
16098
 
  # before this can be enabled.
16099
 
  hardcode_into_libs=yes
16100
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16101
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16102
 
 
16103
 
  # Append ld.so.conf contents to the search path
16104
 
  if test -f /etc/ld.so.conf; then
16105
 
    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' ' '`
16106
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16107
 
  fi
16108
 
 
16109
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16110
 
  # powerpc, because MkLinux only supported shared libraries with the
16111
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16112
 
  # most powerpc-linux boxes support dynamic linking these days and
16113
 
  # people can always --disable-shared, the test was removed, and we
16114
 
  # assume the GNU/Linux dynamic linker is in use.
16115
 
  dynamic_linker='GNU/Linux ld.so'
16116
 
  ;;
16117
 
 
16118
 
netbsd*)
16119
 
  version_type=sunos
16120
 
  need_lib_prefix=no
16121
 
  need_version=no
16122
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16123
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16124
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16125
 
    dynamic_linker='NetBSD (a.out) ld.so'
16126
 
  else
16127
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16128
 
    soname_spec='${libname}${release}${shared_ext}$major'
16129
 
    dynamic_linker='NetBSD ld.elf_so'
16130
 
  fi
16131
 
  shlibpath_var=LD_LIBRARY_PATH
16132
 
  shlibpath_overrides_runpath=yes
16133
 
  hardcode_into_libs=yes
16134
 
  ;;
16135
 
 
16136
 
newsos6)
16137
 
  version_type=linux
16138
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139
 
  shlibpath_var=LD_LIBRARY_PATH
16140
 
  shlibpath_overrides_runpath=yes
16141
 
  ;;
16142
 
 
16143
 
nto-qnx*)
16144
 
  version_type=linux
16145
 
  need_lib_prefix=no
16146
 
  need_version=no
16147
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148
 
  soname_spec='${libname}${release}${shared_ext}$major'
16149
 
  shlibpath_var=LD_LIBRARY_PATH
16150
 
  shlibpath_overrides_runpath=yes
16151
 
  ;;
16152
 
 
16153
 
openbsd*)
16154
 
  version_type=sunos
16155
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16156
 
  need_lib_prefix=no
16157
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16158
 
  case $host_os in
16159
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16160
 
    *)                         need_version=no  ;;
16161
 
  esac
16162
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16163
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16164
 
  shlibpath_var=LD_LIBRARY_PATH
16165
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16166
 
    case $host_os in
16167
 
      openbsd2.[89] | openbsd2.[89].*)
16168
 
        shlibpath_overrides_runpath=no
16169
 
        ;;
16170
 
      *)
16171
 
        shlibpath_overrides_runpath=yes
16172
 
        ;;
16173
 
      esac
16174
 
  else
16175
 
    shlibpath_overrides_runpath=yes
16176
 
  fi
16177
 
  ;;
16178
 
 
16179
 
os2*)
16180
 
  libname_spec='$name'
16181
 
  shrext_cmds=".dll"
16182
 
  need_lib_prefix=no
16183
 
  library_names_spec='$libname${shared_ext} $libname.a'
16184
 
  dynamic_linker='OS/2 ld.exe'
16185
 
  shlibpath_var=LIBPATH
16186
 
  ;;
16187
 
 
16188
 
osf3* | osf4* | osf5*)
16189
 
  version_type=osf
16190
 
  need_lib_prefix=no
16191
 
  need_version=no
16192
 
  soname_spec='${libname}${release}${shared_ext}$major'
16193
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194
 
  shlibpath_var=LD_LIBRARY_PATH
16195
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16196
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16197
 
  ;;
16198
 
 
16199
 
rdos*)
16200
 
  dynamic_linker=no
16201
 
  ;;
16202
 
 
16203
 
solaris*)
16204
 
  version_type=linux
16205
 
  need_lib_prefix=no
16206
 
  need_version=no
16207
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208
 
  soname_spec='${libname}${release}${shared_ext}$major'
16209
 
  shlibpath_var=LD_LIBRARY_PATH
16210
 
  shlibpath_overrides_runpath=yes
16211
 
  hardcode_into_libs=yes
16212
 
  # ldd complains unless libraries are executable
16213
 
  postinstall_cmds='chmod +x $lib'
16214
 
  ;;
16215
 
 
16216
 
sunos4*)
16217
 
  version_type=sunos
16218
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16219
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16220
 
  shlibpath_var=LD_LIBRARY_PATH
16221
 
  shlibpath_overrides_runpath=yes
16222
 
  if test "$with_gnu_ld" = yes; then
16223
 
    need_lib_prefix=no
16224
 
  fi
16225
 
  need_version=yes
16226
 
  ;;
16227
 
 
16228
 
sysv4 | sysv4.3*)
16229
 
  version_type=linux
16230
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231
 
  soname_spec='${libname}${release}${shared_ext}$major'
16232
 
  shlibpath_var=LD_LIBRARY_PATH
16233
 
  case $host_vendor in
16234
 
    sni)
16235
 
      shlibpath_overrides_runpath=no
16236
 
      need_lib_prefix=no
16237
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16238
 
      runpath_var=LD_RUN_PATH
16239
 
      ;;
16240
 
    siemens)
16241
 
      need_lib_prefix=no
16242
 
      ;;
16243
 
    motorola)
16244
 
      need_lib_prefix=no
16245
 
      need_version=no
16246
 
      shlibpath_overrides_runpath=no
16247
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16248
 
      ;;
16249
 
  esac
16250
 
  ;;
16251
 
 
16252
 
sysv4*MP*)
16253
 
  if test -d /usr/nec ;then
16254
 
    version_type=linux
16255
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16256
 
    soname_spec='$libname${shared_ext}.$major'
16257
 
    shlibpath_var=LD_LIBRARY_PATH
16258
 
  fi
16259
 
  ;;
16260
 
 
16261
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16262
 
  version_type=freebsd-elf
16263
 
  need_lib_prefix=no
16264
 
  need_version=no
16265
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266
 
  soname_spec='${libname}${release}${shared_ext}$major'
16267
 
  shlibpath_var=LD_LIBRARY_PATH
16268
 
  hardcode_into_libs=yes
16269
 
  if test "$with_gnu_ld" = yes; then
16270
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16271
 
    shlibpath_overrides_runpath=no
16272
 
  else
16273
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16274
 
    shlibpath_overrides_runpath=yes
16275
 
    case $host_os in
16276
 
      sco3.2v5*)
16277
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16278
 
        ;;
16279
 
    esac
16280
 
  fi
16281
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16282
 
  ;;
16283
 
 
16284
 
uts4*)
16285
 
  version_type=linux
16286
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287
 
  soname_spec='${libname}${release}${shared_ext}$major'
16288
 
  shlibpath_var=LD_LIBRARY_PATH
16289
 
  ;;
16290
 
 
16291
 
*)
16292
 
  dynamic_linker=no
16293
 
  ;;
16294
 
esac
16295
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16296
 
$as_echo "$dynamic_linker" >&6; }
16297
 
test "$dynamic_linker" = no && can_build_shared=no
16298
 
 
16299
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16300
 
  $as_echo_n "(cached) " >&6
16301
 
else
16302
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16303
 
fi
16304
 
 
16305
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16306
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16307
 
  $as_echo_n "(cached) " >&6
16308
 
else
16309
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16310
 
fi
16311
 
 
16312
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16313
 
 
16314
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16315
 
if test "$GCC" = yes; then
16316
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16317
 
fi
16318
 
 
16319
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16320
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16321
 
hardcode_action_F77=
16322
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16323
 
   test -n "$runpath_var_F77" || \
16324
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16325
 
 
16326
 
  # We can hardcode non-existant directories.
16327
 
  if test "$hardcode_direct_F77" != no &&
16328
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16329
 
     # have to relink, otherwise we might link with an installed library
16330
 
     # when we should be linking with a yet-to-be-installed one
16331
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16332
 
     test "$hardcode_minus_L_F77" != no; then
16333
 
    # Linking always hardcodes the temporary library directory.
16334
 
    hardcode_action_F77=relink
16335
 
  else
16336
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16337
 
    hardcode_action_F77=immediate
16338
 
  fi
16339
 
else
16340
 
  # We cannot hardcode anything, or else we can only hardcode existing
16341
 
  # directories.
16342
 
  hardcode_action_F77=unsupported
16343
 
fi
16344
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16345
 
$as_echo "$hardcode_action_F77" >&6; }
16346
 
 
16347
 
if test "$hardcode_action_F77" = relink; then
16348
 
  # Fast installation is not supported
16349
 
  enable_fast_install=no
16350
 
elif test "$shlibpath_overrides_runpath" = yes ||
16351
 
     test "$enable_shared" = no; then
16352
 
  # Fast installation is not necessary
16353
 
  enable_fast_install=needless
16354
 
fi
16355
 
 
16356
 
 
16357
 
# The else clause should only fire when bootstrapping the
16358
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16359
 
# with your package, and you will get complaints that there are
16360
 
# no rules to generate ltmain.sh.
16361
 
if test -f "$ltmain"; then
16362
 
  # See if we are running on zsh, and set the options which allow our commands through
16363
 
  # without removal of \ escapes.
16364
 
  if test -n "${ZSH_VERSION+set}" ; then
16365
 
    setopt NO_GLOB_SUBST
16366
 
  fi
16367
 
  # Now quote all the things that may contain metacharacters while being
16368
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16369
 
  # variables and quote the copies for generation of the libtool script.
16370
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16371
 
    SED SHELL STRIP \
16372
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16373
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16374
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16375
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16376
 
    lt_cv_sys_global_symbol_to_c_name_address \
16377
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16378
 
    old_postinstall_cmds old_postuninstall_cmds \
16379
 
    compiler_F77 \
16380
 
    CC_F77 \
16381
 
    LD_F77 \
16382
 
    lt_prog_compiler_wl_F77 \
16383
 
    lt_prog_compiler_pic_F77 \
16384
 
    lt_prog_compiler_static_F77 \
16385
 
    lt_prog_compiler_no_builtin_flag_F77 \
16386
 
    export_dynamic_flag_spec_F77 \
16387
 
    thread_safe_flag_spec_F77 \
16388
 
    whole_archive_flag_spec_F77 \
16389
 
    enable_shared_with_static_runtimes_F77 \
16390
 
    old_archive_cmds_F77 \
16391
 
    old_archive_from_new_cmds_F77 \
16392
 
    predep_objects_F77 \
16393
 
    postdep_objects_F77 \
16394
 
    predeps_F77 \
16395
 
    postdeps_F77 \
16396
 
    compiler_lib_search_path_F77 \
16397
 
    compiler_lib_search_dirs_F77 \
16398
 
    archive_cmds_F77 \
16399
 
    archive_expsym_cmds_F77 \
16400
 
    postinstall_cmds_F77 \
16401
 
    postuninstall_cmds_F77 \
16402
 
    old_archive_from_expsyms_cmds_F77 \
16403
 
    allow_undefined_flag_F77 \
16404
 
    no_undefined_flag_F77 \
16405
 
    export_symbols_cmds_F77 \
16406
 
    hardcode_libdir_flag_spec_F77 \
16407
 
    hardcode_libdir_flag_spec_ld_F77 \
16408
 
    hardcode_libdir_separator_F77 \
16409
 
    hardcode_automatic_F77 \
16410
 
    module_cmds_F77 \
16411
 
    module_expsym_cmds_F77 \
16412
 
    lt_cv_prog_compiler_c_o_F77 \
16413
 
    fix_srcfile_path_F77 \
16414
 
    exclude_expsyms_F77 \
16415
 
    include_expsyms_F77; do
16416
 
 
16417
 
    case $var in
16418
 
    old_archive_cmds_F77 | \
16419
 
    old_archive_from_new_cmds_F77 | \
16420
 
    archive_cmds_F77 | \
16421
 
    archive_expsym_cmds_F77 | \
16422
 
    module_cmds_F77 | \
16423
 
    module_expsym_cmds_F77 | \
16424
 
    old_archive_from_expsyms_cmds_F77 | \
16425
 
    export_symbols_cmds_F77 | \
16426
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16427
 
    postinstall_cmds | postuninstall_cmds | \
16428
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16429
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16430
 
      # Double-quote double-evaled strings.
16431
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16432
 
      ;;
16433
 
    *)
16434
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16435
 
      ;;
16436
 
    esac
16437
 
  done
16438
 
 
16439
 
  case $lt_echo in
16440
 
  *'\$0 --fallback-echo"')
16441
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16442
 
    ;;
16443
 
  esac
16444
 
 
16445
 
cfgfile="$ofile"
16446
 
 
16447
 
  cat <<__EOF__ >> "$cfgfile"
16448
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16449
 
 
16450
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16451
 
 
16452
 
# Shell to use when invoking shell scripts.
16453
 
SHELL=$lt_SHELL
16454
 
 
16455
 
# Whether or not to build shared libraries.
16456
 
build_libtool_libs=$enable_shared
16457
 
 
16458
 
# Whether or not to build static libraries.
16459
 
build_old_libs=$enable_static
16460
 
 
16461
 
# Whether or not to add -lc for building shared libraries.
16462
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16463
 
 
16464
 
# Whether or not to disallow shared libs when runtime libs are static
16465
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16466
 
 
16467
 
# Whether or not to optimize for fast installation.
16468
 
fast_install=$enable_fast_install
16469
 
 
16470
 
# The host system.
16471
 
host_alias=$host_alias
16472
 
host=$host
16473
 
host_os=$host_os
16474
 
 
16475
 
# The build system.
16476
 
build_alias=$build_alias
16477
 
build=$build
16478
 
build_os=$build_os
16479
 
 
16480
 
# An echo program that does not interpret backslashes.
16481
 
echo=$lt_echo
16482
 
 
16483
 
# The archiver.
16484
 
AR=$lt_AR
16485
 
AR_FLAGS=$lt_AR_FLAGS
16486
 
 
16487
 
# A C compiler.
16488
 
LTCC=$lt_LTCC
16489
 
 
16490
 
# LTCC compiler flags.
16491
 
LTCFLAGS=$lt_LTCFLAGS
16492
 
 
16493
 
# A language-specific compiler.
16494
 
CC=$lt_compiler_F77
16495
 
 
16496
 
# Is the compiler the GNU C compiler?
16497
 
with_gcc=$GCC_F77
16498
 
 
16499
 
# An ERE matcher.
16500
 
EGREP=$lt_EGREP
16501
 
 
16502
 
# The linker used to build libraries.
16503
 
LD=$lt_LD_F77
16504
 
 
16505
 
# Whether we need hard or soft links.
16506
 
LN_S=$lt_LN_S
16507
 
 
16508
 
# A BSD-compatible nm program.
16509
 
NM=$lt_NM
16510
 
 
16511
 
# A symbol stripping program
16512
 
STRIP=$lt_STRIP
16513
 
 
16514
 
# Used to examine libraries when file_magic_cmd begins "file"
16515
 
MAGIC_CMD=$MAGIC_CMD
16516
 
 
16517
 
# Used on cygwin: DLL creation program.
16518
 
DLLTOOL="$DLLTOOL"
16519
 
 
16520
 
# Used on cygwin: object dumper.
16521
 
OBJDUMP="$OBJDUMP"
16522
 
 
16523
 
# Used on cygwin: assembler.
16524
 
AS="$AS"
16525
 
 
16526
 
# The name of the directory that contains temporary libtool files.
16527
 
objdir=$objdir
16528
 
 
16529
 
# How to create reloadable object files.
16530
 
reload_flag=$lt_reload_flag
16531
 
reload_cmds=$lt_reload_cmds
16532
 
 
16533
 
# How to pass a linker flag through the compiler.
16534
 
wl=$lt_lt_prog_compiler_wl_F77
16535
 
 
16536
 
# Object file suffix (normally "o").
16537
 
objext="$ac_objext"
16538
 
 
16539
 
# Old archive suffix (normally "a").
16540
 
libext="$libext"
16541
 
 
16542
 
# Shared library suffix (normally ".so").
16543
 
shrext_cmds='$shrext_cmds'
16544
 
 
16545
 
# Executable file suffix (normally "").
16546
 
exeext="$exeext"
16547
 
 
16548
 
# Additional compiler flags for building library objects.
16549
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16550
 
pic_mode=$pic_mode
16551
 
 
16552
 
# What is the maximum length of a command?
16553
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16554
 
 
16555
 
# Does compiler simultaneously support -c and -o options?
16556
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16557
 
 
16558
 
# Must we lock files when doing compilation?
16559
 
need_locks=$lt_need_locks
16560
 
 
16561
 
# Do we need the lib prefix for modules?
16562
 
need_lib_prefix=$need_lib_prefix
16563
 
 
16564
 
# Do we need a version for libraries?
16565
 
need_version=$need_version
16566
 
 
16567
 
# Whether dlopen is supported.
16568
 
dlopen_support=$enable_dlopen
16569
 
 
16570
 
# Whether dlopen of programs is supported.
16571
 
dlopen_self=$enable_dlopen_self
16572
 
 
16573
 
# Whether dlopen of statically linked programs is supported.
16574
 
dlopen_self_static=$enable_dlopen_self_static
16575
 
 
16576
 
# Compiler flag to prevent dynamic linking.
16577
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16578
 
 
16579
 
# Compiler flag to turn off builtin functions.
16580
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16581
 
 
16582
 
# Compiler flag to allow reflexive dlopens.
16583
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16584
 
 
16585
 
# Compiler flag to generate shared objects directly from archives.
16586
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16587
 
 
16588
 
# Compiler flag to generate thread-safe objects.
16589
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16590
 
 
16591
 
# Library versioning type.
16592
 
version_type=$version_type
16593
 
 
16594
 
# Format of library name prefix.
16595
 
libname_spec=$lt_libname_spec
16596
 
 
16597
 
# List of archive names.  First name is the real one, the rest are links.
16598
 
# The last name is the one that the linker finds with -lNAME.
16599
 
library_names_spec=$lt_library_names_spec
16600
 
 
16601
 
# The coded name of the library, if different from the real name.
16602
 
soname_spec=$lt_soname_spec
16603
 
 
16604
 
# Commands used to build and install an old-style archive.
16605
 
RANLIB=$lt_RANLIB
16606
 
old_archive_cmds=$lt_old_archive_cmds_F77
16607
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16608
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16609
 
 
16610
 
# Create an old-style archive from a shared archive.
16611
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16612
 
 
16613
 
# Create a temporary old-style archive to link instead of a shared archive.
16614
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16615
 
 
16616
 
# Commands used to build and install a shared archive.
16617
 
archive_cmds=$lt_archive_cmds_F77
16618
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16619
 
postinstall_cmds=$lt_postinstall_cmds
16620
 
postuninstall_cmds=$lt_postuninstall_cmds
16621
 
 
16622
 
# Commands used to build a loadable module (assumed same as above if empty)
16623
 
module_cmds=$lt_module_cmds_F77
16624
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16625
 
 
16626
 
# Commands to strip libraries.
16627
 
old_striplib=$lt_old_striplib
16628
 
striplib=$lt_striplib
16629
 
 
16630
 
# Dependencies to place before the objects being linked to create a
16631
 
# shared library.
16632
 
predep_objects=$lt_predep_objects_F77
16633
 
 
16634
 
# Dependencies to place after the objects being linked to create a
16635
 
# shared library.
16636
 
postdep_objects=$lt_postdep_objects_F77
16637
 
 
16638
 
# Dependencies to place before the objects being linked to create a
16639
 
# shared library.
16640
 
predeps=$lt_predeps_F77
16641
 
 
16642
 
# Dependencies to place after the objects being linked to create a
16643
 
# shared library.
16644
 
postdeps=$lt_postdeps_F77
16645
 
 
16646
 
# The directories searched by this compiler when creating a shared
16647
 
# library
16648
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16649
 
 
16650
 
# The library search path used internally by the compiler when linking
16651
 
# a shared library.
16652
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16653
 
 
16654
 
# Method to check whether dependent libraries are shared objects.
16655
 
deplibs_check_method=$lt_deplibs_check_method
16656
 
 
16657
 
# Command to use when deplibs_check_method == file_magic.
16658
 
file_magic_cmd=$lt_file_magic_cmd
16659
 
 
16660
 
# Flag that allows shared libraries with undefined symbols to be built.
16661
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16662
 
 
16663
 
# Flag that forces no undefined symbols.
16664
 
no_undefined_flag=$lt_no_undefined_flag_F77
16665
 
 
16666
 
# Commands used to finish a libtool library installation in a directory.
16667
 
finish_cmds=$lt_finish_cmds
16668
 
 
16669
 
# Same as above, but a single script fragment to be evaled but not shown.
16670
 
finish_eval=$lt_finish_eval
16671
 
 
16672
 
# Take the output of nm and produce a listing of raw symbols and C names.
16673
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16674
 
 
16675
 
# Transform the output of nm in a proper C declaration
16676
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16677
 
 
16678
 
# Transform the output of nm in a C name address pair
16679
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16680
 
 
16681
 
# This is the shared library runtime path variable.
16682
 
runpath_var=$runpath_var
16683
 
 
16684
 
# This is the shared library path variable.
16685
 
shlibpath_var=$shlibpath_var
16686
 
 
16687
 
# Is shlibpath searched before the hard-coded library search path?
16688
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16689
 
 
16690
 
# How to hardcode a shared library path into an executable.
16691
 
hardcode_action=$hardcode_action_F77
16692
 
 
16693
 
# Whether we should hardcode library paths into libraries.
16694
 
hardcode_into_libs=$hardcode_into_libs
16695
 
 
16696
 
# Flag to hardcode \$libdir into a binary during linking.
16697
 
# This must work even if \$libdir does not exist.
16698
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16699
 
 
16700
 
# If ld is used when linking, flag to hardcode \$libdir into
16701
 
# a binary during linking. This must work even if \$libdir does
16702
 
# not exist.
16703
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16704
 
 
16705
 
# Whether we need a single -rpath flag with a separated argument.
16706
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16707
 
 
16708
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16709
 
# resulting binary.
16710
 
hardcode_direct=$hardcode_direct_F77
16711
 
 
16712
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16713
 
# resulting binary.
16714
 
hardcode_minus_L=$hardcode_minus_L_F77
16715
 
 
16716
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16717
 
# the resulting binary.
16718
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16719
 
 
16720
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16721
 
# and all subsequent libraries and executables linked against it.
16722
 
hardcode_automatic=$hardcode_automatic_F77
16723
 
 
16724
 
# Variables whose values should be saved in libtool wrapper scripts and
16725
 
# restored at relink time.
16726
 
variables_saved_for_relink="$variables_saved_for_relink"
16727
 
 
16728
 
# Whether libtool must link a program against all its dependency libraries.
16729
 
link_all_deplibs=$link_all_deplibs_F77
16730
 
 
16731
 
# Compile-time system search path for libraries
16732
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16733
 
 
16734
 
# Run-time system search path for libraries
16735
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16736
 
 
16737
 
# Fix the shell variable \$srcfile for the compiler.
16738
 
fix_srcfile_path=$lt_fix_srcfile_path
16739
 
 
16740
 
# Set to yes if exported symbols are required.
16741
 
always_export_symbols=$always_export_symbols_F77
16742
 
 
16743
 
# The commands to list exported symbols.
16744
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16745
 
 
16746
 
# The commands to extract the exported symbol list from a shared archive.
16747
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16748
 
 
16749
 
# Symbols that should not be listed in the preloaded symbols.
16750
 
exclude_expsyms=$lt_exclude_expsyms_F77
16751
 
 
16752
 
# Symbols that must always be exported.
16753
 
include_expsyms=$lt_include_expsyms_F77
16754
 
 
16755
 
# ### END LIBTOOL TAG CONFIG: $tagname
16756
 
 
16757
 
__EOF__
16758
 
 
16759
 
 
16760
 
else
16761
 
  # If there is no Makefile yet, we rely on a make rule to execute
16762
 
  # `config.status --recheck' to rerun these tests and create the
16763
 
  # libtool script then.
16764
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16765
 
  if test -f "$ltmain_in"; then
16766
 
    test -f Makefile && make "$ltmain"
16767
 
  fi
16768
 
fi
16769
 
 
16770
 
 
16771
 
ac_ext=c
16772
 
ac_cpp='$CPP $CPPFLAGS'
16773
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16774
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16775
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16776
 
 
16777
 
CC="$lt_save_CC"
16778
 
 
16779
 
        else
16780
 
          tagname=""
16781
 
        fi
16782
 
        ;;
16783
 
 
16784
 
      GCJ)
16785
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16786
 
 
16787
 
 
16788
 
# Source file extension for Java test sources.
16789
 
ac_ext=java
16790
 
 
16791
 
# Object file extension for compiled Java test sources.
16792
 
objext=o
16793
 
objext_GCJ=$objext
16794
 
 
16795
 
# Code to be used in simple compile tests
16796
 
lt_simple_compile_test_code="class foo {}"
16797
 
 
16798
 
# Code to be used in simple link tests
16799
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16800
 
 
16801
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16802
 
 
16803
 
# If no C compiler was specified, use CC.
16804
 
LTCC=${LTCC-"$CC"}
16805
 
 
16806
 
# If no C compiler flags were specified, use CFLAGS.
16807
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16808
 
 
16809
 
# Allow CC to be a program name with arguments.
16810
 
compiler=$CC
16811
 
 
16812
 
 
16813
 
# save warnings/boilerplate of simple test code
16814
 
ac_outfile=conftest.$ac_objext
16815
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16816
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16817
 
_lt_compiler_boilerplate=`cat conftest.err`
16818
 
$rm conftest*
16819
 
 
16820
 
ac_outfile=conftest.$ac_objext
16821
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16822
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16823
 
_lt_linker_boilerplate=`cat conftest.err`
16824
 
$rm -r conftest*
16825
 
 
16826
 
 
16827
 
# Allow CC to be a program name with arguments.
16828
 
lt_save_CC="$CC"
16829
 
CC=${GCJ-"gcj"}
16830
 
compiler=$CC
16831
 
compiler_GCJ=$CC
16832
 
for cc_temp in $compiler""; do
16833
 
  case $cc_temp in
16834
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16835
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16836
 
    \-*) ;;
16837
 
    *) break;;
16838
 
  esac
16839
 
done
16840
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16841
 
 
16842
 
 
16843
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16844
 
archive_cmds_need_lc_GCJ=no
16845
 
 
16846
 
old_archive_cmds_GCJ=$old_archive_cmds
16847
 
 
16848
 
 
16849
 
lt_prog_compiler_no_builtin_flag_GCJ=
16850
 
 
16851
 
if test "$GCC" = yes; then
16852
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16853
 
 
16854
 
 
16855
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16856
 
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16857
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16858
 
  $as_echo_n "(cached) " >&6
16859
 
else
16860
 
  lt_cv_prog_compiler_rtti_exceptions=no
16861
 
  ac_outfile=conftest.$ac_objext
16862
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16863
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16864
 
   # Insert the option either (1) after the last *FLAGS variable, or
16865
 
   # (2) before a word containing "conftest.", or (3) at the end.
16866
 
   # Note that $ac_compile itself does not contain backslashes and begins
16867
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16868
 
   # The option is referenced via a variable to avoid confusing sed.
16869
 
   lt_compile=`echo "$ac_compile" | $SED \
16870
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16871
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16872
 
   -e 's:$: $lt_compiler_flag:'`
16873
 
   (eval echo "\"\$as_me:16873: $lt_compile\"" >&5)
16874
 
   (eval "$lt_compile" 2>conftest.err)
16875
 
   ac_status=$?
16876
 
   cat conftest.err >&5
16877
 
   echo "$as_me:16877: \$? = $ac_status" >&5
16878
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16879
 
     # The compiler can only warn and ignore the option if not recognized
16880
 
     # So say no if there are warnings other than the usual output.
16881
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16882
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16883
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16884
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16885
 
     fi
16886
 
   fi
16887
 
   $rm conftest*
16888
 
 
16889
 
fi
16890
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16891
 
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16892
 
 
16893
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16894
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16895
 
else
16896
 
    :
16897
 
fi
16898
 
 
16899
 
fi
16900
 
 
16901
 
lt_prog_compiler_wl_GCJ=
16902
 
lt_prog_compiler_pic_GCJ=
16903
 
lt_prog_compiler_static_GCJ=
16904
 
 
16905
 
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16906
 
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16907
 
 
16908
 
  if test "$GCC" = yes; then
16909
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16910
 
    lt_prog_compiler_static_GCJ='-static'
16911
 
 
16912
 
    case $host_os in
16913
 
      aix*)
16914
 
      # All AIX code is PIC.
16915
 
      if test "$host_cpu" = ia64; then
16916
 
        # AIX 5 now supports IA64 processor
16917
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16918
 
      fi
16919
 
      ;;
16920
 
 
16921
 
    amigaos*)
16922
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16923
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16924
 
      # like `-m68040'.
16925
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16926
 
      ;;
16927
 
 
16928
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16929
 
      # PIC is the default for these OSes.
16930
 
      ;;
16931
 
 
16932
 
    mingw* | cygwin* | pw32* | os2*)
16933
 
      # This hack is so that the source file can tell whether it is being
16934
 
      # built for inclusion in a dll (and should export symbols for example).
16935
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16936
 
      # (--disable-auto-import) libraries
16937
 
 
16938
 
      ;;
16939
 
 
16940
 
    darwin* | rhapsody*)
16941
 
      # PIC is the default on this platform
16942
 
      # Common symbols not allowed in MH_DYLIB files
16943
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16944
 
      ;;
16945
 
 
16946
 
    interix[3-9]*)
16947
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16948
 
      # Instead, we relocate shared libraries at runtime.
16949
 
      ;;
16950
 
 
16951
 
    msdosdjgpp*)
16952
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16953
 
      # on systems that don't support them.
16954
 
      lt_prog_compiler_can_build_shared_GCJ=no
16955
 
      enable_shared=no
16956
 
      ;;
16957
 
 
16958
 
    sysv4*MP*)
16959
 
      if test -d /usr/nec; then
16960
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16961
 
      fi
16962
 
      ;;
16963
 
 
16964
 
    hpux*)
16965
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16966
 
      # not for PA HP-UX.
16967
 
      case $host_cpu in
16968
 
      hppa*64*|ia64*)
16969
 
        # +Z the default
16970
 
        ;;
16971
 
      *)
16972
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16973
 
        ;;
16974
 
      esac
16975
 
      ;;
16976
 
 
16977
 
    *)
16978
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16979
 
      ;;
16980
 
    esac
16981
 
  else
16982
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16983
 
    case $host_os in
16984
 
    aix*)
16985
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16986
 
      if test "$host_cpu" = ia64; then
16987
 
        # AIX 5 now supports IA64 processor
16988
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16989
 
      else
16990
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16991
 
      fi
16992
 
      ;;
16993
 
      darwin*)
16994
 
        # PIC is the default on this platform
16995
 
        # Common symbols not allowed in MH_DYLIB files
16996
 
       case $cc_basename in
16997
 
         xlc*)
16998
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16999
 
         lt_prog_compiler_wl_GCJ='-Wl,'
17000
 
         ;;
17001
 
       esac
17002
 
       ;;
17003
 
 
17004
 
    mingw* | cygwin* | pw32* | os2*)
17005
 
      # This hack is so that the source file can tell whether it is being
17006
 
      # built for inclusion in a dll (and should export symbols for example).
17007
 
 
17008
 
      ;;
17009
 
 
17010
 
    hpux9* | hpux10* | hpux11*)
17011
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17012
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17013
 
      # not for PA HP-UX.
17014
 
      case $host_cpu in
17015
 
      hppa*64*|ia64*)
17016
 
        # +Z the default
17017
 
        ;;
17018
 
      *)
17019
 
        lt_prog_compiler_pic_GCJ='+Z'
17020
 
        ;;
17021
 
      esac
17022
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17023
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17024
 
      ;;
17025
 
 
17026
 
    irix5* | irix6* | nonstopux*)
17027
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17028
 
      # PIC (with -KPIC) is the default.
17029
 
      lt_prog_compiler_static_GCJ='-non_shared'
17030
 
      ;;
17031
 
 
17032
 
    newsos6)
17033
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17034
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17035
 
      ;;
17036
 
 
17037
 
    linux* | k*bsd*-gnu)
17038
 
      case $cc_basename in
17039
 
      icc* | ecc*)
17040
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17041
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17042
 
        lt_prog_compiler_static_GCJ='-static'
17043
 
        ;;
17044
 
      pgcc* | pgf77* | pgf90* | pgf95*)
17045
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17046
 
        # which looks to be a dead project)
17047
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17048
 
        lt_prog_compiler_pic_GCJ='-fpic'
17049
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17050
 
        ;;
17051
 
      ccc*)
17052
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17053
 
        # All Alpha code is PIC.
17054
 
        lt_prog_compiler_static_GCJ='-non_shared'
17055
 
        ;;
17056
 
      *)
17057
 
        case `$CC -V 2>&1 | sed 5q` in
17058
 
        *Sun\ C*)
17059
 
          # Sun C 5.9
17060
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17061
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17062
 
          lt_prog_compiler_wl_GCJ='-Wl,'
17063
 
          ;;
17064
 
        *Sun\ F*)
17065
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
17066
 
          lt_prog_compiler_pic_GCJ='-KPIC'
17067
 
          lt_prog_compiler_static_GCJ='-Bstatic'
17068
 
          lt_prog_compiler_wl_GCJ=''
17069
 
          ;;
17070
 
        esac
17071
 
        ;;
17072
 
      esac
17073
 
      ;;
17074
 
 
17075
 
    osf3* | osf4* | osf5*)
17076
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17077
 
      # All OSF/1 code is PIC.
17078
 
      lt_prog_compiler_static_GCJ='-non_shared'
17079
 
      ;;
17080
 
 
17081
 
    rdos*)
17082
 
      lt_prog_compiler_static_GCJ='-non_shared'
17083
 
      ;;
17084
 
 
17085
 
    solaris*)
17086
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17087
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17088
 
      case $cc_basename in
17089
 
      f77* | f90* | f95*)
17090
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17091
 
      *)
17092
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17093
 
      esac
17094
 
      ;;
17095
 
 
17096
 
    sunos4*)
17097
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17098
 
      lt_prog_compiler_pic_GCJ='-PIC'
17099
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17100
 
      ;;
17101
 
 
17102
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
17103
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17104
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17105
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17106
 
      ;;
17107
 
 
17108
 
    sysv4*MP*)
17109
 
      if test -d /usr/nec ;then
17110
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17111
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17112
 
      fi
17113
 
      ;;
17114
 
 
17115
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17116
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17117
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17118
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17119
 
      ;;
17120
 
 
17121
 
    unicos*)
17122
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17123
 
      lt_prog_compiler_can_build_shared_GCJ=no
17124
 
      ;;
17125
 
 
17126
 
    uts4*)
17127
 
      lt_prog_compiler_pic_GCJ='-pic'
17128
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17129
 
      ;;
17130
 
 
17131
 
    *)
17132
 
      lt_prog_compiler_can_build_shared_GCJ=no
17133
 
      ;;
17134
 
    esac
17135
 
  fi
17136
 
 
17137
 
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17138
 
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17139
 
 
17140
 
#
17141
 
# Check to make sure the PIC flag actually works.
17142
 
#
17143
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17144
 
 
17145
 
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17146
 
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17147
 
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17148
 
  $as_echo_n "(cached) " >&6
17149
 
else
17150
 
  lt_cv_prog_compiler_pic_works_GCJ=no
17151
 
  ac_outfile=conftest.$ac_objext
17152
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17153
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17154
 
   # Insert the option either (1) after the last *FLAGS variable, or
17155
 
   # (2) before a word containing "conftest.", or (3) at the end.
17156
 
   # Note that $ac_compile itself does not contain backslashes and begins
17157
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17158
 
   # The option is referenced via a variable to avoid confusing sed.
17159
 
   lt_compile=`echo "$ac_compile" | $SED \
17160
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17161
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17162
 
   -e 's:$: $lt_compiler_flag:'`
17163
 
   (eval echo "\"\$as_me:17163: $lt_compile\"" >&5)
17164
 
   (eval "$lt_compile" 2>conftest.err)
17165
 
   ac_status=$?
17166
 
   cat conftest.err >&5
17167
 
   echo "$as_me:17167: \$? = $ac_status" >&5
17168
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17169
 
     # The compiler can only warn and ignore the option if not recognized
17170
 
     # So say no if there are warnings other than the usual output.
17171
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17172
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17173
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17174
 
       lt_cv_prog_compiler_pic_works_GCJ=yes
17175
 
     fi
17176
 
   fi
17177
 
   $rm conftest*
17178
 
 
17179
 
fi
17180
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17181
 
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17182
 
 
17183
 
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17184
 
    case $lt_prog_compiler_pic_GCJ in
17185
 
     "" | " "*) ;;
17186
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17187
 
     esac
17188
 
else
17189
 
    lt_prog_compiler_pic_GCJ=
17190
 
     lt_prog_compiler_can_build_shared_GCJ=no
17191
 
fi
17192
 
 
17193
 
fi
17194
 
case $host_os in
17195
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17196
 
  *djgpp*)
17197
 
    lt_prog_compiler_pic_GCJ=
17198
 
    ;;
17199
 
  *)
17200
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17201
 
    ;;
17202
 
esac
17203
 
 
17204
 
#
17205
 
# Check to make sure the static flag actually works.
17206
 
#
17207
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17208
 
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17209
 
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17210
 
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17211
 
  $as_echo_n "(cached) " >&6
17212
 
else
17213
 
  lt_cv_prog_compiler_static_works_GCJ=no
17214
 
   save_LDFLAGS="$LDFLAGS"
17215
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17216
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17217
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17218
 
     # The linker can only warn and ignore the option if not recognized
17219
 
     # So say no if there are warnings
17220
 
     if test -s conftest.err; then
17221
 
       # Append any errors to the config.log.
17222
 
       cat conftest.err 1>&5
17223
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17224
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17225
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17226
 
         lt_cv_prog_compiler_static_works_GCJ=yes
17227
 
       fi
17228
 
     else
17229
 
       lt_cv_prog_compiler_static_works_GCJ=yes
17230
 
     fi
17231
 
   fi
17232
 
   $rm -r conftest*
17233
 
   LDFLAGS="$save_LDFLAGS"
17234
 
 
17235
 
fi
17236
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17237
 
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17238
 
 
17239
 
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17240
 
    :
17241
 
else
17242
 
    lt_prog_compiler_static_GCJ=
17243
 
fi
17244
 
 
17245
 
 
17246
 
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17247
 
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17248
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17249
 
  $as_echo_n "(cached) " >&6
17250
 
else
17251
 
  lt_cv_prog_compiler_c_o_GCJ=no
17252
 
   $rm -r conftest 2>/dev/null
17253
 
   mkdir conftest
17254
 
   cd conftest
17255
 
   mkdir out
17256
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17257
 
 
17258
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17259
 
   # Insert the option either (1) after the last *FLAGS variable, or
17260
 
   # (2) before a word containing "conftest.", or (3) at the end.
17261
 
   # Note that $ac_compile itself does not contain backslashes and begins
17262
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17263
 
   lt_compile=`echo "$ac_compile" | $SED \
17264
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17265
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17266
 
   -e 's:$: $lt_compiler_flag:'`
17267
 
   (eval echo "\"\$as_me:17267: $lt_compile\"" >&5)
17268
 
   (eval "$lt_compile" 2>out/conftest.err)
17269
 
   ac_status=$?
17270
 
   cat out/conftest.err >&5
17271
 
   echo "$as_me:17271: \$? = $ac_status" >&5
17272
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17273
 
   then
17274
 
     # The compiler can only warn and ignore the option if not recognized
17275
 
     # So say no if there are warnings
17276
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17277
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17278
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17279
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17280
 
     fi
17281
 
   fi
17282
 
   chmod u+w . 2>&5
17283
 
   $rm conftest*
17284
 
   # SGI C++ compiler will create directory out/ii_files/ for
17285
 
   # template instantiation
17286
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17287
 
   $rm out/* && rmdir out
17288
 
   cd ..
17289
 
   rmdir conftest
17290
 
   $rm conftest*
17291
 
 
17292
 
fi
17293
 
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17294
 
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17295
 
 
17296
 
 
17297
 
hard_links="nottested"
17298
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17299
 
  # do not overwrite the value of need_locks provided by the user
17300
 
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17301
 
$as_echo_n "checking if we can lock with hard links... " >&6; }
17302
 
  hard_links=yes
17303
 
  $rm conftest*
17304
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17305
 
  touch conftest.a
17306
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17307
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17308
 
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17309
 
$as_echo "$hard_links" >&6; }
17310
 
  if test "$hard_links" = no; then
17311
 
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17312
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17313
 
    need_locks=warn
17314
 
  fi
17315
 
else
17316
 
  need_locks=no
17317
 
fi
17318
 
 
17319
 
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17320
 
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17321
 
 
17322
 
  runpath_var=
17323
 
  allow_undefined_flag_GCJ=
17324
 
  enable_shared_with_static_runtimes_GCJ=no
17325
 
  archive_cmds_GCJ=
17326
 
  archive_expsym_cmds_GCJ=
17327
 
  old_archive_From_new_cmds_GCJ=
17328
 
  old_archive_from_expsyms_cmds_GCJ=
17329
 
  export_dynamic_flag_spec_GCJ=
17330
 
  whole_archive_flag_spec_GCJ=
17331
 
  thread_safe_flag_spec_GCJ=
17332
 
  hardcode_libdir_flag_spec_GCJ=
17333
 
  hardcode_libdir_flag_spec_ld_GCJ=
17334
 
  hardcode_libdir_separator_GCJ=
17335
 
  hardcode_direct_GCJ=no
17336
 
  hardcode_minus_L_GCJ=no
17337
 
  hardcode_shlibpath_var_GCJ=unsupported
17338
 
  link_all_deplibs_GCJ=unknown
17339
 
  hardcode_automatic_GCJ=no
17340
 
  module_cmds_GCJ=
17341
 
  module_expsym_cmds_GCJ=
17342
 
  always_export_symbols_GCJ=no
17343
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17344
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17345
 
  # included in the symbol list
17346
 
  include_expsyms_GCJ=
17347
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17348
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17349
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17350
 
  # as well as any symbol that contains `d'.
17351
 
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17352
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17353
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17354
 
  # the symbol is explicitly referenced.  Since portable code cannot
17355
 
  # rely on this symbol name, it's probably fine to never include it in
17356
 
  # preloaded symbol tables.
17357
 
  # Exclude shared library initialization/finalization symbols.
17358
 
  extract_expsyms_cmds=
17359
 
  # Just being paranoid about ensuring that cc_basename is set.
17360
 
  for cc_temp in $compiler""; do
17361
 
  case $cc_temp in
17362
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17363
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17364
 
    \-*) ;;
17365
 
    *) break;;
17366
 
  esac
17367
 
done
17368
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17369
 
 
17370
 
  case $host_os in
17371
 
  cygwin* | mingw* | pw32*)
17372
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17373
 
    # When not using gcc, we currently assume that we are using
17374
 
    # Microsoft Visual C++.
17375
 
    if test "$GCC" != yes; then
17376
 
      with_gnu_ld=no
17377
 
    fi
17378
 
    ;;
17379
 
  interix*)
17380
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17381
 
    with_gnu_ld=yes
17382
 
    ;;
17383
 
  openbsd*)
17384
 
    with_gnu_ld=no
17385
 
    ;;
17386
 
  esac
17387
 
 
17388
 
  ld_shlibs_GCJ=yes
17389
 
  if test "$with_gnu_ld" = yes; then
17390
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17391
 
    wlarc='${wl}'
17392
 
 
17393
 
    # Set some defaults for GNU ld with shared library support. These
17394
 
    # are reset later if shared libraries are not supported. Putting them
17395
 
    # here allows them to be overridden if necessary.
17396
 
    runpath_var=LD_RUN_PATH
17397
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17398
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17399
 
    # ancient GNU ld didn't support --whole-archive et. al.
17400
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17401
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17402
 
      else
17403
 
        whole_archive_flag_spec_GCJ=
17404
 
    fi
17405
 
    supports_anon_versioning=no
17406
 
    case `$LD -v 2>/dev/null` in
17407
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17408
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17409
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17410
 
      *\ 2.11.*) ;; # other 2.11 versions
17411
 
      *) supports_anon_versioning=yes ;;
17412
 
    esac
17413
 
 
17414
 
    # See if GNU ld supports shared libraries.
17415
 
    case $host_os in
17416
 
    aix[3-9]*)
17417
 
      # On AIX/PPC, the GNU linker is very broken
17418
 
      if test "$host_cpu" != ia64; then
17419
 
        ld_shlibs_GCJ=no
17420
 
        cat <<EOF 1>&2
17421
 
 
17422
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17423
 
*** to be unable to reliably create shared libraries on AIX.
17424
 
*** Therefore, libtool is disabling shared libraries support.  If you
17425
 
*** really care for shared libraries, you may want to modify your PATH
17426
 
*** so that a non-GNU linker is found, and then restart.
17427
 
 
17428
 
EOF
17429
 
      fi
17430
 
      ;;
17431
 
 
17432
 
    amigaos*)
17433
 
      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)'
17434
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17435
 
      hardcode_minus_L_GCJ=yes
17436
 
 
17437
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17438
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17439
 
      # to version 4, is to share data among multiple programs linked
17440
 
      # with the same dynamic library.  Since this doesn't match the
17441
 
      # behavior of shared libraries on other platforms, we can't use
17442
 
      # them.
17443
 
      ld_shlibs_GCJ=no
17444
 
      ;;
17445
 
 
17446
 
    beos*)
17447
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17448
 
        allow_undefined_flag_GCJ=unsupported
17449
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17450
 
        # support --undefined.  This deserves some investigation.  FIXME
17451
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17452
 
      else
17453
 
        ld_shlibs_GCJ=no
17454
 
      fi
17455
 
      ;;
17456
 
 
17457
 
    cygwin* | mingw* | pw32*)
17458
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17459
 
      # as there is no search path for DLLs.
17460
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461
 
      allow_undefined_flag_GCJ=unsupported
17462
 
      always_export_symbols_GCJ=no
17463
 
      enable_shared_with_static_runtimes_GCJ=yes
17464
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17465
 
 
17466
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17467
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17468
 
        # If the export-symbols file already is a .def file (1st line
17469
 
        # is EXPORTS), use it as is; otherwise, prepend...
17470
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17471
 
          cp $export_symbols $output_objdir/$soname.def;
17472
 
        else
17473
 
          echo EXPORTS > $output_objdir/$soname.def;
17474
 
          cat $export_symbols >> $output_objdir/$soname.def;
17475
 
        fi~
17476
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17477
 
      else
17478
 
        ld_shlibs_GCJ=no
17479
 
      fi
17480
 
      ;;
17481
 
 
17482
 
    interix[3-9]*)
17483
 
      hardcode_direct_GCJ=no
17484
 
      hardcode_shlibpath_var_GCJ=no
17485
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17486
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17487
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17488
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17489
 
      # default) and relocated if they conflict, which is a slow very memory
17490
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17491
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17492
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17493
 
      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'
17494
 
      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'
17495
 
      ;;
17496
 
 
17497
 
    gnu* | linux* | k*bsd*-gnu)
17498
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17499
 
        tmp_addflag=
17500
 
        case $cc_basename,$host_cpu in
17501
 
        pgcc*)                          # Portland Group C compiler
17502
 
          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'
17503
 
          tmp_addflag=' $pic_flag'
17504
 
          ;;
17505
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17506
 
          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'
17507
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
17508
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17509
 
          tmp_addflag=' -i_dynamic' ;;
17510
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17511
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
17512
 
        ifc* | ifort*)                  # Intel Fortran compiler
17513
 
          tmp_addflag=' -nofor_main' ;;
17514
 
        esac
17515
 
        case `$CC -V 2>&1 | sed 5q` in
17516
 
        *Sun\ C*)                       # Sun C 5.9
17517
 
          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'
17518
 
          tmp_sharedflag='-G' ;;
17519
 
        *Sun\ F*)                       # Sun Fortran 8.3
17520
 
          tmp_sharedflag='-G' ;;
17521
 
        *)
17522
 
          tmp_sharedflag='-shared' ;;
17523
 
        esac
17524
 
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525
 
 
17526
 
        if test $supports_anon_versioning = yes; then
17527
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17528
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17529
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17530
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17531
 
        fi
17532
 
      else
17533
 
        ld_shlibs_GCJ=no
17534
 
      fi
17535
 
      ;;
17536
 
 
17537
 
    netbsd*)
17538
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17539
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17540
 
        wlarc=
17541
 
      else
17542
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17544
 
      fi
17545
 
      ;;
17546
 
 
17547
 
    solaris*)
17548
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17549
 
        ld_shlibs_GCJ=no
17550
 
        cat <<EOF 1>&2
17551
 
 
17552
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17553
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17554
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17555
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17556
 
*** your PATH or compiler configuration so that the native linker is
17557
 
*** used, and then restart.
17558
 
 
17559
 
EOF
17560
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17561
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17563
 
      else
17564
 
        ld_shlibs_GCJ=no
17565
 
      fi
17566
 
      ;;
17567
 
 
17568
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17569
 
      case `$LD -v 2>&1` in
17570
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17571
 
        ld_shlibs_GCJ=no
17572
 
        cat <<_LT_EOF 1>&2
17573
 
 
17574
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17575
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17576
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17577
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17578
 
*** your PATH or compiler configuration so that the native linker is
17579
 
*** used, and then restart.
17580
 
 
17581
 
_LT_EOF
17582
 
        ;;
17583
 
        *)
17584
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17585
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17586
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17587
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17588
 
          else
17589
 
            ld_shlibs_GCJ=no
17590
 
          fi
17591
 
        ;;
17592
 
      esac
17593
 
      ;;
17594
 
 
17595
 
    sunos4*)
17596
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17597
 
      wlarc=
17598
 
      hardcode_direct_GCJ=yes
17599
 
      hardcode_shlibpath_var_GCJ=no
17600
 
      ;;
17601
 
 
17602
 
    *)
17603
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17604
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17605
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17606
 
      else
17607
 
        ld_shlibs_GCJ=no
17608
 
      fi
17609
 
      ;;
17610
 
    esac
17611
 
 
17612
 
    if test "$ld_shlibs_GCJ" = no; then
17613
 
      runpath_var=
17614
 
      hardcode_libdir_flag_spec_GCJ=
17615
 
      export_dynamic_flag_spec_GCJ=
17616
 
      whole_archive_flag_spec_GCJ=
17617
 
    fi
17618
 
  else
17619
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17620
 
    case $host_os in
17621
 
    aix3*)
17622
 
      allow_undefined_flag_GCJ=unsupported
17623
 
      always_export_symbols_GCJ=yes
17624
 
      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'
17625
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17626
 
      # are no directories specified by -L.
17627
 
      hardcode_minus_L_GCJ=yes
17628
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17629
 
        # Neither direct hardcoding nor static linking is supported with a
17630
 
        # broken collect2.
17631
 
        hardcode_direct_GCJ=unsupported
17632
 
      fi
17633
 
      ;;
17634
 
 
17635
 
    aix[4-9]*)
17636
 
      if test "$host_cpu" = ia64; then
17637
 
        # On IA64, the linker does run time linking by default, so we don't
17638
 
        # have to do anything special.
17639
 
        aix_use_runtimelinking=no
17640
 
        exp_sym_flag='-Bexport'
17641
 
        no_entry_flag=""
17642
 
      else
17643
 
        # If we're using GNU nm, then we don't want the "-C" option.
17644
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17645
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17646
 
          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'
17647
 
        else
17648
 
          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'
17649
 
        fi
17650
 
        aix_use_runtimelinking=no
17651
 
 
17652
 
        # Test if we are trying to use run time linking or normal
17653
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17654
 
        # need to do runtime linking.
17655
 
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17656
 
          for ld_flag in $LDFLAGS; do
17657
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17658
 
            aix_use_runtimelinking=yes
17659
 
            break
17660
 
          fi
17661
 
          done
17662
 
          ;;
17663
 
        esac
17664
 
 
17665
 
        exp_sym_flag='-bexport'
17666
 
        no_entry_flag='-bnoentry'
17667
 
      fi
17668
 
 
17669
 
      # When large executables or shared objects are built, AIX ld can
17670
 
      # have problems creating the table of contents.  If linking a library
17671
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17672
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17673
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17674
 
 
17675
 
      archive_cmds_GCJ=''
17676
 
      hardcode_direct_GCJ=yes
17677
 
      hardcode_libdir_separator_GCJ=':'
17678
 
      link_all_deplibs_GCJ=yes
17679
 
 
17680
 
      if test "$GCC" = yes; then
17681
 
        case $host_os in aix4.[012]|aix4.[012].*)
17682
 
        # We only want to do this on AIX 4.2 and lower, the check
17683
 
        # below for broken collect2 doesn't work under 4.3+
17684
 
          collect2name=`${CC} -print-prog-name=collect2`
17685
 
          if test -f "$collect2name" && \
17686
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17687
 
          then
17688
 
          # We have reworked collect2
17689
 
          :
17690
 
          else
17691
 
          # We have old collect2
17692
 
          hardcode_direct_GCJ=unsupported
17693
 
          # It fails to find uninstalled libraries when the uninstalled
17694
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17695
 
          # to unsupported forces relinking
17696
 
          hardcode_minus_L_GCJ=yes
17697
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17698
 
          hardcode_libdir_separator_GCJ=
17699
 
          fi
17700
 
          ;;
17701
 
        esac
17702
 
        shared_flag='-shared'
17703
 
        if test "$aix_use_runtimelinking" = yes; then
17704
 
          shared_flag="$shared_flag "'${wl}-G'
17705
 
        fi
17706
 
      else
17707
 
        # not using gcc
17708
 
        if test "$host_cpu" = ia64; then
17709
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17710
 
        # chokes on -Wl,-G. The following line is correct:
17711
 
          shared_flag='-G'
17712
 
        else
17713
 
          if test "$aix_use_runtimelinking" = yes; then
17714
 
            shared_flag='${wl}-G'
17715
 
          else
17716
 
            shared_flag='${wl}-bM:SRE'
17717
 
          fi
17718
 
        fi
17719
 
      fi
17720
 
 
17721
 
      # It seems that -bexpall does not export symbols beginning with
17722
 
      # underscore (_), so it is better to generate a list of symbols to export.
17723
 
      always_export_symbols_GCJ=yes
17724
 
      if test "$aix_use_runtimelinking" = yes; then
17725
 
        # Warning - without using the other runtime loading flags (-brtl),
17726
 
        # -berok will link without error, but may produce a broken library.
17727
 
        allow_undefined_flag_GCJ='-berok'
17728
 
       # Determine the default libpath from the value encoded in an empty executable.
17729
 
       cat >conftest.$ac_ext <<_ACEOF
17730
 
/* confdefs.h.  */
17731
 
_ACEOF
17732
 
cat confdefs.h >>conftest.$ac_ext
17733
 
cat >>conftest.$ac_ext <<_ACEOF
17734
 
/* end confdefs.h.  */
17735
 
 
17736
 
int
17737
 
main ()
17738
 
{
17739
 
 
17740
 
  ;
17741
 
  return 0;
17742
 
}
17743
 
_ACEOF
17744
 
rm -f conftest.$ac_objext conftest$ac_exeext
17745
 
if { (ac_try="$ac_link"
17746
 
case "(($ac_try" in
17747
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748
 
  *) ac_try_echo=$ac_try;;
17749
 
esac
17750
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17751
 
$as_echo "$ac_try_echo") >&5
17752
 
  (eval "$ac_link") 2>conftest.er1
17753
 
  ac_status=$?
17754
 
  grep -v '^ *+' conftest.er1 >conftest.err
17755
 
  rm -f conftest.er1
17756
 
  cat conftest.err >&5
17757
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758
 
  (exit $ac_status); } && {
17759
 
         test -z "$ac_c_werror_flag" ||
17760
 
         test ! -s conftest.err
17761
 
       } && test -s conftest$ac_exeext && {
17762
 
         test "$cross_compiling" = yes ||
17763
 
         $as_test_x conftest$ac_exeext
17764
 
       }; then
17765
 
 
17766
 
lt_aix_libpath_sed='
17767
 
    /Import File Strings/,/^$/ {
17768
 
        /^0/ {
17769
 
            s/^0  *\(.*\)$/\1/
17770
 
            p
17771
 
        }
17772
 
    }'
17773
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17774
 
# Check for a 64-bit object if we didn't find anything.
17775
 
if test -z "$aix_libpath"; then
17776
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17777
 
fi
17778
 
else
17779
 
  $as_echo "$as_me: failed program was:" >&5
17780
 
sed 's/^/| /' conftest.$ac_ext >&5
17781
 
 
17782
 
 
17783
 
fi
17784
 
 
17785
 
rm -rf conftest.dSYM
17786
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17787
 
      conftest$ac_exeext conftest.$ac_ext
17788
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17789
 
 
17790
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17791
 
        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"
17792
 
       else
17793
 
        if test "$host_cpu" = ia64; then
17794
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17795
 
          allow_undefined_flag_GCJ="-z nodefs"
17796
 
          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"
17797
 
        else
17798
 
         # Determine the default libpath from the value encoded in an empty executable.
17799
 
         cat >conftest.$ac_ext <<_ACEOF
17800
 
/* confdefs.h.  */
17801
 
_ACEOF
17802
 
cat confdefs.h >>conftest.$ac_ext
17803
 
cat >>conftest.$ac_ext <<_ACEOF
17804
 
/* end confdefs.h.  */
17805
 
 
17806
 
int
17807
 
main ()
17808
 
{
17809
 
 
17810
 
  ;
17811
 
  return 0;
17812
 
}
17813
 
_ACEOF
17814
 
rm -f conftest.$ac_objext conftest$ac_exeext
17815
 
if { (ac_try="$ac_link"
17816
 
case "(($ac_try" in
17817
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818
 
  *) ac_try_echo=$ac_try;;
17819
 
esac
17820
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17821
 
$as_echo "$ac_try_echo") >&5
17822
 
  (eval "$ac_link") 2>conftest.er1
17823
 
  ac_status=$?
17824
 
  grep -v '^ *+' conftest.er1 >conftest.err
17825
 
  rm -f conftest.er1
17826
 
  cat conftest.err >&5
17827
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828
 
  (exit $ac_status); } && {
17829
 
         test -z "$ac_c_werror_flag" ||
17830
 
         test ! -s conftest.err
17831
 
       } && test -s conftest$ac_exeext && {
17832
 
         test "$cross_compiling" = yes ||
17833
 
         $as_test_x conftest$ac_exeext
17834
 
       }; then
17835
 
 
17836
 
lt_aix_libpath_sed='
17837
 
    /Import File Strings/,/^$/ {
17838
 
        /^0/ {
17839
 
            s/^0  *\(.*\)$/\1/
17840
 
            p
17841
 
        }
17842
 
    }'
17843
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17844
 
# Check for a 64-bit object if we didn't find anything.
17845
 
if test -z "$aix_libpath"; then
17846
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17847
 
fi
17848
 
else
17849
 
  $as_echo "$as_me: failed program was:" >&5
17850
 
sed 's/^/| /' conftest.$ac_ext >&5
17851
 
 
17852
 
 
17853
 
fi
17854
 
 
17855
 
rm -rf conftest.dSYM
17856
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17857
 
      conftest$ac_exeext conftest.$ac_ext
17858
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17859
 
 
17860
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17861
 
          # Warning - without using the other run time loading flags,
17862
 
          # -berok will link without error, but may produce a broken library.
17863
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17864
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17865
 
          # Exported symbols can be pulled into shared objects from archives
17866
 
          whole_archive_flag_spec_GCJ='$convenience'
17867
 
          archive_cmds_need_lc_GCJ=yes
17868
 
          # This is similar to how AIX traditionally builds its shared libraries.
17869
 
          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'
17870
 
        fi
17871
 
      fi
17872
 
      ;;
17873
 
 
17874
 
    amigaos*)
17875
 
      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)'
17876
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17877
 
      hardcode_minus_L_GCJ=yes
17878
 
      # see comment about different semantics on the GNU ld section
17879
 
      ld_shlibs_GCJ=no
17880
 
      ;;
17881
 
 
17882
 
    bsdi[45]*)
17883
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17884
 
      ;;
17885
 
 
17886
 
    cygwin* | mingw* | pw32*)
17887
 
      # When not using gcc, we currently assume that we are using
17888
 
      # Microsoft Visual C++.
17889
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17890
 
      # no search path for DLLs.
17891
 
      hardcode_libdir_flag_spec_GCJ=' '
17892
 
      allow_undefined_flag_GCJ=unsupported
17893
 
      # Tell ltmain to make .lib files, not .a files.
17894
 
      libext=lib
17895
 
      # Tell ltmain to make .dll files, not .so files.
17896
 
      shrext_cmds=".dll"
17897
 
      # FIXME: Setting linknames here is a bad hack.
17898
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17899
 
      # The linker will automatically build a .lib file if we build a DLL.
17900
 
      old_archive_From_new_cmds_GCJ='true'
17901
 
      # FIXME: Should let the user specify the lib program.
17902
 
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17903
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17904
 
      enable_shared_with_static_runtimes_GCJ=yes
17905
 
      ;;
17906
 
 
17907
 
    darwin* | rhapsody*)
17908
 
      case $host_os in
17909
 
        rhapsody* | darwin1.[012])
17910
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17911
 
         ;;
17912
 
       *) # Darwin 1.3 on
17913
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17914
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17915
 
         else
17916
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17917
 
             10.[012])
17918
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17919
 
               ;;
17920
 
             10.*)
17921
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17922
 
               ;;
17923
 
           esac
17924
 
         fi
17925
 
         ;;
17926
 
      esac
17927
 
      archive_cmds_need_lc_GCJ=no
17928
 
      hardcode_direct_GCJ=no
17929
 
      hardcode_automatic_GCJ=yes
17930
 
      hardcode_shlibpath_var_GCJ=unsupported
17931
 
      whole_archive_flag_spec_GCJ=''
17932
 
      link_all_deplibs_GCJ=yes
17933
 
    if test "$GCC" = yes ; then
17934
 
        output_verbose_link_cmd='echo'
17935
 
        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}"
17936
 
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17937
 
        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}"
17938
 
        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}"
17939
 
    else
17940
 
      case $cc_basename in
17941
 
        xlc*)
17942
 
         output_verbose_link_cmd='echo'
17943
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17944
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17945
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17946
 
         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}'
17947
 
          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}'
17948
 
          ;;
17949
 
       *)
17950
 
         ld_shlibs_GCJ=no
17951
 
          ;;
17952
 
      esac
17953
 
    fi
17954
 
      ;;
17955
 
 
17956
 
    dgux*)
17957
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17958
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17959
 
      hardcode_shlibpath_var_GCJ=no
17960
 
      ;;
17961
 
 
17962
 
    freebsd1*)
17963
 
      ld_shlibs_GCJ=no
17964
 
      ;;
17965
 
 
17966
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17967
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17968
 
    # does not break anything, and helps significantly (at the cost of a little
17969
 
    # extra space).
17970
 
    freebsd2.2*)
17971
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17972
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17973
 
      hardcode_direct_GCJ=yes
17974
 
      hardcode_shlibpath_var_GCJ=no
17975
 
      ;;
17976
 
 
17977
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17978
 
    freebsd2*)
17979
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17980
 
      hardcode_direct_GCJ=yes
17981
 
      hardcode_minus_L_GCJ=yes
17982
 
      hardcode_shlibpath_var_GCJ=no
17983
 
      ;;
17984
 
 
17985
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17986
 
    freebsd* | dragonfly*)
17987
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17988
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17989
 
      hardcode_direct_GCJ=yes
17990
 
      hardcode_shlibpath_var_GCJ=no
17991
 
      ;;
17992
 
 
17993
 
    hpux9*)
17994
 
      if test "$GCC" = yes; then
17995
 
        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'
17996
 
      else
17997
 
        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'
17998
 
      fi
17999
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18000
 
      hardcode_libdir_separator_GCJ=:
18001
 
      hardcode_direct_GCJ=yes
18002
 
 
18003
 
      # hardcode_minus_L: Not really in the search PATH,
18004
 
      # but as the default location of the library.
18005
 
      hardcode_minus_L_GCJ=yes
18006
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
18007
 
      ;;
18008
 
 
18009
 
    hpux10*)
18010
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18011
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18012
 
      else
18013
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18014
 
      fi
18015
 
      if test "$with_gnu_ld" = no; then
18016
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18017
 
        hardcode_libdir_separator_GCJ=:
18018
 
 
18019
 
        hardcode_direct_GCJ=yes
18020
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18021
 
 
18022
 
        # hardcode_minus_L: Not really in the search PATH,
18023
 
        # but as the default location of the library.
18024
 
        hardcode_minus_L_GCJ=yes
18025
 
      fi
18026
 
      ;;
18027
 
 
18028
 
    hpux11*)
18029
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18030
 
        case $host_cpu in
18031
 
        hppa*64*)
18032
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18033
 
          ;;
18034
 
        ia64*)
18035
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18036
 
          ;;
18037
 
        *)
18038
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18039
 
          ;;
18040
 
        esac
18041
 
      else
18042
 
        case $host_cpu in
18043
 
        hppa*64*)
18044
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18045
 
          ;;
18046
 
        ia64*)
18047
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18048
 
          ;;
18049
 
        *)
18050
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18051
 
          ;;
18052
 
        esac
18053
 
      fi
18054
 
      if test "$with_gnu_ld" = no; then
18055
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18056
 
        hardcode_libdir_separator_GCJ=:
18057
 
 
18058
 
        case $host_cpu in
18059
 
        hppa*64*|ia64*)
18060
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18061
 
          hardcode_direct_GCJ=no
18062
 
          hardcode_shlibpath_var_GCJ=no
18063
 
          ;;
18064
 
        *)
18065
 
          hardcode_direct_GCJ=yes
18066
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18067
 
 
18068
 
          # hardcode_minus_L: Not really in the search PATH,
18069
 
          # but as the default location of the library.
18070
 
          hardcode_minus_L_GCJ=yes
18071
 
          ;;
18072
 
        esac
18073
 
      fi
18074
 
      ;;
18075
 
 
18076
 
    irix5* | irix6* | nonstopux*)
18077
 
      if test "$GCC" = yes; then
18078
 
        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'
18079
 
      else
18080
 
        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'
18081
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18082
 
      fi
18083
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18084
 
      hardcode_libdir_separator_GCJ=:
18085
 
      link_all_deplibs_GCJ=yes
18086
 
      ;;
18087
 
 
18088
 
    netbsd*)
18089
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18090
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18091
 
      else
18092
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18093
 
      fi
18094
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18095
 
      hardcode_direct_GCJ=yes
18096
 
      hardcode_shlibpath_var_GCJ=no
18097
 
      ;;
18098
 
 
18099
 
    newsos6)
18100
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18101
 
      hardcode_direct_GCJ=yes
18102
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18103
 
      hardcode_libdir_separator_GCJ=:
18104
 
      hardcode_shlibpath_var_GCJ=no
18105
 
      ;;
18106
 
 
18107
 
    openbsd*)
18108
 
      if test -f /usr/libexec/ld.so; then
18109
 
        hardcode_direct_GCJ=yes
18110
 
        hardcode_shlibpath_var_GCJ=no
18111
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18112
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18113
 
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18114
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18115
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18116
 
        else
18117
 
          case $host_os in
18118
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18119
 
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18120
 
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
18121
 
             ;;
18122
 
           *)
18123
 
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18124
 
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18125
 
             ;;
18126
 
          esac
18127
 
        fi
18128
 
      else
18129
 
        ld_shlibs_GCJ=no
18130
 
      fi
18131
 
      ;;
18132
 
 
18133
 
    os2*)
18134
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18135
 
      hardcode_minus_L_GCJ=yes
18136
 
      allow_undefined_flag_GCJ=unsupported
18137
 
      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'
18138
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18139
 
      ;;
18140
 
 
18141
 
    osf3*)
18142
 
      if test "$GCC" = yes; then
18143
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18144
 
        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'
18145
 
      else
18146
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18147
 
        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'
18148
 
      fi
18149
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18150
 
      hardcode_libdir_separator_GCJ=:
18151
 
      ;;
18152
 
 
18153
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18154
 
      if test "$GCC" = yes; then
18155
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18156
 
        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'
18157
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18158
 
      else
18159
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18160
 
        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'
18161
 
        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~
18162
 
        $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'
18163
 
 
18164
 
        # Both c and cxx compiler support -rpath directly
18165
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18166
 
      fi
18167
 
      hardcode_libdir_separator_GCJ=:
18168
 
      ;;
18169
 
 
18170
 
    solaris*)
18171
 
      no_undefined_flag_GCJ=' -z text'
18172
 
      if test "$GCC" = yes; then
18173
 
        wlarc='${wl}'
18174
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18175
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18176
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18177
 
      else
18178
 
        wlarc=''
18179
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18181
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18182
 
      fi
18183
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18184
 
      hardcode_shlibpath_var_GCJ=no
18185
 
      case $host_os in
18186
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18187
 
      *)
18188
 
        # The compiler driver will combine and reorder linker options,
18189
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
18190
 
        # but is careful enough not to reorder.
18191
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18192
 
        if test "$GCC" = yes; then
18193
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18194
 
        else
18195
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18196
 
        fi
18197
 
        ;;
18198
 
      esac
18199
 
      link_all_deplibs_GCJ=yes
18200
 
      ;;
18201
 
 
18202
 
    sunos4*)
18203
 
      if test "x$host_vendor" = xsequent; then
18204
 
        # Use $CC to link under sequent, because it throws in some extra .o
18205
 
        # files that make .init and .fini sections work.
18206
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18207
 
      else
18208
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18209
 
      fi
18210
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18211
 
      hardcode_direct_GCJ=yes
18212
 
      hardcode_minus_L_GCJ=yes
18213
 
      hardcode_shlibpath_var_GCJ=no
18214
 
      ;;
18215
 
 
18216
 
    sysv4)
18217
 
      case $host_vendor in
18218
 
        sni)
18219
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220
 
          hardcode_direct_GCJ=yes # is this really true???
18221
 
        ;;
18222
 
        siemens)
18223
 
          ## LD is ld it makes a PLAMLIB
18224
 
          ## CC just makes a GrossModule.
18225
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18226
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18227
 
          hardcode_direct_GCJ=no
18228
 
        ;;
18229
 
        motorola)
18230
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18231
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18232
 
        ;;
18233
 
      esac
18234
 
      runpath_var='LD_RUN_PATH'
18235
 
      hardcode_shlibpath_var_GCJ=no
18236
 
      ;;
18237
 
 
18238
 
    sysv4.3*)
18239
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18240
 
      hardcode_shlibpath_var_GCJ=no
18241
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18242
 
      ;;
18243
 
 
18244
 
    sysv4*MP*)
18245
 
      if test -d /usr/nec; then
18246
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18247
 
        hardcode_shlibpath_var_GCJ=no
18248
 
        runpath_var=LD_RUN_PATH
18249
 
        hardcode_runpath_var=yes
18250
 
        ld_shlibs_GCJ=yes
18251
 
      fi
18252
 
      ;;
18253
 
 
18254
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18255
 
      no_undefined_flag_GCJ='${wl}-z,text'
18256
 
      archive_cmds_need_lc_GCJ=no
18257
 
      hardcode_shlibpath_var_GCJ=no
18258
 
      runpath_var='LD_RUN_PATH'
18259
 
 
18260
 
      if test "$GCC" = yes; then
18261
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18262
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18263
 
      else
18264
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18265
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18266
 
      fi
18267
 
      ;;
18268
 
 
18269
 
    sysv5* | sco3.2v5* | sco5v6*)
18270
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18271
 
      # link with -lc, and that would cause any symbols used from libc to
18272
 
      # always be unresolved, which means just about no library would
18273
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18274
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18275
 
      # as -z defs.
18276
 
      no_undefined_flag_GCJ='${wl}-z,text'
18277
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18278
 
      archive_cmds_need_lc_GCJ=no
18279
 
      hardcode_shlibpath_var_GCJ=no
18280
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18281
 
      hardcode_libdir_separator_GCJ=':'
18282
 
      link_all_deplibs_GCJ=yes
18283
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18284
 
      runpath_var='LD_RUN_PATH'
18285
 
 
18286
 
      if test "$GCC" = yes; then
18287
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18288
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18289
 
      else
18290
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18291
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18292
 
      fi
18293
 
      ;;
18294
 
 
18295
 
    uts4*)
18296
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18297
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18298
 
      hardcode_shlibpath_var_GCJ=no
18299
 
      ;;
18300
 
 
18301
 
    *)
18302
 
      ld_shlibs_GCJ=no
18303
 
      ;;
18304
 
    esac
18305
 
  fi
18306
 
 
18307
 
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18308
 
$as_echo "$ld_shlibs_GCJ" >&6; }
18309
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18310
 
 
18311
 
#
18312
 
# Do we need to explicitly link libc?
18313
 
#
18314
 
case "x$archive_cmds_need_lc_GCJ" in
18315
 
x|xyes)
18316
 
  # Assume -lc should be added
18317
 
  archive_cmds_need_lc_GCJ=yes
18318
 
 
18319
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18320
 
    case $archive_cmds_GCJ in
18321
 
    *'~'*)
18322
 
      # FIXME: we may have to deal with multi-command sequences.
18323
 
      ;;
18324
 
    '$CC '*)
18325
 
      # Test whether the compiler implicitly links with -lc since on some
18326
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18327
 
      # to ld, don't add -lc before -lgcc.
18328
 
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18329
 
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18330
 
      $rm conftest*
18331
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18332
 
 
18333
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18334
 
  (eval $ac_compile) 2>&5
18335
 
  ac_status=$?
18336
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337
 
  (exit $ac_status); } 2>conftest.err; then
18338
 
        soname=conftest
18339
 
        lib=conftest
18340
 
        libobjs=conftest.$ac_objext
18341
 
        deplibs=
18342
 
        wl=$lt_prog_compiler_wl_GCJ
18343
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18344
 
        compiler_flags=-v
18345
 
        linker_flags=-v
18346
 
        verstring=
18347
 
        output_objdir=.
18348
 
        libname=conftest
18349
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18350
 
        allow_undefined_flag_GCJ=
18351
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18352
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18353
 
  ac_status=$?
18354
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355
 
  (exit $ac_status); }
18356
 
        then
18357
 
          archive_cmds_need_lc_GCJ=no
18358
 
        else
18359
 
          archive_cmds_need_lc_GCJ=yes
18360
 
        fi
18361
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18362
 
      else
18363
 
        cat conftest.err 1>&5
18364
 
      fi
18365
 
      $rm conftest*
18366
 
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18367
 
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18368
 
      ;;
18369
 
    esac
18370
 
  fi
18371
 
  ;;
18372
 
esac
18373
 
 
18374
 
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18375
 
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18376
 
library_names_spec=
18377
 
libname_spec='lib$name'
18378
 
soname_spec=
18379
 
shrext_cmds=".so"
18380
 
postinstall_cmds=
18381
 
postuninstall_cmds=
18382
 
finish_cmds=
18383
 
finish_eval=
18384
 
shlibpath_var=
18385
 
shlibpath_overrides_runpath=unknown
18386
 
version_type=none
18387
 
dynamic_linker="$host_os ld.so"
18388
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18389
 
 
18390
 
need_lib_prefix=unknown
18391
 
hardcode_into_libs=no
18392
 
 
18393
 
# when you set need_version to no, make sure it does not cause -set_version
18394
 
# flags to be left without arguments
18395
 
need_version=unknown
18396
 
 
18397
 
case $host_os in
18398
 
aix3*)
18399
 
  version_type=linux
18400
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18401
 
  shlibpath_var=LIBPATH
18402
 
 
18403
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18404
 
  soname_spec='${libname}${release}${shared_ext}$major'
18405
 
  ;;
18406
 
 
18407
 
aix[4-9]*)
18408
 
  version_type=linux
18409
 
  need_lib_prefix=no
18410
 
  need_version=no
18411
 
  hardcode_into_libs=yes
18412
 
  if test "$host_cpu" = ia64; then
18413
 
    # AIX 5 supports IA64
18414
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18415
 
    shlibpath_var=LD_LIBRARY_PATH
18416
 
  else
18417
 
    # With GCC up to 2.95.x, collect2 would create an import file
18418
 
    # for dependence libraries.  The import file would start with
18419
 
    # the line `#! .'.  This would cause the generated library to
18420
 
    # depend on `.', always an invalid library.  This was fixed in
18421
 
    # development snapshots of GCC prior to 3.0.
18422
 
    case $host_os in
18423
 
      aix4 | aix4.[01] | aix4.[01].*)
18424
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18425
 
           echo ' yes '
18426
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18427
 
        :
18428
 
      else
18429
 
        can_build_shared=no
18430
 
      fi
18431
 
      ;;
18432
 
    esac
18433
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18434
 
    # soname into executable. Probably we can add versioning support to
18435
 
    # collect2, so additional links can be useful in future.
18436
 
    if test "$aix_use_runtimelinking" = yes; then
18437
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18438
 
      # instead of lib<name>.a to let people know that these are not
18439
 
      # typical AIX shared libraries.
18440
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18441
 
    else
18442
 
      # We preserve .a as extension for shared libraries through AIX4.2
18443
 
      # and later when we are not doing run time linking.
18444
 
      library_names_spec='${libname}${release}.a $libname.a'
18445
 
      soname_spec='${libname}${release}${shared_ext}$major'
18446
 
    fi
18447
 
    shlibpath_var=LIBPATH
18448
 
  fi
18449
 
  ;;
18450
 
 
18451
 
amigaos*)
18452
 
  library_names_spec='$libname.ixlibrary $libname.a'
18453
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18454
 
  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'
18455
 
  ;;
18456
 
 
18457
 
beos*)
18458
 
  library_names_spec='${libname}${shared_ext}'
18459
 
  dynamic_linker="$host_os ld.so"
18460
 
  shlibpath_var=LIBRARY_PATH
18461
 
  ;;
18462
 
 
18463
 
bsdi[45]*)
18464
 
  version_type=linux
18465
 
  need_version=no
18466
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467
 
  soname_spec='${libname}${release}${shared_ext}$major'
18468
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18469
 
  shlibpath_var=LD_LIBRARY_PATH
18470
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18471
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18472
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18473
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18474
 
  # libtool to hard-code these into programs
18475
 
  ;;
18476
 
 
18477
 
cygwin* | mingw* | pw32*)
18478
 
  version_type=windows
18479
 
  shrext_cmds=".dll"
18480
 
  need_version=no
18481
 
  need_lib_prefix=no
18482
 
 
18483
 
  case $GCC,$host_os in
18484
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18485
 
    library_names_spec='$libname.dll.a'
18486
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18487
 
    postinstall_cmds='base_file=`basename \${file}`~
18488
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18489
 
      dldir=$destdir/`dirname \$dlpath`~
18490
 
      test -d \$dldir || mkdir -p \$dldir~
18491
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18492
 
      chmod a+x \$dldir/$dlname'
18493
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18494
 
      dlpath=$dir/\$dldll~
18495
 
       $rm \$dlpath'
18496
 
    shlibpath_overrides_runpath=yes
18497
 
 
18498
 
    case $host_os in
18499
 
    cygwin*)
18500
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18501
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18502
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18503
 
      ;;
18504
 
    mingw*)
18505
 
      # MinGW DLLs use traditional 'lib' prefix
18506
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18507
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18508
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18509
 
        # It is most probably a Windows format PATH printed by
18510
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18511
 
        # path with ; separators, and with drive letters. We can handle the
18512
 
        # drive letters (cygwin fileutils understands them), so leave them,
18513
 
        # especially as we might pass files found there to a mingw objdump,
18514
 
        # which wouldn't understand a cygwinified path. Ahh.
18515
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18516
 
      else
18517
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18518
 
      fi
18519
 
      ;;
18520
 
    pw32*)
18521
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18522
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18523
 
      ;;
18524
 
    esac
18525
 
    ;;
18526
 
 
18527
 
  *)
18528
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18529
 
    ;;
18530
 
  esac
18531
 
  dynamic_linker='Win32 ld.exe'
18532
 
  # FIXME: first we should search . and the directory the executable is in
18533
 
  shlibpath_var=PATH
18534
 
  ;;
18535
 
 
18536
 
darwin* | rhapsody*)
18537
 
  dynamic_linker="$host_os dyld"
18538
 
  version_type=darwin
18539
 
  need_lib_prefix=no
18540
 
  need_version=no
18541
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18542
 
  soname_spec='${libname}${release}${major}$shared_ext'
18543
 
  shlibpath_overrides_runpath=yes
18544
 
  shlibpath_var=DYLD_LIBRARY_PATH
18545
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18546
 
 
18547
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18548
 
  ;;
18549
 
 
18550
 
dgux*)
18551
 
  version_type=linux
18552
 
  need_lib_prefix=no
18553
 
  need_version=no
18554
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18555
 
  soname_spec='${libname}${release}${shared_ext}$major'
18556
 
  shlibpath_var=LD_LIBRARY_PATH
18557
 
  ;;
18558
 
 
18559
 
freebsd1*)
18560
 
  dynamic_linker=no
18561
 
  ;;
18562
 
 
18563
 
freebsd* | dragonfly*)
18564
 
  # DragonFly does not have aout.  When/if they implement a new
18565
 
  # versioning mechanism, adjust this.
18566
 
  if test -x /usr/bin/objformat; then
18567
 
    objformat=`/usr/bin/objformat`
18568
 
  else
18569
 
    case $host_os in
18570
 
    freebsd[123]*) objformat=aout ;;
18571
 
    *) objformat=elf ;;
18572
 
    esac
18573
 
  fi
18574
 
  version_type=freebsd-$objformat
18575
 
  case $version_type in
18576
 
    freebsd-elf*)
18577
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18578
 
      need_version=no
18579
 
      need_lib_prefix=no
18580
 
      ;;
18581
 
    freebsd-*)
18582
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18583
 
      need_version=yes
18584
 
      ;;
18585
 
  esac
18586
 
  shlibpath_var=LD_LIBRARY_PATH
18587
 
  case $host_os in
18588
 
  freebsd2*)
18589
 
    shlibpath_overrides_runpath=yes
18590
 
    ;;
18591
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18592
 
    shlibpath_overrides_runpath=yes
18593
 
    hardcode_into_libs=yes
18594
 
    ;;
18595
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18596
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18597
 
    shlibpath_overrides_runpath=no
18598
 
    hardcode_into_libs=yes
18599
 
    ;;
18600
 
  *) # from 4.6 on, and DragonFly
18601
 
    shlibpath_overrides_runpath=yes
18602
 
    hardcode_into_libs=yes
18603
 
    ;;
18604
 
  esac
18605
 
  ;;
18606
 
 
18607
 
gnu*)
18608
 
  version_type=linux
18609
 
  need_lib_prefix=no
18610
 
  need_version=no
18611
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18612
 
  soname_spec='${libname}${release}${shared_ext}$major'
18613
 
  shlibpath_var=LD_LIBRARY_PATH
18614
 
  hardcode_into_libs=yes
18615
 
  ;;
18616
 
 
18617
 
hpux9* | hpux10* | hpux11*)
18618
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18619
 
  # link against other versions.
18620
 
  version_type=sunos
18621
 
  need_lib_prefix=no
18622
 
  need_version=no
18623
 
  case $host_cpu in
18624
 
  ia64*)
18625
 
    shrext_cmds='.so'
18626
 
    hardcode_into_libs=yes
18627
 
    dynamic_linker="$host_os dld.so"
18628
 
    shlibpath_var=LD_LIBRARY_PATH
18629
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18630
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18631
 
    soname_spec='${libname}${release}${shared_ext}$major'
18632
 
    if test "X$HPUX_IA64_MODE" = X32; then
18633
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18634
 
    else
18635
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18636
 
    fi
18637
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18638
 
    ;;
18639
 
   hppa*64*)
18640
 
     shrext_cmds='.sl'
18641
 
     hardcode_into_libs=yes
18642
 
     dynamic_linker="$host_os dld.sl"
18643
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18644
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18645
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646
 
     soname_spec='${libname}${release}${shared_ext}$major'
18647
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18648
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18649
 
     ;;
18650
 
   *)
18651
 
    shrext_cmds='.sl'
18652
 
    dynamic_linker="$host_os dld.sl"
18653
 
    shlibpath_var=SHLIB_PATH
18654
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18655
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656
 
    soname_spec='${libname}${release}${shared_ext}$major'
18657
 
    ;;
18658
 
  esac
18659
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18660
 
  postinstall_cmds='chmod 555 $lib'
18661
 
  ;;
18662
 
 
18663
 
interix[3-9]*)
18664
 
  version_type=linux
18665
 
  need_lib_prefix=no
18666
 
  need_version=no
18667
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18668
 
  soname_spec='${libname}${release}${shared_ext}$major'
18669
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18670
 
  shlibpath_var=LD_LIBRARY_PATH
18671
 
  shlibpath_overrides_runpath=no
18672
 
  hardcode_into_libs=yes
18673
 
  ;;
18674
 
 
18675
 
irix5* | irix6* | nonstopux*)
18676
 
  case $host_os in
18677
 
    nonstopux*) version_type=nonstopux ;;
18678
 
    *)
18679
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18680
 
                version_type=linux
18681
 
        else
18682
 
                version_type=irix
18683
 
        fi ;;
18684
 
  esac
18685
 
  need_lib_prefix=no
18686
 
  need_version=no
18687
 
  soname_spec='${libname}${release}${shared_ext}$major'
18688
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18689
 
  case $host_os in
18690
 
  irix5* | nonstopux*)
18691
 
    libsuff= shlibsuff=
18692
 
    ;;
18693
 
  *)
18694
 
    case $LD in # libtool.m4 will add one of these switches to LD
18695
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18696
 
      libsuff= shlibsuff= libmagic=32-bit;;
18697
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18698
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18699
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18700
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18701
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18702
 
    esac
18703
 
    ;;
18704
 
  esac
18705
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18706
 
  shlibpath_overrides_runpath=no
18707
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18708
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18709
 
  hardcode_into_libs=yes
18710
 
  ;;
18711
 
 
18712
 
# No shared lib support for Linux oldld, aout, or coff.
18713
 
linux*oldld* | linux*aout* | linux*coff*)
18714
 
  dynamic_linker=no
18715
 
  ;;
18716
 
 
18717
 
# This must be Linux ELF.
18718
 
linux* | k*bsd*-gnu)
18719
 
  version_type=linux
18720
 
  need_lib_prefix=no
18721
 
  need_version=no
18722
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723
 
  soname_spec='${libname}${release}${shared_ext}$major'
18724
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18725
 
  shlibpath_var=LD_LIBRARY_PATH
18726
 
  shlibpath_overrides_runpath=no
18727
 
  # This implies no fast_install, which is unacceptable.
18728
 
  # Some rework will be needed to allow for fast_install
18729
 
  # before this can be enabled.
18730
 
  hardcode_into_libs=yes
18731
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18732
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18733
 
 
18734
 
  # Append ld.so.conf contents to the search path
18735
 
  if test -f /etc/ld.so.conf; then
18736
 
    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' ' '`
18737
 
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18738
 
  fi
18739
 
 
18740
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18741
 
  # powerpc, because MkLinux only supported shared libraries with the
18742
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18743
 
  # most powerpc-linux boxes support dynamic linking these days and
18744
 
  # people can always --disable-shared, the test was removed, and we
18745
 
  # assume the GNU/Linux dynamic linker is in use.
18746
 
  dynamic_linker='GNU/Linux ld.so'
18747
 
  ;;
18748
 
 
18749
 
netbsd*)
18750
 
  version_type=sunos
18751
 
  need_lib_prefix=no
18752
 
  need_version=no
18753
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18754
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18755
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18756
 
    dynamic_linker='NetBSD (a.out) ld.so'
18757
 
  else
18758
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18759
 
    soname_spec='${libname}${release}${shared_ext}$major'
18760
 
    dynamic_linker='NetBSD ld.elf_so'
18761
 
  fi
18762
 
  shlibpath_var=LD_LIBRARY_PATH
18763
 
  shlibpath_overrides_runpath=yes
18764
 
  hardcode_into_libs=yes
18765
 
  ;;
18766
 
 
18767
 
newsos6)
18768
 
  version_type=linux
18769
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18770
 
  shlibpath_var=LD_LIBRARY_PATH
18771
 
  shlibpath_overrides_runpath=yes
18772
 
  ;;
18773
 
 
18774
 
nto-qnx*)
18775
 
  version_type=linux
18776
 
  need_lib_prefix=no
18777
 
  need_version=no
18778
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779
 
  soname_spec='${libname}${release}${shared_ext}$major'
18780
 
  shlibpath_var=LD_LIBRARY_PATH
18781
 
  shlibpath_overrides_runpath=yes
18782
 
  ;;
18783
 
 
18784
 
openbsd*)
18785
 
  version_type=sunos
18786
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18787
 
  need_lib_prefix=no
18788
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18789
 
  case $host_os in
18790
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18791
 
    *)                         need_version=no  ;;
18792
 
  esac
18793
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18794
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18795
 
  shlibpath_var=LD_LIBRARY_PATH
18796
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18797
 
    case $host_os in
18798
 
      openbsd2.[89] | openbsd2.[89].*)
18799
 
        shlibpath_overrides_runpath=no
18800
 
        ;;
18801
 
      *)
18802
 
        shlibpath_overrides_runpath=yes
18803
 
        ;;
18804
 
      esac
18805
 
  else
18806
 
    shlibpath_overrides_runpath=yes
18807
 
  fi
18808
 
  ;;
18809
 
 
18810
 
os2*)
18811
 
  libname_spec='$name'
18812
 
  shrext_cmds=".dll"
18813
 
  need_lib_prefix=no
18814
 
  library_names_spec='$libname${shared_ext} $libname.a'
18815
 
  dynamic_linker='OS/2 ld.exe'
18816
 
  shlibpath_var=LIBPATH
18817
 
  ;;
18818
 
 
18819
 
osf3* | osf4* | osf5*)
18820
 
  version_type=osf
18821
 
  need_lib_prefix=no
18822
 
  need_version=no
18823
 
  soname_spec='${libname}${release}${shared_ext}$major'
18824
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18825
 
  shlibpath_var=LD_LIBRARY_PATH
18826
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18827
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18828
 
  ;;
18829
 
 
18830
 
rdos*)
18831
 
  dynamic_linker=no
18832
 
  ;;
18833
 
 
18834
 
solaris*)
18835
 
  version_type=linux
18836
 
  need_lib_prefix=no
18837
 
  need_version=no
18838
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839
 
  soname_spec='${libname}${release}${shared_ext}$major'
18840
 
  shlibpath_var=LD_LIBRARY_PATH
18841
 
  shlibpath_overrides_runpath=yes
18842
 
  hardcode_into_libs=yes
18843
 
  # ldd complains unless libraries are executable
18844
 
  postinstall_cmds='chmod +x $lib'
18845
 
  ;;
18846
 
 
18847
 
sunos4*)
18848
 
  version_type=sunos
18849
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18850
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18851
 
  shlibpath_var=LD_LIBRARY_PATH
18852
 
  shlibpath_overrides_runpath=yes
18853
 
  if test "$with_gnu_ld" = yes; then
18854
 
    need_lib_prefix=no
18855
 
  fi
18856
 
  need_version=yes
18857
 
  ;;
18858
 
 
18859
 
sysv4 | sysv4.3*)
18860
 
  version_type=linux
18861
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18862
 
  soname_spec='${libname}${release}${shared_ext}$major'
18863
 
  shlibpath_var=LD_LIBRARY_PATH
18864
 
  case $host_vendor in
18865
 
    sni)
18866
 
      shlibpath_overrides_runpath=no
18867
 
      need_lib_prefix=no
18868
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18869
 
      runpath_var=LD_RUN_PATH
18870
 
      ;;
18871
 
    siemens)
18872
 
      need_lib_prefix=no
18873
 
      ;;
18874
 
    motorola)
18875
 
      need_lib_prefix=no
18876
 
      need_version=no
18877
 
      shlibpath_overrides_runpath=no
18878
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18879
 
      ;;
18880
 
  esac
18881
 
  ;;
18882
 
 
18883
 
sysv4*MP*)
18884
 
  if test -d /usr/nec ;then
18885
 
    version_type=linux
18886
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18887
 
    soname_spec='$libname${shared_ext}.$major'
18888
 
    shlibpath_var=LD_LIBRARY_PATH
18889
 
  fi
18890
 
  ;;
18891
 
 
18892
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18893
 
  version_type=freebsd-elf
18894
 
  need_lib_prefix=no
18895
 
  need_version=no
18896
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18897
 
  soname_spec='${libname}${release}${shared_ext}$major'
18898
 
  shlibpath_var=LD_LIBRARY_PATH
18899
 
  hardcode_into_libs=yes
18900
 
  if test "$with_gnu_ld" = yes; then
18901
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18902
 
    shlibpath_overrides_runpath=no
18903
 
  else
18904
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18905
 
    shlibpath_overrides_runpath=yes
18906
 
    case $host_os in
18907
 
      sco3.2v5*)
18908
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18909
 
        ;;
18910
 
    esac
18911
 
  fi
18912
 
  sys_lib_dlsearch_path_spec='/usr/lib'
18913
 
  ;;
18914
 
 
18915
 
uts4*)
18916
 
  version_type=linux
18917
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918
 
  soname_spec='${libname}${release}${shared_ext}$major'
18919
 
  shlibpath_var=LD_LIBRARY_PATH
18920
 
  ;;
18921
 
 
18922
 
*)
18923
 
  dynamic_linker=no
18924
 
  ;;
18925
 
esac
18926
 
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18927
 
$as_echo "$dynamic_linker" >&6; }
18928
 
test "$dynamic_linker" = no && can_build_shared=no
18929
 
 
18930
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18931
 
  $as_echo_n "(cached) " >&6
18932
 
else
18933
 
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18934
 
fi
18935
 
 
18936
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18937
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18938
 
  $as_echo_n "(cached) " >&6
18939
 
else
18940
 
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18941
 
fi
18942
 
 
18943
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18944
 
 
18945
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18946
 
if test "$GCC" = yes; then
18947
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18948
 
fi
18949
 
 
18950
 
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18951
 
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18952
 
hardcode_action_GCJ=
18953
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18954
 
   test -n "$runpath_var_GCJ" || \
18955
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18956
 
 
18957
 
  # We can hardcode non-existant directories.
18958
 
  if test "$hardcode_direct_GCJ" != no &&
18959
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18960
 
     # have to relink, otherwise we might link with an installed library
18961
 
     # when we should be linking with a yet-to-be-installed one
18962
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18963
 
     test "$hardcode_minus_L_GCJ" != no; then
18964
 
    # Linking always hardcodes the temporary library directory.
18965
 
    hardcode_action_GCJ=relink
18966
 
  else
18967
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18968
 
    hardcode_action_GCJ=immediate
18969
 
  fi
18970
 
else
18971
 
  # We cannot hardcode anything, or else we can only hardcode existing
18972
 
  # directories.
18973
 
  hardcode_action_GCJ=unsupported
18974
 
fi
18975
 
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18976
 
$as_echo "$hardcode_action_GCJ" >&6; }
18977
 
 
18978
 
if test "$hardcode_action_GCJ" = relink; then
18979
 
  # Fast installation is not supported
18980
 
  enable_fast_install=no
18981
 
elif test "$shlibpath_overrides_runpath" = yes ||
18982
 
     test "$enable_shared" = no; then
18983
 
  # Fast installation is not necessary
18984
 
  enable_fast_install=needless
18985
 
fi
18986
 
 
18987
 
 
18988
 
# The else clause should only fire when bootstrapping the
18989
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18990
 
# with your package, and you will get complaints that there are
18991
 
# no rules to generate ltmain.sh.
18992
 
if test -f "$ltmain"; then
18993
 
  # See if we are running on zsh, and set the options which allow our commands through
18994
 
  # without removal of \ escapes.
18995
 
  if test -n "${ZSH_VERSION+set}" ; then
18996
 
    setopt NO_GLOB_SUBST
18997
 
  fi
18998
 
  # Now quote all the things that may contain metacharacters while being
18999
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19000
 
  # variables and quote the copies for generation of the libtool script.
19001
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19002
 
    SED SHELL STRIP \
19003
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19004
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19005
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19006
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19007
 
    lt_cv_sys_global_symbol_to_c_name_address \
19008
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19009
 
    old_postinstall_cmds old_postuninstall_cmds \
19010
 
    compiler_GCJ \
19011
 
    CC_GCJ \
19012
 
    LD_GCJ \
19013
 
    lt_prog_compiler_wl_GCJ \
19014
 
    lt_prog_compiler_pic_GCJ \
19015
 
    lt_prog_compiler_static_GCJ \
19016
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19017
 
    export_dynamic_flag_spec_GCJ \
19018
 
    thread_safe_flag_spec_GCJ \
19019
 
    whole_archive_flag_spec_GCJ \
19020
 
    enable_shared_with_static_runtimes_GCJ \
19021
 
    old_archive_cmds_GCJ \
19022
 
    old_archive_from_new_cmds_GCJ \
19023
 
    predep_objects_GCJ \
19024
 
    postdep_objects_GCJ \
19025
 
    predeps_GCJ \
19026
 
    postdeps_GCJ \
19027
 
    compiler_lib_search_path_GCJ \
19028
 
    compiler_lib_search_dirs_GCJ \
19029
 
    archive_cmds_GCJ \
19030
 
    archive_expsym_cmds_GCJ \
19031
 
    postinstall_cmds_GCJ \
19032
 
    postuninstall_cmds_GCJ \
19033
 
    old_archive_from_expsyms_cmds_GCJ \
19034
 
    allow_undefined_flag_GCJ \
19035
 
    no_undefined_flag_GCJ \
19036
 
    export_symbols_cmds_GCJ \
19037
 
    hardcode_libdir_flag_spec_GCJ \
19038
 
    hardcode_libdir_flag_spec_ld_GCJ \
19039
 
    hardcode_libdir_separator_GCJ \
19040
 
    hardcode_automatic_GCJ \
19041
 
    module_cmds_GCJ \
19042
 
    module_expsym_cmds_GCJ \
19043
 
    lt_cv_prog_compiler_c_o_GCJ \
19044
 
    fix_srcfile_path_GCJ \
19045
 
    exclude_expsyms_GCJ \
19046
 
    include_expsyms_GCJ; do
19047
 
 
19048
 
    case $var in
19049
 
    old_archive_cmds_GCJ | \
19050
 
    old_archive_from_new_cmds_GCJ | \
19051
 
    archive_cmds_GCJ | \
19052
 
    archive_expsym_cmds_GCJ | \
19053
 
    module_cmds_GCJ | \
19054
 
    module_expsym_cmds_GCJ | \
19055
 
    old_archive_from_expsyms_cmds_GCJ | \
19056
 
    export_symbols_cmds_GCJ | \
19057
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19058
 
    postinstall_cmds | postuninstall_cmds | \
19059
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19060
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19061
 
      # Double-quote double-evaled strings.
19062
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19063
 
      ;;
19064
 
    *)
19065
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19066
 
      ;;
19067
 
    esac
19068
 
  done
19069
 
 
19070
 
  case $lt_echo in
19071
 
  *'\$0 --fallback-echo"')
19072
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19073
 
    ;;
19074
 
  esac
19075
 
 
19076
 
cfgfile="$ofile"
19077
 
 
19078
 
  cat <<__EOF__ >> "$cfgfile"
19079
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19080
 
 
19081
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19082
 
 
19083
 
# Shell to use when invoking shell scripts.
19084
 
SHELL=$lt_SHELL
19085
 
 
19086
 
# Whether or not to build shared libraries.
19087
 
build_libtool_libs=$enable_shared
19088
 
 
19089
 
# Whether or not to build static libraries.
19090
 
build_old_libs=$enable_static
19091
 
 
19092
 
# Whether or not to add -lc for building shared libraries.
19093
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19094
 
 
19095
 
# Whether or not to disallow shared libs when runtime libs are static
19096
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19097
 
 
19098
 
# Whether or not to optimize for fast installation.
19099
 
fast_install=$enable_fast_install
19100
 
 
19101
 
# The host system.
19102
 
host_alias=$host_alias
19103
 
host=$host
19104
 
host_os=$host_os
19105
 
 
19106
 
# The build system.
19107
 
build_alias=$build_alias
19108
 
build=$build
19109
 
build_os=$build_os
19110
 
 
19111
 
# An echo program that does not interpret backslashes.
19112
 
echo=$lt_echo
19113
 
 
19114
 
# The archiver.
19115
 
AR=$lt_AR
19116
 
AR_FLAGS=$lt_AR_FLAGS
19117
 
 
19118
 
# A C compiler.
19119
 
LTCC=$lt_LTCC
19120
 
 
19121
 
# LTCC compiler flags.
19122
 
LTCFLAGS=$lt_LTCFLAGS
19123
 
 
19124
 
# A language-specific compiler.
19125
 
CC=$lt_compiler_GCJ
19126
 
 
19127
 
# Is the compiler the GNU C compiler?
19128
 
with_gcc=$GCC_GCJ
19129
 
 
19130
 
# An ERE matcher.
19131
 
EGREP=$lt_EGREP
19132
 
 
19133
 
# The linker used to build libraries.
19134
 
LD=$lt_LD_GCJ
19135
 
 
19136
 
# Whether we need hard or soft links.
19137
 
LN_S=$lt_LN_S
19138
 
 
19139
 
# A BSD-compatible nm program.
19140
 
NM=$lt_NM
19141
 
 
19142
 
# A symbol stripping program
19143
 
STRIP=$lt_STRIP
19144
 
 
19145
 
# Used to examine libraries when file_magic_cmd begins "file"
19146
 
MAGIC_CMD=$MAGIC_CMD
19147
 
 
19148
 
# Used on cygwin: DLL creation program.
19149
 
DLLTOOL="$DLLTOOL"
19150
 
 
19151
 
# Used on cygwin: object dumper.
19152
 
OBJDUMP="$OBJDUMP"
19153
 
 
19154
 
# Used on cygwin: assembler.
19155
 
AS="$AS"
19156
 
 
19157
 
# The name of the directory that contains temporary libtool files.
19158
 
objdir=$objdir
19159
 
 
19160
 
# How to create reloadable object files.
19161
 
reload_flag=$lt_reload_flag
19162
 
reload_cmds=$lt_reload_cmds
19163
 
 
19164
 
# How to pass a linker flag through the compiler.
19165
 
wl=$lt_lt_prog_compiler_wl_GCJ
19166
 
 
19167
 
# Object file suffix (normally "o").
19168
 
objext="$ac_objext"
19169
 
 
19170
 
# Old archive suffix (normally "a").
19171
 
libext="$libext"
19172
 
 
19173
 
# Shared library suffix (normally ".so").
19174
 
shrext_cmds='$shrext_cmds'
19175
 
 
19176
 
# Executable file suffix (normally "").
19177
 
exeext="$exeext"
19178
 
 
19179
 
# Additional compiler flags for building library objects.
19180
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19181
 
pic_mode=$pic_mode
19182
 
 
19183
 
# What is the maximum length of a command?
19184
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19185
 
 
19186
 
# Does compiler simultaneously support -c and -o options?
19187
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19188
 
 
19189
 
# Must we lock files when doing compilation?
19190
 
need_locks=$lt_need_locks
19191
 
 
19192
 
# Do we need the lib prefix for modules?
19193
 
need_lib_prefix=$need_lib_prefix
19194
 
 
19195
 
# Do we need a version for libraries?
19196
 
need_version=$need_version
19197
 
 
19198
 
# Whether dlopen is supported.
19199
 
dlopen_support=$enable_dlopen
19200
 
 
19201
 
# Whether dlopen of programs is supported.
19202
 
dlopen_self=$enable_dlopen_self
19203
 
 
19204
 
# Whether dlopen of statically linked programs is supported.
19205
 
dlopen_self_static=$enable_dlopen_self_static
19206
 
 
19207
 
# Compiler flag to prevent dynamic linking.
19208
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19209
 
 
19210
 
# Compiler flag to turn off builtin functions.
19211
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19212
 
 
19213
 
# Compiler flag to allow reflexive dlopens.
19214
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19215
 
 
19216
 
# Compiler flag to generate shared objects directly from archives.
19217
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19218
 
 
19219
 
# Compiler flag to generate thread-safe objects.
19220
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19221
 
 
19222
 
# Library versioning type.
19223
 
version_type=$version_type
19224
 
 
19225
 
# Format of library name prefix.
19226
 
libname_spec=$lt_libname_spec
19227
 
 
19228
 
# List of archive names.  First name is the real one, the rest are links.
19229
 
# The last name is the one that the linker finds with -lNAME.
19230
 
library_names_spec=$lt_library_names_spec
19231
 
 
19232
 
# The coded name of the library, if different from the real name.
19233
 
soname_spec=$lt_soname_spec
19234
 
 
19235
 
# Commands used to build and install an old-style archive.
19236
 
RANLIB=$lt_RANLIB
19237
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19238
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19239
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19240
 
 
19241
 
# Create an old-style archive from a shared archive.
19242
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19243
 
 
19244
 
# Create a temporary old-style archive to link instead of a shared archive.
19245
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19246
 
 
19247
 
# Commands used to build and install a shared archive.
19248
 
archive_cmds=$lt_archive_cmds_GCJ
19249
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19250
 
postinstall_cmds=$lt_postinstall_cmds
19251
 
postuninstall_cmds=$lt_postuninstall_cmds
19252
 
 
19253
 
# Commands used to build a loadable module (assumed same as above if empty)
19254
 
module_cmds=$lt_module_cmds_GCJ
19255
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19256
 
 
19257
 
# Commands to strip libraries.
19258
 
old_striplib=$lt_old_striplib
19259
 
striplib=$lt_striplib
19260
 
 
19261
 
# Dependencies to place before the objects being linked to create a
19262
 
# shared library.
19263
 
predep_objects=$lt_predep_objects_GCJ
19264
 
 
19265
 
# Dependencies to place after the objects being linked to create a
19266
 
# shared library.
19267
 
postdep_objects=$lt_postdep_objects_GCJ
19268
 
 
19269
 
# Dependencies to place before the objects being linked to create a
19270
 
# shared library.
19271
 
predeps=$lt_predeps_GCJ
19272
 
 
19273
 
# Dependencies to place after the objects being linked to create a
19274
 
# shared library.
19275
 
postdeps=$lt_postdeps_GCJ
19276
 
 
19277
 
# The directories searched by this compiler when creating a shared
19278
 
# library
19279
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19280
 
 
19281
 
# The library search path used internally by the compiler when linking
19282
 
# a shared library.
19283
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19284
 
 
19285
 
# Method to check whether dependent libraries are shared objects.
19286
 
deplibs_check_method=$lt_deplibs_check_method
19287
 
 
19288
 
# Command to use when deplibs_check_method == file_magic.
19289
 
file_magic_cmd=$lt_file_magic_cmd
19290
 
 
19291
 
# Flag that allows shared libraries with undefined symbols to be built.
19292
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19293
 
 
19294
 
# Flag that forces no undefined symbols.
19295
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19296
 
 
19297
 
# Commands used to finish a libtool library installation in a directory.
19298
 
finish_cmds=$lt_finish_cmds
19299
 
 
19300
 
# Same as above, but a single script fragment to be evaled but not shown.
19301
 
finish_eval=$lt_finish_eval
19302
 
 
19303
 
# Take the output of nm and produce a listing of raw symbols and C names.
19304
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19305
 
 
19306
 
# Transform the output of nm in a proper C declaration
19307
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19308
 
 
19309
 
# Transform the output of nm in a C name address pair
19310
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19311
 
 
19312
 
# This is the shared library runtime path variable.
19313
 
runpath_var=$runpath_var
19314
 
 
19315
 
# This is the shared library path variable.
19316
 
shlibpath_var=$shlibpath_var
19317
 
 
19318
 
# Is shlibpath searched before the hard-coded library search path?
19319
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19320
 
 
19321
 
# How to hardcode a shared library path into an executable.
19322
 
hardcode_action=$hardcode_action_GCJ
19323
 
 
19324
 
# Whether we should hardcode library paths into libraries.
19325
 
hardcode_into_libs=$hardcode_into_libs
19326
 
 
19327
 
# Flag to hardcode \$libdir into a binary during linking.
19328
 
# This must work even if \$libdir does not exist.
19329
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19330
 
 
19331
 
# If ld is used when linking, flag to hardcode \$libdir into
19332
 
# a binary during linking. This must work even if \$libdir does
19333
 
# not exist.
19334
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19335
 
 
19336
 
# Whether we need a single -rpath flag with a separated argument.
19337
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19338
 
 
19339
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19340
 
# resulting binary.
19341
 
hardcode_direct=$hardcode_direct_GCJ
19342
 
 
19343
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19344
 
# resulting binary.
19345
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19346
 
 
19347
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19348
 
# the resulting binary.
19349
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19350
 
 
19351
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19352
 
# and all subsequent libraries and executables linked against it.
19353
 
hardcode_automatic=$hardcode_automatic_GCJ
19354
 
 
19355
 
# Variables whose values should be saved in libtool wrapper scripts and
19356
 
# restored at relink time.
19357
 
variables_saved_for_relink="$variables_saved_for_relink"
19358
 
 
19359
 
# Whether libtool must link a program against all its dependency libraries.
19360
 
link_all_deplibs=$link_all_deplibs_GCJ
19361
 
 
19362
 
# Compile-time system search path for libraries
19363
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19364
 
 
19365
 
# Run-time system search path for libraries
19366
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19367
 
 
19368
 
# Fix the shell variable \$srcfile for the compiler.
19369
 
fix_srcfile_path=$lt_fix_srcfile_path
19370
 
 
19371
 
# Set to yes if exported symbols are required.
19372
 
always_export_symbols=$always_export_symbols_GCJ
19373
 
 
19374
 
# The commands to list exported symbols.
19375
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19376
 
 
19377
 
# The commands to extract the exported symbol list from a shared archive.
19378
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19379
 
 
19380
 
# Symbols that should not be listed in the preloaded symbols.
19381
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19382
 
 
19383
 
# Symbols that must always be exported.
19384
 
include_expsyms=$lt_include_expsyms_GCJ
19385
 
 
19386
 
# ### END LIBTOOL TAG CONFIG: $tagname
19387
 
 
19388
 
__EOF__
19389
 
 
19390
 
 
19391
 
else
19392
 
  # If there is no Makefile yet, we rely on a make rule to execute
19393
 
  # `config.status --recheck' to rerun these tests and create the
19394
 
  # libtool script then.
19395
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19396
 
  if test -f "$ltmain_in"; then
19397
 
    test -f Makefile && make "$ltmain"
19398
 
  fi
19399
 
fi
19400
 
 
19401
 
 
19402
 
ac_ext=c
19403
 
ac_cpp='$CPP $CPPFLAGS'
19404
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19407
 
 
19408
 
CC="$lt_save_CC"
19409
 
 
19410
 
        else
19411
 
          tagname=""
19412
 
        fi
19413
 
        ;;
19414
 
 
19415
 
      RC)
19416
 
 
19417
 
 
19418
 
# Source file extension for RC test sources.
19419
 
ac_ext=rc
19420
 
 
19421
 
# Object file extension for compiled RC test sources.
19422
 
objext=o
19423
 
objext_RC=$objext
19424
 
 
19425
 
# Code to be used in simple compile tests
19426
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19427
 
 
19428
 
# Code to be used in simple link tests
19429
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
19430
 
 
19431
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19432
 
 
19433
 
# If no C compiler was specified, use CC.
19434
 
LTCC=${LTCC-"$CC"}
19435
 
 
19436
 
# If no C compiler flags were specified, use CFLAGS.
19437
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19438
 
 
19439
 
# Allow CC to be a program name with arguments.
19440
 
compiler=$CC
19441
 
 
19442
 
 
19443
 
# save warnings/boilerplate of simple test code
19444
 
ac_outfile=conftest.$ac_objext
19445
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19446
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19447
 
_lt_compiler_boilerplate=`cat conftest.err`
19448
 
$rm conftest*
19449
 
 
19450
 
ac_outfile=conftest.$ac_objext
19451
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19452
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19453
 
_lt_linker_boilerplate=`cat conftest.err`
19454
 
$rm -r conftest*
19455
 
 
19456
 
 
19457
 
# Allow CC to be a program name with arguments.
19458
 
lt_save_CC="$CC"
19459
 
CC=${RC-"windres"}
19460
 
compiler=$CC
19461
 
compiler_RC=$CC
19462
 
for cc_temp in $compiler""; do
19463
 
  case $cc_temp in
19464
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19465
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19466
 
    \-*) ;;
19467
 
    *) break;;
19468
 
  esac
19469
 
done
19470
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19471
 
 
19472
 
lt_cv_prog_compiler_c_o_RC=yes
19473
 
 
19474
 
# The else clause should only fire when bootstrapping the
19475
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19476
 
# with your package, and you will get complaints that there are
19477
 
# no rules to generate ltmain.sh.
19478
 
if test -f "$ltmain"; then
19479
 
  # See if we are running on zsh, and set the options which allow our commands through
19480
 
  # without removal of \ escapes.
19481
 
  if test -n "${ZSH_VERSION+set}" ; then
19482
 
    setopt NO_GLOB_SUBST
19483
 
  fi
19484
 
  # Now quote all the things that may contain metacharacters while being
19485
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19486
 
  # variables and quote the copies for generation of the libtool script.
19487
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19488
 
    SED SHELL STRIP \
19489
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19490
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19491
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19492
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19493
 
    lt_cv_sys_global_symbol_to_c_name_address \
19494
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19495
 
    old_postinstall_cmds old_postuninstall_cmds \
19496
 
    compiler_RC \
19497
 
    CC_RC \
19498
 
    LD_RC \
19499
 
    lt_prog_compiler_wl_RC \
19500
 
    lt_prog_compiler_pic_RC \
19501
 
    lt_prog_compiler_static_RC \
19502
 
    lt_prog_compiler_no_builtin_flag_RC \
19503
 
    export_dynamic_flag_spec_RC \
19504
 
    thread_safe_flag_spec_RC \
19505
 
    whole_archive_flag_spec_RC \
19506
 
    enable_shared_with_static_runtimes_RC \
19507
 
    old_archive_cmds_RC \
19508
 
    old_archive_from_new_cmds_RC \
19509
 
    predep_objects_RC \
19510
 
    postdep_objects_RC \
19511
 
    predeps_RC \
19512
 
    postdeps_RC \
19513
 
    compiler_lib_search_path_RC \
19514
 
    compiler_lib_search_dirs_RC \
19515
 
    archive_cmds_RC \
19516
 
    archive_expsym_cmds_RC \
19517
 
    postinstall_cmds_RC \
19518
 
    postuninstall_cmds_RC \
19519
 
    old_archive_from_expsyms_cmds_RC \
19520
 
    allow_undefined_flag_RC \
19521
 
    no_undefined_flag_RC \
19522
 
    export_symbols_cmds_RC \
19523
 
    hardcode_libdir_flag_spec_RC \
19524
 
    hardcode_libdir_flag_spec_ld_RC \
19525
 
    hardcode_libdir_separator_RC \
19526
 
    hardcode_automatic_RC \
19527
 
    module_cmds_RC \
19528
 
    module_expsym_cmds_RC \
19529
 
    lt_cv_prog_compiler_c_o_RC \
19530
 
    fix_srcfile_path_RC \
19531
 
    exclude_expsyms_RC \
19532
 
    include_expsyms_RC; do
19533
 
 
19534
 
    case $var in
19535
 
    old_archive_cmds_RC | \
19536
 
    old_archive_from_new_cmds_RC | \
19537
 
    archive_cmds_RC | \
19538
 
    archive_expsym_cmds_RC | \
19539
 
    module_cmds_RC | \
19540
 
    module_expsym_cmds_RC | \
19541
 
    old_archive_from_expsyms_cmds_RC | \
19542
 
    export_symbols_cmds_RC | \
19543
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19544
 
    postinstall_cmds | postuninstall_cmds | \
19545
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19546
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19547
 
      # Double-quote double-evaled strings.
19548
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19549
 
      ;;
19550
 
    *)
19551
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19552
 
      ;;
19553
 
    esac
19554
 
  done
19555
 
 
19556
 
  case $lt_echo in
19557
 
  *'\$0 --fallback-echo"')
19558
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19559
 
    ;;
19560
 
  esac
19561
 
 
19562
 
cfgfile="$ofile"
19563
 
 
19564
 
  cat <<__EOF__ >> "$cfgfile"
19565
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19566
 
 
19567
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19568
 
 
19569
 
# Shell to use when invoking shell scripts.
19570
 
SHELL=$lt_SHELL
19571
 
 
19572
 
# Whether or not to build shared libraries.
19573
 
build_libtool_libs=$enable_shared
19574
 
 
19575
 
# Whether or not to build static libraries.
19576
 
build_old_libs=$enable_static
19577
 
 
19578
 
# Whether or not to add -lc for building shared libraries.
19579
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
19580
 
 
19581
 
# Whether or not to disallow shared libs when runtime libs are static
19582
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19583
 
 
19584
 
# Whether or not to optimize for fast installation.
19585
 
fast_install=$enable_fast_install
19586
 
 
19587
 
# The host system.
19588
 
host_alias=$host_alias
19589
 
host=$host
19590
 
host_os=$host_os
19591
 
 
19592
 
# The build system.
19593
 
build_alias=$build_alias
19594
 
build=$build
19595
 
build_os=$build_os
19596
 
 
19597
 
# An echo program that does not interpret backslashes.
19598
 
echo=$lt_echo
19599
 
 
19600
 
# The archiver.
19601
 
AR=$lt_AR
19602
 
AR_FLAGS=$lt_AR_FLAGS
19603
 
 
19604
 
# A C compiler.
19605
 
LTCC=$lt_LTCC
19606
 
 
19607
 
# LTCC compiler flags.
19608
 
LTCFLAGS=$lt_LTCFLAGS
19609
 
 
19610
 
# A language-specific compiler.
19611
 
CC=$lt_compiler_RC
19612
 
 
19613
 
# Is the compiler the GNU C compiler?
19614
 
with_gcc=$GCC_RC
19615
 
 
19616
 
# An ERE matcher.
19617
 
EGREP=$lt_EGREP
19618
 
 
19619
 
# The linker used to build libraries.
19620
 
LD=$lt_LD_RC
19621
 
 
19622
 
# Whether we need hard or soft links.
19623
 
LN_S=$lt_LN_S
19624
 
 
19625
 
# A BSD-compatible nm program.
19626
 
NM=$lt_NM
19627
 
 
19628
 
# A symbol stripping program
19629
 
STRIP=$lt_STRIP
19630
 
 
19631
 
# Used to examine libraries when file_magic_cmd begins "file"
19632
 
MAGIC_CMD=$MAGIC_CMD
19633
 
 
19634
 
# Used on cygwin: DLL creation program.
19635
 
DLLTOOL="$DLLTOOL"
19636
 
 
19637
 
# Used on cygwin: object dumper.
19638
 
OBJDUMP="$OBJDUMP"
19639
 
 
19640
 
# Used on cygwin: assembler.
19641
 
AS="$AS"
19642
 
 
19643
 
# The name of the directory that contains temporary libtool files.
19644
 
objdir=$objdir
19645
 
 
19646
 
# How to create reloadable object files.
19647
 
reload_flag=$lt_reload_flag
19648
 
reload_cmds=$lt_reload_cmds
19649
 
 
19650
 
# How to pass a linker flag through the compiler.
19651
 
wl=$lt_lt_prog_compiler_wl_RC
19652
 
 
19653
 
# Object file suffix (normally "o").
19654
 
objext="$ac_objext"
19655
 
 
19656
 
# Old archive suffix (normally "a").
19657
 
libext="$libext"
19658
 
 
19659
 
# Shared library suffix (normally ".so").
19660
 
shrext_cmds='$shrext_cmds'
19661
 
 
19662
 
# Executable file suffix (normally "").
19663
 
exeext="$exeext"
19664
 
 
19665
 
# Additional compiler flags for building library objects.
19666
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19667
 
pic_mode=$pic_mode
19668
 
 
19669
 
# What is the maximum length of a command?
19670
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19671
 
 
19672
 
# Does compiler simultaneously support -c and -o options?
19673
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19674
 
 
19675
 
# Must we lock files when doing compilation?
19676
 
need_locks=$lt_need_locks
19677
 
 
19678
 
# Do we need the lib prefix for modules?
19679
 
need_lib_prefix=$need_lib_prefix
19680
 
 
19681
 
# Do we need a version for libraries?
19682
 
need_version=$need_version
19683
 
 
19684
 
# Whether dlopen is supported.
19685
 
dlopen_support=$enable_dlopen
19686
 
 
19687
 
# Whether dlopen of programs is supported.
19688
 
dlopen_self=$enable_dlopen_self
19689
 
 
19690
 
# Whether dlopen of statically linked programs is supported.
19691
 
dlopen_self_static=$enable_dlopen_self_static
19692
 
 
19693
 
# Compiler flag to prevent dynamic linking.
19694
 
link_static_flag=$lt_lt_prog_compiler_static_RC
19695
 
 
19696
 
# Compiler flag to turn off builtin functions.
19697
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19698
 
 
19699
 
# Compiler flag to allow reflexive dlopens.
19700
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19701
 
 
19702
 
# Compiler flag to generate shared objects directly from archives.
19703
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19704
 
 
19705
 
# Compiler flag to generate thread-safe objects.
19706
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19707
 
 
19708
 
# Library versioning type.
19709
 
version_type=$version_type
19710
 
 
19711
 
# Format of library name prefix.
19712
 
libname_spec=$lt_libname_spec
19713
 
 
19714
 
# List of archive names.  First name is the real one, the rest are links.
19715
 
# The last name is the one that the linker finds with -lNAME.
19716
 
library_names_spec=$lt_library_names_spec
19717
 
 
19718
 
# The coded name of the library, if different from the real name.
19719
 
soname_spec=$lt_soname_spec
19720
 
 
19721
 
# Commands used to build and install an old-style archive.
19722
 
RANLIB=$lt_RANLIB
19723
 
old_archive_cmds=$lt_old_archive_cmds_RC
19724
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19725
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19726
 
 
19727
 
# Create an old-style archive from a shared archive.
19728
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19729
 
 
19730
 
# Create a temporary old-style archive to link instead of a shared archive.
19731
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19732
 
 
19733
 
# Commands used to build and install a shared archive.
19734
 
archive_cmds=$lt_archive_cmds_RC
19735
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19736
 
postinstall_cmds=$lt_postinstall_cmds
19737
 
postuninstall_cmds=$lt_postuninstall_cmds
19738
 
 
19739
 
# Commands used to build a loadable module (assumed same as above if empty)
19740
 
module_cmds=$lt_module_cmds_RC
19741
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
19742
 
 
19743
 
# Commands to strip libraries.
19744
 
old_striplib=$lt_old_striplib
19745
 
striplib=$lt_striplib
19746
 
 
19747
 
# Dependencies to place before the objects being linked to create a
19748
 
# shared library.
19749
 
predep_objects=$lt_predep_objects_RC
19750
 
 
19751
 
# Dependencies to place after the objects being linked to create a
19752
 
# shared library.
19753
 
postdep_objects=$lt_postdep_objects_RC
19754
 
 
19755
 
# Dependencies to place before the objects being linked to create a
19756
 
# shared library.
19757
 
predeps=$lt_predeps_RC
19758
 
 
19759
 
# Dependencies to place after the objects being linked to create a
19760
 
# shared library.
19761
 
postdeps=$lt_postdeps_RC
19762
 
 
19763
 
# The directories searched by this compiler when creating a shared
19764
 
# library
19765
 
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19766
 
 
19767
 
# The library search path used internally by the compiler when linking
19768
 
# a shared library.
19769
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19770
 
 
19771
 
# Method to check whether dependent libraries are shared objects.
19772
 
deplibs_check_method=$lt_deplibs_check_method
19773
 
 
19774
 
# Command to use when deplibs_check_method == file_magic.
19775
 
file_magic_cmd=$lt_file_magic_cmd
19776
 
 
19777
 
# Flag that allows shared libraries with undefined symbols to be built.
19778
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
19779
 
 
19780
 
# Flag that forces no undefined symbols.
19781
 
no_undefined_flag=$lt_no_undefined_flag_RC
19782
 
 
19783
 
# Commands used to finish a libtool library installation in a directory.
19784
 
finish_cmds=$lt_finish_cmds
19785
 
 
19786
 
# Same as above, but a single script fragment to be evaled but not shown.
19787
 
finish_eval=$lt_finish_eval
19788
 
 
19789
 
# Take the output of nm and produce a listing of raw symbols and C names.
19790
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19791
 
 
19792
 
# Transform the output of nm in a proper C declaration
19793
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19794
 
 
19795
 
# Transform the output of nm in a C name address pair
19796
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19797
 
 
19798
 
# This is the shared library runtime path variable.
19799
 
runpath_var=$runpath_var
19800
 
 
19801
 
# This is the shared library path variable.
19802
 
shlibpath_var=$shlibpath_var
19803
 
 
19804
 
# Is shlibpath searched before the hard-coded library search path?
19805
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19806
 
 
19807
 
# How to hardcode a shared library path into an executable.
19808
 
hardcode_action=$hardcode_action_RC
19809
 
 
19810
 
# Whether we should hardcode library paths into libraries.
19811
 
hardcode_into_libs=$hardcode_into_libs
19812
 
 
19813
 
# Flag to hardcode \$libdir into a binary during linking.
19814
 
# This must work even if \$libdir does not exist.
19815
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19816
 
 
19817
 
# If ld is used when linking, flag to hardcode \$libdir into
19818
 
# a binary during linking. This must work even if \$libdir does
19819
 
# not exist.
19820
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19821
 
 
19822
 
# Whether we need a single -rpath flag with a separated argument.
19823
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19824
 
 
19825
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19826
 
# resulting binary.
19827
 
hardcode_direct=$hardcode_direct_RC
19828
 
 
19829
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19830
 
# resulting binary.
19831
 
hardcode_minus_L=$hardcode_minus_L_RC
19832
 
 
19833
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19834
 
# the resulting binary.
19835
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19836
 
 
19837
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19838
 
# and all subsequent libraries and executables linked against it.
19839
 
hardcode_automatic=$hardcode_automatic_RC
19840
 
 
19841
 
# Variables whose values should be saved in libtool wrapper scripts and
19842
 
# restored at relink time.
19843
 
variables_saved_for_relink="$variables_saved_for_relink"
19844
 
 
19845
 
# Whether libtool must link a program against all its dependency libraries.
19846
 
link_all_deplibs=$link_all_deplibs_RC
19847
 
 
19848
 
# Compile-time system search path for libraries
19849
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19850
 
 
19851
 
# Run-time system search path for libraries
19852
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19853
 
 
19854
 
# Fix the shell variable \$srcfile for the compiler.
19855
 
fix_srcfile_path=$lt_fix_srcfile_path
19856
 
 
19857
 
# Set to yes if exported symbols are required.
19858
 
always_export_symbols=$always_export_symbols_RC
19859
 
 
19860
 
# The commands to list exported symbols.
19861
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
19862
 
 
19863
 
# The commands to extract the exported symbol list from a shared archive.
19864
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19865
 
 
19866
 
# Symbols that should not be listed in the preloaded symbols.
19867
 
exclude_expsyms=$lt_exclude_expsyms_RC
19868
 
 
19869
 
# Symbols that must always be exported.
19870
 
include_expsyms=$lt_include_expsyms_RC
19871
 
 
19872
 
# ### END LIBTOOL TAG CONFIG: $tagname
19873
 
 
19874
 
__EOF__
19875
 
 
19876
 
 
19877
 
else
19878
 
  # If there is no Makefile yet, we rely on a make rule to execute
19879
 
  # `config.status --recheck' to rerun these tests and create the
19880
 
  # libtool script then.
19881
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19882
 
  if test -f "$ltmain_in"; then
19883
 
    test -f Makefile && make "$ltmain"
19884
 
  fi
19885
 
fi
19886
 
 
19887
 
 
19888
 
ac_ext=c
19889
 
ac_cpp='$CPP $CPPFLAGS'
19890
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893
 
 
19894
 
CC="$lt_save_CC"
19895
 
 
19896
 
        ;;
19897
 
 
19898
 
      *)
19899
 
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19900
 
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19901
 
   { (exit 1); exit 1; }; }
19902
 
        ;;
19903
 
      esac
19904
 
 
19905
 
      # Append the new tag name to the list of available tags.
19906
 
      if test -n "$tagname" ; then
19907
 
      available_tags="$available_tags $tagname"
19908
 
    fi
19909
 
    fi
19910
 
  done
19911
 
  IFS="$lt_save_ifs"
19912
 
 
19913
 
  # Now substitute the updated list of available tags.
19914
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19915
 
    mv "${ofile}T" "$ofile"
19916
 
    chmod +x "$ofile"
19917
 
  else
19918
 
    rm -f "${ofile}T"
19919
 
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19920
 
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19921
 
   { (exit 1); exit 1; }; }
19922
 
  fi
19923
 
fi
19924
 
 
19925
 
 
19926
 
 
19927
 
# This can be used to rebuild libtool when needed
19928
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19929
 
 
19930
 
# Always use our own libtool.
19931
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19932
 
 
19933
 
# Prevent multiple expansion
19934
 
 
19935
 
 
19936
 
 
19937
 
 
 
11025
 
 
11026
 
 
11027
 
 
11028
 
 
11029
 
 
11030
 
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
striplib=
 
11041
old_striplib=
 
11042
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11043
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11044
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11045
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11046
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11047
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11048
$as_echo "yes" >&6; }
 
11049
else
 
11050
# FIXME - insert some real tests, host_os isn't really good enough
 
11051
  case $host_os in
 
11052
  darwin*)
 
11053
    if test -n "$STRIP" ; then
 
11054
      striplib="$STRIP -x"
 
11055
      old_striplib="$STRIP -S"
 
11056
      { $as_echo "$as_me:$LINENO: result: yes" >&5
 
11057
$as_echo "yes" >&6; }
 
11058
    else
 
11059
      { $as_echo "$as_me:$LINENO: result: no" >&5
 
11060
$as_echo "no" >&6; }
 
11061
    fi
 
11062
    ;;
 
11063
  *)
 
11064
    { $as_echo "$as_me:$LINENO: result: no" >&5
 
11065
$as_echo "no" >&6; }
 
11066
    ;;
 
11067
  esac
 
11068
fi
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
  # Report which library types will actually be built
 
11082
  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11083
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11084
  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11085
$as_echo "$can_build_shared" >&6; }
 
11086
 
 
11087
  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11088
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11089
  test "$can_build_shared" = "no" && enable_shared=no
 
11090
 
 
11091
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11092
  # are all built from PIC.
 
11093
  case $host_os in
 
11094
  aix3*)
 
11095
    test "$enable_shared" = yes && enable_static=no
 
11096
    if test -n "$RANLIB"; then
 
11097
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11098
      postinstall_cmds='$RANLIB $lib'
 
11099
    fi
 
11100
    ;;
 
11101
 
 
11102
  aix[4-9]*)
 
11103
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11104
      test "$enable_shared" = yes && enable_static=no
 
11105
    fi
 
11106
    ;;
 
11107
  esac
 
11108
  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11109
$as_echo "$enable_shared" >&6; }
 
11110
 
 
11111
  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11112
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11113
  # Make sure either enable_shared or enable_static is yes.
 
11114
  test "$enable_shared" = yes || enable_static=yes
 
11115
  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
11116
$as_echo "$enable_static" >&6; }
 
11117
 
 
11118
 
 
11119
 
 
11120
 
 
11121
fi
 
11122
ac_ext=c
 
11123
ac_cpp='$CPP $CPPFLAGS'
 
11124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11127
 
 
11128
CC="$lt_save_CC"
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
        ac_config_commands="$ac_config_commands libtool"
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
# Only expand once:
 
11148
 
 
11149
 
 
11150
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
11151
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
11152
if test "${ac_cv_path_SED+set}" = set; then
 
11153
  $as_echo_n "(cached) " >&6
 
11154
else
 
11155
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
11156
     for ac_i in 1 2 3 4 5 6 7; do
 
11157
       ac_script="$ac_script$as_nl$ac_script"
 
11158
     done
 
11159
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
11160
     $as_unset ac_script || ac_script=
 
11161
     if test -z "$SED"; then
 
11162
  ac_path_SED_found=false
 
11163
  # Loop through the user's path and test for each of PROGNAME-LIST
 
11164
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11165
for as_dir in $PATH
 
11166
do
 
11167
  IFS=$as_save_IFS
 
11168
  test -z "$as_dir" && as_dir=.
 
11169
  for ac_prog in sed gsed; do
 
11170
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11171
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
11172
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
11173
# Check for GNU ac_path_SED and select it if it is found.
 
11174
  # Check for GNU $ac_path_SED
 
11175
case `"$ac_path_SED" --version 2>&1` in
 
11176
*GNU*)
 
11177
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
11178
*)
 
11179
  ac_count=0
 
11180
  $as_echo_n 0123456789 >"conftest.in"
 
11181
  while :
 
11182
  do
 
11183
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
11184
    mv "conftest.tmp" "conftest.in"
 
11185
    cp "conftest.in" "conftest.nl"
 
11186
    $as_echo '' >> "conftest.nl"
 
11187
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
11188
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
11189
    ac_count=`expr $ac_count + 1`
 
11190
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
11191
      # Best one so far, save it but keep looking for a better one
 
11192
      ac_cv_path_SED="$ac_path_SED"
 
11193
      ac_path_SED_max=$ac_count
 
11194
    fi
 
11195
    # 10*(2^10) chars as input seems more than enough
 
11196
    test $ac_count -gt 10 && break
 
11197
  done
 
11198
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
11199
esac
 
11200
 
 
11201
      $ac_path_SED_found && break 3
 
11202
    done
 
11203
  done
 
11204
done
 
11205
IFS=$as_save_IFS
 
11206
  if test -z "$ac_cv_path_SED"; then
 
11207
    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
 
11208
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
 
11209
   { (exit 1); exit 1; }; }
 
11210
  fi
 
11211
else
 
11212
  ac_cv_path_SED=$SED
 
11213
fi
 
11214
 
 
11215
fi
 
11216
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
11217
$as_echo "$ac_cv_path_SED" >&6; }
 
11218
 SED="$ac_cv_path_SED"
 
11219
  rm -f conftest.sed
 
11220
 
 
11221
   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
11222
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
11223
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
11224
  $as_echo_n "(cached) " >&6
 
11225
else
 
11226
  ac_cv_prog_cc_c99=no
 
11227
ac_save_CC=$CC
 
11228
cat >conftest.$ac_ext <<_ACEOF
 
11229
/* confdefs.h.  */
 
11230
_ACEOF
 
11231
cat confdefs.h >>conftest.$ac_ext
 
11232
cat >>conftest.$ac_ext <<_ACEOF
 
11233
/* end confdefs.h.  */
 
11234
#include <stdarg.h>
 
11235
#include <stdbool.h>
 
11236
#include <stdlib.h>
 
11237
#include <wchar.h>
 
11238
#include <stdio.h>
 
11239
 
 
11240
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
11241
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
11242
#define showlist(...) puts (#__VA_ARGS__)
 
11243
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
11244
static void
 
11245
test_varargs_macros (void)
 
11246
{
 
11247
  int x = 1234;
 
11248
  int y = 5678;
 
11249
  debug ("Flag");
 
11250
  debug ("X = %d\n", x);
 
11251
  showlist (The first, second, and third items.);
 
11252
  report (x>y, "x is %d but y is %d", x, y);
 
11253
}
 
11254
 
 
11255
// Check long long types.
 
11256
#define BIG64 18446744073709551615ull
 
11257
#define BIG32 4294967295ul
 
11258
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
11259
#if !BIG_OK
 
11260
  your preprocessor is broken;
 
11261
#endif
 
11262
#if BIG_OK
 
11263
#else
 
11264
  your preprocessor is broken;
 
11265
#endif
 
11266
static long long int bignum = -9223372036854775807LL;
 
11267
static unsigned long long int ubignum = BIG64;
 
11268
 
 
11269
struct incomplete_array
 
11270
{
 
11271
  int datasize;
 
11272
  double data[];
 
11273
};
 
11274
 
 
11275
struct named_init {
 
11276
  int number;
 
11277
  const wchar_t *name;
 
11278
  double average;
 
11279
};
 
11280
 
 
11281
typedef const char *ccp;
 
11282
 
 
11283
static inline int
 
11284
test_restrict (ccp restrict text)
 
11285
{
 
11286
  // See if C++-style comments work.
 
11287
  // Iterate through items via the restricted pointer.
 
11288
  // Also check for declarations in for loops.
 
11289
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
11290
    continue;
 
11291
  return 0;
 
11292
}
 
11293
 
 
11294
// Check varargs and va_copy.
 
11295
static void
 
11296
test_varargs (const char *format, ...)
 
11297
{
 
11298
  va_list args;
 
11299
  va_start (args, format);
 
11300
  va_list args_copy;
 
11301
  va_copy (args_copy, args);
 
11302
 
 
11303
  const char *str;
 
11304
  int number;
 
11305
  float fnumber;
 
11306
 
 
11307
  while (*format)
 
11308
    {
 
11309
      switch (*format++)
 
11310
        {
 
11311
        case 's': // string
 
11312
          str = va_arg (args_copy, const char *);
 
11313
          break;
 
11314
        case 'd': // int
 
11315
          number = va_arg (args_copy, int);
 
11316
          break;
 
11317
        case 'f': // float
 
11318
          fnumber = va_arg (args_copy, double);
 
11319
          break;
 
11320
        default:
 
11321
          break;
 
11322
        }
 
11323
    }
 
11324
  va_end (args_copy);
 
11325
  va_end (args);
 
11326
}
 
11327
 
 
11328
int
 
11329
main ()
 
11330
{
 
11331
 
 
11332
  // Check bool.
 
11333
  _Bool success = false;
 
11334
 
 
11335
  // Check restrict.
 
11336
  if (test_restrict ("String literal") == 0)
 
11337
    success = true;
 
11338
  char *restrict newvar = "Another string";
 
11339
 
 
11340
  // Check varargs.
 
11341
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
11342
  test_varargs_macros ();
 
11343
 
 
11344
  // Check flexible array members.
 
11345
  struct incomplete_array *ia =
 
11346
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
11347
  ia->datasize = 10;
 
11348
  for (int i = 0; i < ia->datasize; ++i)
 
11349
    ia->data[i] = i * 1.234;
 
11350
 
 
11351
  // Check named initializers.
 
11352
  struct named_init ni = {
 
11353
    .number = 34,
 
11354
    .name = L"Test wide string",
 
11355
    .average = 543.34343,
 
11356
  };
 
11357
 
 
11358
  ni.number = 58;
 
11359
 
 
11360
  int dynamic_array[ni.number];
 
11361
  dynamic_array[ni.number - 1] = 543;
 
11362
 
 
11363
  // work around unused variable warnings
 
11364
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
11365
          || dynamic_array[ni.number - 1] != 543);
 
11366
 
 
11367
  ;
 
11368
  return 0;
 
11369
}
 
11370
_ACEOF
 
11371
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
11372
do
 
11373
  CC="$ac_save_CC $ac_arg"
 
11374
  rm -f conftest.$ac_objext
 
11375
if { (ac_try="$ac_compile"
 
11376
case "(($ac_try" in
 
11377
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11378
  *) ac_try_echo=$ac_try;;
 
11379
esac
 
11380
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11381
$as_echo "$ac_try_echo") >&5
 
11382
  (eval "$ac_compile") 2>conftest.er1
 
11383
  ac_status=$?
 
11384
  grep -v '^ *+' conftest.er1 >conftest.err
 
11385
  rm -f conftest.er1
 
11386
  cat conftest.err >&5
 
11387
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11388
  (exit $ac_status); } && {
 
11389
         test -z "$ac_c_werror_flag" ||
 
11390
         test ! -s conftest.err
 
11391
       } && test -s conftest.$ac_objext; then
 
11392
  ac_cv_prog_cc_c99=$ac_arg
 
11393
else
 
11394
  $as_echo "$as_me: failed program was:" >&5
 
11395
sed 's/^/| /' conftest.$ac_ext >&5
 
11396
 
 
11397
 
 
11398
fi
 
11399
 
 
11400
rm -f core conftest.err conftest.$ac_objext
 
11401
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
11402
done
 
11403
rm -f conftest.$ac_ext
 
11404
CC=$ac_save_CC
 
11405
 
 
11406
fi
 
11407
# AC_CACHE_VAL
 
11408
case "x$ac_cv_prog_cc_c99" in
 
11409
  x)
 
11410
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
11411
$as_echo "none needed" >&6; } ;;
 
11412
  xno)
 
11413
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
11414
$as_echo "unsupported" >&6; } ;;
 
11415
  *)
 
11416
    CC="$CC $ac_cv_prog_cc_c99"
 
11417
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
11418
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
11419
esac
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
 
11425
 
 
11426
if  test "x$GCC" = xyes ; then
 
11427
    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
 
11428
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
 
11429
-Wbad-function-cast"
 
11430
    case `$CC -dumpversion` in
 
11431
    3.4.* | 4.*)
 
11432
        CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
 
11433
        ;;
 
11434
    esac
 
11435
else
 
11436
    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
11437
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
11438
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
11439
  $as_echo_n "(cached) " >&6
 
11440
else
 
11441
  cat >conftest.$ac_ext <<_ACEOF
 
11442
/* confdefs.h.  */
 
11443
_ACEOF
 
11444
cat confdefs.h >>conftest.$ac_ext
 
11445
cat >>conftest.$ac_ext <<_ACEOF
 
11446
/* end confdefs.h.  */
 
11447
$ac_includes_default
 
11448
int
 
11449
main ()
 
11450
{
 
11451
#ifndef __SUNPRO_C
 
11452
  (void) __SUNPRO_C;
 
11453
#endif
 
11454
 
 
11455
  ;
 
11456
  return 0;
 
11457
}
 
11458
_ACEOF
 
11459
rm -f conftest.$ac_objext
 
11460
if { (ac_try="$ac_compile"
 
11461
case "(($ac_try" in
 
11462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11463
  *) ac_try_echo=$ac_try;;
 
11464
esac
 
11465
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11466
$as_echo "$ac_try_echo") >&5
 
11467
  (eval "$ac_compile") 2>conftest.er1
 
11468
  ac_status=$?
 
11469
  grep -v '^ *+' conftest.er1 >conftest.err
 
11470
  rm -f conftest.er1
 
11471
  cat conftest.err >&5
 
11472
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11473
  (exit $ac_status); } && {
 
11474
         test -z "$ac_c_werror_flag" ||
 
11475
         test ! -s conftest.err
 
11476
       } && test -s conftest.$ac_objext; then
 
11477
  ac_cv_have_decl___SUNPRO_C=yes
 
11478
else
 
11479
  $as_echo "$as_me: failed program was:" >&5
 
11480
sed 's/^/| /' conftest.$ac_ext >&5
 
11481
 
 
11482
        ac_cv_have_decl___SUNPRO_C=no
 
11483
fi
 
11484
 
 
11485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11486
fi
 
11487
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
11488
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
11489
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
11490
  SUNCC="yes"
 
11491
else
 
11492
  SUNCC="no"
 
11493
fi
 
11494
 
 
11495
    if test "x$SUNCC" = "xyes"; then
 
11496
        CWARNFLAGS="-v"
 
11497
    fi
 
11498
fi
 
11499
 
 
11500
# Check whether --enable-silent-rules was given.
 
11501
if test "${enable_silent_rules+set}" = set; then
 
11502
  enableval=$enable_silent_rules;
 
11503
fi
 
11504
 
 
11505
case $enable_silent_rules in
 
11506
yes) AM_DEFAULT_VERBOSITY=0;;
 
11507
no)  AM_DEFAULT_VERBOSITY=1;;
 
11508
*)   AM_DEFAULT_VERBOSITY=0;;
 
11509
esac
 
11510
AM_BACKSLASH='\'
 
11511
 
 
11512
 
 
11513
 
 
11514
 
 
11515
 
 
11516
 
 
11517
 
 
11518
# Check whether --enable-strict-compilation was given.
 
11519
if test "${enable_strict_compilation+set}" = set; then
 
11520
  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
 
11521
else
 
11522
  STRICT_COMPILE=no
 
11523
fi
 
11524
 
 
11525
if test "x$STRICT_COMPILE" = "xyes"; then
 
11526
        { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
11527
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
 
11528
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
11529
  $as_echo_n "(cached) " >&6
 
11530
else
 
11531
  cat >conftest.$ac_ext <<_ACEOF
 
11532
/* confdefs.h.  */
 
11533
_ACEOF
 
11534
cat confdefs.h >>conftest.$ac_ext
 
11535
cat >>conftest.$ac_ext <<_ACEOF
 
11536
/* end confdefs.h.  */
 
11537
$ac_includes_default
 
11538
int
 
11539
main ()
 
11540
{
 
11541
#ifndef __SUNPRO_C
 
11542
  (void) __SUNPRO_C;
 
11543
#endif
 
11544
 
 
11545
  ;
 
11546
  return 0;
 
11547
}
 
11548
_ACEOF
 
11549
rm -f conftest.$ac_objext
 
11550
if { (ac_try="$ac_compile"
 
11551
case "(($ac_try" in
 
11552
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11553
  *) ac_try_echo=$ac_try;;
 
11554
esac
 
11555
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11556
$as_echo "$ac_try_echo") >&5
 
11557
  (eval "$ac_compile") 2>conftest.er1
 
11558
  ac_status=$?
 
11559
  grep -v '^ *+' conftest.er1 >conftest.err
 
11560
  rm -f conftest.er1
 
11561
  cat conftest.err >&5
 
11562
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11563
  (exit $ac_status); } && {
 
11564
         test -z "$ac_c_werror_flag" ||
 
11565
         test ! -s conftest.err
 
11566
       } && test -s conftest.$ac_objext; then
 
11567
  ac_cv_have_decl___SUNPRO_C=yes
 
11568
else
 
11569
  $as_echo "$as_me: failed program was:" >&5
 
11570
sed 's/^/| /' conftest.$ac_ext >&5
 
11571
 
 
11572
        ac_cv_have_decl___SUNPRO_C=no
 
11573
fi
 
11574
 
 
11575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11576
fi
 
11577
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
11578
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
 
11579
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
 
11580
  SUNCC="yes"
 
11581
else
 
11582
  SUNCC="no"
 
11583
fi
 
11584
 
 
11585
        { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
 
11586
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
 
11587
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
 
11588
  $as_echo_n "(cached) " >&6
 
11589
else
 
11590
  cat >conftest.$ac_ext <<_ACEOF
 
11591
/* confdefs.h.  */
 
11592
_ACEOF
 
11593
cat confdefs.h >>conftest.$ac_ext
 
11594
cat >>conftest.$ac_ext <<_ACEOF
 
11595
/* end confdefs.h.  */
 
11596
$ac_includes_default
 
11597
int
 
11598
main ()
 
11599
{
 
11600
#ifndef __INTEL_COMPILER
 
11601
  (void) __INTEL_COMPILER;
 
11602
#endif
 
11603
 
 
11604
  ;
 
11605
  return 0;
 
11606
}
 
11607
_ACEOF
 
11608
rm -f conftest.$ac_objext
 
11609
if { (ac_try="$ac_compile"
 
11610
case "(($ac_try" in
 
11611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11612
  *) ac_try_echo=$ac_try;;
 
11613
esac
 
11614
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11615
$as_echo "$ac_try_echo") >&5
 
11616
  (eval "$ac_compile") 2>conftest.er1
 
11617
  ac_status=$?
 
11618
  grep -v '^ *+' conftest.er1 >conftest.err
 
11619
  rm -f conftest.er1
 
11620
  cat conftest.err >&5
 
11621
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11622
  (exit $ac_status); } && {
 
11623
         test -z "$ac_c_werror_flag" ||
 
11624
         test ! -s conftest.err
 
11625
       } && test -s conftest.$ac_objext; then
 
11626
  ac_cv_have_decl___INTEL_COMPILER=yes
 
11627
else
 
11628
  $as_echo "$as_me: failed program was:" >&5
 
11629
sed 's/^/| /' conftest.$ac_ext >&5
 
11630
 
 
11631
        ac_cv_have_decl___INTEL_COMPILER=no
 
11632
fi
 
11633
 
 
11634
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11635
fi
 
11636
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
 
11637
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
 
11638
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
 
11639
  INTELCC="yes"
 
11640
else
 
11641
  INTELCC="no"
 
11642
fi
 
11643
 
 
11644
        if test "x$GCC" = xyes ; then
 
11645
                STRICT_CFLAGS="-pedantic -Werror"
 
11646
        elif test "x$SUNCC" = "xyes"; then
 
11647
                STRICT_CFLAGS="-errwarn"
 
11648
    elif test "x$INTELCC" = "xyes"; then
 
11649
                STRICT_CFLAGS="-Werror"
 
11650
        fi
 
11651
fi
 
11652
CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
 
11653
 
 
11654
 
 
11655
 
 
11656
 
 
11657
# Check whether --with-release-version was given.
 
11658
if test "${with_release_version+set}" = set; then
 
11659
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
11660
else
 
11661
  RELEASE_VERSION=""
 
11662
fi
 
11663
 
 
11664
        if test "x$RELEASE_VERSION" != "x"; then
 
11665
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
11666
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
11667
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
11668
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
11669
        fi
 
11670
 
 
11671
cat >>confdefs.h <<_ACEOF
 
11672
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
11673
_ACEOF
 
11674
 
 
11675
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
11676
        if test "x$PVM" = "x"; then
 
11677
                PVM="0"
 
11678
        fi
 
11679
 
 
11680
cat >>confdefs.h <<_ACEOF
 
11681
#define PACKAGE_VERSION_MINOR $PVM
 
11682
_ACEOF
 
11683
 
 
11684
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
11685
        if test "x$PVP" = "x"; then
 
11686
                PVP="0"
 
11687
        fi
 
11688
 
 
11689
cat >>confdefs.h <<_ACEOF
 
11690
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
11691
_ACEOF
 
11692
 
 
11693
 
 
11694
 
 
11695
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
 
11696
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
 
11697
echo 'git directory not found: installing possibly empty changelog.' >&2)"
 
11698
 
 
11699
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
 
11700
 
 
11701
 
 
11702
 
 
11703
 
 
11704
 
 
11705
if test x$APP_MAN_SUFFIX = x    ; then
 
11706
    APP_MAN_SUFFIX=1
 
11707
fi
 
11708
if test x$APP_MAN_DIR = x    ; then
 
11709
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
11710
fi
 
11711
 
 
11712
if test x$LIB_MAN_SUFFIX = x    ; then
 
11713
    LIB_MAN_SUFFIX=3
 
11714
fi
 
11715
if test x$LIB_MAN_DIR = x    ; then
 
11716
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
11717
fi
 
11718
 
 
11719
if test x$FILE_MAN_SUFFIX = x    ; then
 
11720
    case $host_os in
 
11721
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
11722
        *)              FILE_MAN_SUFFIX=5  ;;
 
11723
    esac
 
11724
fi
 
11725
if test x$FILE_MAN_DIR = x    ; then
 
11726
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
11727
fi
 
11728
 
 
11729
if test x$MISC_MAN_SUFFIX = x    ; then
 
11730
    case $host_os in
 
11731
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
11732
        *)              MISC_MAN_SUFFIX=7  ;;
 
11733
    esac
 
11734
fi
 
11735
if test x$MISC_MAN_DIR = x    ; then
 
11736
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
11737
fi
 
11738
 
 
11739
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
11740
    case $host_os in
 
11741
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
11742
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
11743
    esac
 
11744
fi
 
11745
if test x$DRIVER_MAN_DIR = x    ; then
 
11746
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
11747
fi
 
11748
 
 
11749
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
11750
    case $host_os in
 
11751
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
11752
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
11753
    esac
 
11754
fi
 
11755
if test x$ADMIN_MAN_DIR = x    ; then
 
11756
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
11757
fi
19938
11758
 
19939
11759
 
19940
11760
 
20078
11898
    pkg_cv_XI_CFLAGS="$XI_CFLAGS"
20079
11899
 elif test -n "$PKG_CONFIG"; then
20080
11900
    if test -n "$PKG_CONFIG" && \
20081
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.5\"") >&5
20082
 
  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.5") 2>&5
 
11901
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\"") >&5
 
11902
  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
20083
11903
  ac_status=$?
20084
11904
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085
11905
  (exit $ac_status); }; then
20086
 
  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext inputproto >= 1.5" 2>/dev/null`
 
11906
  pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
20087
11907
else
20088
11908
  pkg_failed=yes
20089
11909
fi
20094
11914
    pkg_cv_XI_LIBS="$XI_LIBS"
20095
11915
 elif test -n "$PKG_CONFIG"; then
20096
11916
    if test -n "$PKG_CONFIG" && \
20097
 
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext inputproto >= 1.5\"") >&5
20098
 
  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext inputproto >= 1.5") 2>&5
 
11917
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\"") >&5
 
11918
  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
20099
11919
  ac_status=$?
20100
11920
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101
11921
  (exit $ac_status); }; then
20102
 
  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext inputproto >= 1.5" 2>/dev/null`
 
11922
  pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
20103
11923
else
20104
11924
  pkg_failed=yes
20105
11925
fi
20117
11937
        _pkg_short_errors_supported=no
20118
11938
fi
20119
11939
        if test $_pkg_short_errors_supported = yes; then
20120
 
                XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext inputproto >= 1.5" 2>&1`
 
11940
                XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
20121
11941
        else
20122
 
                XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext inputproto >= 1.5" 2>&1`
 
11942
                XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
20123
11943
        fi
20124
11944
        # Put the nasty error message in config.log where it belongs
20125
11945
        echo "$XI_PKG_ERRORS" >&5
20126
11946
 
20127
 
        { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.5) were not met:
 
11947
        { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met:
20128
11948
 
20129
11949
$XI_PKG_ERRORS
20130
11950
 
20135
11955
and XI_LIBS to avoid the need to call pkg-config.
20136
11956
See the pkg-config man page for more details.
20137
11957
" >&5
20138
 
$as_echo "$as_me: error: Package requirements (xproto x11 xextproto xext inputproto >= 1.5) were not met:
 
11958
$as_echo "$as_me: error: Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met:
20139
11959
 
20140
11960
$XI_PKG_ERRORS
20141
11961
 
20178
11998
$as_echo "yes" >&6; }
20179
11999
        :
20180
12000
fi
20181
 
 
20182
 
 
 
12001
XI_CFLAGS="$CWARNFLAGS $XI_CFLAGS"
 
12002
 
 
12003
 
 
12004
 
 
12005
# Check for xmlto and asciidoc for man page conversion
 
12006
# (only needed by people building tarballs)
 
12007
 
 
12008
# Extract the first word of "xmlto", so it can be a program name with args.
 
12009
set dummy xmlto; ac_word=$2
 
12010
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12011
$as_echo_n "checking for $ac_word... " >&6; }
 
12012
if test "${ac_cv_path_XMLTO+set}" = set; then
 
12013
  $as_echo_n "(cached) " >&6
 
12014
else
 
12015
  case $XMLTO in
 
12016
  [\\/]* | ?:[\\/]*)
 
12017
  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
 
12018
  ;;
 
12019
  *)
 
12020
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12021
for as_dir in $PATH
 
12022
do
 
12023
  IFS=$as_save_IFS
 
12024
  test -z "$as_dir" && as_dir=.
 
12025
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12026
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12027
    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
 
12028
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12029
    break 2
 
12030
  fi
 
12031
done
 
12032
done
 
12033
IFS=$as_save_IFS
 
12034
 
 
12035
  ;;
 
12036
esac
 
12037
fi
 
12038
XMLTO=$ac_cv_path_XMLTO
 
12039
if test -n "$XMLTO"; then
 
12040
  { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
 
12041
$as_echo "$XMLTO" >&6; }
 
12042
else
 
12043
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12044
$as_echo "no" >&6; }
 
12045
fi
 
12046
 
 
12047
 
 
12048
 
 
12049
# Extract the first word of "asciidoc", so it can be a program name with args.
 
12050
set dummy asciidoc; ac_word=$2
 
12051
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
12052
$as_echo_n "checking for $ac_word... " >&6; }
 
12053
if test "${ac_cv_path_ASCIIDOC+set}" = set; then
 
12054
  $as_echo_n "(cached) " >&6
 
12055
else
 
12056
  case $ASCIIDOC in
 
12057
  [\\/]* | ?:[\\/]*)
 
12058
  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
 
12059
  ;;
 
12060
  *)
 
12061
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12062
for as_dir in $PATH
 
12063
do
 
12064
  IFS=$as_save_IFS
 
12065
  test -z "$as_dir" && as_dir=.
 
12066
  for ac_exec_ext in '' $ac_executable_extensions; do
 
12067
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
12068
    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
 
12069
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12070
    break 2
 
12071
  fi
 
12072
done
 
12073
done
 
12074
IFS=$as_save_IFS
 
12075
 
 
12076
  ;;
 
12077
esac
 
12078
fi
 
12079
ASCIIDOC=$ac_cv_path_ASCIIDOC
 
12080
if test -n "$ASCIIDOC"; then
 
12081
  { $as_echo "$as_me:$LINENO: result: $ASCIIDOC" >&5
 
12082
$as_echo "$ASCIIDOC" >&6; }
 
12083
else
 
12084
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
12085
$as_echo "no" >&6; }
 
12086
fi
 
12087
 
 
12088
 
 
12089
 if test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"; then
 
12090
  HAVE_DOCTOOLS_TRUE=
 
12091
  HAVE_DOCTOOLS_FALSE='#'
 
12092
else
 
12093
  HAVE_DOCTOOLS_TRUE='#'
 
12094
  HAVE_DOCTOOLS_FALSE=
 
12095
fi
 
12096
 
 
12097
if test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then
 
12098
        { $as_echo "$as_me:$LINENO: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
 
12099
$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
 
12100
fi
20183
12101
 
20184
12102
 
20185
12103
# Check whether --enable-malloc0returnsnull was given.
20271
12189
 
20272
12190
 
20273
12191
 
20274
 
 
20275
 
 
20276
 
if test x$APP_MAN_SUFFIX = x    ; then
20277
 
    APP_MAN_SUFFIX=1
20278
 
fi
20279
 
if test x$APP_MAN_DIR = x    ; then
20280
 
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20281
 
fi
20282
 
 
20283
 
if test x$LIB_MAN_SUFFIX = x    ; then
20284
 
    LIB_MAN_SUFFIX=3
20285
 
fi
20286
 
if test x$LIB_MAN_DIR = x    ; then
20287
 
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20288
 
fi
20289
 
 
20290
 
if test x$FILE_MAN_SUFFIX = x    ; then
20291
 
    case $host_os in
20292
 
        solaris*)       FILE_MAN_SUFFIX=4  ;;
20293
 
        *)              FILE_MAN_SUFFIX=5  ;;
20294
 
    esac
20295
 
fi
20296
 
if test x$FILE_MAN_DIR = x    ; then
20297
 
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20298
 
fi
20299
 
 
20300
 
if test x$MISC_MAN_SUFFIX = x    ; then
20301
 
    case $host_os in
20302
 
        solaris*)       MISC_MAN_SUFFIX=5  ;;
20303
 
        *)              MISC_MAN_SUFFIX=7  ;;
20304
 
    esac
20305
 
fi
20306
 
if test x$MISC_MAN_DIR = x    ; then
20307
 
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20308
 
fi
20309
 
 
20310
 
if test x$DRIVER_MAN_SUFFIX = x    ; then
20311
 
    case $host_os in
20312
 
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
20313
 
        *)              DRIVER_MAN_SUFFIX=4  ;;
20314
 
    esac
20315
 
fi
20316
 
if test x$DRIVER_MAN_DIR = x    ; then
20317
 
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20318
 
fi
20319
 
 
20320
 
if test x$ADMIN_MAN_SUFFIX = x    ; then
20321
 
    case $host_os in
20322
 
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
20323
 
        *)              ADMIN_MAN_SUFFIX=8  ;;
20324
 
    esac
20325
 
fi
20326
 
if test x$ADMIN_MAN_DIR = x    ; then
20327
 
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20328
 
fi
20329
 
 
20330
 
 
20331
 
 
20332
 
 
20333
 
 
20334
 
 
20335
 
 
20336
 
 
20337
 
 
20338
 
 
20339
 
 
20340
 
 
20341
 
 
20342
 
 
20343
 
 
20344
 
 
20345
 
 
20346
 
# Check whether --with-release-version was given.
20347
 
if test "${with_release_version+set}" = set; then
20348
 
  withval=$with_release_version; RELEASE_VERSION="$withval"
20349
 
else
20350
 
  RELEASE_VERSION=""
20351
 
fi
20352
 
 
20353
 
        if test "x$RELEASE_VERSION" != "x"; then
20354
 
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
20355
 
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20356
 
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20357
 
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20358
 
        fi
20359
 
 
20360
 
cat >>confdefs.h <<_ACEOF
20361
 
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20362
 
_ACEOF
20363
 
 
20364
 
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20365
 
        if test "x$PVM" = "x"; then
20366
 
                PVM="0"
20367
 
        fi
20368
 
 
20369
 
cat >>confdefs.h <<_ACEOF
20370
 
#define PACKAGE_VERSION_MINOR $PVM
20371
 
_ACEOF
20372
 
 
20373
 
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20374
 
        if test "x$PVP" = "x"; then
20375
 
                PVP="0"
20376
 
        fi
20377
 
 
20378
 
cat >>confdefs.h <<_ACEOF
20379
 
#define PACKAGE_VERSION_PATCHLEVEL $PVP
20380
 
_ACEOF
20381
 
 
20382
 
 
20383
 
 
20384
12192
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xi.pc"
20385
12193
 
20386
12194
cat >confcache <<\_ACEOF
20480
12288
LTLIBOBJS=$ac_ltlibobjs
20481
12289
 
20482
12290
 
 
12291
 if test -n "$EXEEXT"; then
 
12292
  am__EXEEXT_TRUE=
 
12293
  am__EXEEXT_FALSE='#'
 
12294
else
 
12295
  am__EXEEXT_TRUE='#'
 
12296
  am__EXEEXT_FALSE=
 
12297
fi
 
12298
 
20483
12299
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20484
12300
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20485
12301
Usually this means the macro was only invoked conditionally." >&5
20501
12317
Usually this means the macro was only invoked conditionally." >&2;}
20502
12318
   { (exit 1); exit 1; }; }
20503
12319
fi
20504
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20505
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
12320
if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
 
12321
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOCTOOLS\" was never defined.
20506
12322
Usually this means the macro was only invoked conditionally." >&5
20507
 
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
12323
$as_echo "$as_me: error: conditional \"HAVE_DOCTOOLS\" was never defined.
20508
12324
Usually this means the macro was only invoked conditionally." >&2;}
20509
12325
   { (exit 1); exit 1; }; }
20510
12326
fi
20830
12646
# report actual input values of CONFIG_FILES etc. instead of their
20831
12647
# values after options handling.
20832
12648
ac_log="
20833
 
This file was extended by libXi $as_me 1.2.1, which was
 
12649
This file was extended by libXi $as_me 1.3, which was
20834
12650
generated by GNU Autoconf 2.63.  Invocation command line was
20835
12651
 
20836
12652
  CONFIG_FILES    = $CONFIG_FILES
20893
12709
_ACEOF
20894
12710
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20895
12711
ac_cs_version="\\
20896
 
libXi config.status 1.2.1
 
12712
libXi config.status 1.3
20897
12713
configured by $0, generated by GNU Autoconf 2.63,
20898
12714
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20899
12715
 
21008
12824
#
21009
12825
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21010
12826
 
 
12827
 
 
12828
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
12829
# if CDPATH is set.
 
12830
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
12831
 
 
12832
sed_quote_subst='$sed_quote_subst'
 
12833
double_quote_subst='$double_quote_subst'
 
12834
delay_variable_subst='$delay_variable_subst'
 
12835
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
12836
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
12837
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
12838
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
12839
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
12840
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
12841
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
12842
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
12843
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
12844
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
12845
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
12846
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
12847
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
12848
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
12849
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
12850
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
12851
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
12852
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
12853
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
12854
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
12855
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
12856
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
12857
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
12858
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
12859
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
12860
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
12861
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12862
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12863
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
12864
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
12865
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
12866
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
12867
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
12868
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
12869
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
12870
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12871
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12872
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12873
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
12874
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
12875
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
12876
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
12877
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
12878
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
12879
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"`'
 
12880
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"`'
 
12881
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
12882
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
12883
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
12884
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
12885
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12886
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
12887
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
12888
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
12889
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
12890
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
12891
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
12892
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
12893
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
12894
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
12895
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
12896
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
12897
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12898
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12899
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
12900
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
12901
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12902
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12903
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
12904
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12905
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12906
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12907
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12908
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12909
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12910
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
12911
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12912
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
12913
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12914
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
12915
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
12916
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
12917
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
12918
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
12919
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
12920
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
12921
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
12922
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
12923
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
12924
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
12925
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12926
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
12927
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
12928
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12929
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12930
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
12931
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
12932
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
12933
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
12934
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
12935
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
12936
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
12937
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12938
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12939
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12940
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12941
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12942
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
12943
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
12944
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
12945
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12946
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
12947
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
12948
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
12949
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
12950
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
12951
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
12952
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
12953
 
 
12954
LTCC='$LTCC'
 
12955
LTCFLAGS='$LTCFLAGS'
 
12956
compiler='$compiler_DEFAULT'
 
12957
 
 
12958
# Quote evaled strings.
 
12959
for var in SED \
 
12960
GREP \
 
12961
EGREP \
 
12962
FGREP \
 
12963
LD \
 
12964
NM \
 
12965
LN_S \
 
12966
lt_SP2NL \
 
12967
lt_NL2SP \
 
12968
reload_flag \
 
12969
OBJDUMP \
 
12970
deplibs_check_method \
 
12971
file_magic_cmd \
 
12972
AR \
 
12973
AR_FLAGS \
 
12974
STRIP \
 
12975
RANLIB \
 
12976
CC \
 
12977
CFLAGS \
 
12978
compiler \
 
12979
lt_cv_sys_global_symbol_pipe \
 
12980
lt_cv_sys_global_symbol_to_cdecl \
 
12981
lt_cv_sys_global_symbol_to_c_name_address \
 
12982
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
12983
SHELL \
 
12984
ECHO \
 
12985
lt_prog_compiler_no_builtin_flag \
 
12986
lt_prog_compiler_wl \
 
12987
lt_prog_compiler_pic \
 
12988
lt_prog_compiler_static \
 
12989
lt_cv_prog_compiler_c_o \
 
12990
need_locks \
 
12991
DSYMUTIL \
 
12992
NMEDIT \
 
12993
LIPO \
 
12994
OTOOL \
 
12995
OTOOL64 \
 
12996
shrext_cmds \
 
12997
export_dynamic_flag_spec \
 
12998
whole_archive_flag_spec \
 
12999
compiler_needs_object \
 
13000
with_gnu_ld \
 
13001
allow_undefined_flag \
 
13002
no_undefined_flag \
 
13003
hardcode_libdir_flag_spec \
 
13004
hardcode_libdir_flag_spec_ld \
 
13005
hardcode_libdir_separator \
 
13006
fix_srcfile_path \
 
13007
exclude_expsyms \
 
13008
include_expsyms \
 
13009
file_list_spec \
 
13010
variables_saved_for_relink \
 
13011
libname_spec \
 
13012
library_names_spec \
 
13013
soname_spec \
 
13014
finish_eval \
 
13015
old_striplib \
 
13016
striplib; do
 
13017
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
13018
    *[\\\\\\\`\\"\\\$]*)
 
13019
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
13020
      ;;
 
13021
    *)
 
13022
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13023
      ;;
 
13024
    esac
 
13025
done
 
13026
 
 
13027
# Double-quote double-evaled strings.
 
13028
for var in reload_cmds \
 
13029
old_postinstall_cmds \
 
13030
old_postuninstall_cmds \
 
13031
old_archive_cmds \
 
13032
extract_expsyms_cmds \
 
13033
old_archive_from_new_cmds \
 
13034
old_archive_from_expsyms_cmds \
 
13035
archive_cmds \
 
13036
archive_expsym_cmds \
 
13037
module_cmds \
 
13038
module_expsym_cmds \
 
13039
export_symbols_cmds \
 
13040
prelink_cmds \
 
13041
postinstall_cmds \
 
13042
postuninstall_cmds \
 
13043
finish_cmds \
 
13044
sys_lib_search_path_spec \
 
13045
sys_lib_dlsearch_path_spec; do
 
13046
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
13047
    *[\\\\\\\`\\"\\\$]*)
 
13048
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
13049
      ;;
 
13050
    *)
 
13051
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13052
      ;;
 
13053
    esac
 
13054
done
 
13055
 
 
13056
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
13057
case \$lt_ECHO in
 
13058
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
13059
  ;;
 
13060
esac
 
13061
 
 
13062
ac_aux_dir='$ac_aux_dir'
 
13063
xsi_shell='$xsi_shell'
 
13064
lt_shell_append='$lt_shell_append'
 
13065
 
 
13066
# See if we are running on zsh, and set the options which allow our
 
13067
# commands through without removal of \ escapes INIT.
 
13068
if test -n "\${ZSH_VERSION+set}" ; then
 
13069
   setopt NO_GLOB_SUBST
 
13070
fi
 
13071
 
 
13072
 
 
13073
    PACKAGE='$PACKAGE'
 
13074
    VERSION='$VERSION'
 
13075
    TIMESTAMP='$TIMESTAMP'
 
13076
    RM='$RM'
 
13077
    ofile='$ofile'
 
13078
 
 
13079
 
 
13080
 
 
13081
 
21011
13082
_ACEOF
21012
13083
 
21013
13084
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21018
13089
  case $ac_config_target in
21019
13090
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21020
13091
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
13092
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21021
13093
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21022
13094
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21023
13095
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21676
13748
 
21677
13749
 
21678
13750
  case $ac_file$ac_mode in
21679
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21680
 
  # Strip MF so we end up with the name of the file.
21681
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
21682
 
  # Check whether this is an Automake generated Makefile or not.
21683
 
  # We used to match only the files named `Makefile.in', but
21684
 
  # some people rename them; so instead we look at the file content.
21685
 
  # Grep'ing the first line is not enough: some people post-process
21686
 
  # each Makefile.in and add a new line on top of each file to say so.
21687
 
  # Grep'ing the whole file is not good either: AIX grep has a line
21688
 
  # limit of 2048, but all sed's we know have understand at least 4000.
21689
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21690
 
    dirpart=`$as_dirname -- "$mf" ||
 
13751
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
13752
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
13753
  # are listed without --file.  Let's play safe and only enable the eval
 
13754
  # if we detect the quoting.
 
13755
  case $CONFIG_FILES in
 
13756
  *\'*) eval set x "$CONFIG_FILES" ;;
 
13757
  *)   set x $CONFIG_FILES ;;
 
13758
  esac
 
13759
  shift
 
13760
  for mf
 
13761
  do
 
13762
    # Strip MF so we end up with the name of the file.
 
13763
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
13764
    # Check whether this is an Automake generated Makefile or not.
 
13765
    # We used to match only the files named `Makefile.in', but
 
13766
    # some people rename them; so instead we look at the file content.
 
13767
    # Grep'ing the first line is not enough: some people post-process
 
13768
    # each Makefile.in and add a new line on top of each file to say so.
 
13769
    # Grep'ing the whole file is not good either: AIX grep has a line
 
13770
    # limit of 2048, but all sed's we know have understand at least 4000.
 
13771
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
13772
      dirpart=`$as_dirname -- "$mf" ||
21691
13773
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21692
13774
         X"$mf" : 'X\(//\)[^/]' \| \
21693
13775
         X"$mf" : 'X\(//\)$' \| \
21710
13792
            q
21711
13793
          }
21712
13794
          s/.*/./; q'`
21713
 
  else
21714
 
    continue
21715
 
  fi
21716
 
  # Extract the definition of DEPDIR, am__include, and am__quote
21717
 
  # from the Makefile without running `make'.
21718
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21719
 
  test -z "$DEPDIR" && continue
21720
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21721
 
  test -z "am__include" && continue
21722
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21723
 
  # When using ansi2knr, U may be empty or an underscore; expand it
21724
 
  U=`sed -n 's/^U = //p' < "$mf"`
21725
 
  # Find all dependency output files, they are included files with
21726
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21727
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
21728
 
  # expansion.
21729
 
  for file in `sed -n "
21730
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21731
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21732
 
    # Make sure the directory exists.
21733
 
    test -f "$dirpart/$file" && continue
21734
 
    fdir=`$as_dirname -- "$file" ||
 
13795
    else
 
13796
      continue
 
13797
    fi
 
13798
    # Extract the definition of DEPDIR, am__include, and am__quote
 
13799
    # from the Makefile without running `make'.
 
13800
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
13801
    test -z "$DEPDIR" && continue
 
13802
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
13803
    test -z "am__include" && continue
 
13804
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
13805
    # When using ansi2knr, U may be empty or an underscore; expand it
 
13806
    U=`sed -n 's/^U = //p' < "$mf"`
 
13807
    # Find all dependency output files, they are included files with
 
13808
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
13809
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
13810
    # expansion.
 
13811
    for file in `sed -n "
 
13812
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
13813
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
13814
      # Make sure the directory exists.
 
13815
      test -f "$dirpart/$file" && continue
 
13816
      fdir=`$as_dirname -- "$file" ||
21735
13817
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21736
13818
         X"$file" : 'X\(//\)[^/]' \| \
21737
13819
         X"$file" : 'X\(//\)$' \| \
21754
13836
            q
21755
13837
          }
21756
13838
          s/.*/./; q'`
21757
 
    { as_dir=$dirpart/$fdir
 
13839
      { as_dir=$dirpart/$fdir
21758
13840
  case $as_dir in #(
21759
13841
  -*) as_dir=./$as_dir;;
21760
13842
  esac
21795
13877
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21796
13878
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21797
13879
   { (exit 1); exit 1; }; }; }
21798
 
    # echo "creating $dirpart/$file"
21799
 
    echo '# dummy' > "$dirpart/$file"
 
13880
      # echo "creating $dirpart/$file"
 
13881
      echo '# dummy' > "$dirpart/$file"
 
13882
    done
21800
13883
  done
21801
 
done
 
13884
}
 
13885
 ;;
 
13886
    "libtool":C)
 
13887
 
 
13888
    # See if we are running on zsh, and set the options which allow our
 
13889
    # commands through without removal of \ escapes.
 
13890
    if test -n "${ZSH_VERSION+set}" ; then
 
13891
      setopt NO_GLOB_SUBST
 
13892
    fi
 
13893
 
 
13894
    cfgfile="${ofile}T"
 
13895
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
13896
    $RM "$cfgfile"
 
13897
 
 
13898
    cat <<_LT_EOF >> "$cfgfile"
 
13899
#! $SHELL
 
13900
 
 
13901
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
13902
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
13903
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13904
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
13905
#
 
13906
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
13907
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
13908
#   Written by Gordon Matzigkeit, 1996
 
13909
#
 
13910
#   This file is part of GNU Libtool.
 
13911
#
 
13912
# GNU Libtool is free software; you can redistribute it and/or
 
13913
# modify it under the terms of the GNU General Public License as
 
13914
# published by the Free Software Foundation; either version 2 of
 
13915
# the License, or (at your option) any later version.
 
13916
#
 
13917
# As a special exception to the GNU General Public License,
 
13918
# if you distribute this file as part of a program or library that
 
13919
# is built using GNU Libtool, you may include this file under the
 
13920
# same distribution terms that you use for the rest of that program.
 
13921
#
 
13922
# GNU Libtool is distributed in the hope that it will be useful,
 
13923
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13924
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13925
# GNU General Public License for more details.
 
13926
#
 
13927
# You should have received a copy of the GNU General Public License
 
13928
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
13929
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
13930
# obtained by writing to the Free Software Foundation, Inc.,
 
13931
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
13932
 
 
13933
 
 
13934
# The names of the tagged configurations supported by this script.
 
13935
available_tags=""
 
13936
 
 
13937
# ### BEGIN LIBTOOL CONFIG
 
13938
 
 
13939
# Which release of libtool.m4 was used?
 
13940
macro_version=$macro_version
 
13941
macro_revision=$macro_revision
 
13942
 
 
13943
# Whether or not to build shared libraries.
 
13944
build_libtool_libs=$enable_shared
 
13945
 
 
13946
# Whether or not to build static libraries.
 
13947
build_old_libs=$enable_static
 
13948
 
 
13949
# What type of objects to build.
 
13950
pic_mode=$pic_mode
 
13951
 
 
13952
# Whether or not to optimize for fast installation.
 
13953
fast_install=$enable_fast_install
 
13954
 
 
13955
# The host system.
 
13956
host_alias=$host_alias
 
13957
host=$host
 
13958
host_os=$host_os
 
13959
 
 
13960
# The build system.
 
13961
build_alias=$build_alias
 
13962
build=$build
 
13963
build_os=$build_os
 
13964
 
 
13965
# A sed program that does not truncate output.
 
13966
SED=$lt_SED
 
13967
 
 
13968
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
13969
Xsed="\$SED -e 1s/^X//"
 
13970
 
 
13971
# A grep program that handles long lines.
 
13972
GREP=$lt_GREP
 
13973
 
 
13974
# An ERE matcher.
 
13975
EGREP=$lt_EGREP
 
13976
 
 
13977
# A literal string matcher.
 
13978
FGREP=$lt_FGREP
 
13979
 
 
13980
# A BSD- or MS-compatible name lister.
 
13981
NM=$lt_NM
 
13982
 
 
13983
# Whether we need soft or hard links.
 
13984
LN_S=$lt_LN_S
 
13985
 
 
13986
# What is the maximum length of a command?
 
13987
max_cmd_len=$max_cmd_len
 
13988
 
 
13989
# Object file suffix (normally "o").
 
13990
objext=$ac_objext
 
13991
 
 
13992
# Executable file suffix (normally "").
 
13993
exeext=$exeext
 
13994
 
 
13995
# whether the shell understands "unset".
 
13996
lt_unset=$lt_unset
 
13997
 
 
13998
# turn spaces into newlines.
 
13999
SP2NL=$lt_lt_SP2NL
 
14000
 
 
14001
# turn newlines into spaces.
 
14002
NL2SP=$lt_lt_NL2SP
 
14003
 
 
14004
# How to create reloadable object files.
 
14005
reload_flag=$lt_reload_flag
 
14006
reload_cmds=$lt_reload_cmds
 
14007
 
 
14008
# An object symbol dumper.
 
14009
OBJDUMP=$lt_OBJDUMP
 
14010
 
 
14011
# Method to check whether dependent libraries are shared objects.
 
14012
deplibs_check_method=$lt_deplibs_check_method
 
14013
 
 
14014
# Command to use when deplibs_check_method == "file_magic".
 
14015
file_magic_cmd=$lt_file_magic_cmd
 
14016
 
 
14017
# The archiver.
 
14018
AR=$lt_AR
 
14019
AR_FLAGS=$lt_AR_FLAGS
 
14020
 
 
14021
# A symbol stripping program.
 
14022
STRIP=$lt_STRIP
 
14023
 
 
14024
# Commands used to install an old-style archive.
 
14025
RANLIB=$lt_RANLIB
 
14026
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14027
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14028
 
 
14029
# A C compiler.
 
14030
LTCC=$lt_CC
 
14031
 
 
14032
# LTCC compiler flags.
 
14033
LTCFLAGS=$lt_CFLAGS
 
14034
 
 
14035
# Take the output of nm and produce a listing of raw symbols and C names.
 
14036
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14037
 
 
14038
# Transform the output of nm in a proper C declaration.
 
14039
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14040
 
 
14041
# Transform the output of nm in a C name address pair.
 
14042
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14043
 
 
14044
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
14045
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
14046
 
 
14047
# The name of the directory that contains temporary libtool files.
 
14048
objdir=$objdir
 
14049
 
 
14050
# Shell to use when invoking shell scripts.
 
14051
SHELL=$lt_SHELL
 
14052
 
 
14053
# An echo program that does not interpret backslashes.
 
14054
ECHO=$lt_ECHO
 
14055
 
 
14056
# Used to examine libraries when file_magic_cmd begins with "file".
 
14057
MAGIC_CMD=$MAGIC_CMD
 
14058
 
 
14059
# Must we lock files when doing compilation?
 
14060
need_locks=$lt_need_locks
 
14061
 
 
14062
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
14063
DSYMUTIL=$lt_DSYMUTIL
 
14064
 
 
14065
# Tool to change global to local symbols on Mac OS X.
 
14066
NMEDIT=$lt_NMEDIT
 
14067
 
 
14068
# Tool to manipulate fat objects and archives on Mac OS X.
 
14069
LIPO=$lt_LIPO
 
14070
 
 
14071
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
14072
OTOOL=$lt_OTOOL
 
14073
 
 
14074
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
14075
OTOOL64=$lt_OTOOL64
 
14076
 
 
14077
# Old archive suffix (normally "a").
 
14078
libext=$libext
 
14079
 
 
14080
# Shared library suffix (normally ".so").
 
14081
shrext_cmds=$lt_shrext_cmds
 
14082
 
 
14083
# The commands to extract the exported symbol list from a shared archive.
 
14084
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14085
 
 
14086
# Variables whose values should be saved in libtool wrapper scripts and
 
14087
# restored at link time.
 
14088
variables_saved_for_relink=$lt_variables_saved_for_relink
 
14089
 
 
14090
# Do we need the "lib" prefix for modules?
 
14091
need_lib_prefix=$need_lib_prefix
 
14092
 
 
14093
# Do we need a version for libraries?
 
14094
need_version=$need_version
 
14095
 
 
14096
# Library versioning type.
 
14097
version_type=$version_type
 
14098
 
 
14099
# Shared library runtime path variable.
 
14100
runpath_var=$runpath_var
 
14101
 
 
14102
# Shared library path variable.
 
14103
shlibpath_var=$shlibpath_var
 
14104
 
 
14105
# Is shlibpath searched before the hard-coded library search path?
 
14106
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14107
 
 
14108
# Format of library name prefix.
 
14109
libname_spec=$lt_libname_spec
 
14110
 
 
14111
# List of archive names.  First name is the real one, the rest are links.
 
14112
# The last name is the one that the linker finds with -lNAME
 
14113
library_names_spec=$lt_library_names_spec
 
14114
 
 
14115
# The coded name of the library, if different from the real name.
 
14116
soname_spec=$lt_soname_spec
 
14117
 
 
14118
# Command to use after installation of a shared archive.
 
14119
postinstall_cmds=$lt_postinstall_cmds
 
14120
 
 
14121
# Command to use after uninstallation of a shared archive.
 
14122
postuninstall_cmds=$lt_postuninstall_cmds
 
14123
 
 
14124
# Commands used to finish a libtool library installation in a directory.
 
14125
finish_cmds=$lt_finish_cmds
 
14126
 
 
14127
# As "finish_cmds", except a single script fragment to be evaled but
 
14128
# not shown.
 
14129
finish_eval=$lt_finish_eval
 
14130
 
 
14131
# Whether we should hardcode library paths into libraries.
 
14132
hardcode_into_libs=$hardcode_into_libs
 
14133
 
 
14134
# Compile-time system search path for libraries.
 
14135
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14136
 
 
14137
# Run-time system search path for libraries.
 
14138
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14139
 
 
14140
# Whether dlopen is supported.
 
14141
dlopen_support=$enable_dlopen
 
14142
 
 
14143
# Whether dlopen of programs is supported.
 
14144
dlopen_self=$enable_dlopen_self
 
14145
 
 
14146
# Whether dlopen of statically linked programs is supported.
 
14147
dlopen_self_static=$enable_dlopen_self_static
 
14148
 
 
14149
# Commands to strip libraries.
 
14150
old_striplib=$lt_old_striplib
 
14151
striplib=$lt_striplib
 
14152
 
 
14153
 
 
14154
# The linker used to build libraries.
 
14155
LD=$lt_LD
 
14156
 
 
14157
# Commands used to build an old-style archive.
 
14158
old_archive_cmds=$lt_old_archive_cmds
 
14159
 
 
14160
# A language specific compiler.
 
14161
CC=$lt_compiler
 
14162
 
 
14163
# Is the compiler the GNU compiler?
 
14164
with_gcc=$GCC
 
14165
 
 
14166
# Compiler flag to turn off builtin functions.
 
14167
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
14168
 
 
14169
# How to pass a linker flag through the compiler.
 
14170
wl=$lt_lt_prog_compiler_wl
 
14171
 
 
14172
# Additional compiler flags for building library objects.
 
14173
pic_flag=$lt_lt_prog_compiler_pic
 
14174
 
 
14175
# Compiler flag to prevent dynamic linking.
 
14176
link_static_flag=$lt_lt_prog_compiler_static
 
14177
 
 
14178
# Does compiler simultaneously support -c and -o options?
 
14179
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
14180
 
 
14181
# Whether or not to add -lc for building shared libraries.
 
14182
build_libtool_need_lc=$archive_cmds_need_lc
 
14183
 
 
14184
# Whether or not to disallow shared libs when runtime libs are static.
 
14185
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
14186
 
 
14187
# Compiler flag to allow reflexive dlopens.
 
14188
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
14189
 
 
14190
# Compiler flag to generate shared objects directly from archives.
 
14191
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
14192
 
 
14193
# Whether the compiler copes with passing no objects directly.
 
14194
compiler_needs_object=$lt_compiler_needs_object
 
14195
 
 
14196
# Create an old-style archive from a shared archive.
 
14197
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
14198
 
 
14199
# Create a temporary old-style archive to link instead of a shared archive.
 
14200
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
14201
 
 
14202
# Commands used to build a shared archive.
 
14203
archive_cmds=$lt_archive_cmds
 
14204
archive_expsym_cmds=$lt_archive_expsym_cmds
 
14205
 
 
14206
# Commands used to build a loadable module if different from building
 
14207
# a shared archive.
 
14208
module_cmds=$lt_module_cmds
 
14209
module_expsym_cmds=$lt_module_expsym_cmds
 
14210
 
 
14211
# Whether we are building with GNU ld or not.
 
14212
with_gnu_ld=$lt_with_gnu_ld
 
14213
 
 
14214
# Flag that allows shared libraries with undefined symbols to be built.
 
14215
allow_undefined_flag=$lt_allow_undefined_flag
 
14216
 
 
14217
# Flag that enforces no undefined symbols.
 
14218
no_undefined_flag=$lt_no_undefined_flag
 
14219
 
 
14220
# Flag to hardcode \$libdir into a binary during linking.
 
14221
# This must work even if \$libdir does not exist
 
14222
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
14223
 
 
14224
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
14225
# during linking.  This must work even if \$libdir does not exist.
 
14226
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
14227
 
 
14228
# Whether we need a single "-rpath" flag with a separated argument.
 
14229
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
14230
 
 
14231
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
14232
# DIR into the resulting binary.
 
14233
hardcode_direct=$hardcode_direct
 
14234
 
 
14235
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
14236
# DIR into the resulting binary and the resulting library dependency is
 
14237
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
14238
# library is relocated.
 
14239
hardcode_direct_absolute=$hardcode_direct_absolute
 
14240
 
 
14241
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
14242
# into the resulting binary.
 
14243
hardcode_minus_L=$hardcode_minus_L
 
14244
 
 
14245
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
14246
# into the resulting binary.
 
14247
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
14248
 
 
14249
# Set to "yes" if building a shared library automatically hardcodes DIR
 
14250
# into the library and all subsequent libraries and executables linked
 
14251
# against it.
 
14252
hardcode_automatic=$hardcode_automatic
 
14253
 
 
14254
# Set to yes if linker adds runtime paths of dependent libraries
 
14255
# to runtime path list.
 
14256
inherit_rpath=$inherit_rpath
 
14257
 
 
14258
# Whether libtool must link a program against all its dependency libraries.
 
14259
link_all_deplibs=$link_all_deplibs
 
14260
 
 
14261
# Fix the shell variable \$srcfile for the compiler.
 
14262
fix_srcfile_path=$lt_fix_srcfile_path
 
14263
 
 
14264
# Set to "yes" if exported symbols are required.
 
14265
always_export_symbols=$always_export_symbols
 
14266
 
 
14267
# The commands to list exported symbols.
 
14268
export_symbols_cmds=$lt_export_symbols_cmds
 
14269
 
 
14270
# Symbols that should not be listed in the preloaded symbols.
 
14271
exclude_expsyms=$lt_exclude_expsyms
 
14272
 
 
14273
# Symbols that must always be exported.
 
14274
include_expsyms=$lt_include_expsyms
 
14275
 
 
14276
# Commands necessary for linking programs (against libraries) with templates.
 
14277
prelink_cmds=$lt_prelink_cmds
 
14278
 
 
14279
# Specify filename containing input files.
 
14280
file_list_spec=$lt_file_list_spec
 
14281
 
 
14282
# How to hardcode a shared library path into an executable.
 
14283
hardcode_action=$hardcode_action
 
14284
 
 
14285
# ### END LIBTOOL CONFIG
 
14286
 
 
14287
_LT_EOF
 
14288
 
 
14289
  case $host_os in
 
14290
  aix3*)
 
14291
    cat <<\_LT_EOF >> "$cfgfile"
 
14292
# AIX sometimes has problems with the GCC collect2 program.  For some
 
14293
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
14294
# vanish in a puff of smoke.
 
14295
if test "X${COLLECT_NAMES+set}" != Xset; then
 
14296
  COLLECT_NAMES=
 
14297
  export COLLECT_NAMES
 
14298
fi
 
14299
_LT_EOF
 
14300
    ;;
 
14301
  esac
 
14302
 
 
14303
 
 
14304
ltmain="$ac_aux_dir/ltmain.sh"
 
14305
 
 
14306
 
 
14307
  # We use sed instead of cat because bash on DJGPP gets confused if
 
14308
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
14309
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
14310
  # is reportedly fixed, but why not run on old versions too?
 
14311
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
14312
    || (rm -f "$cfgfile"; exit 1)
 
14313
 
 
14314
  case $xsi_shell in
 
14315
  yes)
 
14316
    cat << \_LT_EOF >> "$cfgfile"
 
14317
 
 
14318
# func_dirname file append nondir_replacement
 
14319
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
14320
# otherwise set result to NONDIR_REPLACEMENT.
 
14321
func_dirname ()
 
14322
{
 
14323
  case ${1} in
 
14324
    */*) func_dirname_result="${1%/*}${2}" ;;
 
14325
    *  ) func_dirname_result="${3}" ;;
 
14326
  esac
 
14327
}
 
14328
 
 
14329
# func_basename file
 
14330
func_basename ()
 
14331
{
 
14332
  func_basename_result="${1##*/}"
 
14333
}
 
14334
 
 
14335
# func_dirname_and_basename file append nondir_replacement
 
14336
# perform func_basename and func_dirname in a single function
 
14337
# call:
 
14338
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
14339
#             add APPEND to the result, otherwise set result
 
14340
#             to NONDIR_REPLACEMENT.
 
14341
#             value returned in "$func_dirname_result"
 
14342
#   basename: Compute filename of FILE.
 
14343
#             value retuned in "$func_basename_result"
 
14344
# Implementation must be kept synchronized with func_dirname
 
14345
# and func_basename. For efficiency, we do not delegate to
 
14346
# those functions but instead duplicate the functionality here.
 
14347
func_dirname_and_basename ()
 
14348
{
 
14349
  case ${1} in
 
14350
    */*) func_dirname_result="${1%/*}${2}" ;;
 
14351
    *  ) func_dirname_result="${3}" ;;
 
14352
  esac
 
14353
  func_basename_result="${1##*/}"
 
14354
}
 
14355
 
 
14356
# func_stripname prefix suffix name
 
14357
# strip PREFIX and SUFFIX off of NAME.
 
14358
# PREFIX and SUFFIX must not contain globbing or regex special
 
14359
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
14360
# dot (in which case that matches only a dot).
 
14361
func_stripname ()
 
14362
{
 
14363
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
14364
  # positional parameters, so assign one to ordinary parameter first.
 
14365
  func_stripname_result=${3}
 
14366
  func_stripname_result=${func_stripname_result#"${1}"}
 
14367
  func_stripname_result=${func_stripname_result%"${2}"}
 
14368
}
 
14369
 
 
14370
# func_opt_split
 
14371
func_opt_split ()
 
14372
{
 
14373
  func_opt_split_opt=${1%%=*}
 
14374
  func_opt_split_arg=${1#*=}
 
14375
}
 
14376
 
 
14377
# func_lo2o object
 
14378
func_lo2o ()
 
14379
{
 
14380
  case ${1} in
 
14381
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
14382
    *)    func_lo2o_result=${1} ;;
 
14383
  esac
 
14384
}
 
14385
 
 
14386
# func_xform libobj-or-source
 
14387
func_xform ()
 
14388
{
 
14389
  func_xform_result=${1%.*}.lo
 
14390
}
 
14391
 
 
14392
# func_arith arithmetic-term...
 
14393
func_arith ()
 
14394
{
 
14395
  func_arith_result=$(( $* ))
 
14396
}
 
14397
 
 
14398
# func_len string
 
14399
# STRING may not start with a hyphen.
 
14400
func_len ()
 
14401
{
 
14402
  func_len_result=${#1}
 
14403
}
 
14404
 
 
14405
_LT_EOF
 
14406
    ;;
 
14407
  *) # Bourne compatible functions.
 
14408
    cat << \_LT_EOF >> "$cfgfile"
 
14409
 
 
14410
# func_dirname file append nondir_replacement
 
14411
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
14412
# otherwise set result to NONDIR_REPLACEMENT.
 
14413
func_dirname ()
 
14414
{
 
14415
  # Extract subdirectory from the argument.
 
14416
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
14417
  if test "X$func_dirname_result" = "X${1}"; then
 
14418
    func_dirname_result="${3}"
 
14419
  else
 
14420
    func_dirname_result="$func_dirname_result${2}"
 
14421
  fi
 
14422
}
 
14423
 
 
14424
# func_basename file
 
14425
func_basename ()
 
14426
{
 
14427
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
14428
}
 
14429
 
 
14430
 
 
14431
# func_stripname prefix suffix name
 
14432
# strip PREFIX and SUFFIX off of NAME.
 
14433
# PREFIX and SUFFIX must not contain globbing or regex special
 
14434
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
14435
# dot (in which case that matches only a dot).
 
14436
# func_strip_suffix prefix name
 
14437
func_stripname ()
 
14438
{
 
14439
  case ${2} in
 
14440
    .*) func_stripname_result=`$ECHO "X${3}" \
 
14441
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
14442
    *)  func_stripname_result=`$ECHO "X${3}" \
 
14443
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
14444
  esac
 
14445
}
 
14446
 
 
14447
# sed scripts:
 
14448
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
14449
my_sed_long_arg='1s/^-[^=]*=//'
 
14450
 
 
14451
# func_opt_split
 
14452
func_opt_split ()
 
14453
{
 
14454
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
14455
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
14456
}
 
14457
 
 
14458
# func_lo2o object
 
14459
func_lo2o ()
 
14460
{
 
14461
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
14462
}
 
14463
 
 
14464
# func_xform libobj-or-source
 
14465
func_xform ()
 
14466
{
 
14467
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
14468
}
 
14469
 
 
14470
# func_arith arithmetic-term...
 
14471
func_arith ()
 
14472
{
 
14473
  func_arith_result=`expr "$@"`
 
14474
}
 
14475
 
 
14476
# func_len string
 
14477
# STRING may not start with a hyphen.
 
14478
func_len ()
 
14479
{
 
14480
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
14481
}
 
14482
 
 
14483
_LT_EOF
 
14484
esac
 
14485
 
 
14486
case $lt_shell_append in
 
14487
  yes)
 
14488
    cat << \_LT_EOF >> "$cfgfile"
 
14489
 
 
14490
# func_append var value
 
14491
# Append VALUE to the end of shell variable VAR.
 
14492
func_append ()
 
14493
{
 
14494
  eval "$1+=\$2"
 
14495
}
 
14496
_LT_EOF
 
14497
    ;;
 
14498
  *)
 
14499
    cat << \_LT_EOF >> "$cfgfile"
 
14500
 
 
14501
# func_append var value
 
14502
# Append VALUE to the end of shell variable VAR.
 
14503
func_append ()
 
14504
{
 
14505
  eval "$1=\$$1\$2"
 
14506
}
 
14507
 
 
14508
_LT_EOF
 
14509
    ;;
 
14510
  esac
 
14511
 
 
14512
 
 
14513
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
14514
    || (rm -f "$cfgfile"; exit 1)
 
14515
 
 
14516
  mv -f "$cfgfile" "$ofile" ||
 
14517
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
14518
  chmod +x "$ofile"
 
14519
 
21802
14520
 ;;
21803
14521
 
21804
14522
  esac