~ubuntu-branches/ubuntu/oneiric/vorbis-tools/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): John Francesco Ferlito
  • Date: 2010-04-05 14:05:24 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100405140524-64upz5c2k72fvdwt
Tags: 1.4.0-1
* New upstream release. (Closes: #575677)
  - remove patches/for_upstream-manpage_typos.diff.
  - remove patches/upstream_r14728-speex_format_validation.diff.
  - remove patches/upstream_r14957-ogg123_stop_decode_on_closed_buffer.diff.
  - remove patches/upstream_r14982-ogg123_man_page_http_only.diff.
  - ogg123 thinks any file it opens is seekable.  (Closes: #528802)
  - oggenc confuses minimum and maximum bitrate. (Closes: #333437)
  - Files encoded with oggenc show a false min/max bitrate.  (Closes: #333442)
  - vorbiscomment manpage is unclear about clearing tags. (Closes: #417606)
  - time overflow in oggenc. (Closes: #437093)
  - ogg123: duhk at the end of files.ogg. (Closes: #425549)
  - please support replaygain. (Closes: #362530)
  - /usr/bin/oggenc: Please escape dashes in the manpage. (Closes: #264365)
  - vorbis-tools: [INTL:hu] New Hungarian translation. (Closes: #272037)
* Allow global tag editing in vorbistagedit. (Closes: #507230)
* debian/compat
  - Moved to version 7
* debian/control
  - Added ${misc:Depends}.
  - Bumped dependency on debhelper to 7.0.50~.
  - Depend on libao >= 1.0.0
  - Depend on libvorbis >= 1.3.0
* Added debian/docs
* Moved to debhelper 7 style dh rules
* Add source/format, 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
553
553
# Check that we are running under the correct shell.
554
554
SHELL=${CONFIG_SHELL-/bin/sh}
555
555
 
556
 
case X$ECHO in
 
556
case X$lt_ECHO in
557
557
X*--fallback-echo)
558
558
  # Remove one level of quotation (which was required for Make).
559
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
559
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560
560
  ;;
561
561
esac
562
562
 
563
 
echo=${ECHO-echo}
 
563
ECHO=${lt_ECHO-echo}
564
564
if test "X$1" = X--no-reexec; then
565
565
  # Discard the --no-reexec flag, and continue.
566
566
  shift
567
567
elif test "X$1" = X--fallback-echo; then
568
568
  # Avoid inline document here, it may be left over
569
569
  :
570
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
 
  # Yippee, $echo works!
 
570
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $ECHO works!
572
572
  :
573
573
else
574
574
  # Restart under the correct shell.
578
578
if test "X$1" = X--fallback-echo; then
579
579
  # used as fallback echo
580
580
  shift
581
 
  cat <<EOF
 
581
  cat <<_LT_EOF
582
582
$*
583
 
EOF
 
583
_LT_EOF
584
584
  exit 0
585
585
fi
586
586
 
588
588
# if CDPATH is set.
589
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
590
 
591
 
if test -z "$ECHO"; then
592
 
if test "X${echo_test_string+set}" != Xset; then
593
 
# find a string as large as possible, as long as the shell can cope with it
594
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
 
       echo_test_string=`eval $cmd` &&
598
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599
 
    then
600
 
      break
601
 
    fi
602
 
  done
603
 
fi
604
 
 
605
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
608
 
  :
609
 
else
610
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
611
 
  # backslashes.  This makes it impossible to quote backslashes using
612
 
  #   echo "$something" | sed 's/\\/\\\\/g'
613
 
  #
614
 
  # So, first we look for a working echo in the user's PATH.
615
 
 
616
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
 
  for dir in $PATH /usr/ucb; do
 
591
if test -z "$lt_ECHO"; then
 
592
  if test "X${echo_test_string+set}" != Xset; then
 
593
    # find a string as large as possible, as long as the shell can cope with it
 
594
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
597
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
598
      then
 
599
        break
 
600
      fi
 
601
    done
 
602
  fi
 
603
 
 
604
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
605
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
606
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
607
    :
 
608
  else
 
609
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
610
    # backslashes.  This makes it impossible to quote backslashes using
 
611
    #   echo "$something" | sed 's/\\/\\\\/g'
 
612
    #
 
613
    # So, first we look for a working echo in the user's PATH.
 
614
 
 
615
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
616
    for dir in $PATH /usr/ucb; do
 
617
      IFS="$lt_save_ifs"
 
618
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
619
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
620
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
621
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
622
        ECHO="$dir/echo"
 
623
        break
 
624
      fi
 
625
    done
618
626
    IFS="$lt_save_ifs"
619
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
623
 
      echo="$dir/echo"
624
 
      break
625
 
    fi
626
 
  done
627
 
  IFS="$lt_save_ifs"
628
627
 
629
 
  if test "X$echo" = Xecho; then
630
 
    # We didn't find a better echo, so look for alternatives.
631
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
634
 
      # This shell has a builtin print -r that does the trick.
635
 
      echo='print -r'
636
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
638
 
      # If we have ksh, try running configure again with it.
639
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
 
      export ORIGINAL_CONFIG_SHELL
641
 
      CONFIG_SHELL=/bin/ksh
642
 
      export CONFIG_SHELL
643
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644
 
    else
645
 
      # Try using printf.
646
 
      echo='printf %s\n'
647
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
650
 
        # Cool, printf works
651
 
        :
652
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
 
           test "X$echo_testing_string" = 'X\t' &&
654
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
656
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657
 
        export CONFIG_SHELL
658
 
        SHELL="$CONFIG_SHELL"
659
 
        export SHELL
660
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
661
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
 
           test "X$echo_testing_string" = 'X\t' &&
663
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
665
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
628
    if test "X$ECHO" = Xecho; then
 
629
      # We didn't find a better echo, so look for alternatives.
 
630
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
631
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
632
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
633
        # This shell has a builtin print -r that does the trick.
 
634
        ECHO='print -r'
 
635
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
636
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
637
        # If we have ksh, try running configure again with it.
 
638
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
639
        export ORIGINAL_CONFIG_SHELL
 
640
        CONFIG_SHELL=/bin/ksh
 
641
        export CONFIG_SHELL
 
642
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666
643
      else
667
 
        # maybe with a smaller string...
668
 
        prev=:
669
 
 
670
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672
 
          then
673
 
            break
 
644
        # Try using printf.
 
645
        ECHO='printf %s\n'
 
646
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
647
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
648
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
649
          # Cool, printf works
 
650
          :
 
651
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
652
             test "X$echo_testing_string" = 'X\t' &&
 
653
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
654
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
655
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
656
          export CONFIG_SHELL
 
657
          SHELL="$CONFIG_SHELL"
 
658
          export SHELL
 
659
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
660
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
661
             test "X$echo_testing_string" = 'X\t' &&
 
662
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
663
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
664
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
665
        else
 
666
          # maybe with a smaller string...
 
667
          prev=:
 
668
 
 
669
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
670
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
671
            then
 
672
              break
 
673
            fi
 
674
            prev="$cmd"
 
675
          done
 
676
 
 
677
          if test "$prev" != 'sed 50q "$0"'; then
 
678
            echo_test_string=`eval $prev`
 
679
            export echo_test_string
 
680
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
681
          else
 
682
            # Oops.  We lost completely, so just stick with echo.
 
683
            ECHO=echo
674
684
          fi
675
 
          prev="$cmd"
676
 
        done
677
 
 
678
 
        if test "$prev" != 'sed 50q "$0"'; then
679
 
          echo_test_string=`eval $prev`
680
 
          export echo_test_string
681
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682
 
        else
683
 
          # Oops.  We lost completely, so just stick with echo.
684
 
          echo=echo
685
 
        fi
 
685
        fi
686
686
      fi
687
687
    fi
688
688
  fi
689
689
fi
690
 
fi
691
690
 
692
691
# Copy echo and quote the copy suitably for passing to libtool from
693
692
# the Makefile, instead of quoting the original, which is used later.
694
 
ECHO=$echo
695
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
693
lt_ECHO=$ECHO
 
694
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
695
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697
696
fi
698
697
 
699
698
 
700
699
 
701
700
 
702
 
tagnames=${tagnames+${tagnames},}CXX
703
 
 
704
 
tagnames=${tagnames+${tagnames},}F77
705
 
 
706
701
exec 7<&0 </dev/null 6>&1
707
702
 
708
703
# Name of the host.
820
815
INSTALL_PROGRAM
821
816
INSTALL_SCRIPT
822
817
INSTALL_DATA
823
 
am__isrc
824
818
CYGPATH_W
825
819
PACKAGE
826
820
VERSION
858
852
CCDEPMODE
859
853
am__fastdepCC_TRUE
860
854
am__fastdepCC_FALSE
 
855
CPP
861
856
GREP
862
857
EGREP
 
858
LIBTOOL
 
859
SED
 
860
FGREP
 
861
LD
 
862
DUMPBIN
 
863
ac_ct_DUMPBIN
 
864
NM
863
865
LN_S
864
 
ECHO
 
866
OBJDUMP
865
867
AR
866
868
RANLIB
867
 
CPP
868
 
CXX
869
 
CXXFLAGS
870
 
ac_ct_CXX
871
 
CXXDEPMODE
872
 
am__fastdepCXX_TRUE
873
 
am__fastdepCXX_FALSE
874
 
CXXCPP
875
 
F77
876
 
FFLAGS
877
 
ac_ct_F77
878
 
LIBTOOL
 
869
lt_ECHO
 
870
DSYMUTIL
 
871
NMEDIT
 
872
LIPO
 
873
OTOOL
 
874
OTOOL64
879
875
USE_NLS
 
876
GETTEXT_MACRO_VERSION
880
877
MSGFMT
881
878
GMSGFMT
882
879
MSGFMT_015
884
881
XGETTEXT
885
882
XGETTEXT_015
886
883
MSGMERGE
 
884
XGETTEXT_EXTRA_OPTIONS
887
885
GLIBC2
888
886
CFLAG_VISIBILITY
889
887
HAVE_VISIBILITY
891
889
PRI_MACROS_BROKEN
892
890
LIBPTH
893
891
LTLIBPTH
 
892
LIBPTH_PREFIX
894
893
LIBTHREAD
895
894
LTLIBTHREAD
896
895
LIBMULTITHREAD
904
903
HAVE_SNPRINTF
905
904
HAVE_WPRINTF
906
905
WOE32DLL
 
906
WOE32
 
907
WINDRES
 
908
LTLIBC
907
909
BUILD_INCLUDED_LIBINTL
908
910
USE_INCLUDED_LIBINTL
909
911
CATOBJEXT
924
926
VORBIS_LIBS
925
927
VORBISENC_LIBS
926
928
VORBISFILE_LIBS
 
929
HAVE_OV_READ_FILTER_TRUE
 
930
HAVE_OV_READ_FILTER_FALSE
927
931
CURL_CFLAGS
928
932
CURL_LIBS
929
933
AO_CFLAGS
937
941
HAVE_LIBSPEEX_TRUE
938
942
HAVE_LIBSPEEX_FALSE
939
943
SPEEX_LIBS
 
944
KATE_CFLAGS
 
945
KATE_LIBS
 
946
HAVE_KATE_TRUE
 
947
HAVE_KATE_FALSE
940
948
MANDIR
941
949
OPT_SUBDIRS
942
950
DEBUG
958
966
LIBS
959
967
CPPFLAGS
960
968
CPP
961
 
CXX
962
 
CXXFLAGS
963
 
CCC
964
 
CXXCPP
965
 
F77
966
 
FFLAGS
967
969
PKG_CONFIG
968
970
OGG_CFLAGS
969
971
OGG_LIBS
970
972
VORBIS_CFLAGS
971
973
VORBIS_LIBS
972
974
CURL_CFLAGS
973
 
CURL_LIBS'
 
975
CURL_LIBS
 
976
AO_CFLAGS
 
977
AO_LIBS
 
978
KATE_CFLAGS
 
979
KATE_LIBS'
974
980
 
975
981
 
976
982
# Initialize some variables set by options.
1573
1579
  --disable-oggtest       Do not try to compile and run a test Ogg program
1574
1580
  --disable-vorbistest    Do not try to compile and run a test Vorbis program
1575
1581
  --disable-curltest       Do not try to compile and run a test libcurl program
1576
 
  --disable-aotest        Do not try to compile and run a test ao program
1577
1582
 
1578
1583
Optional Packages:
1579
1584
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1580
1585
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1581
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582
1586
  --with-pic              try to use only PIC/non-PIC objects [default=use
1583
1587
                          both]
1584
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1588
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1585
1589
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1586
1590
  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1587
1591
  --without-libpth-prefix     don't search for libpth in includedir and libdir
1591
1595
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1592
1596
  --without-flac     Do not compile FLAC support
1593
1597
  --without-speex    Do not compile Speex support
 
1598
  --without-kate     Do not compile Kate support
1594
1599
  --with-ogg=PFX          Prefix where libogg is installed (optional)
1595
1600
  --with-ogg-libraries=DIR
1596
1601
                          Directory where libogg library is installed
1607
1612
  --with-curl=PFX   Prefix where libcurl is installed (optional)
1608
1613
  --with-curl-libraries=DIR   Directory where libcurl library is installed (optional)
1609
1614
  --with-curl-includes=DIR   Directory where libcurl header files are installed (optional)
1610
 
  --with-ao=PFX           Prefix where libao is installed (optional)
1611
 
  --with-ao-libraries=DIR Directory where libao library is installed
1612
 
                          (optional)
1613
 
  --with-ao-includes=DIR  Directory where libao header files are installed
1614
 
                          (optional)
1615
1615
 
1616
1616
Some influential environment variables:
1617
1617
  CC          C compiler command
1622
1622
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623
1623
              you have headers in a nonstandard directory <include dir>
1624
1624
  CPP         C preprocessor
1625
 
  CXX         C++ compiler command
1626
 
  CXXFLAGS    C++ compiler flags
1627
 
  CXXCPP      C++ preprocessor
1628
 
  F77         Fortran 77 compiler command
1629
 
  FFLAGS      Fortran 77 compiler flags
1630
1625
  PKG_CONFIG  path to pkg-config utility
1631
1626
  OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
1632
1627
  OGG_LIBS    linker flags for OGG, overriding pkg-config
1635
1630
  VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1636
1631
  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1637
1632
  CURL_LIBS   linker flags for CURL, overriding pkg-config
 
1633
  AO_CFLAGS   C compiler flags for AO, overriding pkg-config
 
1634
  AO_LIBS     linker flags for AO, overriding pkg-config
 
1635
  KATE_CFLAGS C compiler flags for KATE, overriding pkg-config
 
1636
  KATE_LIBS   linker flags for KATE, overriding pkg-config
1638
1637
 
1639
1638
Use these variables to override the choices made by `configure' or to help
1640
1639
it to find libraries and programs with nonstandard names/locations.
2220
2219
 
2221
2220
 
2222
2221
 
2223
 
am__api_version='1.10'
2224
 
 
 
2222
am__api_version="1.9"
2225
2223
# Find a good install program.  We prefer a C program (faster),
2226
2224
# so one script is as good as another.  But avoid the broken or
2227
2225
# incompatible versions:
2373
2371
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2374
2372
fi
2375
2373
 
2376
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2377
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2378
 
if test -z "$MKDIR_P"; then
2379
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2380
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2374
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2375
  # We used to keeping the `.' as first argument, in order to
 
2376
  # allow $(mkdir_p) to be used without argument.  As in
 
2377
  #   $(mkdir_p) $(somedir)
 
2378
  # where $(somedir) is conditionally defined.  However this is wrong
 
2379
  # for two reasons:
 
2380
  #  1. if the package is installed by a user who cannot write `.'
 
2381
  #     make install will fail,
 
2382
  #  2. the above comment should most certainly read
 
2383
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2384
  #     so it does not work when $(somedir) is undefined and
 
2385
  #     $(DESTDIR) is not.
 
2386
  #  To support the latter case, we have to write
 
2387
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2388
  #  so the `.' trick is pointless.
 
2389
  mkdir_p='mkdir -p --'
2381
2390
else
2382
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2384
 
do
2385
 
  IFS=$as_save_IFS
2386
 
  test -z "$as_dir" && as_dir=.
2387
 
  for ac_prog in mkdir gmkdir; do
2388
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2389
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2390
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2391
 
             'mkdir (GNU coreutils) '* | \
2392
 
             'mkdir (coreutils) '* | \
2393
 
             'mkdir (fileutils) '4.1*)
2394
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2395
 
               break 3;;
2396
 
           esac
2397
 
         done
2398
 
       done
2399
 
done
2400
 
IFS=$as_save_IFS
2401
 
 
2402
 
fi
2403
 
 
2404
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2405
 
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2391
  # On NextStep and OpenStep, the `mkdir' command does not
 
2392
  # recognize any option.  It will interpret all options as
 
2393
  # directories to create, and then abort because `.' already
 
2394
  # exists.
 
2395
  for d in ./-p ./--version;
 
2396
  do
 
2397
    test -d $d && rmdir $d
 
2398
  done
 
2399
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2400
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2401
    mkdir_p='$(mkinstalldirs)'
2406
2402
  else
2407
 
    # As a last resort, use the slow shell script.  Don't cache a
2408
 
    # value for MKDIR_P within a source directory, because that will
2409
 
    # break other packages using the cache if that directory is
2410
 
    # removed, or if the value is a relative name.
2411
 
    test -d ./--version && rmdir ./--version
2412
 
    MKDIR_P="$ac_install_sh -d"
 
2403
    mkdir_p='$(install_sh) -d'
2413
2404
  fi
2414
2405
fi
2415
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2416
 
echo "${ECHO_T}$MKDIR_P" >&6; }
2417
 
 
2418
 
mkdir_p="$MKDIR_P"
2419
 
case $mkdir_p in
2420
 
  [\\/$]* | ?:[\\/]*) ;;
2421
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2422
 
esac
2423
2406
 
2424
2407
for ac_prog in gawk mawk nawk awk
2425
2408
do
2502
2485
fi
2503
2486
rmdir .tst 2>/dev/null
2504
2487
 
2505
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2506
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2507
 
  # is not polluted with repeated "-I."
2508
 
  am__isrc=' -I$(srcdir)'
2509
 
  # test to see if srcdir already configured
2510
 
  if test -f $srcdir/config.status; then
2511
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2488
# test to see if srcdir already configured
 
2489
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2490
   test -f $srcdir/config.status; then
 
2491
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2512
2492
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2513
2493
   { (exit 1); exit 1; }; }
2514
 
  fi
2515
2494
fi
2516
2495
 
2517
2496
# test whether we have cygpath
2526
2505
 
2527
2506
# Define the identity of the package.
2528
2507
 PACKAGE=vorbis-tools
2529
 
 VERSION=1.2.0
 
2508
 VERSION=1.4.0
2530
2509
 
2531
2510
 
2532
2511
cat >>confdefs.h <<_ACEOF
2554
2533
 
2555
2534
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2556
2535
 
2557
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2536
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2558
2537
 
2559
2538
# Installed binaries are usually stripped using `strip' when the user
2560
2539
# run `make install-strip'.  However `strip' might not be the right
2658
2637
fi
2659
2638
 
2660
2639
fi
2661
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2640
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2662
2641
 
2663
2642
# We need awk for the "check" target.  The system "awk" is bad on
2664
2643
# some platforms.
2683
2662
 
2684
2663
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2685
2664
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2686
 
   if test $USE_MAINTAINER_MODE = yes; then
 
2665
 
 
2666
 
 
2667
if test $USE_MAINTAINER_MODE = yes; then
2687
2668
  MAINTAINER_MODE_TRUE=
2688
2669
  MAINTAINER_MODE_FALSE='#'
2689
2670
else
2699
2680
 
2700
2681
 
2701
2682
 
2702
 
cflags_save="$CFLAGS"
 
2683
cat >>confdefs.h <<\_ACEOF
 
2684
#define _GNU_SOURCE 1
 
2685
_ACEOF
 
2686
 
 
2687
 
 
2688
DEPDIR="${am__leading_dot}deps"
 
2689
 
 
2690
ac_config_commands="$ac_config_commands depfiles"
 
2691
 
 
2692
 
 
2693
am_make=${MAKE-make}
 
2694
cat > confinc << 'END'
 
2695
am__doit:
 
2696
        @echo done
 
2697
.PHONY: am__doit
 
2698
END
 
2699
# If we don't find an include directive, just comment out the code.
 
2700
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2701
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2702
am__include="#"
 
2703
am__quote=
 
2704
_am_result=none
 
2705
# First try GNU make style include.
 
2706
echo "include confinc" > confmf
 
2707
# We grep out `Entering directory' and `Leaving directory'
 
2708
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2709
# In particular we don't look at `^make:' because GNU make might
 
2710
# be invoked under some other name (usually "gmake"), in which
 
2711
# case it prints its new name instead of `make'.
 
2712
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2713
   am__include=include
 
2714
   am__quote=
 
2715
   _am_result=GNU
 
2716
fi
 
2717
# Now try BSD make style include.
 
2718
if test "$am__include" = "#"; then
 
2719
   echo '.include "confinc"' > confmf
 
2720
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2721
      am__include=.include
 
2722
      am__quote="\""
 
2723
      _am_result=BSD
 
2724
   fi
 
2725
fi
 
2726
 
 
2727
 
 
2728
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2729
echo "${ECHO_T}$_am_result" >&6; }
 
2730
rm -f confinc confmf
 
2731
 
 
2732
# Check whether --enable-dependency-tracking was given.
 
2733
if test "${enable_dependency_tracking+set}" = set; then
 
2734
  enableval=$enable_dependency_tracking;
 
2735
fi
 
2736
 
 
2737
if test "x$enable_dependency_tracking" != xno; then
 
2738
  am_depcomp="$ac_aux_dir/depcomp"
 
2739
  AMDEPBACKSLASH='\'
 
2740
fi
 
2741
 
 
2742
 
 
2743
if test "x$enable_dependency_tracking" != xno; then
 
2744
  AMDEP_TRUE=
 
2745
  AMDEP_FALSE='#'
 
2746
else
 
2747
  AMDEP_TRUE='#'
 
2748
  AMDEP_FALSE=
 
2749
fi
 
2750
 
 
2751
 
 
2752
 
2703
2753
ac_ext=c
2704
2754
ac_cpp='$CPP $CPPFLAGS'
2705
2755
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618
3668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619
3669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620
3670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
 
DEPDIR="${am__leading_dot}deps"
3622
 
 
3623
 
ac_config_commands="$ac_config_commands depfiles"
3624
 
 
3625
 
 
3626
 
am_make=${MAKE-make}
3627
 
cat > confinc << 'END'
3628
 
am__doit:
3629
 
        @echo done
3630
 
.PHONY: am__doit
3631
 
END
3632
 
# If we don't find an include directive, just comment out the code.
3633
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3634
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3635
 
am__include="#"
3636
 
am__quote=
3637
 
_am_result=none
3638
 
# First try GNU make style include.
3639
 
echo "include confinc" > confmf
3640
 
# We grep out `Entering directory' and `Leaving directory'
3641
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3642
 
# In particular we don't look at `^make:' because GNU make might
3643
 
# be invoked under some other name (usually "gmake"), in which
3644
 
# case it prints its new name instead of `make'.
3645
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3646
 
   am__include=include
3647
 
   am__quote=
3648
 
   _am_result=GNU
3649
 
fi
3650
 
# Now try BSD make style include.
3651
 
if test "$am__include" = "#"; then
3652
 
   echo '.include "confinc"' > confmf
3653
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3654
 
      am__include=.include
3655
 
      am__quote="\""
3656
 
      _am_result=BSD
3657
 
   fi
3658
 
fi
3659
 
 
3660
 
 
3661
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3662
 
echo "${ECHO_T}$_am_result" >&6; }
3663
 
rm -f confinc confmf
3664
 
 
3665
 
# Check whether --enable-dependency-tracking was given.
3666
 
if test "${enable_dependency_tracking+set}" = set; then
3667
 
  enableval=$enable_dependency_tracking;
3668
 
fi
3669
 
 
3670
 
if test "x$enable_dependency_tracking" != xno; then
3671
 
  am_depcomp="$ac_aux_dir/depcomp"
3672
 
  AMDEPBACKSLASH='\'
3673
 
fi
3674
 
 if test "x$enable_dependency_tracking" != xno; then
3675
 
  AMDEP_TRUE=
3676
 
  AMDEP_FALSE='#'
3677
 
else
3678
 
  AMDEP_TRUE='#'
3679
 
  AMDEP_FALSE=
3680
 
fi
3681
 
 
3682
 
 
3683
3671
 
3684
3672
depcc="$CC"   am_compiler_list=
3685
3673
 
3748
3736
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3749
3737
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3750
3738
         >/dev/null 2>conftest.err &&
3751
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3752
3739
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3753
3740
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3754
3741
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778
3765
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3779
3766
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3780
3767
 
3781
 
 if
 
3768
 
 
3769
 
 
3770
if
3782
3771
  test "x$enable_dependency_tracking" != xno \
3783
3772
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3784
3773
  am__fastdepCC_TRUE=
3789
3778
fi
3790
3779
 
3791
3780
 
3792
 
CFLAGS="$cflags_save"
3793
 
 
3794
 
# Check whether --enable-shared was given.
3795
 
if test "${enable_shared+set}" = set; then
3796
 
  enableval=$enable_shared; p=${PACKAGE-default}
3797
 
    case $enableval in
3798
 
    yes) enable_shared=yes ;;
3799
 
    no) enable_shared=no ;;
3800
 
    *)
3801
 
      enable_shared=no
3802
 
      # Look at the argument we got.  We use all the common list separators.
3803
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3804
 
      for pkg in $enableval; do
3805
 
        IFS="$lt_save_ifs"
3806
 
        if test "X$pkg" = "X$p"; then
3807
 
          enable_shared=yes
3808
 
        fi
3809
 
      done
3810
 
      IFS="$lt_save_ifs"
3811
 
      ;;
3812
 
    esac
3813
 
else
3814
 
  enable_shared=yes
3815
 
fi
3816
 
 
3817
 
 
3818
 
# Check whether --enable-static was given.
3819
 
if test "${enable_static+set}" = set; then
3820
 
  enableval=$enable_static; p=${PACKAGE-default}
3821
 
    case $enableval in
3822
 
    yes) enable_static=yes ;;
3823
 
    no) enable_static=no ;;
3824
 
    *)
3825
 
     enable_static=no
3826
 
      # Look at the argument we got.  We use all the common list separators.
3827
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3828
 
      for pkg in $enableval; do
3829
 
        IFS="$lt_save_ifs"
3830
 
        if test "X$pkg" = "X$p"; then
3831
 
          enable_static=yes
3832
 
        fi
3833
 
      done
3834
 
      IFS="$lt_save_ifs"
3835
 
      ;;
3836
 
    esac
3837
 
else
3838
 
  enable_static=yes
3839
 
fi
3840
 
 
3841
 
 
3842
 
# Check whether --enable-fast-install was given.
3843
 
if test "${enable_fast_install+set}" = set; then
3844
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
3845
 
    case $enableval in
3846
 
    yes) enable_fast_install=yes ;;
3847
 
    no) enable_fast_install=no ;;
3848
 
    *)
3849
 
      enable_fast_install=no
3850
 
      # Look at the argument we got.  We use all the common list separators.
3851
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3852
 
      for pkg in $enableval; do
3853
 
        IFS="$lt_save_ifs"
3854
 
        if test "X$pkg" = "X$p"; then
3855
 
          enable_fast_install=yes
3856
 
        fi
3857
 
      done
3858
 
      IFS="$lt_save_ifs"
3859
 
      ;;
3860
 
    esac
3861
 
else
3862
 
  enable_fast_install=yes
3863
 
fi
3864
 
 
3865
 
 
3866
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3867
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3868
 
if test "${lt_cv_path_SED+set}" = set; then
 
3781
 
 
3782
ac_ext=c
 
3783
ac_cpp='$CPP $CPPFLAGS'
 
3784
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3785
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3786
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3787
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3788
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3789
# On Suns, sometimes $CPP names a directory.
 
3790
if test -n "$CPP" && test -d "$CPP"; then
 
3791
  CPP=
 
3792
fi
 
3793
if test -z "$CPP"; then
 
3794
  if test "${ac_cv_prog_CPP+set}" = set; then
3869
3795
  echo $ECHO_N "(cached) $ECHO_C" >&6
3870
3796
else
3871
 
  # Loop through the user's path and test for sed and gsed.
3872
 
# Then use that list of sed's as ones to test for truncation.
3873
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874
 
for as_dir in $PATH
 
3797
      # Double quotes because CPP needs to be expanded
 
3798
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3799
    do
 
3800
      ac_preproc_ok=false
 
3801
for ac_c_preproc_warn_flag in '' yes
3875
3802
do
3876
 
  IFS=$as_save_IFS
3877
 
  test -z "$as_dir" && as_dir=.
3878
 
  for lt_ac_prog in sed gsed; do
3879
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3880
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3881
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3882
 
      fi
 
3803
  # Use a header file that comes with gcc, so configuring glibc
 
3804
  # with a fresh cross-compiler works.
 
3805
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3806
  # <limits.h> exists even on freestanding compilers.
 
3807
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3808
  # not just through cpp. "Syntax error" is here to catch this case.
 
3809
  cat >conftest.$ac_ext <<_ACEOF
 
3810
/* confdefs.h.  */
 
3811
_ACEOF
 
3812
cat confdefs.h >>conftest.$ac_ext
 
3813
cat >>conftest.$ac_ext <<_ACEOF
 
3814
/* end confdefs.h.  */
 
3815
#ifdef __STDC__
 
3816
# include <limits.h>
 
3817
#else
 
3818
# include <assert.h>
 
3819
#endif
 
3820
                     Syntax error
 
3821
_ACEOF
 
3822
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3823
case "(($ac_try" in
 
3824
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3825
  *) ac_try_echo=$ac_try;;
 
3826
esac
 
3827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3828
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3829
  ac_status=$?
 
3830
  grep -v '^ *+' conftest.er1 >conftest.err
 
3831
  rm -f conftest.er1
 
3832
  cat conftest.err >&5
 
3833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3834
  (exit $ac_status); } >/dev/null && {
 
3835
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3836
         test ! -s conftest.err
 
3837
       }; then
 
3838
  :
 
3839
else
 
3840
  echo "$as_me: failed program was:" >&5
 
3841
sed 's/^/| /' conftest.$ac_ext >&5
 
3842
 
 
3843
  # Broken: fails on valid input.
 
3844
continue
 
3845
fi
 
3846
 
 
3847
rm -f conftest.err conftest.$ac_ext
 
3848
 
 
3849
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3850
  # can be detected and how.
 
3851
  cat >conftest.$ac_ext <<_ACEOF
 
3852
/* confdefs.h.  */
 
3853
_ACEOF
 
3854
cat confdefs.h >>conftest.$ac_ext
 
3855
cat >>conftest.$ac_ext <<_ACEOF
 
3856
/* end confdefs.h.  */
 
3857
#include <ac_nonexistent.h>
 
3858
_ACEOF
 
3859
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3860
case "(($ac_try" in
 
3861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3862
  *) ac_try_echo=$ac_try;;
 
3863
esac
 
3864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3865
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3866
  ac_status=$?
 
3867
  grep -v '^ *+' conftest.er1 >conftest.err
 
3868
  rm -f conftest.er1
 
3869
  cat conftest.err >&5
 
3870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3871
  (exit $ac_status); } >/dev/null && {
 
3872
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3873
         test ! -s conftest.err
 
3874
       }; then
 
3875
  # Broken: success on invalid input.
 
3876
continue
 
3877
else
 
3878
  echo "$as_me: failed program was:" >&5
 
3879
sed 's/^/| /' conftest.$ac_ext >&5
 
3880
 
 
3881
  # Passes both tests.
 
3882
ac_preproc_ok=:
 
3883
break
 
3884
fi
 
3885
 
 
3886
rm -f conftest.err conftest.$ac_ext
 
3887
 
 
3888
done
 
3889
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3890
rm -f conftest.err conftest.$ac_ext
 
3891
if $ac_preproc_ok; then
 
3892
  break
 
3893
fi
 
3894
 
3883
3895
    done
3884
 
  done
3885
 
done
3886
 
lt_ac_max=0
3887
 
lt_ac_count=0
3888
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3889
 
# along with /bin/sed that truncates output.
3890
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3891
 
  test ! -f $lt_ac_sed && continue
3892
 
  cat /dev/null > conftest.in
3893
 
  lt_ac_count=0
3894
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3895
 
  # Check for GNU sed and select it if it is found.
3896
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3897
 
    lt_cv_path_SED=$lt_ac_sed
3898
 
    break
3899
 
  fi
3900
 
  while true; do
3901
 
    cat conftest.in conftest.in >conftest.tmp
3902
 
    mv conftest.tmp conftest.in
3903
 
    cp conftest.in conftest.nl
3904
 
    echo >>conftest.nl
3905
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3906
 
    cmp -s conftest.out conftest.nl || break
3907
 
    # 10000 chars as input seems more than enough
3908
 
    test $lt_ac_count -gt 10 && break
3909
 
    lt_ac_count=`expr $lt_ac_count + 1`
3910
 
    if test $lt_ac_count -gt $lt_ac_max; then
3911
 
      lt_ac_max=$lt_ac_count
3912
 
      lt_cv_path_SED=$lt_ac_sed
3913
 
    fi
3914
 
  done
3915
 
done
3916
 
 
3917
 
fi
3918
 
 
3919
 
SED=$lt_cv_path_SED
3920
 
{ echo "$as_me:$LINENO: result: $SED" >&5
3921
 
echo "${ECHO_T}$SED" >&6; }
 
3896
    ac_cv_prog_CPP=$CPP
 
3897
 
 
3898
fi
 
3899
  CPP=$ac_cv_prog_CPP
 
3900
else
 
3901
  ac_cv_prog_CPP=$CPP
 
3902
fi
 
3903
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3904
echo "${ECHO_T}$CPP" >&6; }
 
3905
ac_preproc_ok=false
 
3906
for ac_c_preproc_warn_flag in '' yes
 
3907
do
 
3908
  # Use a header file that comes with gcc, so configuring glibc
 
3909
  # with a fresh cross-compiler works.
 
3910
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3911
  # <limits.h> exists even on freestanding compilers.
 
3912
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3913
  # not just through cpp. "Syntax error" is here to catch this case.
 
3914
  cat >conftest.$ac_ext <<_ACEOF
 
3915
/* confdefs.h.  */
 
3916
_ACEOF
 
3917
cat confdefs.h >>conftest.$ac_ext
 
3918
cat >>conftest.$ac_ext <<_ACEOF
 
3919
/* end confdefs.h.  */
 
3920
#ifdef __STDC__
 
3921
# include <limits.h>
 
3922
#else
 
3923
# include <assert.h>
 
3924
#endif
 
3925
                     Syntax error
 
3926
_ACEOF
 
3927
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3928
case "(($ac_try" in
 
3929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3930
  *) ac_try_echo=$ac_try;;
 
3931
esac
 
3932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3933
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3934
  ac_status=$?
 
3935
  grep -v '^ *+' conftest.er1 >conftest.err
 
3936
  rm -f conftest.er1
 
3937
  cat conftest.err >&5
 
3938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3939
  (exit $ac_status); } >/dev/null && {
 
3940
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3941
         test ! -s conftest.err
 
3942
       }; then
 
3943
  :
 
3944
else
 
3945
  echo "$as_me: failed program was:" >&5
 
3946
sed 's/^/| /' conftest.$ac_ext >&5
 
3947
 
 
3948
  # Broken: fails on valid input.
 
3949
continue
 
3950
fi
 
3951
 
 
3952
rm -f conftest.err conftest.$ac_ext
 
3953
 
 
3954
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3955
  # can be detected and how.
 
3956
  cat >conftest.$ac_ext <<_ACEOF
 
3957
/* confdefs.h.  */
 
3958
_ACEOF
 
3959
cat confdefs.h >>conftest.$ac_ext
 
3960
cat >>conftest.$ac_ext <<_ACEOF
 
3961
/* end confdefs.h.  */
 
3962
#include <ac_nonexistent.h>
 
3963
_ACEOF
 
3964
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3965
case "(($ac_try" in
 
3966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3967
  *) ac_try_echo=$ac_try;;
 
3968
esac
 
3969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3970
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3971
  ac_status=$?
 
3972
  grep -v '^ *+' conftest.er1 >conftest.err
 
3973
  rm -f conftest.er1
 
3974
  cat conftest.err >&5
 
3975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3976
  (exit $ac_status); } >/dev/null && {
 
3977
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3978
         test ! -s conftest.err
 
3979
       }; then
 
3980
  # Broken: success on invalid input.
 
3981
continue
 
3982
else
 
3983
  echo "$as_me: failed program was:" >&5
 
3984
sed 's/^/| /' conftest.$ac_ext >&5
 
3985
 
 
3986
  # Passes both tests.
 
3987
ac_preproc_ok=:
 
3988
break
 
3989
fi
 
3990
 
 
3991
rm -f conftest.err conftest.$ac_ext
 
3992
 
 
3993
done
 
3994
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3995
rm -f conftest.err conftest.$ac_ext
 
3996
if $ac_preproc_ok; then
 
3997
  :
 
3998
else
 
3999
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4000
See \`config.log' for more details." >&5
 
4001
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4002
See \`config.log' for more details." >&2;}
 
4003
   { (exit 1); exit 1; }; }
 
4004
fi
 
4005
 
 
4006
ac_ext=c
 
4007
ac_cpp='$CPP $CPPFLAGS'
 
4008
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4009
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4010
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4011
 
3922
4012
 
3923
4013
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3924
4014
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4083
4173
 
4084
4174
 
4085
4175
 
 
4176
{ echo "$as_me:$LINENO: checking for AIX" >&5
 
4177
echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
 
4178
cat >conftest.$ac_ext <<_ACEOF
 
4179
/* confdefs.h.  */
 
4180
_ACEOF
 
4181
cat confdefs.h >>conftest.$ac_ext
 
4182
cat >>conftest.$ac_ext <<_ACEOF
 
4183
/* end confdefs.h.  */
 
4184
#ifdef _AIX
 
4185
  yes
 
4186
#endif
 
4187
 
 
4188
_ACEOF
 
4189
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4190
  $EGREP "yes" >/dev/null 2>&1; then
 
4191
  { echo "$as_me:$LINENO: result: yes" >&5
 
4192
echo "${ECHO_T}yes" >&6; }
 
4193
cat >>confdefs.h <<\_ACEOF
 
4194
#define _ALL_SOURCE 1
 
4195
_ACEOF
 
4196
 
 
4197
else
 
4198
  { echo "$as_me:$LINENO: result: no" >&5
 
4199
echo "${ECHO_T}no" >&6; }
 
4200
fi
 
4201
rm -f conftest*
 
4202
 
 
4203
 
 
4204
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4205
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4206
if test "${ac_cv_header_stdc+set}" = set; then
 
4207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4208
else
 
4209
  cat >conftest.$ac_ext <<_ACEOF
 
4210
/* confdefs.h.  */
 
4211
_ACEOF
 
4212
cat confdefs.h >>conftest.$ac_ext
 
4213
cat >>conftest.$ac_ext <<_ACEOF
 
4214
/* end confdefs.h.  */
 
4215
#include <stdlib.h>
 
4216
#include <stdarg.h>
 
4217
#include <string.h>
 
4218
#include <float.h>
 
4219
 
 
4220
int
 
4221
main ()
 
4222
{
 
4223
 
 
4224
  ;
 
4225
  return 0;
 
4226
}
 
4227
_ACEOF
 
4228
rm -f conftest.$ac_objext
 
4229
if { (ac_try="$ac_compile"
 
4230
case "(($ac_try" in
 
4231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4232
  *) ac_try_echo=$ac_try;;
 
4233
esac
 
4234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4235
  (eval "$ac_compile") 2>conftest.er1
 
4236
  ac_status=$?
 
4237
  grep -v '^ *+' conftest.er1 >conftest.err
 
4238
  rm -f conftest.er1
 
4239
  cat conftest.err >&5
 
4240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4241
  (exit $ac_status); } && {
 
4242
         test -z "$ac_c_werror_flag" ||
 
4243
         test ! -s conftest.err
 
4244
       } && test -s conftest.$ac_objext; then
 
4245
  ac_cv_header_stdc=yes
 
4246
else
 
4247
  echo "$as_me: failed program was:" >&5
 
4248
sed 's/^/| /' conftest.$ac_ext >&5
 
4249
 
 
4250
        ac_cv_header_stdc=no
 
4251
fi
 
4252
 
 
4253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4254
 
 
4255
if test $ac_cv_header_stdc = yes; then
 
4256
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4257
  cat >conftest.$ac_ext <<_ACEOF
 
4258
/* confdefs.h.  */
 
4259
_ACEOF
 
4260
cat confdefs.h >>conftest.$ac_ext
 
4261
cat >>conftest.$ac_ext <<_ACEOF
 
4262
/* end confdefs.h.  */
 
4263
#include <string.h>
 
4264
 
 
4265
_ACEOF
 
4266
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4267
  $EGREP "memchr" >/dev/null 2>&1; then
 
4268
  :
 
4269
else
 
4270
  ac_cv_header_stdc=no
 
4271
fi
 
4272
rm -f conftest*
 
4273
 
 
4274
fi
 
4275
 
 
4276
if test $ac_cv_header_stdc = yes; then
 
4277
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4278
  cat >conftest.$ac_ext <<_ACEOF
 
4279
/* confdefs.h.  */
 
4280
_ACEOF
 
4281
cat confdefs.h >>conftest.$ac_ext
 
4282
cat >>conftest.$ac_ext <<_ACEOF
 
4283
/* end confdefs.h.  */
 
4284
#include <stdlib.h>
 
4285
 
 
4286
_ACEOF
 
4287
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4288
  $EGREP "free" >/dev/null 2>&1; then
 
4289
  :
 
4290
else
 
4291
  ac_cv_header_stdc=no
 
4292
fi
 
4293
rm -f conftest*
 
4294
 
 
4295
fi
 
4296
 
 
4297
if test $ac_cv_header_stdc = yes; then
 
4298
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4299
  if test "$cross_compiling" = yes; then
 
4300
  :
 
4301
else
 
4302
  cat >conftest.$ac_ext <<_ACEOF
 
4303
/* confdefs.h.  */
 
4304
_ACEOF
 
4305
cat confdefs.h >>conftest.$ac_ext
 
4306
cat >>conftest.$ac_ext <<_ACEOF
 
4307
/* end confdefs.h.  */
 
4308
#include <ctype.h>
 
4309
#include <stdlib.h>
 
4310
#if ((' ' & 0x0FF) == 0x020)
 
4311
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4312
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4313
#else
 
4314
# define ISLOWER(c) \
 
4315
                   (('a' <= (c) && (c) <= 'i') \
 
4316
                     || ('j' <= (c) && (c) <= 'r') \
 
4317
                     || ('s' <= (c) && (c) <= 'z'))
 
4318
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4319
#endif
 
4320
 
 
4321
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4322
int
 
4323
main ()
 
4324
{
 
4325
  int i;
 
4326
  for (i = 0; i < 256; i++)
 
4327
    if (XOR (islower (i), ISLOWER (i))
 
4328
        || toupper (i) != TOUPPER (i))
 
4329
      return 2;
 
4330
  return 0;
 
4331
}
 
4332
_ACEOF
 
4333
rm -f conftest$ac_exeext
 
4334
if { (ac_try="$ac_link"
 
4335
case "(($ac_try" in
 
4336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4337
  *) ac_try_echo=$ac_try;;
 
4338
esac
 
4339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4340
  (eval "$ac_link") 2>&5
 
4341
  ac_status=$?
 
4342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4343
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4344
  { (case "(($ac_try" in
 
4345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4346
  *) ac_try_echo=$ac_try;;
 
4347
esac
 
4348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4349
  (eval "$ac_try") 2>&5
 
4350
  ac_status=$?
 
4351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4352
  (exit $ac_status); }; }; then
 
4353
  :
 
4354
else
 
4355
  echo "$as_me: program exited with status $ac_status" >&5
 
4356
echo "$as_me: failed program was:" >&5
 
4357
sed 's/^/| /' conftest.$ac_ext >&5
 
4358
 
 
4359
( exit $ac_status )
 
4360
ac_cv_header_stdc=no
 
4361
fi
 
4362
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4363
fi
 
4364
 
 
4365
 
 
4366
fi
 
4367
fi
 
4368
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4369
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4370
if test $ac_cv_header_stdc = yes; then
 
4371
 
 
4372
cat >>confdefs.h <<\_ACEOF
 
4373
#define STDC_HEADERS 1
 
4374
_ACEOF
 
4375
 
 
4376
fi
 
4377
 
 
4378
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4379
 
 
4380
 
 
4381
 
 
4382
 
 
4383
 
 
4384
 
 
4385
 
 
4386
 
 
4387
 
 
4388
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4389
                  inttypes.h stdint.h unistd.h
 
4390
do
 
4391
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4392
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4393
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4395
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4396
else
 
4397
  cat >conftest.$ac_ext <<_ACEOF
 
4398
/* confdefs.h.  */
 
4399
_ACEOF
 
4400
cat confdefs.h >>conftest.$ac_ext
 
4401
cat >>conftest.$ac_ext <<_ACEOF
 
4402
/* end confdefs.h.  */
 
4403
$ac_includes_default
 
4404
 
 
4405
#include <$ac_header>
 
4406
_ACEOF
 
4407
rm -f conftest.$ac_objext
 
4408
if { (ac_try="$ac_compile"
 
4409
case "(($ac_try" in
 
4410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4411
  *) ac_try_echo=$ac_try;;
 
4412
esac
 
4413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4414
  (eval "$ac_compile") 2>conftest.er1
 
4415
  ac_status=$?
 
4416
  grep -v '^ *+' conftest.er1 >conftest.err
 
4417
  rm -f conftest.er1
 
4418
  cat conftest.err >&5
 
4419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4420
  (exit $ac_status); } && {
 
4421
         test -z "$ac_c_werror_flag" ||
 
4422
         test ! -s conftest.err
 
4423
       } && test -s conftest.$ac_objext; then
 
4424
  eval "$as_ac_Header=yes"
 
4425
else
 
4426
  echo "$as_me: failed program was:" >&5
 
4427
sed 's/^/| /' conftest.$ac_ext >&5
 
4428
 
 
4429
        eval "$as_ac_Header=no"
 
4430
fi
 
4431
 
 
4432
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4433
fi
 
4434
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4435
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4436
echo "${ECHO_T}$ac_res" >&6; }
 
4437
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4438
  cat >>confdefs.h <<_ACEOF
 
4439
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4440
_ACEOF
 
4441
 
 
4442
fi
 
4443
 
 
4444
done
 
4445
 
 
4446
 
 
4447
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4448
  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4449
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
4450
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4452
fi
 
4453
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4454
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
4455
else
 
4456
  # Is the header compilable?
 
4457
{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
4458
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
 
4459
cat >conftest.$ac_ext <<_ACEOF
 
4460
/* confdefs.h.  */
 
4461
_ACEOF
 
4462
cat confdefs.h >>conftest.$ac_ext
 
4463
cat >>conftest.$ac_ext <<_ACEOF
 
4464
/* end confdefs.h.  */
 
4465
$ac_includes_default
 
4466
#include <minix/config.h>
 
4467
_ACEOF
 
4468
rm -f conftest.$ac_objext
 
4469
if { (ac_try="$ac_compile"
 
4470
case "(($ac_try" in
 
4471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4472
  *) ac_try_echo=$ac_try;;
 
4473
esac
 
4474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4475
  (eval "$ac_compile") 2>conftest.er1
 
4476
  ac_status=$?
 
4477
  grep -v '^ *+' conftest.er1 >conftest.err
 
4478
  rm -f conftest.er1
 
4479
  cat conftest.err >&5
 
4480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4481
  (exit $ac_status); } && {
 
4482
         test -z "$ac_c_werror_flag" ||
 
4483
         test ! -s conftest.err
 
4484
       } && test -s conftest.$ac_objext; then
 
4485
  ac_header_compiler=yes
 
4486
else
 
4487
  echo "$as_me: failed program was:" >&5
 
4488
sed 's/^/| /' conftest.$ac_ext >&5
 
4489
 
 
4490
        ac_header_compiler=no
 
4491
fi
 
4492
 
 
4493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4494
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4495
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4496
 
 
4497
# Is the header present?
 
4498
{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
4499
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
 
4500
cat >conftest.$ac_ext <<_ACEOF
 
4501
/* confdefs.h.  */
 
4502
_ACEOF
 
4503
cat confdefs.h >>conftest.$ac_ext
 
4504
cat >>conftest.$ac_ext <<_ACEOF
 
4505
/* end confdefs.h.  */
 
4506
#include <minix/config.h>
 
4507
_ACEOF
 
4508
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4509
case "(($ac_try" in
 
4510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4511
  *) ac_try_echo=$ac_try;;
 
4512
esac
 
4513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4514
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4515
  ac_status=$?
 
4516
  grep -v '^ *+' conftest.er1 >conftest.err
 
4517
  rm -f conftest.er1
 
4518
  cat conftest.err >&5
 
4519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4520
  (exit $ac_status); } >/dev/null && {
 
4521
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4522
         test ! -s conftest.err
 
4523
       }; then
 
4524
  ac_header_preproc=yes
 
4525
else
 
4526
  echo "$as_me: failed program was:" >&5
 
4527
sed 's/^/| /' conftest.$ac_ext >&5
 
4528
 
 
4529
  ac_header_preproc=no
 
4530
fi
 
4531
 
 
4532
rm -f conftest.err conftest.$ac_ext
 
4533
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4534
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4535
 
 
4536
# So?  What about this header?
 
4537
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4538
  yes:no: )
 
4539
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4540
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4541
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
4542
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
4543
    ac_header_preproc=yes
 
4544
    ;;
 
4545
  no:yes:* )
 
4546
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
4547
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
4548
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
4549
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
4550
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
4551
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
4552
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4553
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4554
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
4555
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
4556
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
4557
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
4558
 
 
4559
    ;;
 
4560
esac
 
4561
{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4562
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
 
4563
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4565
else
 
4566
  ac_cv_header_minix_config_h=$ac_header_preproc
 
4567
fi
 
4568
{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4569
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
 
4570
 
 
4571
fi
 
4572
if test $ac_cv_header_minix_config_h = yes; then
 
4573
  MINIX=yes
 
4574
else
 
4575
  MINIX=
 
4576
fi
 
4577
 
 
4578
 
 
4579
if test "$MINIX" = yes; then
 
4580
 
 
4581
cat >>confdefs.h <<\_ACEOF
 
4582
#define _POSIX_SOURCE 1
 
4583
_ACEOF
 
4584
 
 
4585
 
 
4586
cat >>confdefs.h <<\_ACEOF
 
4587
#define _POSIX_1_SOURCE 2
 
4588
_ACEOF
 
4589
 
 
4590
 
 
4591
cat >>confdefs.h <<\_ACEOF
 
4592
#define _MINIX 1
 
4593
_ACEOF
 
4594
 
 
4595
fi
 
4596
 
 
4597
 
 
4598
 
 
4599
 
 
4600
 
 
4601
 
 
4602
 
 
4603
 
 
4604
 
 
4605
 
 
4606
 
 
4607
  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
4608
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
 
4609
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
4610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4611
else
 
4612
  cat >conftest.$ac_ext <<_ACEOF
 
4613
/* confdefs.h.  */
 
4614
_ACEOF
 
4615
cat confdefs.h >>conftest.$ac_ext
 
4616
cat >>conftest.$ac_ext <<_ACEOF
 
4617
/* end confdefs.h.  */
 
4618
 
 
4619
#         define __EXTENSIONS__ 1
 
4620
          $ac_includes_default
 
4621
int
 
4622
main ()
 
4623
{
 
4624
 
 
4625
  ;
 
4626
  return 0;
 
4627
}
 
4628
_ACEOF
 
4629
rm -f conftest.$ac_objext
 
4630
if { (ac_try="$ac_compile"
 
4631
case "(($ac_try" in
 
4632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4633
  *) ac_try_echo=$ac_try;;
 
4634
esac
 
4635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4636
  (eval "$ac_compile") 2>conftest.er1
 
4637
  ac_status=$?
 
4638
  grep -v '^ *+' conftest.er1 >conftest.err
 
4639
  rm -f conftest.er1
 
4640
  cat conftest.err >&5
 
4641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4642
  (exit $ac_status); } && {
 
4643
         test -z "$ac_c_werror_flag" ||
 
4644
         test ! -s conftest.err
 
4645
       } && test -s conftest.$ac_objext; then
 
4646
  ac_cv_safe_to_define___extensions__=yes
 
4647
else
 
4648
  echo "$as_me: failed program was:" >&5
 
4649
sed 's/^/| /' conftest.$ac_ext >&5
 
4650
 
 
4651
        ac_cv_safe_to_define___extensions__=no
 
4652
fi
 
4653
 
 
4654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4655
fi
 
4656
{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
4657
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
 
4658
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4659
    cat >>confdefs.h <<\_ACEOF
 
4660
#define __EXTENSIONS__ 1
 
4661
_ACEOF
 
4662
 
 
4663
  cat >>confdefs.h <<\_ACEOF
 
4664
#define _POSIX_PTHREAD_SEMANTICS 1
 
4665
_ACEOF
 
4666
 
 
4667
  cat >>confdefs.h <<\_ACEOF
 
4668
#define _TANDEM_SOURCE 1
 
4669
_ACEOF
 
4670
 
 
4671
 
 
4672
 
 
4673
 
 
4674
cflags_save="$CFLAGS"
 
4675
ac_ext=c
 
4676
ac_cpp='$CPP $CPPFLAGS'
 
4677
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4678
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4679
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4680
if test -n "$ac_tool_prefix"; then
 
4681
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4682
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4683
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4685
if test "${ac_cv_prog_CC+set}" = set; then
 
4686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4687
else
 
4688
  if test -n "$CC"; then
 
4689
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4690
else
 
4691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4692
for as_dir in $PATH
 
4693
do
 
4694
  IFS=$as_save_IFS
 
4695
  test -z "$as_dir" && as_dir=.
 
4696
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4697
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4698
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4699
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4700
    break 2
 
4701
  fi
 
4702
done
 
4703
done
 
4704
IFS=$as_save_IFS
 
4705
 
 
4706
fi
 
4707
fi
 
4708
CC=$ac_cv_prog_CC
 
4709
if test -n "$CC"; then
 
4710
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4711
echo "${ECHO_T}$CC" >&6; }
 
4712
else
 
4713
  { echo "$as_me:$LINENO: result: no" >&5
 
4714
echo "${ECHO_T}no" >&6; }
 
4715
fi
 
4716
 
 
4717
 
 
4718
fi
 
4719
if test -z "$ac_cv_prog_CC"; then
 
4720
  ac_ct_CC=$CC
 
4721
  # Extract the first word of "gcc", so it can be a program name with args.
 
4722
set dummy gcc; ac_word=$2
 
4723
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4724
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4725
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
4726
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4727
else
 
4728
  if test -n "$ac_ct_CC"; then
 
4729
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4730
else
 
4731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4732
for as_dir in $PATH
 
4733
do
 
4734
  IFS=$as_save_IFS
 
4735
  test -z "$as_dir" && as_dir=.
 
4736
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4737
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4738
    ac_cv_prog_ac_ct_CC="gcc"
 
4739
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4740
    break 2
 
4741
  fi
 
4742
done
 
4743
done
 
4744
IFS=$as_save_IFS
 
4745
 
 
4746
fi
 
4747
fi
 
4748
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4749
if test -n "$ac_ct_CC"; then
 
4750
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
4751
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
4752
else
 
4753
  { echo "$as_me:$LINENO: result: no" >&5
 
4754
echo "${ECHO_T}no" >&6; }
 
4755
fi
 
4756
 
 
4757
  if test "x$ac_ct_CC" = x; then
 
4758
    CC=""
 
4759
  else
 
4760
    case $cross_compiling:$ac_tool_warned in
 
4761
yes:)
 
4762
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4763
whose name does not start with the host triplet.  If you think this
 
4764
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4765
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4766
whose name does not start with the host triplet.  If you think this
 
4767
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4768
ac_tool_warned=yes ;;
 
4769
esac
 
4770
    CC=$ac_ct_CC
 
4771
  fi
 
4772
else
 
4773
  CC="$ac_cv_prog_CC"
 
4774
fi
 
4775
 
 
4776
if test -z "$CC"; then
 
4777
          if test -n "$ac_tool_prefix"; then
 
4778
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4779
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4780
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4782
if test "${ac_cv_prog_CC+set}" = set; then
 
4783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4784
else
 
4785
  if test -n "$CC"; then
 
4786
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4787
else
 
4788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4789
for as_dir in $PATH
 
4790
do
 
4791
  IFS=$as_save_IFS
 
4792
  test -z "$as_dir" && as_dir=.
 
4793
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4795
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4796
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4797
    break 2
 
4798
  fi
 
4799
done
 
4800
done
 
4801
IFS=$as_save_IFS
 
4802
 
 
4803
fi
 
4804
fi
 
4805
CC=$ac_cv_prog_CC
 
4806
if test -n "$CC"; then
 
4807
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4808
echo "${ECHO_T}$CC" >&6; }
 
4809
else
 
4810
  { echo "$as_me:$LINENO: result: no" >&5
 
4811
echo "${ECHO_T}no" >&6; }
 
4812
fi
 
4813
 
 
4814
 
 
4815
  fi
 
4816
fi
 
4817
if test -z "$CC"; then
 
4818
  # Extract the first word of "cc", so it can be a program name with args.
 
4819
set dummy cc; ac_word=$2
 
4820
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4821
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4822
if test "${ac_cv_prog_CC+set}" = set; then
 
4823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4824
else
 
4825
  if test -n "$CC"; then
 
4826
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4827
else
 
4828
  ac_prog_rejected=no
 
4829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4830
for as_dir in $PATH
 
4831
do
 
4832
  IFS=$as_save_IFS
 
4833
  test -z "$as_dir" && as_dir=.
 
4834
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4835
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4836
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4837
       ac_prog_rejected=yes
 
4838
       continue
 
4839
     fi
 
4840
    ac_cv_prog_CC="cc"
 
4841
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4842
    break 2
 
4843
  fi
 
4844
done
 
4845
done
 
4846
IFS=$as_save_IFS
 
4847
 
 
4848
if test $ac_prog_rejected = yes; then
 
4849
  # We found a bogon in the path, so make sure we never use it.
 
4850
  set dummy $ac_cv_prog_CC
 
4851
  shift
 
4852
  if test $# != 0; then
 
4853
    # We chose a different compiler from the bogus one.
 
4854
    # However, it has the same basename, so the bogon will be chosen
 
4855
    # first if we set CC to just the basename; use the full file name.
 
4856
    shift
 
4857
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4858
  fi
 
4859
fi
 
4860
fi
 
4861
fi
 
4862
CC=$ac_cv_prog_CC
 
4863
if test -n "$CC"; then
 
4864
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4865
echo "${ECHO_T}$CC" >&6; }
 
4866
else
 
4867
  { echo "$as_me:$LINENO: result: no" >&5
 
4868
echo "${ECHO_T}no" >&6; }
 
4869
fi
 
4870
 
 
4871
 
 
4872
fi
 
4873
if test -z "$CC"; then
 
4874
  if test -n "$ac_tool_prefix"; then
 
4875
  for ac_prog in cl.exe
 
4876
  do
 
4877
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4878
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4879
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4881
if test "${ac_cv_prog_CC+set}" = set; then
 
4882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4883
else
 
4884
  if test -n "$CC"; then
 
4885
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4886
else
 
4887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4888
for as_dir in $PATH
 
4889
do
 
4890
  IFS=$as_save_IFS
 
4891
  test -z "$as_dir" && as_dir=.
 
4892
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4893
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4894
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4895
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4896
    break 2
 
4897
  fi
 
4898
done
 
4899
done
 
4900
IFS=$as_save_IFS
 
4901
 
 
4902
fi
 
4903
fi
 
4904
CC=$ac_cv_prog_CC
 
4905
if test -n "$CC"; then
 
4906
  { echo "$as_me:$LINENO: result: $CC" >&5
 
4907
echo "${ECHO_T}$CC" >&6; }
 
4908
else
 
4909
  { echo "$as_me:$LINENO: result: no" >&5
 
4910
echo "${ECHO_T}no" >&6; }
 
4911
fi
 
4912
 
 
4913
 
 
4914
    test -n "$CC" && break
 
4915
  done
 
4916
fi
 
4917
if test -z "$CC"; then
 
4918
  ac_ct_CC=$CC
 
4919
  for ac_prog in cl.exe
 
4920
do
 
4921
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4922
set dummy $ac_prog; ac_word=$2
 
4923
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4925
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
4926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4927
else
 
4928
  if test -n "$ac_ct_CC"; then
 
4929
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4930
else
 
4931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4932
for as_dir in $PATH
 
4933
do
 
4934
  IFS=$as_save_IFS
 
4935
  test -z "$as_dir" && as_dir=.
 
4936
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4937
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4938
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4940
    break 2
 
4941
  fi
 
4942
done
 
4943
done
 
4944
IFS=$as_save_IFS
 
4945
 
 
4946
fi
 
4947
fi
 
4948
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4949
if test -n "$ac_ct_CC"; then
 
4950
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
4951
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
4952
else
 
4953
  { echo "$as_me:$LINENO: result: no" >&5
 
4954
echo "${ECHO_T}no" >&6; }
 
4955
fi
 
4956
 
 
4957
 
 
4958
  test -n "$ac_ct_CC" && break
 
4959
done
 
4960
 
 
4961
  if test "x$ac_ct_CC" = x; then
 
4962
    CC=""
 
4963
  else
 
4964
    case $cross_compiling:$ac_tool_warned in
 
4965
yes:)
 
4966
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4967
whose name does not start with the host triplet.  If you think this
 
4968
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4969
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4970
whose name does not start with the host triplet.  If you think this
 
4971
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4972
ac_tool_warned=yes ;;
 
4973
esac
 
4974
    CC=$ac_ct_CC
 
4975
  fi
 
4976
fi
 
4977
 
 
4978
fi
 
4979
 
 
4980
 
 
4981
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
4982
See \`config.log' for more details." >&5
 
4983
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
4984
See \`config.log' for more details." >&2;}
 
4985
   { (exit 1); exit 1; }; }
 
4986
 
 
4987
# Provide some information about the compiler.
 
4988
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
4989
ac_compiler=`set X $ac_compile; echo $2`
 
4990
{ (ac_try="$ac_compiler --version >&5"
 
4991
case "(($ac_try" in
 
4992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4993
  *) ac_try_echo=$ac_try;;
 
4994
esac
 
4995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4996
  (eval "$ac_compiler --version >&5") 2>&5
 
4997
  ac_status=$?
 
4998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4999
  (exit $ac_status); }
 
5000
{ (ac_try="$ac_compiler -v >&5"
 
5001
case "(($ac_try" in
 
5002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5003
  *) ac_try_echo=$ac_try;;
 
5004
esac
 
5005
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5006
  (eval "$ac_compiler -v >&5") 2>&5
 
5007
  ac_status=$?
 
5008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5009
  (exit $ac_status); }
 
5010
{ (ac_try="$ac_compiler -V >&5"
 
5011
case "(($ac_try" in
 
5012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5013
  *) ac_try_echo=$ac_try;;
 
5014
esac
 
5015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5016
  (eval "$ac_compiler -V >&5") 2>&5
 
5017
  ac_status=$?
 
5018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5019
  (exit $ac_status); }
 
5020
 
 
5021
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
5022
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
5023
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
5024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5025
else
 
5026
  cat >conftest.$ac_ext <<_ACEOF
 
5027
/* confdefs.h.  */
 
5028
_ACEOF
 
5029
cat confdefs.h >>conftest.$ac_ext
 
5030
cat >>conftest.$ac_ext <<_ACEOF
 
5031
/* end confdefs.h.  */
 
5032
 
 
5033
int
 
5034
main ()
 
5035
{
 
5036
#ifndef __GNUC__
 
5037
       choke me
 
5038
#endif
 
5039
 
 
5040
  ;
 
5041
  return 0;
 
5042
}
 
5043
_ACEOF
 
5044
rm -f conftest.$ac_objext
 
5045
if { (ac_try="$ac_compile"
 
5046
case "(($ac_try" in
 
5047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5048
  *) ac_try_echo=$ac_try;;
 
5049
esac
 
5050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5051
  (eval "$ac_compile") 2>conftest.er1
 
5052
  ac_status=$?
 
5053
  grep -v '^ *+' conftest.er1 >conftest.err
 
5054
  rm -f conftest.er1
 
5055
  cat conftest.err >&5
 
5056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5057
  (exit $ac_status); } && {
 
5058
         test -z "$ac_c_werror_flag" ||
 
5059
         test ! -s conftest.err
 
5060
       } && test -s conftest.$ac_objext; then
 
5061
  ac_compiler_gnu=yes
 
5062
else
 
5063
  echo "$as_me: failed program was:" >&5
 
5064
sed 's/^/| /' conftest.$ac_ext >&5
 
5065
 
 
5066
        ac_compiler_gnu=no
 
5067
fi
 
5068
 
 
5069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5070
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
5071
 
 
5072
fi
 
5073
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
5074
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
5075
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
5076
ac_test_CFLAGS=${CFLAGS+set}
 
5077
ac_save_CFLAGS=$CFLAGS
 
5078
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
5079
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
5080
if test "${ac_cv_prog_cc_g+set}" = set; then
 
5081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5082
else
 
5083
  ac_save_c_werror_flag=$ac_c_werror_flag
 
5084
   ac_c_werror_flag=yes
 
5085
   ac_cv_prog_cc_g=no
 
5086
   CFLAGS="-g"
 
5087
   cat >conftest.$ac_ext <<_ACEOF
 
5088
/* confdefs.h.  */
 
5089
_ACEOF
 
5090
cat confdefs.h >>conftest.$ac_ext
 
5091
cat >>conftest.$ac_ext <<_ACEOF
 
5092
/* end confdefs.h.  */
 
5093
 
 
5094
int
 
5095
main ()
 
5096
{
 
5097
 
 
5098
  ;
 
5099
  return 0;
 
5100
}
 
5101
_ACEOF
 
5102
rm -f conftest.$ac_objext
 
5103
if { (ac_try="$ac_compile"
 
5104
case "(($ac_try" in
 
5105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5106
  *) ac_try_echo=$ac_try;;
 
5107
esac
 
5108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5109
  (eval "$ac_compile") 2>conftest.er1
 
5110
  ac_status=$?
 
5111
  grep -v '^ *+' conftest.er1 >conftest.err
 
5112
  rm -f conftest.er1
 
5113
  cat conftest.err >&5
 
5114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5115
  (exit $ac_status); } && {
 
5116
         test -z "$ac_c_werror_flag" ||
 
5117
         test ! -s conftest.err
 
5118
       } && test -s conftest.$ac_objext; then
 
5119
  ac_cv_prog_cc_g=yes
 
5120
else
 
5121
  echo "$as_me: failed program was:" >&5
 
5122
sed 's/^/| /' conftest.$ac_ext >&5
 
5123
 
 
5124
        CFLAGS=""
 
5125
      cat >conftest.$ac_ext <<_ACEOF
 
5126
/* confdefs.h.  */
 
5127
_ACEOF
 
5128
cat confdefs.h >>conftest.$ac_ext
 
5129
cat >>conftest.$ac_ext <<_ACEOF
 
5130
/* end confdefs.h.  */
 
5131
 
 
5132
int
 
5133
main ()
 
5134
{
 
5135
 
 
5136
  ;
 
5137
  return 0;
 
5138
}
 
5139
_ACEOF
 
5140
rm -f conftest.$ac_objext
 
5141
if { (ac_try="$ac_compile"
 
5142
case "(($ac_try" in
 
5143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5144
  *) ac_try_echo=$ac_try;;
 
5145
esac
 
5146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5147
  (eval "$ac_compile") 2>conftest.er1
 
5148
  ac_status=$?
 
5149
  grep -v '^ *+' conftest.er1 >conftest.err
 
5150
  rm -f conftest.er1
 
5151
  cat conftest.err >&5
 
5152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5153
  (exit $ac_status); } && {
 
5154
         test -z "$ac_c_werror_flag" ||
 
5155
         test ! -s conftest.err
 
5156
       } && test -s conftest.$ac_objext; then
 
5157
  :
 
5158
else
 
5159
  echo "$as_me: failed program was:" >&5
 
5160
sed 's/^/| /' conftest.$ac_ext >&5
 
5161
 
 
5162
        ac_c_werror_flag=$ac_save_c_werror_flag
 
5163
         CFLAGS="-g"
 
5164
         cat >conftest.$ac_ext <<_ACEOF
 
5165
/* confdefs.h.  */
 
5166
_ACEOF
 
5167
cat confdefs.h >>conftest.$ac_ext
 
5168
cat >>conftest.$ac_ext <<_ACEOF
 
5169
/* end confdefs.h.  */
 
5170
 
 
5171
int
 
5172
main ()
 
5173
{
 
5174
 
 
5175
  ;
 
5176
  return 0;
 
5177
}
 
5178
_ACEOF
 
5179
rm -f conftest.$ac_objext
 
5180
if { (ac_try="$ac_compile"
 
5181
case "(($ac_try" in
 
5182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5183
  *) ac_try_echo=$ac_try;;
 
5184
esac
 
5185
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5186
  (eval "$ac_compile") 2>conftest.er1
 
5187
  ac_status=$?
 
5188
  grep -v '^ *+' conftest.er1 >conftest.err
 
5189
  rm -f conftest.er1
 
5190
  cat conftest.err >&5
 
5191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5192
  (exit $ac_status); } && {
 
5193
         test -z "$ac_c_werror_flag" ||
 
5194
         test ! -s conftest.err
 
5195
       } && test -s conftest.$ac_objext; then
 
5196
  ac_cv_prog_cc_g=yes
 
5197
else
 
5198
  echo "$as_me: failed program was:" >&5
 
5199
sed 's/^/| /' conftest.$ac_ext >&5
 
5200
 
 
5201
 
 
5202
fi
 
5203
 
 
5204
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5205
fi
 
5206
 
 
5207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5208
fi
 
5209
 
 
5210
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5211
   ac_c_werror_flag=$ac_save_c_werror_flag
 
5212
fi
 
5213
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
5214
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
5215
if test "$ac_test_CFLAGS" = set; then
 
5216
  CFLAGS=$ac_save_CFLAGS
 
5217
elif test $ac_cv_prog_cc_g = yes; then
 
5218
  if test "$GCC" = yes; then
 
5219
    CFLAGS="-g -O2"
 
5220
  else
 
5221
    CFLAGS="-g"
 
5222
  fi
 
5223
else
 
5224
  if test "$GCC" = yes; then
 
5225
    CFLAGS="-O2"
 
5226
  else
 
5227
    CFLAGS=
 
5228
  fi
 
5229
fi
 
5230
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
5231
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
5232
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
5233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5234
else
 
5235
  ac_cv_prog_cc_c89=no
 
5236
ac_save_CC=$CC
 
5237
cat >conftest.$ac_ext <<_ACEOF
 
5238
/* confdefs.h.  */
 
5239
_ACEOF
 
5240
cat confdefs.h >>conftest.$ac_ext
 
5241
cat >>conftest.$ac_ext <<_ACEOF
 
5242
/* end confdefs.h.  */
 
5243
#include <stdarg.h>
 
5244
#include <stdio.h>
 
5245
#include <sys/types.h>
 
5246
#include <sys/stat.h>
 
5247
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5248
struct buf { int x; };
 
5249
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5250
static char *e (p, i)
 
5251
     char **p;
 
5252
     int i;
 
5253
{
 
5254
  return p[i];
 
5255
}
 
5256
static char *f (char * (*g) (char **, int), char **p, ...)
 
5257
{
 
5258
  char *s;
 
5259
  va_list v;
 
5260
  va_start (v,p);
 
5261
  s = g (p, va_arg (v,int));
 
5262
  va_end (v);
 
5263
  return s;
 
5264
}
 
5265
 
 
5266
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5267
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5268
   These don't provoke an error unfortunately, instead are silently treated
 
5269
   as 'x'.  The following induces an error, until -std is added to get
 
5270
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5271
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5272
   that's true only with -std.  */
 
5273
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5274
 
 
5275
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5276
   inside strings and character constants.  */
 
5277
#define FOO(x) 'x'
 
5278
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5279
 
 
5280
int test (int i, double x);
 
5281
struct s1 {int (*f) (int a);};
 
5282
struct s2 {int (*f) (double a);};
 
5283
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5284
int argc;
 
5285
char **argv;
 
5286
int
 
5287
main ()
 
5288
{
 
5289
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5290
  ;
 
5291
  return 0;
 
5292
}
 
5293
_ACEOF
 
5294
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5295
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5296
do
 
5297
  CC="$ac_save_CC $ac_arg"
 
5298
  rm -f conftest.$ac_objext
 
5299
if { (ac_try="$ac_compile"
 
5300
case "(($ac_try" in
 
5301
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5302
  *) ac_try_echo=$ac_try;;
 
5303
esac
 
5304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5305
  (eval "$ac_compile") 2>conftest.er1
 
5306
  ac_status=$?
 
5307
  grep -v '^ *+' conftest.er1 >conftest.err
 
5308
  rm -f conftest.er1
 
5309
  cat conftest.err >&5
 
5310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5311
  (exit $ac_status); } && {
 
5312
         test -z "$ac_c_werror_flag" ||
 
5313
         test ! -s conftest.err
 
5314
       } && test -s conftest.$ac_objext; then
 
5315
  ac_cv_prog_cc_c89=$ac_arg
 
5316
else
 
5317
  echo "$as_me: failed program was:" >&5
 
5318
sed 's/^/| /' conftest.$ac_ext >&5
 
5319
 
 
5320
 
 
5321
fi
 
5322
 
 
5323
rm -f core conftest.err conftest.$ac_objext
 
5324
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5325
done
 
5326
rm -f conftest.$ac_ext
 
5327
CC=$ac_save_CC
 
5328
 
 
5329
fi
 
5330
# AC_CACHE_VAL
 
5331
case "x$ac_cv_prog_cc_c89" in
 
5332
  x)
 
5333
    { echo "$as_me:$LINENO: result: none needed" >&5
 
5334
echo "${ECHO_T}none needed" >&6; } ;;
 
5335
  xno)
 
5336
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
5337
echo "${ECHO_T}unsupported" >&6; } ;;
 
5338
  *)
 
5339
    CC="$CC $ac_cv_prog_cc_c89"
 
5340
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
5341
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
5342
esac
 
5343
 
 
5344
 
 
5345
ac_ext=c
 
5346
ac_cpp='$CPP $CPPFLAGS'
 
5347
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5348
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5349
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5350
 
 
5351
depcc="$CC"   am_compiler_list=
 
5352
 
 
5353
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5354
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5355
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
5356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5357
else
 
5358
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5359
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5360
  # making bogus files that we don't know about and never remove.  For
 
5361
  # instance it was reported that on HP-UX the gcc test will end up
 
5362
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5363
  # in D'.
 
5364
  mkdir conftest.dir
 
5365
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5366
  # using a relative directory.
 
5367
  cp "$am_depcomp" conftest.dir
 
5368
  cd conftest.dir
 
5369
  # We will build objects and dependencies in a subdirectory because
 
5370
  # it helps to detect inapplicable dependency modes.  For instance
 
5371
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5372
  # side effect of compilation, but ICC will put the dependencies in
 
5373
  # the current directory while Tru64 will put them in the object
 
5374
  # directory.
 
5375
  mkdir sub
 
5376
 
 
5377
  am_cv_CC_dependencies_compiler_type=none
 
5378
  if test "$am_compiler_list" = ""; then
 
5379
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5380
  fi
 
5381
  for depmode in $am_compiler_list; do
 
5382
    # Setup a source with many dependencies, because some compilers
 
5383
    # like to wrap large dependency lists on column 80 (with \), and
 
5384
    # we should not choose a depcomp mode which is confused by this.
 
5385
    #
 
5386
    # We need to recreate these files for each test, as the compiler may
 
5387
    # overwrite some of them when testing with obscure command lines.
 
5388
    # This happens at least with the AIX C compiler.
 
5389
    : > sub/conftest.c
 
5390
    for i in 1 2 3 4 5 6; do
 
5391
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5392
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5393
      # Solaris 8's {/usr,}/bin/sh.
 
5394
      touch sub/conftst$i.h
 
5395
    done
 
5396
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5397
 
 
5398
    case $depmode in
 
5399
    nosideeffect)
 
5400
      # after this tag, mechanisms are not by side-effect, so they'll
 
5401
      # only be used when explicitly requested
 
5402
      if test "x$enable_dependency_tracking" = xyes; then
 
5403
        continue
 
5404
      else
 
5405
        break
 
5406
      fi
 
5407
      ;;
 
5408
    none) break ;;
 
5409
    esac
 
5410
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5411
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5412
    # handle `-M -o', and we need to detect this.
 
5413
    if depmode=$depmode \
 
5414
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5415
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5416
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5417
         >/dev/null 2>conftest.err &&
 
5418
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5419
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5420
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5421
      # icc doesn't choke on unknown options, it will just issue warnings
 
5422
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5423
      # that says an option was ignored or not supported.
 
5424
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5425
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5426
      # The diagnosis changed in icc 8.0:
 
5427
      #   icc: Command line remark: option '-MP' not supported
 
5428
      if (grep 'ignoring option' conftest.err ||
 
5429
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5430
        am_cv_CC_dependencies_compiler_type=$depmode
 
5431
        break
 
5432
      fi
 
5433
    fi
 
5434
  done
 
5435
 
 
5436
  cd ..
 
5437
  rm -rf conftest.dir
 
5438
else
 
5439
  am_cv_CC_dependencies_compiler_type=none
 
5440
fi
 
5441
 
 
5442
fi
 
5443
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5444
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
5445
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5446
 
 
5447
 
 
5448
 
 
5449
if
 
5450
  test "x$enable_dependency_tracking" != xno \
 
5451
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5452
  am__fastdepCC_TRUE=
 
5453
  am__fastdepCC_FALSE='#'
 
5454
else
 
5455
  am__fastdepCC_TRUE='#'
 
5456
  am__fastdepCC_FALSE=
 
5457
fi
 
5458
 
 
5459
 
 
5460
CFLAGS="$cflags_save"
 
5461
 
 
5462
case `pwd` in
 
5463
  *\ * | *\     *)
 
5464
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5465
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5466
esac
 
5467
 
 
5468
 
 
5469
 
 
5470
macro_version='2.2.6'
 
5471
macro_revision='1.3012'
 
5472
 
 
5473
 
 
5474
 
 
5475
 
 
5476
 
 
5477
 
 
5478
 
 
5479
 
 
5480
 
 
5481
 
 
5482
 
 
5483
 
 
5484
 
 
5485
ltmain="$ac_aux_dir/ltmain.sh"
 
5486
 
 
5487
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5488
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
5489
if test "${ac_cv_path_SED+set}" = set; then
 
5490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5491
else
 
5492
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5493
     for ac_i in 1 2 3 4 5 6 7; do
 
5494
       ac_script="$ac_script$as_nl$ac_script"
 
5495
     done
 
5496
     echo "$ac_script" | sed 99q >conftest.sed
 
5497
     $as_unset ac_script || ac_script=
 
5498
     # Extract the first word of "sed gsed" to use in msg output
 
5499
if test -z "$SED"; then
 
5500
set dummy sed gsed; ac_prog_name=$2
 
5501
if test "${ac_cv_path_SED+set}" = set; then
 
5502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5503
else
 
5504
  ac_path_SED_found=false
 
5505
# Loop through the user's path and test for each of PROGNAME-LIST
 
5506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5507
for as_dir in $PATH
 
5508
do
 
5509
  IFS=$as_save_IFS
 
5510
  test -z "$as_dir" && as_dir=.
 
5511
  for ac_prog in sed gsed; do
 
5512
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5513
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5514
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
5515
    # Check for GNU ac_path_SED and select it if it is found.
 
5516
  # Check for GNU $ac_path_SED
 
5517
case `"$ac_path_SED" --version 2>&1` in
 
5518
*GNU*)
 
5519
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5520
*)
 
5521
  ac_count=0
 
5522
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5523
  while :
 
5524
  do
 
5525
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5526
    mv "conftest.tmp" "conftest.in"
 
5527
    cp "conftest.in" "conftest.nl"
 
5528
    echo '' >> "conftest.nl"
 
5529
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5530
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5531
    ac_count=`expr $ac_count + 1`
 
5532
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5533
      # Best one so far, save it but keep looking for a better one
 
5534
      ac_cv_path_SED="$ac_path_SED"
 
5535
      ac_path_SED_max=$ac_count
 
5536
    fi
 
5537
    # 10*(2^10) chars as input seems more than enough
 
5538
    test $ac_count -gt 10 && break
 
5539
  done
 
5540
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5541
esac
 
5542
 
 
5543
 
 
5544
    $ac_path_SED_found && break 3
 
5545
  done
 
5546
done
 
5547
 
 
5548
done
 
5549
IFS=$as_save_IFS
 
5550
 
 
5551
 
 
5552
fi
 
5553
 
 
5554
SED="$ac_cv_path_SED"
 
5555
if test -z "$SED"; then
 
5556
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
 
5557
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
 
5558
   { (exit 1); exit 1; }; }
 
5559
fi
 
5560
 
 
5561
else
 
5562
  ac_cv_path_SED=$SED
 
5563
fi
 
5564
 
 
5565
fi
 
5566
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
5567
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
 
5568
 SED="$ac_cv_path_SED"
 
5569
  rm -f conftest.sed
 
5570
 
 
5571
test -z "$SED" && SED=sed
 
5572
Xsed="$SED -e 1s/^X//"
 
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
 
 
5578
 
 
5579
 
 
5580
 
 
5581
 
 
5582
 
 
5583
 
 
5584
{ echo "$as_me:$LINENO: checking for fgrep" >&5
 
5585
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
 
5586
if test "${ac_cv_path_FGREP+set}" = set; then
 
5587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5588
else
 
5589
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5590
   then ac_cv_path_FGREP="$GREP -F"
 
5591
   else
 
5592
     # Extract the first word of "fgrep" to use in msg output
 
5593
if test -z "$FGREP"; then
 
5594
set dummy fgrep; ac_prog_name=$2
 
5595
if test "${ac_cv_path_FGREP+set}" = set; then
 
5596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5597
else
 
5598
  ac_path_FGREP_found=false
 
5599
# Loop through the user's path and test for each of PROGNAME-LIST
 
5600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5601
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5602
do
 
5603
  IFS=$as_save_IFS
 
5604
  test -z "$as_dir" && as_dir=.
 
5605
  for ac_prog in fgrep; do
 
5606
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5607
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5608
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
5609
    # Check for GNU ac_path_FGREP and select it if it is found.
 
5610
  # Check for GNU $ac_path_FGREP
 
5611
case `"$ac_path_FGREP" --version 2>&1` in
 
5612
*GNU*)
 
5613
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5614
*)
 
5615
  ac_count=0
 
5616
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5617
  while :
 
5618
  do
 
5619
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5620
    mv "conftest.tmp" "conftest.in"
 
5621
    cp "conftest.in" "conftest.nl"
 
5622
    echo 'FGREP' >> "conftest.nl"
 
5623
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5624
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5625
    ac_count=`expr $ac_count + 1`
 
5626
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5627
      # Best one so far, save it but keep looking for a better one
 
5628
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5629
      ac_path_FGREP_max=$ac_count
 
5630
    fi
 
5631
    # 10*(2^10) chars as input seems more than enough
 
5632
    test $ac_count -gt 10 && break
 
5633
  done
 
5634
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5635
esac
 
5636
 
 
5637
 
 
5638
    $ac_path_FGREP_found && break 3
 
5639
  done
 
5640
done
 
5641
 
 
5642
done
 
5643
IFS=$as_save_IFS
 
5644
 
 
5645
 
 
5646
fi
 
5647
 
 
5648
FGREP="$ac_cv_path_FGREP"
 
5649
if test -z "$FGREP"; then
 
5650
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
5651
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
5652
   { (exit 1); exit 1; }; }
 
5653
fi
 
5654
 
 
5655
else
 
5656
  ac_cv_path_FGREP=$FGREP
 
5657
fi
 
5658
 
 
5659
 
 
5660
   fi
 
5661
fi
 
5662
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
5663
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
 
5664
 FGREP="$ac_cv_path_FGREP"
 
5665
 
 
5666
 
 
5667
test -z "$GREP" && GREP=grep
 
5668
 
 
5669
 
 
5670
 
 
5671
 
 
5672
 
 
5673
 
 
5674
 
 
5675
 
 
5676
 
 
5677
 
 
5678
 
 
5679
 
 
5680
 
 
5681
 
 
5682
 
 
5683
 
 
5684
 
 
5685
 
 
5686
 
4086
5687
# Check whether --with-gnu-ld was given.
4087
5688
if test "${with_gnu_ld+set}" = set; then
4088
5689
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4107
5708
    [\\/]* | ?:[\\/]*)
4108
5709
      re_direlt='/[^/][^/]*/\.\./'
4109
5710
      # Canonicalize the pathname of ld
4110
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4111
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4112
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5711
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5712
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5713
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4113
5714
      done
4114
5715
      test -z "$LD" && LD="$ac_prog"
4115
5716
      ;;
4189
5790
with_gnu_ld=$lt_cv_prog_gnu_ld
4190
5791
 
4191
5792
 
4192
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4193
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4194
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4195
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4196
 
else
4197
 
  lt_cv_ld_reload_flag='-r'
4198
 
fi
4199
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4200
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4201
 
reload_flag=$lt_cv_ld_reload_flag
4202
 
case $reload_flag in
4203
 
"" | " "*) ;;
4204
 
*) reload_flag=" $reload_flag" ;;
4205
 
esac
4206
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4207
 
case $host_os in
4208
 
  darwin*)
4209
 
    if test "$GCC" = yes; then
4210
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4211
 
    else
4212
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4213
 
    fi
4214
 
    ;;
4215
 
esac
4216
 
 
4217
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4218
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
5793
 
 
5794
 
 
5795
 
 
5796
 
 
5797
 
 
5798
 
 
5799
 
 
5800
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
5801
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4219
5802
if test "${lt_cv_path_NM+set}" = set; then
4220
5803
  echo $ECHO_N "(cached) $ECHO_C" >&6
4221
5804
else
4260
5843
    done
4261
5844
    IFS="$lt_save_ifs"
4262
5845
  done
4263
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5846
  : ${lt_cv_path_NM=no}
4264
5847
fi
4265
5848
fi
4266
5849
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4267
5850
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4268
 
NM="$lt_cv_path_NM"
 
5851
if test "$lt_cv_path_NM" != "no"; then
 
5852
  NM="$lt_cv_path_NM"
 
5853
else
 
5854
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
5855
  if test -n "$ac_tool_prefix"; then
 
5856
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5857
  do
 
5858
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5859
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5860
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5861
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5862
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
5863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5864
else
 
5865
  if test -n "$DUMPBIN"; then
 
5866
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
5867
else
 
5868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5869
for as_dir in $PATH
 
5870
do
 
5871
  IFS=$as_save_IFS
 
5872
  test -z "$as_dir" && as_dir=.
 
5873
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5874
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5875
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
5876
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5877
    break 2
 
5878
  fi
 
5879
done
 
5880
done
 
5881
IFS=$as_save_IFS
 
5882
 
 
5883
fi
 
5884
fi
 
5885
DUMPBIN=$ac_cv_prog_DUMPBIN
 
5886
if test -n "$DUMPBIN"; then
 
5887
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
5888
echo "${ECHO_T}$DUMPBIN" >&6; }
 
5889
else
 
5890
  { echo "$as_me:$LINENO: result: no" >&5
 
5891
echo "${ECHO_T}no" >&6; }
 
5892
fi
 
5893
 
 
5894
 
 
5895
    test -n "$DUMPBIN" && break
 
5896
  done
 
5897
fi
 
5898
if test -z "$DUMPBIN"; then
 
5899
  ac_ct_DUMPBIN=$DUMPBIN
 
5900
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
5901
do
 
5902
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5903
set dummy $ac_prog; ac_word=$2
 
5904
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5905
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5906
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
5907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5908
else
 
5909
  if test -n "$ac_ct_DUMPBIN"; then
 
5910
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
5911
else
 
5912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5913
for as_dir in $PATH
 
5914
do
 
5915
  IFS=$as_save_IFS
 
5916
  test -z "$as_dir" && as_dir=.
 
5917
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5918
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5919
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
5920
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5921
    break 2
 
5922
  fi
 
5923
done
 
5924
done
 
5925
IFS=$as_save_IFS
 
5926
 
 
5927
fi
 
5928
fi
 
5929
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
5930
if test -n "$ac_ct_DUMPBIN"; then
 
5931
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
5932
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
 
5933
else
 
5934
  { echo "$as_me:$LINENO: result: no" >&5
 
5935
echo "${ECHO_T}no" >&6; }
 
5936
fi
 
5937
 
 
5938
 
 
5939
  test -n "$ac_ct_DUMPBIN" && break
 
5940
done
 
5941
 
 
5942
  if test "x$ac_ct_DUMPBIN" = x; then
 
5943
    DUMPBIN=":"
 
5944
  else
 
5945
    case $cross_compiling:$ac_tool_warned in
 
5946
yes:)
 
5947
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5948
whose name does not start with the host triplet.  If you think this
 
5949
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5950
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5951
whose name does not start with the host triplet.  If you think this
 
5952
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5953
ac_tool_warned=yes ;;
 
5954
esac
 
5955
    DUMPBIN=$ac_ct_DUMPBIN
 
5956
  fi
 
5957
fi
 
5958
 
 
5959
 
 
5960
  if test "$DUMPBIN" != ":"; then
 
5961
    NM="$DUMPBIN"
 
5962
  fi
 
5963
fi
 
5964
test -z "$NM" && NM=nm
 
5965
 
 
5966
 
 
5967
 
 
5968
 
 
5969
 
 
5970
 
 
5971
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
5972
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
 
5973
if test "${lt_cv_nm_interface+set}" = set; then
 
5974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5975
else
 
5976
  lt_cv_nm_interface="BSD nm"
 
5977
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5978
  (eval echo "\"\$as_me:5978: $ac_compile\"" >&5)
 
5979
  (eval "$ac_compile" 2>conftest.err)
 
5980
  cat conftest.err >&5
 
5981
  (eval echo "\"\$as_me:5981: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
5982
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
5983
  cat conftest.err >&5
 
5984
  (eval echo "\"\$as_me:5984: output\"" >&5)
 
5985
  cat conftest.out >&5
 
5986
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
5987
    lt_cv_nm_interface="MS dumpbin"
 
5988
  fi
 
5989
  rm -f conftest*
 
5990
fi
 
5991
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
5992
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4269
5993
 
4270
5994
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4271
5995
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4278
6002
echo "${ECHO_T}no, using $LN_S" >&6; }
4279
6003
fi
4280
6004
 
4281
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4282
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
6005
# find the maximum length of command line arguments
 
6006
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6007
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6008
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6010
else
 
6011
    i=0
 
6012
  teststring="ABCD"
 
6013
 
 
6014
  case $build_os in
 
6015
  msdosdjgpp*)
 
6016
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6017
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6018
    # during glob expansion).  Even if it were fixed, the result of this
 
6019
    # check would be larger than it should be.
 
6020
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6021
    ;;
 
6022
 
 
6023
  gnu*)
 
6024
    # Under GNU Hurd, this test is not required because there is
 
6025
    # no limit to the length of command line arguments.
 
6026
    # Libtool will interpret -1 as no limit whatsoever
 
6027
    lt_cv_sys_max_cmd_len=-1;
 
6028
    ;;
 
6029
 
 
6030
  cygwin* | mingw* | cegcc*)
 
6031
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6032
    # about 5 minutes as the teststring grows exponentially.
 
6033
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6034
    # you end up with a "frozen" computer, even though with patience
 
6035
    # the test eventually succeeds (with a max line length of 256k).
 
6036
    # Instead, let's just punt: use the minimum linelength reported by
 
6037
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6038
    lt_cv_sys_max_cmd_len=8192;
 
6039
    ;;
 
6040
 
 
6041
  amigaos*)
 
6042
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6043
    # So we just punt and use a minimum line length of 8192.
 
6044
    lt_cv_sys_max_cmd_len=8192;
 
6045
    ;;
 
6046
 
 
6047
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6048
    # This has been around since 386BSD, at least.  Likely further.
 
6049
    if test -x /sbin/sysctl; then
 
6050
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6051
    elif test -x /usr/sbin/sysctl; then
 
6052
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6053
    else
 
6054
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6055
    fi
 
6056
    # And add a safety zone
 
6057
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6058
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6059
    ;;
 
6060
 
 
6061
  interix*)
 
6062
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6063
    lt_cv_sys_max_cmd_len=196608
 
6064
    ;;
 
6065
 
 
6066
  osf*)
 
6067
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6068
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6069
    # nice to cause kernel panics so lets avoid the loop below.
 
6070
    # First set a reasonable default.
 
6071
    lt_cv_sys_max_cmd_len=16384
 
6072
    #
 
6073
    if test -x /sbin/sysconfig; then
 
6074
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6075
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6076
      esac
 
6077
    fi
 
6078
    ;;
 
6079
  sco3.2v5*)
 
6080
    lt_cv_sys_max_cmd_len=102400
 
6081
    ;;
 
6082
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6083
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6084
    if test -n "$kargmax"; then
 
6085
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
6086
    else
 
6087
      lt_cv_sys_max_cmd_len=32768
 
6088
    fi
 
6089
    ;;
 
6090
  *)
 
6091
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6092
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6093
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6094
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6095
    else
 
6096
      # Make teststring a little bigger before we do anything with it.
 
6097
      # a 1K string should be a reasonable start.
 
6098
      for i in 1 2 3 4 5 6 7 8 ; do
 
6099
        teststring=$teststring$teststring
 
6100
      done
 
6101
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6102
      # If test is not a shell built-in, we'll probably end up computing a
 
6103
      # maximum length that is only half of the actual maximum length, but
 
6104
      # we can't tell.
 
6105
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
6106
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
6107
              test $i != 17 # 1/2 MB should be enough
 
6108
      do
 
6109
        i=`expr $i + 1`
 
6110
        teststring=$teststring$teststring
 
6111
      done
 
6112
      # Only check the string length outside the loop.
 
6113
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
6114
      teststring=
 
6115
      # Add a significant safety factor because C++ compilers can tack on
 
6116
      # massive amounts of additional arguments before passing them to the
 
6117
      # linker.  It appears as though 1/2 is a usable value.
 
6118
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6119
    fi
 
6120
    ;;
 
6121
  esac
 
6122
 
 
6123
fi
 
6124
 
 
6125
if test -n $lt_cv_sys_max_cmd_len ; then
 
6126
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6127
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6128
else
 
6129
  { echo "$as_me:$LINENO: result: none" >&5
 
6130
echo "${ECHO_T}none" >&6; }
 
6131
fi
 
6132
max_cmd_len=$lt_cv_sys_max_cmd_len
 
6133
 
 
6134
 
 
6135
 
 
6136
 
 
6137
 
 
6138
 
 
6139
: ${CP="cp -f"}
 
6140
: ${MV="mv -f"}
 
6141
: ${RM="rm -f"}
 
6142
 
 
6143
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
6144
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
 
6145
# Try some XSI features
 
6146
xsi_shell=no
 
6147
( _lt_dummy="a/b/c"
 
6148
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
6149
      = c,a/b,, \
 
6150
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
6151
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
6152
  && xsi_shell=yes
 
6153
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
6154
echo "${ECHO_T}$xsi_shell" >&6; }
 
6155
 
 
6156
 
 
6157
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
6158
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
 
6159
lt_shell_append=no
 
6160
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
6161
    >/dev/null 2>&1 \
 
6162
  && lt_shell_append=yes
 
6163
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
6164
echo "${ECHO_T}$lt_shell_append" >&6; }
 
6165
 
 
6166
 
 
6167
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6168
  lt_unset=unset
 
6169
else
 
6170
  lt_unset=false
 
6171
fi
 
6172
 
 
6173
 
 
6174
 
 
6175
 
 
6176
 
 
6177
# test EBCDIC or ASCII
 
6178
case `echo X|tr X '\101'` in
 
6179
 A) # ASCII based system
 
6180
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
6181
  lt_SP2NL='tr \040 \012'
 
6182
  lt_NL2SP='tr \015\012 \040\040'
 
6183
  ;;
 
6184
 *) # EBCDIC based system
 
6185
  lt_SP2NL='tr \100 \n'
 
6186
  lt_NL2SP='tr \r\n \100\100'
 
6187
  ;;
 
6188
esac
 
6189
 
 
6190
 
 
6191
 
 
6192
 
 
6193
 
 
6194
 
 
6195
 
 
6196
 
 
6197
 
 
6198
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
6199
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
6200
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
6201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6202
else
 
6203
  lt_cv_ld_reload_flag='-r'
 
6204
fi
 
6205
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
6206
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
6207
reload_flag=$lt_cv_ld_reload_flag
 
6208
case $reload_flag in
 
6209
"" | " "*) ;;
 
6210
*) reload_flag=" $reload_flag" ;;
 
6211
esac
 
6212
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6213
case $host_os in
 
6214
  darwin*)
 
6215
    if test "$GCC" = yes; then
 
6216
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
6217
    else
 
6218
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6219
    fi
 
6220
    ;;
 
6221
esac
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
 
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
if test -n "$ac_tool_prefix"; then
 
6232
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
6233
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
6234
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6236
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
6237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6238
else
 
6239
  if test -n "$OBJDUMP"; then
 
6240
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
6241
else
 
6242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6243
for as_dir in $PATH
 
6244
do
 
6245
  IFS=$as_save_IFS
 
6246
  test -z "$as_dir" && as_dir=.
 
6247
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6248
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6249
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
6250
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6251
    break 2
 
6252
  fi
 
6253
done
 
6254
done
 
6255
IFS=$as_save_IFS
 
6256
 
 
6257
fi
 
6258
fi
 
6259
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6260
if test -n "$OBJDUMP"; then
 
6261
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
6262
echo "${ECHO_T}$OBJDUMP" >&6; }
 
6263
else
 
6264
  { echo "$as_me:$LINENO: result: no" >&5
 
6265
echo "${ECHO_T}no" >&6; }
 
6266
fi
 
6267
 
 
6268
 
 
6269
fi
 
6270
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6271
  ac_ct_OBJDUMP=$OBJDUMP
 
6272
  # Extract the first word of "objdump", so it can be a program name with args.
 
6273
set dummy objdump; ac_word=$2
 
6274
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6276
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
6277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6278
else
 
6279
  if test -n "$ac_ct_OBJDUMP"; then
 
6280
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6281
else
 
6282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6283
for as_dir in $PATH
 
6284
do
 
6285
  IFS=$as_save_IFS
 
6286
  test -z "$as_dir" && as_dir=.
 
6287
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6288
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6289
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6290
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6291
    break 2
 
6292
  fi
 
6293
done
 
6294
done
 
6295
IFS=$as_save_IFS
 
6296
 
 
6297
fi
 
6298
fi
 
6299
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6300
if test -n "$ac_ct_OBJDUMP"; then
 
6301
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
6302
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
6303
else
 
6304
  { echo "$as_me:$LINENO: result: no" >&5
 
6305
echo "${ECHO_T}no" >&6; }
 
6306
fi
 
6307
 
 
6308
  if test "x$ac_ct_OBJDUMP" = x; then
 
6309
    OBJDUMP="false"
 
6310
  else
 
6311
    case $cross_compiling:$ac_tool_warned in
 
6312
yes:)
 
6313
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6314
whose name does not start with the host triplet.  If you think this
 
6315
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6316
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6317
whose name does not start with the host triplet.  If you think this
 
6318
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6319
ac_tool_warned=yes ;;
 
6320
esac
 
6321
    OBJDUMP=$ac_ct_OBJDUMP
 
6322
  fi
 
6323
else
 
6324
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6325
fi
 
6326
 
 
6327
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6328
 
 
6329
 
 
6330
 
 
6331
 
 
6332
 
 
6333
 
 
6334
 
 
6335
 
 
6336
 
 
6337
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
6338
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4283
6339
if test "${lt_cv_deplibs_check_method+set}" = set; then
4284
6340
  echo $ECHO_N "(cached) $ECHO_C" >&6
4285
6341
else
4298
6354
# whether `pass_all' will *always* work, you probably want this one.
4299
6355
 
4300
6356
case $host_os in
4301
 
aix4* | aix5*)
 
6357
aix[4-9]*)
4302
6358
  lt_cv_deplibs_check_method=pass_all
4303
6359
  ;;
4304
6360
 
4320
6376
 
4321
6377
mingw* | pw32*)
4322
6378
  # Base MSYS/MinGW do not provide the 'file' command needed by
4323
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4324
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6379
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6380
  # unless we find 'file', for example because we are cross-compiling.
 
6381
  if ( file / ) >/dev/null 2>&1; then
 
6382
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6383
    lt_cv_file_magic_cmd='func_win32_libid'
 
6384
  else
 
6385
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6386
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6387
  fi
 
6388
  ;;
 
6389
 
 
6390
cegcc)
 
6391
  # use the weaker test based on 'objdump'. See mingw*.
 
6392
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4325
6393
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4326
6394
  ;;
4327
6395
 
4330
6398
  ;;
4331
6399
 
4332
6400
freebsd* | dragonfly*)
4333
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6401
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4334
6402
    case $host_cpu in
4335
6403
    i*86 )
4336
6404
      # Not sure whether the presence of OpenBSD here was a mistake.
4367
6435
  esac
4368
6436
  ;;
4369
6437
 
4370
 
interix3*)
 
6438
interix[3-9]*)
4371
6439
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4372
6440
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4373
6441
  ;;
4388
6456
  ;;
4389
6457
 
4390
6458
netbsd* | netbsdelf*-gnu)
4391
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6459
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4392
6460
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4393
6461
  else
4394
6462
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4401
6469
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4402
6470
  ;;
4403
6471
 
4404
 
nto-qnx*)
4405
 
  lt_cv_deplibs_check_method=unknown
 
6472
*nto* | *qnx*)
 
6473
  lt_cv_deplibs_check_method=pass_all
4406
6474
  ;;
4407
6475
 
4408
6476
openbsd*)
4409
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6477
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4410
6478
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4411
6479
  else
4412
6480
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4417
6485
  lt_cv_deplibs_check_method=pass_all
4418
6486
  ;;
4419
6487
 
 
6488
rdos*)
 
6489
  lt_cv_deplibs_check_method=pass_all
 
6490
  ;;
 
6491
 
4420
6492
solaris*)
4421
6493
  lt_cv_deplibs_check_method=pass_all
4422
6494
  ;;
4423
6495
 
 
6496
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6497
  lt_cv_deplibs_check_method=pass_all
 
6498
  ;;
 
6499
 
4424
6500
sysv4 | sysv4.3*)
4425
6501
  case $host_vendor in
4426
6502
  motorola)
4448
6524
  esac
4449
6525
  ;;
4450
6526
 
4451
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6527
tpf*)
4452
6528
  lt_cv_deplibs_check_method=pass_all
4453
6529
  ;;
4454
6530
esac
4463
6539
 
4464
6540
 
4465
6541
 
 
6542
 
 
6543
 
 
6544
 
 
6545
 
 
6546
 
 
6547
 
 
6548
 
 
6549
 
 
6550
if test -n "$ac_tool_prefix"; then
 
6551
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6552
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6553
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6555
if test "${ac_cv_prog_AR+set}" = set; then
 
6556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6557
else
 
6558
  if test -n "$AR"; then
 
6559
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6560
else
 
6561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6562
for as_dir in $PATH
 
6563
do
 
6564
  IFS=$as_save_IFS
 
6565
  test -z "$as_dir" && as_dir=.
 
6566
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6567
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6568
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6569
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6570
    break 2
 
6571
  fi
 
6572
done
 
6573
done
 
6574
IFS=$as_save_IFS
 
6575
 
 
6576
fi
 
6577
fi
 
6578
AR=$ac_cv_prog_AR
 
6579
if test -n "$AR"; then
 
6580
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6581
echo "${ECHO_T}$AR" >&6; }
 
6582
else
 
6583
  { echo "$as_me:$LINENO: result: no" >&5
 
6584
echo "${ECHO_T}no" >&6; }
 
6585
fi
 
6586
 
 
6587
 
 
6588
fi
 
6589
if test -z "$ac_cv_prog_AR"; then
 
6590
  ac_ct_AR=$AR
 
6591
  # Extract the first word of "ar", so it can be a program name with args.
 
6592
set dummy ar; ac_word=$2
 
6593
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6595
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6597
else
 
6598
  if test -n "$ac_ct_AR"; then
 
6599
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6600
else
 
6601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6602
for as_dir in $PATH
 
6603
do
 
6604
  IFS=$as_save_IFS
 
6605
  test -z "$as_dir" && as_dir=.
 
6606
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6608
    ac_cv_prog_ac_ct_AR="ar"
 
6609
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6610
    break 2
 
6611
  fi
 
6612
done
 
6613
done
 
6614
IFS=$as_save_IFS
 
6615
 
 
6616
fi
 
6617
fi
 
6618
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6619
if test -n "$ac_ct_AR"; then
 
6620
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6621
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6622
else
 
6623
  { echo "$as_me:$LINENO: result: no" >&5
 
6624
echo "${ECHO_T}no" >&6; }
 
6625
fi
 
6626
 
 
6627
  if test "x$ac_ct_AR" = x; then
 
6628
    AR="false"
 
6629
  else
 
6630
    case $cross_compiling:$ac_tool_warned in
 
6631
yes:)
 
6632
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6633
whose name does not start with the host triplet.  If you think this
 
6634
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6635
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6636
whose name does not start with the host triplet.  If you think this
 
6637
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6638
ac_tool_warned=yes ;;
 
6639
esac
 
6640
    AR=$ac_ct_AR
 
6641
  fi
 
6642
else
 
6643
  AR="$ac_cv_prog_AR"
 
6644
fi
 
6645
 
 
6646
test -z "$AR" && AR=ar
 
6647
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6648
 
 
6649
 
 
6650
 
 
6651
 
 
6652
 
 
6653
 
 
6654
 
 
6655
 
 
6656
 
 
6657
 
 
6658
 
 
6659
if test -n "$ac_tool_prefix"; then
 
6660
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6661
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6664
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6666
else
 
6667
  if test -n "$STRIP"; then
 
6668
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6669
else
 
6670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6671
for as_dir in $PATH
 
6672
do
 
6673
  IFS=$as_save_IFS
 
6674
  test -z "$as_dir" && as_dir=.
 
6675
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6676
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6677
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6678
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6679
    break 2
 
6680
  fi
 
6681
done
 
6682
done
 
6683
IFS=$as_save_IFS
 
6684
 
 
6685
fi
 
6686
fi
 
6687
STRIP=$ac_cv_prog_STRIP
 
6688
if test -n "$STRIP"; then
 
6689
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6690
echo "${ECHO_T}$STRIP" >&6; }
 
6691
else
 
6692
  { echo "$as_me:$LINENO: result: no" >&5
 
6693
echo "${ECHO_T}no" >&6; }
 
6694
fi
 
6695
 
 
6696
 
 
6697
fi
 
6698
if test -z "$ac_cv_prog_STRIP"; then
 
6699
  ac_ct_STRIP=$STRIP
 
6700
  # Extract the first word of "strip", so it can be a program name with args.
 
6701
set dummy strip; ac_word=$2
 
6702
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6703
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6704
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6706
else
 
6707
  if test -n "$ac_ct_STRIP"; then
 
6708
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6709
else
 
6710
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6711
for as_dir in $PATH
 
6712
do
 
6713
  IFS=$as_save_IFS
 
6714
  test -z "$as_dir" && as_dir=.
 
6715
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6716
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6717
    ac_cv_prog_ac_ct_STRIP="strip"
 
6718
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6719
    break 2
 
6720
  fi
 
6721
done
 
6722
done
 
6723
IFS=$as_save_IFS
 
6724
 
 
6725
fi
 
6726
fi
 
6727
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6728
if test -n "$ac_ct_STRIP"; then
 
6729
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6730
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6731
else
 
6732
  { echo "$as_me:$LINENO: result: no" >&5
 
6733
echo "${ECHO_T}no" >&6; }
 
6734
fi
 
6735
 
 
6736
  if test "x$ac_ct_STRIP" = x; then
 
6737
    STRIP=":"
 
6738
  else
 
6739
    case $cross_compiling:$ac_tool_warned in
 
6740
yes:)
 
6741
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6742
whose name does not start with the host triplet.  If you think this
 
6743
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6744
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6745
whose name does not start with the host triplet.  If you think this
 
6746
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6747
ac_tool_warned=yes ;;
 
6748
esac
 
6749
    STRIP=$ac_ct_STRIP
 
6750
  fi
 
6751
else
 
6752
  STRIP="$ac_cv_prog_STRIP"
 
6753
fi
 
6754
 
 
6755
test -z "$STRIP" && STRIP=:
 
6756
 
 
6757
 
 
6758
 
 
6759
 
 
6760
 
 
6761
 
 
6762
if test -n "$ac_tool_prefix"; then
 
6763
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6764
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6765
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6767
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6769
else
 
6770
  if test -n "$RANLIB"; then
 
6771
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6772
else
 
6773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6774
for as_dir in $PATH
 
6775
do
 
6776
  IFS=$as_save_IFS
 
6777
  test -z "$as_dir" && as_dir=.
 
6778
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6779
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6780
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6781
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6782
    break 2
 
6783
  fi
 
6784
done
 
6785
done
 
6786
IFS=$as_save_IFS
 
6787
 
 
6788
fi
 
6789
fi
 
6790
RANLIB=$ac_cv_prog_RANLIB
 
6791
if test -n "$RANLIB"; then
 
6792
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6793
echo "${ECHO_T}$RANLIB" >&6; }
 
6794
else
 
6795
  { echo "$as_me:$LINENO: result: no" >&5
 
6796
echo "${ECHO_T}no" >&6; }
 
6797
fi
 
6798
 
 
6799
 
 
6800
fi
 
6801
if test -z "$ac_cv_prog_RANLIB"; then
 
6802
  ac_ct_RANLIB=$RANLIB
 
6803
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6804
set dummy ranlib; ac_word=$2
 
6805
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6806
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6807
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6809
else
 
6810
  if test -n "$ac_ct_RANLIB"; then
 
6811
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6812
else
 
6813
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6814
for as_dir in $PATH
 
6815
do
 
6816
  IFS=$as_save_IFS
 
6817
  test -z "$as_dir" && as_dir=.
 
6818
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6819
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6820
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6821
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6822
    break 2
 
6823
  fi
 
6824
done
 
6825
done
 
6826
IFS=$as_save_IFS
 
6827
 
 
6828
fi
 
6829
fi
 
6830
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6831
if test -n "$ac_ct_RANLIB"; then
 
6832
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6833
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6834
else
 
6835
  { echo "$as_me:$LINENO: result: no" >&5
 
6836
echo "${ECHO_T}no" >&6; }
 
6837
fi
 
6838
 
 
6839
  if test "x$ac_ct_RANLIB" = x; then
 
6840
    RANLIB=":"
 
6841
  else
 
6842
    case $cross_compiling:$ac_tool_warned in
 
6843
yes:)
 
6844
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6845
whose name does not start with the host triplet.  If you think this
 
6846
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6847
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6848
whose name does not start with the host triplet.  If you think this
 
6849
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6850
ac_tool_warned=yes ;;
 
6851
esac
 
6852
    RANLIB=$ac_ct_RANLIB
 
6853
  fi
 
6854
else
 
6855
  RANLIB="$ac_cv_prog_RANLIB"
 
6856
fi
 
6857
 
 
6858
test -z "$RANLIB" && RANLIB=:
 
6859
 
 
6860
 
 
6861
 
 
6862
 
 
6863
 
 
6864
 
 
6865
# Determine commands to create old-style static archives.
 
6866
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6867
old_postinstall_cmds='chmod 644 $oldlib'
 
6868
old_postuninstall_cmds=
 
6869
 
 
6870
if test -n "$RANLIB"; then
 
6871
  case $host_os in
 
6872
  openbsd*)
 
6873
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6874
    ;;
 
6875
  *)
 
6876
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6877
    ;;
 
6878
  esac
 
6879
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6880
fi
 
6881
 
 
6882
 
 
6883
 
 
6884
 
 
6885
 
 
6886
 
 
6887
 
 
6888
 
 
6889
 
 
6890
 
 
6891
 
 
6892
 
 
6893
 
 
6894
 
 
6895
 
 
6896
 
 
6897
 
 
6898
 
 
6899
 
 
6900
 
 
6901
 
 
6902
 
 
6903
 
 
6904
 
 
6905
 
 
6906
 
 
6907
 
 
6908
 
 
6909
 
 
6910
 
 
6911
 
 
6912
 
 
6913
 
 
6914
 
4466
6915
# If no C compiler was specified, use CC.
4467
6916
LTCC=${LTCC-"$CC"}
4468
6917
 
4473
6922
compiler=$CC
4474
6923
 
4475
6924
 
4476
 
# Check whether --enable-libtool-lock was given.
4477
 
if test "${enable_libtool_lock+set}" = set; then
4478
 
  enableval=$enable_libtool_lock;
4479
 
fi
4480
 
 
4481
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4482
 
 
4483
 
# Some flags need to be propagated to the compiler or linker for good
4484
 
# libtool support.
4485
 
case $host in
4486
 
ia64-*-hpux*)
4487
 
  # Find out which ABI we are using.
4488
 
  echo 'int i;' > conftest.$ac_ext
4489
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490
 
  (eval $ac_compile) 2>&5
4491
 
  ac_status=$?
4492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493
 
  (exit $ac_status); }; then
4494
 
    case `/usr/bin/file conftest.$ac_objext` in
4495
 
    *ELF-32*)
4496
 
      HPUX_IA64_MODE="32"
4497
 
      ;;
4498
 
    *ELF-64*)
4499
 
      HPUX_IA64_MODE="64"
4500
 
      ;;
4501
 
    esac
4502
 
  fi
4503
 
  rm -rf conftest*
4504
 
  ;;
4505
 
*-*-irix6*)
4506
 
  # Find out which ABI we are using.
4507
 
  echo '#line 4507 "configure"' > conftest.$ac_ext
4508
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509
 
  (eval $ac_compile) 2>&5
4510
 
  ac_status=$?
4511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512
 
  (exit $ac_status); }; then
4513
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4514
 
    case `/usr/bin/file conftest.$ac_objext` in
4515
 
    *32-bit*)
4516
 
      LD="${LD-ld} -melf32bsmip"
4517
 
      ;;
4518
 
    *N32*)
4519
 
      LD="${LD-ld} -melf32bmipn32"
4520
 
      ;;
4521
 
    *64-bit*)
4522
 
      LD="${LD-ld} -melf64bmip"
4523
 
      ;;
4524
 
    esac
4525
 
   else
4526
 
    case `/usr/bin/file conftest.$ac_objext` in
4527
 
    *32-bit*)
4528
 
      LD="${LD-ld} -32"
4529
 
      ;;
4530
 
    *N32*)
4531
 
      LD="${LD-ld} -n32"
4532
 
      ;;
4533
 
    *64-bit*)
4534
 
      LD="${LD-ld} -64"
4535
 
      ;;
4536
 
    esac
4537
 
   fi
4538
 
  fi
4539
 
  rm -rf conftest*
4540
 
  ;;
4541
 
 
4542
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4543
 
  # Find out which ABI we are using.
4544
 
  echo 'int i;' > conftest.$ac_ext
4545
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546
 
  (eval $ac_compile) 2>&5
4547
 
  ac_status=$?
4548
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
 
  (exit $ac_status); }; then
4550
 
    case `/usr/bin/file conftest.o` in
4551
 
    *32-bit*)
4552
 
      case $host in
4553
 
        x86_64-*linux*)
4554
 
          LD="${LD-ld} -m elf_i386"
4555
 
          ;;
4556
 
        ppc64-*linux*|powerpc64-*linux*)
4557
 
          LD="${LD-ld} -m elf32ppclinux"
4558
 
          ;;
4559
 
        s390x-*linux*)
4560
 
          LD="${LD-ld} -m elf_s390"
4561
 
          ;;
4562
 
        sparc64-*linux*)
4563
 
          LD="${LD-ld} -m elf32_sparc"
4564
 
          ;;
4565
 
      esac
4566
 
      ;;
4567
 
    *64-bit*)
4568
 
      case $host in
4569
 
        x86_64-*linux*)
4570
 
          LD="${LD-ld} -m elf_x86_64"
4571
 
          ;;
4572
 
        ppc*-*linux*|powerpc*-*linux*)
4573
 
          LD="${LD-ld} -m elf64ppc"
4574
 
          ;;
4575
 
        s390*-*linux*)
4576
 
          LD="${LD-ld} -m elf64_s390"
4577
 
          ;;
4578
 
        sparc*-*linux*)
4579
 
          LD="${LD-ld} -m elf64_sparc"
4580
 
          ;;
4581
 
      esac
4582
 
      ;;
4583
 
    esac
4584
 
  fi
4585
 
  rm -rf conftest*
4586
 
  ;;
4587
 
 
4588
 
*-*-sco3.2v5*)
4589
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4590
 
  SAVE_CFLAGS="$CFLAGS"
4591
 
  CFLAGS="$CFLAGS -belf"
4592
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4593
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4594
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4595
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4596
 
else
4597
 
  ac_ext=c
4598
 
ac_cpp='$CPP $CPPFLAGS'
4599
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
 
 
4603
 
     cat >conftest.$ac_ext <<_ACEOF
4604
 
/* confdefs.h.  */
4605
 
_ACEOF
4606
 
cat confdefs.h >>conftest.$ac_ext
4607
 
cat >>conftest.$ac_ext <<_ACEOF
4608
 
/* end confdefs.h.  */
4609
 
 
4610
 
int
4611
 
main ()
4612
 
{
4613
 
 
4614
 
  ;
4615
 
  return 0;
4616
 
}
4617
 
_ACEOF
4618
 
rm -f conftest.$ac_objext conftest$ac_exeext
4619
 
if { (ac_try="$ac_link"
4620
 
case "(($ac_try" in
4621
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622
 
  *) ac_try_echo=$ac_try;;
4623
 
esac
4624
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625
 
  (eval "$ac_link") 2>conftest.er1
4626
 
  ac_status=$?
4627
 
  grep -v '^ *+' conftest.er1 >conftest.err
4628
 
  rm -f conftest.er1
4629
 
  cat conftest.err >&5
4630
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631
 
  (exit $ac_status); } && {
4632
 
         test -z "$ac_c_werror_flag" ||
4633
 
         test ! -s conftest.err
4634
 
       } && test -s conftest$ac_exeext &&
4635
 
       $as_test_x conftest$ac_exeext; then
4636
 
  lt_cv_cc_needs_belf=yes
4637
 
else
4638
 
  echo "$as_me: failed program was:" >&5
4639
 
sed 's/^/| /' conftest.$ac_ext >&5
4640
 
 
4641
 
        lt_cv_cc_needs_belf=no
4642
 
fi
4643
 
 
4644
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4645
 
      conftest$ac_exeext conftest.$ac_ext
4646
 
     ac_ext=c
4647
 
ac_cpp='$CPP $CPPFLAGS'
4648
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651
 
 
4652
 
fi
4653
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4654
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4655
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4656
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4657
 
    CFLAGS="$SAVE_CFLAGS"
4658
 
  fi
4659
 
  ;;
4660
 
sparc*-*solaris*)
4661
 
  # Find out which ABI we are using.
4662
 
  echo 'int i;' > conftest.$ac_ext
4663
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664
 
  (eval $ac_compile) 2>&5
4665
 
  ac_status=$?
4666
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667
 
  (exit $ac_status); }; then
4668
 
    case `/usr/bin/file conftest.o` in
4669
 
    *64-bit*)
4670
 
      case $lt_cv_prog_gnu_ld in
4671
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4672
 
      *)    LD="${LD-ld} -64" ;;
4673
 
      esac
4674
 
      ;;
4675
 
    esac
4676
 
  fi
4677
 
  rm -rf conftest*
4678
 
  ;;
4679
 
 
4680
 
 
4681
 
esac
4682
 
 
4683
 
need_locks="$enable_libtool_lock"
4684
 
 
4685
 
 
4686
 
ac_ext=c
4687
 
ac_cpp='$CPP $CPPFLAGS'
4688
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693
 
# On Suns, sometimes $CPP names a directory.
4694
 
if test -n "$CPP" && test -d "$CPP"; then
4695
 
  CPP=
4696
 
fi
4697
 
if test -z "$CPP"; then
4698
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4699
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4700
 
else
4701
 
      # Double quotes because CPP needs to be expanded
4702
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4703
 
    do
4704
 
      ac_preproc_ok=false
4705
 
for ac_c_preproc_warn_flag in '' yes
4706
 
do
4707
 
  # Use a header file that comes with gcc, so configuring glibc
4708
 
  # with a fresh cross-compiler works.
4709
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710
 
  # <limits.h> exists even on freestanding compilers.
4711
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4712
 
  # not just through cpp. "Syntax error" is here to catch this case.
4713
 
  cat >conftest.$ac_ext <<_ACEOF
4714
 
/* confdefs.h.  */
4715
 
_ACEOF
4716
 
cat confdefs.h >>conftest.$ac_ext
4717
 
cat >>conftest.$ac_ext <<_ACEOF
4718
 
/* end confdefs.h.  */
4719
 
#ifdef __STDC__
4720
 
# include <limits.h>
4721
 
#else
4722
 
# include <assert.h>
4723
 
#endif
4724
 
                     Syntax error
4725
 
_ACEOF
4726
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4727
 
case "(($ac_try" in
4728
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729
 
  *) ac_try_echo=$ac_try;;
4730
 
esac
4731
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733
 
  ac_status=$?
4734
 
  grep -v '^ *+' conftest.er1 >conftest.err
4735
 
  rm -f conftest.er1
4736
 
  cat conftest.err >&5
4737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738
 
  (exit $ac_status); } >/dev/null && {
4739
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740
 
         test ! -s conftest.err
4741
 
       }; then
4742
 
  :
4743
 
else
4744
 
  echo "$as_me: failed program was:" >&5
4745
 
sed 's/^/| /' conftest.$ac_ext >&5
4746
 
 
4747
 
  # Broken: fails on valid input.
4748
 
continue
4749
 
fi
4750
 
 
4751
 
rm -f conftest.err conftest.$ac_ext
4752
 
 
4753
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4754
 
  # can be detected and how.
4755
 
  cat >conftest.$ac_ext <<_ACEOF
4756
 
/* confdefs.h.  */
4757
 
_ACEOF
4758
 
cat confdefs.h >>conftest.$ac_ext
4759
 
cat >>conftest.$ac_ext <<_ACEOF
4760
 
/* end confdefs.h.  */
4761
 
#include <ac_nonexistent.h>
4762
 
_ACEOF
4763
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4764
 
case "(($ac_try" in
4765
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766
 
  *) ac_try_echo=$ac_try;;
4767
 
esac
4768
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770
 
  ac_status=$?
4771
 
  grep -v '^ *+' conftest.er1 >conftest.err
4772
 
  rm -f conftest.er1
4773
 
  cat conftest.err >&5
4774
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775
 
  (exit $ac_status); } >/dev/null && {
4776
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777
 
         test ! -s conftest.err
4778
 
       }; then
4779
 
  # Broken: success on invalid input.
4780
 
continue
4781
 
else
4782
 
  echo "$as_me: failed program was:" >&5
4783
 
sed 's/^/| /' conftest.$ac_ext >&5
4784
 
 
4785
 
  # Passes both tests.
4786
 
ac_preproc_ok=:
4787
 
break
4788
 
fi
4789
 
 
4790
 
rm -f conftest.err conftest.$ac_ext
4791
 
 
4792
 
done
4793
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794
 
rm -f conftest.err conftest.$ac_ext
4795
 
if $ac_preproc_ok; then
4796
 
  break
4797
 
fi
4798
 
 
4799
 
    done
4800
 
    ac_cv_prog_CPP=$CPP
4801
 
 
4802
 
fi
4803
 
  CPP=$ac_cv_prog_CPP
4804
 
else
4805
 
  ac_cv_prog_CPP=$CPP
4806
 
fi
4807
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4808
 
echo "${ECHO_T}$CPP" >&6; }
4809
 
ac_preproc_ok=false
4810
 
for ac_c_preproc_warn_flag in '' yes
4811
 
do
4812
 
  # Use a header file that comes with gcc, so configuring glibc
4813
 
  # with a fresh cross-compiler works.
4814
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815
 
  # <limits.h> exists even on freestanding compilers.
4816
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4817
 
  # not just through cpp. "Syntax error" is here to catch this case.
4818
 
  cat >conftest.$ac_ext <<_ACEOF
4819
 
/* confdefs.h.  */
4820
 
_ACEOF
4821
 
cat confdefs.h >>conftest.$ac_ext
4822
 
cat >>conftest.$ac_ext <<_ACEOF
4823
 
/* end confdefs.h.  */
4824
 
#ifdef __STDC__
4825
 
# include <limits.h>
4826
 
#else
4827
 
# include <assert.h>
4828
 
#endif
4829
 
                     Syntax error
4830
 
_ACEOF
4831
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4832
 
case "(($ac_try" in
4833
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834
 
  *) ac_try_echo=$ac_try;;
4835
 
esac
4836
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838
 
  ac_status=$?
4839
 
  grep -v '^ *+' conftest.er1 >conftest.err
4840
 
  rm -f conftest.er1
4841
 
  cat conftest.err >&5
4842
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843
 
  (exit $ac_status); } >/dev/null && {
4844
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845
 
         test ! -s conftest.err
4846
 
       }; then
4847
 
  :
4848
 
else
4849
 
  echo "$as_me: failed program was:" >&5
4850
 
sed 's/^/| /' conftest.$ac_ext >&5
4851
 
 
4852
 
  # Broken: fails on valid input.
4853
 
continue
4854
 
fi
4855
 
 
4856
 
rm -f conftest.err conftest.$ac_ext
4857
 
 
4858
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4859
 
  # can be detected and how.
4860
 
  cat >conftest.$ac_ext <<_ACEOF
4861
 
/* confdefs.h.  */
4862
 
_ACEOF
4863
 
cat confdefs.h >>conftest.$ac_ext
4864
 
cat >>conftest.$ac_ext <<_ACEOF
4865
 
/* end confdefs.h.  */
4866
 
#include <ac_nonexistent.h>
4867
 
_ACEOF
4868
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4869
 
case "(($ac_try" in
4870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871
 
  *) ac_try_echo=$ac_try;;
4872
 
esac
4873
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875
 
  ac_status=$?
4876
 
  grep -v '^ *+' conftest.er1 >conftest.err
4877
 
  rm -f conftest.er1
4878
 
  cat conftest.err >&5
4879
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880
 
  (exit $ac_status); } >/dev/null && {
4881
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882
 
         test ! -s conftest.err
4883
 
       }; then
4884
 
  # Broken: success on invalid input.
4885
 
continue
4886
 
else
4887
 
  echo "$as_me: failed program was:" >&5
4888
 
sed 's/^/| /' conftest.$ac_ext >&5
4889
 
 
4890
 
  # Passes both tests.
4891
 
ac_preproc_ok=:
4892
 
break
4893
 
fi
4894
 
 
4895
 
rm -f conftest.err conftest.$ac_ext
4896
 
 
4897
 
done
4898
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899
 
rm -f conftest.err conftest.$ac_ext
4900
 
if $ac_preproc_ok; then
4901
 
  :
4902
 
else
4903
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904
 
See \`config.log' for more details." >&5
4905
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906
 
See \`config.log' for more details." >&2;}
4907
 
   { (exit 1); exit 1; }; }
4908
 
fi
4909
 
 
4910
 
ac_ext=c
4911
 
ac_cpp='$CPP $CPPFLAGS'
4912
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915
 
 
4916
 
 
4917
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4918
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4919
 
if test "${ac_cv_header_stdc+set}" = set; then
4920
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4921
 
else
4922
 
  cat >conftest.$ac_ext <<_ACEOF
4923
 
/* confdefs.h.  */
4924
 
_ACEOF
4925
 
cat confdefs.h >>conftest.$ac_ext
4926
 
cat >>conftest.$ac_ext <<_ACEOF
4927
 
/* end confdefs.h.  */
4928
 
#include <stdlib.h>
4929
 
#include <stdarg.h>
4930
 
#include <string.h>
4931
 
#include <float.h>
4932
 
 
4933
 
int
4934
 
main ()
4935
 
{
4936
 
 
4937
 
  ;
4938
 
  return 0;
4939
 
}
4940
 
_ACEOF
4941
 
rm -f conftest.$ac_objext
4942
 
if { (ac_try="$ac_compile"
4943
 
case "(($ac_try" in
4944
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945
 
  *) ac_try_echo=$ac_try;;
4946
 
esac
4947
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948
 
  (eval "$ac_compile") 2>conftest.er1
4949
 
  ac_status=$?
4950
 
  grep -v '^ *+' conftest.er1 >conftest.err
4951
 
  rm -f conftest.er1
4952
 
  cat conftest.err >&5
4953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954
 
  (exit $ac_status); } && {
4955
 
         test -z "$ac_c_werror_flag" ||
4956
 
         test ! -s conftest.err
4957
 
       } && test -s conftest.$ac_objext; then
4958
 
  ac_cv_header_stdc=yes
4959
 
else
4960
 
  echo "$as_me: failed program was:" >&5
4961
 
sed 's/^/| /' conftest.$ac_ext >&5
4962
 
 
4963
 
        ac_cv_header_stdc=no
4964
 
fi
4965
 
 
4966
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967
 
 
4968
 
if test $ac_cv_header_stdc = yes; then
4969
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970
 
  cat >conftest.$ac_ext <<_ACEOF
4971
 
/* confdefs.h.  */
4972
 
_ACEOF
4973
 
cat confdefs.h >>conftest.$ac_ext
4974
 
cat >>conftest.$ac_ext <<_ACEOF
4975
 
/* end confdefs.h.  */
4976
 
#include <string.h>
4977
 
 
4978
 
_ACEOF
4979
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4980
 
  $EGREP "memchr" >/dev/null 2>&1; then
4981
 
  :
4982
 
else
4983
 
  ac_cv_header_stdc=no
4984
 
fi
4985
 
rm -f conftest*
4986
 
 
4987
 
fi
4988
 
 
4989
 
if test $ac_cv_header_stdc = yes; then
4990
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4991
 
  cat >conftest.$ac_ext <<_ACEOF
4992
 
/* confdefs.h.  */
4993
 
_ACEOF
4994
 
cat confdefs.h >>conftest.$ac_ext
4995
 
cat >>conftest.$ac_ext <<_ACEOF
4996
 
/* end confdefs.h.  */
4997
 
#include <stdlib.h>
4998
 
 
4999
 
_ACEOF
5000
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5001
 
  $EGREP "free" >/dev/null 2>&1; then
5002
 
  :
5003
 
else
5004
 
  ac_cv_header_stdc=no
5005
 
fi
5006
 
rm -f conftest*
5007
 
 
5008
 
fi
5009
 
 
5010
 
if test $ac_cv_header_stdc = yes; then
5011
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5012
 
  if test "$cross_compiling" = yes; then
5013
 
  :
5014
 
else
5015
 
  cat >conftest.$ac_ext <<_ACEOF
5016
 
/* confdefs.h.  */
5017
 
_ACEOF
5018
 
cat confdefs.h >>conftest.$ac_ext
5019
 
cat >>conftest.$ac_ext <<_ACEOF
5020
 
/* end confdefs.h.  */
5021
 
#include <ctype.h>
5022
 
#include <stdlib.h>
5023
 
#if ((' ' & 0x0FF) == 0x020)
5024
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5025
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5026
 
#else
5027
 
# define ISLOWER(c) \
5028
 
                   (('a' <= (c) && (c) <= 'i') \
5029
 
                     || ('j' <= (c) && (c) <= 'r') \
5030
 
                     || ('s' <= (c) && (c) <= 'z'))
5031
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5032
 
#endif
5033
 
 
5034
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5035
 
int
5036
 
main ()
5037
 
{
5038
 
  int i;
5039
 
  for (i = 0; i < 256; i++)
5040
 
    if (XOR (islower (i), ISLOWER (i))
5041
 
        || toupper (i) != TOUPPER (i))
5042
 
      return 2;
5043
 
  return 0;
5044
 
}
5045
 
_ACEOF
5046
 
rm -f conftest$ac_exeext
5047
 
if { (ac_try="$ac_link"
5048
 
case "(($ac_try" in
5049
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050
 
  *) ac_try_echo=$ac_try;;
5051
 
esac
5052
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053
 
  (eval "$ac_link") 2>&5
5054
 
  ac_status=$?
5055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057
 
  { (case "(($ac_try" in
5058
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059
 
  *) ac_try_echo=$ac_try;;
5060
 
esac
5061
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062
 
  (eval "$ac_try") 2>&5
5063
 
  ac_status=$?
5064
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065
 
  (exit $ac_status); }; }; then
5066
 
  :
5067
 
else
5068
 
  echo "$as_me: program exited with status $ac_status" >&5
5069
 
echo "$as_me: failed program was:" >&5
5070
 
sed 's/^/| /' conftest.$ac_ext >&5
5071
 
 
5072
 
( exit $ac_status )
5073
 
ac_cv_header_stdc=no
5074
 
fi
5075
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5076
 
fi
5077
 
 
5078
 
 
5079
 
fi
5080
 
fi
5081
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5082
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5083
 
if test $ac_cv_header_stdc = yes; then
5084
 
 
5085
 
cat >>confdefs.h <<\_ACEOF
5086
 
#define STDC_HEADERS 1
5087
 
_ACEOF
5088
 
 
5089
 
fi
5090
 
 
5091
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092
 
 
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
 
5101
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5102
 
                  inttypes.h stdint.h unistd.h
5103
 
do
5104
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5105
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5106
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5109
 
else
5110
 
  cat >conftest.$ac_ext <<_ACEOF
5111
 
/* confdefs.h.  */
5112
 
_ACEOF
5113
 
cat confdefs.h >>conftest.$ac_ext
5114
 
cat >>conftest.$ac_ext <<_ACEOF
5115
 
/* end confdefs.h.  */
5116
 
$ac_includes_default
5117
 
 
5118
 
#include <$ac_header>
5119
 
_ACEOF
5120
 
rm -f conftest.$ac_objext
5121
 
if { (ac_try="$ac_compile"
5122
 
case "(($ac_try" in
5123
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124
 
  *) ac_try_echo=$ac_try;;
5125
 
esac
5126
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127
 
  (eval "$ac_compile") 2>conftest.er1
5128
 
  ac_status=$?
5129
 
  grep -v '^ *+' conftest.er1 >conftest.err
5130
 
  rm -f conftest.er1
5131
 
  cat conftest.err >&5
5132
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133
 
  (exit $ac_status); } && {
5134
 
         test -z "$ac_c_werror_flag" ||
5135
 
         test ! -s conftest.err
5136
 
       } && test -s conftest.$ac_objext; then
5137
 
  eval "$as_ac_Header=yes"
5138
 
else
5139
 
  echo "$as_me: failed program was:" >&5
5140
 
sed 's/^/| /' conftest.$ac_ext >&5
5141
 
 
5142
 
        eval "$as_ac_Header=no"
5143
 
fi
5144
 
 
5145
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146
 
fi
5147
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5148
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5149
 
echo "${ECHO_T}$ac_res" >&6; }
5150
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5151
 
  cat >>confdefs.h <<_ACEOF
5152
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5153
 
_ACEOF
5154
 
 
5155
 
fi
5156
 
 
5157
 
done
5158
 
 
5159
 
 
5160
 
 
5161
 
for ac_header in dlfcn.h
5162
 
do
5163
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5164
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5165
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5166
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5167
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5168
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5169
 
fi
5170
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5171
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5172
 
echo "${ECHO_T}$ac_res" >&6; }
5173
 
else
5174
 
  # Is the header compilable?
5175
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5176
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5177
 
cat >conftest.$ac_ext <<_ACEOF
5178
 
/* confdefs.h.  */
5179
 
_ACEOF
5180
 
cat confdefs.h >>conftest.$ac_ext
5181
 
cat >>conftest.$ac_ext <<_ACEOF
5182
 
/* end confdefs.h.  */
5183
 
$ac_includes_default
5184
 
#include <$ac_header>
5185
 
_ACEOF
5186
 
rm -f conftest.$ac_objext
5187
 
if { (ac_try="$ac_compile"
5188
 
case "(($ac_try" in
5189
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190
 
  *) ac_try_echo=$ac_try;;
5191
 
esac
5192
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193
 
  (eval "$ac_compile") 2>conftest.er1
5194
 
  ac_status=$?
5195
 
  grep -v '^ *+' conftest.er1 >conftest.err
5196
 
  rm -f conftest.er1
5197
 
  cat conftest.err >&5
5198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
 
  (exit $ac_status); } && {
5200
 
         test -z "$ac_c_werror_flag" ||
5201
 
         test ! -s conftest.err
5202
 
       } && test -s conftest.$ac_objext; then
5203
 
  ac_header_compiler=yes
5204
 
else
5205
 
  echo "$as_me: failed program was:" >&5
5206
 
sed 's/^/| /' conftest.$ac_ext >&5
5207
 
 
5208
 
        ac_header_compiler=no
5209
 
fi
5210
 
 
5211
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5214
 
 
5215
 
# Is the header present?
5216
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5218
 
cat >conftest.$ac_ext <<_ACEOF
5219
 
/* confdefs.h.  */
5220
 
_ACEOF
5221
 
cat confdefs.h >>conftest.$ac_ext
5222
 
cat >>conftest.$ac_ext <<_ACEOF
5223
 
/* end confdefs.h.  */
5224
 
#include <$ac_header>
5225
 
_ACEOF
5226
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5227
 
case "(($ac_try" in
5228
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229
 
  *) ac_try_echo=$ac_try;;
5230
 
esac
5231
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5233
 
  ac_status=$?
5234
 
  grep -v '^ *+' conftest.er1 >conftest.err
5235
 
  rm -f conftest.er1
5236
 
  cat conftest.err >&5
5237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238
 
  (exit $ac_status); } >/dev/null && {
5239
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5240
 
         test ! -s conftest.err
5241
 
       }; then
5242
 
  ac_header_preproc=yes
5243
 
else
5244
 
  echo "$as_me: failed program was:" >&5
5245
 
sed 's/^/| /' conftest.$ac_ext >&5
5246
 
 
5247
 
  ac_header_preproc=no
5248
 
fi
5249
 
 
5250
 
rm -f conftest.err conftest.$ac_ext
5251
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5252
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5253
 
 
5254
 
# So?  What about this header?
5255
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5256
 
  yes:no: )
5257
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5258
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5259
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5260
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5261
 
    ac_header_preproc=yes
5262
 
    ;;
5263
 
  no:yes:* )
5264
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5265
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5266
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5267
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5268
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5269
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5270
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5271
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5272
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5273
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5274
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5275
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5276
 
 
5277
 
    ;;
5278
 
esac
5279
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5280
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5281
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5282
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5283
 
else
5284
 
  eval "$as_ac_Header=\$ac_header_preproc"
5285
 
fi
5286
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5287
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5288
 
echo "${ECHO_T}$ac_res" >&6; }
5289
 
 
5290
 
fi
5291
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5292
 
  cat >>confdefs.h <<_ACEOF
5293
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5294
 
_ACEOF
5295
 
 
5296
 
fi
5297
 
 
5298
 
done
5299
 
 
5300
 
ac_ext=cpp
5301
 
ac_cpp='$CXXCPP $CPPFLAGS'
5302
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5305
 
if test -z "$CXX"; then
5306
 
  if test -n "$CCC"; then
5307
 
    CXX=$CCC
5308
 
  else
5309
 
    if test -n "$ac_tool_prefix"; then
5310
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5311
 
  do
5312
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5313
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5314
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5315
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316
 
if test "${ac_cv_prog_CXX+set}" = set; then
5317
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5318
 
else
5319
 
  if test -n "$CXX"; then
5320
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5321
 
else
5322
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323
 
for as_dir in $PATH
5324
 
do
5325
 
  IFS=$as_save_IFS
5326
 
  test -z "$as_dir" && as_dir=.
5327
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5328
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5330
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331
 
    break 2
5332
 
  fi
5333
 
done
5334
 
done
5335
 
IFS=$as_save_IFS
5336
 
 
5337
 
fi
5338
 
fi
5339
 
CXX=$ac_cv_prog_CXX
5340
 
if test -n "$CXX"; then
5341
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
5342
 
echo "${ECHO_T}$CXX" >&6; }
5343
 
else
5344
 
  { echo "$as_me:$LINENO: result: no" >&5
5345
 
echo "${ECHO_T}no" >&6; }
5346
 
fi
5347
 
 
5348
 
 
5349
 
    test -n "$CXX" && break
5350
 
  done
5351
 
fi
5352
 
if test -z "$CXX"; then
5353
 
  ac_ct_CXX=$CXX
5354
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5355
 
do
5356
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5357
 
set dummy $ac_prog; ac_word=$2
5358
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5359
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5360
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5361
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5362
 
else
5363
 
  if test -n "$ac_ct_CXX"; then
5364
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5365
 
else
5366
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367
 
for as_dir in $PATH
5368
 
do
5369
 
  IFS=$as_save_IFS
5370
 
  test -z "$as_dir" && as_dir=.
5371
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5372
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5374
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375
 
    break 2
5376
 
  fi
5377
 
done
5378
 
done
5379
 
IFS=$as_save_IFS
5380
 
 
5381
 
fi
5382
 
fi
5383
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5384
 
if test -n "$ac_ct_CXX"; then
5385
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5386
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5387
 
else
5388
 
  { echo "$as_me:$LINENO: result: no" >&5
5389
 
echo "${ECHO_T}no" >&6; }
5390
 
fi
5391
 
 
5392
 
 
5393
 
  test -n "$ac_ct_CXX" && break
5394
 
done
5395
 
 
5396
 
  if test "x$ac_ct_CXX" = x; then
5397
 
    CXX="g++"
5398
 
  else
5399
 
    case $cross_compiling:$ac_tool_warned in
5400
 
yes:)
5401
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5402
 
whose name does not start with the host triplet.  If you think this
5403
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5404
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5405
 
whose name does not start with the host triplet.  If you think this
5406
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5407
 
ac_tool_warned=yes ;;
5408
 
esac
5409
 
    CXX=$ac_ct_CXX
5410
 
  fi
5411
 
fi
5412
 
 
5413
 
  fi
5414
 
fi
5415
 
# Provide some information about the compiler.
5416
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5417
 
ac_compiler=`set X $ac_compile; echo $2`
5418
 
{ (ac_try="$ac_compiler --version >&5"
5419
 
case "(($ac_try" in
5420
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421
 
  *) ac_try_echo=$ac_try;;
5422
 
esac
5423
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424
 
  (eval "$ac_compiler --version >&5") 2>&5
5425
 
  ac_status=$?
5426
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427
 
  (exit $ac_status); }
5428
 
{ (ac_try="$ac_compiler -v >&5"
5429
 
case "(($ac_try" in
5430
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431
 
  *) ac_try_echo=$ac_try;;
5432
 
esac
5433
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434
 
  (eval "$ac_compiler -v >&5") 2>&5
5435
 
  ac_status=$?
5436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437
 
  (exit $ac_status); }
5438
 
{ (ac_try="$ac_compiler -V >&5"
5439
 
case "(($ac_try" in
5440
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441
 
  *) ac_try_echo=$ac_try;;
5442
 
esac
5443
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444
 
  (eval "$ac_compiler -V >&5") 2>&5
5445
 
  ac_status=$?
5446
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447
 
  (exit $ac_status); }
5448
 
 
5449
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5450
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5451
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5453
 
else
5454
 
  cat >conftest.$ac_ext <<_ACEOF
5455
 
/* confdefs.h.  */
5456
 
_ACEOF
5457
 
cat confdefs.h >>conftest.$ac_ext
5458
 
cat >>conftest.$ac_ext <<_ACEOF
5459
 
/* end confdefs.h.  */
5460
 
 
5461
 
int
5462
 
main ()
5463
 
{
5464
 
#ifndef __GNUC__
5465
 
       choke me
5466
 
#endif
5467
 
 
5468
 
  ;
5469
 
  return 0;
5470
 
}
5471
 
_ACEOF
5472
 
rm -f conftest.$ac_objext
5473
 
if { (ac_try="$ac_compile"
5474
 
case "(($ac_try" in
5475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476
 
  *) ac_try_echo=$ac_try;;
5477
 
esac
5478
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479
 
  (eval "$ac_compile") 2>conftest.er1
5480
 
  ac_status=$?
5481
 
  grep -v '^ *+' conftest.er1 >conftest.err
5482
 
  rm -f conftest.er1
5483
 
  cat conftest.err >&5
5484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485
 
  (exit $ac_status); } && {
5486
 
         test -z "$ac_cxx_werror_flag" ||
5487
 
         test ! -s conftest.err
5488
 
       } && test -s conftest.$ac_objext; then
5489
 
  ac_compiler_gnu=yes
5490
 
else
5491
 
  echo "$as_me: failed program was:" >&5
5492
 
sed 's/^/| /' conftest.$ac_ext >&5
5493
 
 
5494
 
        ac_compiler_gnu=no
5495
 
fi
5496
 
 
5497
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5499
 
 
5500
 
fi
5501
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5502
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5503
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5504
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5505
 
ac_save_CXXFLAGS=$CXXFLAGS
5506
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5507
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5508
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5509
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5510
 
else
5511
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5512
 
   ac_cxx_werror_flag=yes
5513
 
   ac_cv_prog_cxx_g=no
5514
 
   CXXFLAGS="-g"
5515
 
   cat >conftest.$ac_ext <<_ACEOF
5516
 
/* confdefs.h.  */
5517
 
_ACEOF
5518
 
cat confdefs.h >>conftest.$ac_ext
5519
 
cat >>conftest.$ac_ext <<_ACEOF
5520
 
/* end confdefs.h.  */
5521
 
 
5522
 
int
5523
 
main ()
5524
 
{
5525
 
 
5526
 
  ;
5527
 
  return 0;
5528
 
}
5529
 
_ACEOF
5530
 
rm -f conftest.$ac_objext
5531
 
if { (ac_try="$ac_compile"
5532
 
case "(($ac_try" in
5533
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534
 
  *) ac_try_echo=$ac_try;;
5535
 
esac
5536
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537
 
  (eval "$ac_compile") 2>conftest.er1
5538
 
  ac_status=$?
5539
 
  grep -v '^ *+' conftest.er1 >conftest.err
5540
 
  rm -f conftest.er1
5541
 
  cat conftest.err >&5
5542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543
 
  (exit $ac_status); } && {
5544
 
         test -z "$ac_cxx_werror_flag" ||
5545
 
         test ! -s conftest.err
5546
 
       } && test -s conftest.$ac_objext; then
5547
 
  ac_cv_prog_cxx_g=yes
5548
 
else
5549
 
  echo "$as_me: failed program was:" >&5
5550
 
sed 's/^/| /' conftest.$ac_ext >&5
5551
 
 
5552
 
        CXXFLAGS=""
5553
 
      cat >conftest.$ac_ext <<_ACEOF
5554
 
/* confdefs.h.  */
5555
 
_ACEOF
5556
 
cat confdefs.h >>conftest.$ac_ext
5557
 
cat >>conftest.$ac_ext <<_ACEOF
5558
 
/* end confdefs.h.  */
5559
 
 
5560
 
int
5561
 
main ()
5562
 
{
5563
 
 
5564
 
  ;
5565
 
  return 0;
5566
 
}
5567
 
_ACEOF
5568
 
rm -f conftest.$ac_objext
5569
 
if { (ac_try="$ac_compile"
5570
 
case "(($ac_try" in
5571
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572
 
  *) ac_try_echo=$ac_try;;
5573
 
esac
5574
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575
 
  (eval "$ac_compile") 2>conftest.er1
5576
 
  ac_status=$?
5577
 
  grep -v '^ *+' conftest.er1 >conftest.err
5578
 
  rm -f conftest.er1
5579
 
  cat conftest.err >&5
5580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581
 
  (exit $ac_status); } && {
5582
 
         test -z "$ac_cxx_werror_flag" ||
5583
 
         test ! -s conftest.err
5584
 
       } && test -s conftest.$ac_objext; then
5585
 
  :
5586
 
else
5587
 
  echo "$as_me: failed program was:" >&5
5588
 
sed 's/^/| /' conftest.$ac_ext >&5
5589
 
 
5590
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5591
 
         CXXFLAGS="-g"
5592
 
         cat >conftest.$ac_ext <<_ACEOF
5593
 
/* confdefs.h.  */
5594
 
_ACEOF
5595
 
cat confdefs.h >>conftest.$ac_ext
5596
 
cat >>conftest.$ac_ext <<_ACEOF
5597
 
/* end confdefs.h.  */
5598
 
 
5599
 
int
5600
 
main ()
5601
 
{
5602
 
 
5603
 
  ;
5604
 
  return 0;
5605
 
}
5606
 
_ACEOF
5607
 
rm -f conftest.$ac_objext
5608
 
if { (ac_try="$ac_compile"
5609
 
case "(($ac_try" in
5610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611
 
  *) ac_try_echo=$ac_try;;
5612
 
esac
5613
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614
 
  (eval "$ac_compile") 2>conftest.er1
5615
 
  ac_status=$?
5616
 
  grep -v '^ *+' conftest.er1 >conftest.err
5617
 
  rm -f conftest.er1
5618
 
  cat conftest.err >&5
5619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620
 
  (exit $ac_status); } && {
5621
 
         test -z "$ac_cxx_werror_flag" ||
5622
 
         test ! -s conftest.err
5623
 
       } && test -s conftest.$ac_objext; then
5624
 
  ac_cv_prog_cxx_g=yes
5625
 
else
5626
 
  echo "$as_me: failed program was:" >&5
5627
 
sed 's/^/| /' conftest.$ac_ext >&5
5628
 
 
5629
 
 
5630
 
fi
5631
 
 
5632
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633
 
fi
5634
 
 
5635
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636
 
fi
5637
 
 
5638
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5640
 
fi
5641
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5642
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5643
 
if test "$ac_test_CXXFLAGS" = set; then
5644
 
  CXXFLAGS=$ac_save_CXXFLAGS
5645
 
elif test $ac_cv_prog_cxx_g = yes; then
5646
 
  if test "$GXX" = yes; then
5647
 
    CXXFLAGS="-g -O2"
5648
 
  else
5649
 
    CXXFLAGS="-g"
5650
 
  fi
5651
 
else
5652
 
  if test "$GXX" = yes; then
5653
 
    CXXFLAGS="-O2"
5654
 
  else
5655
 
    CXXFLAGS=
5656
 
  fi
5657
 
fi
5658
 
ac_ext=cpp
5659
 
ac_cpp='$CXXCPP $CPPFLAGS'
5660
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5663
 
 
5664
 
depcc="$CXX"  am_compiler_list=
5665
 
 
5666
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5667
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5668
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5669
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5670
 
else
5671
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5672
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5673
 
  # making bogus files that we don't know about and never remove.  For
5674
 
  # instance it was reported that on HP-UX the gcc test will end up
5675
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5676
 
  # in D'.
5677
 
  mkdir conftest.dir
5678
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5679
 
  # using a relative directory.
5680
 
  cp "$am_depcomp" conftest.dir
5681
 
  cd conftest.dir
5682
 
  # We will build objects and dependencies in a subdirectory because
5683
 
  # it helps to detect inapplicable dependency modes.  For instance
5684
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5685
 
  # side effect of compilation, but ICC will put the dependencies in
5686
 
  # the current directory while Tru64 will put them in the object
5687
 
  # directory.
5688
 
  mkdir sub
5689
 
 
5690
 
  am_cv_CXX_dependencies_compiler_type=none
5691
 
  if test "$am_compiler_list" = ""; then
5692
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5693
 
  fi
5694
 
  for depmode in $am_compiler_list; do
5695
 
    # Setup a source with many dependencies, because some compilers
5696
 
    # like to wrap large dependency lists on column 80 (with \), and
5697
 
    # we should not choose a depcomp mode which is confused by this.
5698
 
    #
5699
 
    # We need to recreate these files for each test, as the compiler may
5700
 
    # overwrite some of them when testing with obscure command lines.
5701
 
    # This happens at least with the AIX C compiler.
5702
 
    : > sub/conftest.c
5703
 
    for i in 1 2 3 4 5 6; do
5704
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5705
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5706
 
      # Solaris 8's {/usr,}/bin/sh.
5707
 
      touch sub/conftst$i.h
5708
 
    done
5709
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5710
 
 
5711
 
    case $depmode in
5712
 
    nosideeffect)
5713
 
      # after this tag, mechanisms are not by side-effect, so they'll
5714
 
      # only be used when explicitly requested
5715
 
      if test "x$enable_dependency_tracking" = xyes; then
5716
 
        continue
5717
 
      else
5718
 
        break
5719
 
      fi
5720
 
      ;;
5721
 
    none) break ;;
5722
 
    esac
5723
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5724
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5725
 
    # handle `-M -o', and we need to detect this.
5726
 
    if depmode=$depmode \
5727
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5728
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5729
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5730
 
         >/dev/null 2>conftest.err &&
5731
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5732
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5733
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5734
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5735
 
      # icc doesn't choke on unknown options, it will just issue warnings
5736
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5737
 
      # that says an option was ignored or not supported.
5738
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5739
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5740
 
      # The diagnosis changed in icc 8.0:
5741
 
      #   icc: Command line remark: option '-MP' not supported
5742
 
      if (grep 'ignoring option' conftest.err ||
5743
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5744
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5745
 
        break
5746
 
      fi
5747
 
    fi
5748
 
  done
5749
 
 
5750
 
  cd ..
5751
 
  rm -rf conftest.dir
5752
 
else
5753
 
  am_cv_CXX_dependencies_compiler_type=none
5754
 
fi
5755
 
 
5756
 
fi
5757
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5758
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5759
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5760
 
 
5761
 
 if
5762
 
  test "x$enable_dependency_tracking" != xno \
5763
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5764
 
  am__fastdepCXX_TRUE=
5765
 
  am__fastdepCXX_FALSE='#'
5766
 
else
5767
 
  am__fastdepCXX_TRUE='#'
5768
 
  am__fastdepCXX_FALSE=
5769
 
fi
5770
 
 
5771
 
 
5772
 
 
5773
 
 
5774
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5775
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5776
 
    (test "X$CXX" != "Xg++"))) ; then
5777
 
  ac_ext=cpp
5778
 
ac_cpp='$CXXCPP $CPPFLAGS'
5779
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5782
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5783
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5784
 
if test -z "$CXXCPP"; then
5785
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5786
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5787
 
else
5788
 
      # Double quotes because CXXCPP needs to be expanded
5789
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5790
 
    do
5791
 
      ac_preproc_ok=false
5792
 
for ac_cxx_preproc_warn_flag in '' yes
5793
 
do
5794
 
  # Use a header file that comes with gcc, so configuring glibc
5795
 
  # with a fresh cross-compiler works.
5796
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797
 
  # <limits.h> exists even on freestanding compilers.
5798
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5799
 
  # not just through cpp. "Syntax error" is here to catch this case.
5800
 
  cat >conftest.$ac_ext <<_ACEOF
5801
 
/* confdefs.h.  */
5802
 
_ACEOF
5803
 
cat confdefs.h >>conftest.$ac_ext
5804
 
cat >>conftest.$ac_ext <<_ACEOF
5805
 
/* end confdefs.h.  */
5806
 
#ifdef __STDC__
5807
 
# include <limits.h>
5808
 
#else
5809
 
# include <assert.h>
5810
 
#endif
5811
 
                     Syntax error
5812
 
_ACEOF
5813
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5814
 
case "(($ac_try" in
5815
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816
 
  *) ac_try_echo=$ac_try;;
5817
 
esac
5818
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5820
 
  ac_status=$?
5821
 
  grep -v '^ *+' conftest.er1 >conftest.err
5822
 
  rm -f conftest.er1
5823
 
  cat conftest.err >&5
5824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825
 
  (exit $ac_status); } >/dev/null && {
5826
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827
 
         test ! -s conftest.err
5828
 
       }; then
5829
 
  :
5830
 
else
5831
 
  echo "$as_me: failed program was:" >&5
5832
 
sed 's/^/| /' conftest.$ac_ext >&5
5833
 
 
5834
 
  # Broken: fails on valid input.
5835
 
continue
5836
 
fi
5837
 
 
5838
 
rm -f conftest.err conftest.$ac_ext
5839
 
 
5840
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5841
 
  # can be detected and how.
5842
 
  cat >conftest.$ac_ext <<_ACEOF
5843
 
/* confdefs.h.  */
5844
 
_ACEOF
5845
 
cat confdefs.h >>conftest.$ac_ext
5846
 
cat >>conftest.$ac_ext <<_ACEOF
5847
 
/* end confdefs.h.  */
5848
 
#include <ac_nonexistent.h>
5849
 
_ACEOF
5850
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5851
 
case "(($ac_try" in
5852
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853
 
  *) ac_try_echo=$ac_try;;
5854
 
esac
5855
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857
 
  ac_status=$?
5858
 
  grep -v '^ *+' conftest.er1 >conftest.err
5859
 
  rm -f conftest.er1
5860
 
  cat conftest.err >&5
5861
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862
 
  (exit $ac_status); } >/dev/null && {
5863
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5864
 
         test ! -s conftest.err
5865
 
       }; then
5866
 
  # Broken: success on invalid input.
5867
 
continue
5868
 
else
5869
 
  echo "$as_me: failed program was:" >&5
5870
 
sed 's/^/| /' conftest.$ac_ext >&5
5871
 
 
5872
 
  # Passes both tests.
5873
 
ac_preproc_ok=:
5874
 
break
5875
 
fi
5876
 
 
5877
 
rm -f conftest.err conftest.$ac_ext
5878
 
 
5879
 
done
5880
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5881
 
rm -f conftest.err conftest.$ac_ext
5882
 
if $ac_preproc_ok; then
5883
 
  break
5884
 
fi
5885
 
 
5886
 
    done
5887
 
    ac_cv_prog_CXXCPP=$CXXCPP
5888
 
 
5889
 
fi
5890
 
  CXXCPP=$ac_cv_prog_CXXCPP
5891
 
else
5892
 
  ac_cv_prog_CXXCPP=$CXXCPP
5893
 
fi
5894
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5895
 
echo "${ECHO_T}$CXXCPP" >&6; }
5896
 
ac_preproc_ok=false
5897
 
for ac_cxx_preproc_warn_flag in '' yes
5898
 
do
5899
 
  # Use a header file that comes with gcc, so configuring glibc
5900
 
  # with a fresh cross-compiler works.
5901
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5902
 
  # <limits.h> exists even on freestanding compilers.
5903
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5904
 
  # not just through cpp. "Syntax error" is here to catch this case.
5905
 
  cat >conftest.$ac_ext <<_ACEOF
5906
 
/* confdefs.h.  */
5907
 
_ACEOF
5908
 
cat confdefs.h >>conftest.$ac_ext
5909
 
cat >>conftest.$ac_ext <<_ACEOF
5910
 
/* end confdefs.h.  */
5911
 
#ifdef __STDC__
5912
 
# include <limits.h>
5913
 
#else
5914
 
# include <assert.h>
5915
 
#endif
5916
 
                     Syntax error
5917
 
_ACEOF
5918
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5919
 
case "(($ac_try" in
5920
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921
 
  *) ac_try_echo=$ac_try;;
5922
 
esac
5923
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5925
 
  ac_status=$?
5926
 
  grep -v '^ *+' conftest.er1 >conftest.err
5927
 
  rm -f conftest.er1
5928
 
  cat conftest.err >&5
5929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930
 
  (exit $ac_status); } >/dev/null && {
5931
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5932
 
         test ! -s conftest.err
5933
 
       }; then
5934
 
  :
5935
 
else
5936
 
  echo "$as_me: failed program was:" >&5
5937
 
sed 's/^/| /' conftest.$ac_ext >&5
5938
 
 
5939
 
  # Broken: fails on valid input.
5940
 
continue
5941
 
fi
5942
 
 
5943
 
rm -f conftest.err conftest.$ac_ext
5944
 
 
5945
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5946
 
  # can be detected and how.
5947
 
  cat >conftest.$ac_ext <<_ACEOF
5948
 
/* confdefs.h.  */
5949
 
_ACEOF
5950
 
cat confdefs.h >>conftest.$ac_ext
5951
 
cat >>conftest.$ac_ext <<_ACEOF
5952
 
/* end confdefs.h.  */
5953
 
#include <ac_nonexistent.h>
5954
 
_ACEOF
5955
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5956
 
case "(($ac_try" in
5957
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958
 
  *) ac_try_echo=$ac_try;;
5959
 
esac
5960
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5962
 
  ac_status=$?
5963
 
  grep -v '^ *+' conftest.er1 >conftest.err
5964
 
  rm -f conftest.er1
5965
 
  cat conftest.err >&5
5966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967
 
  (exit $ac_status); } >/dev/null && {
5968
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5969
 
         test ! -s conftest.err
5970
 
       }; then
5971
 
  # Broken: success on invalid input.
5972
 
continue
5973
 
else
5974
 
  echo "$as_me: failed program was:" >&5
5975
 
sed 's/^/| /' conftest.$ac_ext >&5
5976
 
 
5977
 
  # Passes both tests.
5978
 
ac_preproc_ok=:
5979
 
break
5980
 
fi
5981
 
 
5982
 
rm -f conftest.err conftest.$ac_ext
5983
 
 
5984
 
done
5985
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986
 
rm -f conftest.err conftest.$ac_ext
5987
 
if $ac_preproc_ok; then
5988
 
  :
5989
 
else
5990
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5991
 
See \`config.log' for more details." >&5
5992
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5993
 
See \`config.log' for more details." >&2;}
5994
 
   { (exit 1); exit 1; }; }
5995
 
fi
5996
 
 
5997
 
ac_ext=cpp
5998
 
ac_cpp='$CXXCPP $CPPFLAGS'
5999
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6002
 
 
6003
 
fi
6004
 
 
6005
 
 
6006
 
ac_ext=f
6007
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6008
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6010
 
if test -n "$ac_tool_prefix"; then
6011
 
  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
6012
 
  do
6013
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6014
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6015
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6016
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017
 
if test "${ac_cv_prog_F77+set}" = set; then
6018
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6019
 
else
6020
 
  if test -n "$F77"; then
6021
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6022
 
else
6023
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024
 
for as_dir in $PATH
6025
 
do
6026
 
  IFS=$as_save_IFS
6027
 
  test -z "$as_dir" && as_dir=.
6028
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6029
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6031
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032
 
    break 2
6033
 
  fi
6034
 
done
6035
 
done
6036
 
IFS=$as_save_IFS
6037
 
 
6038
 
fi
6039
 
fi
6040
 
F77=$ac_cv_prog_F77
6041
 
if test -n "$F77"; then
6042
 
  { echo "$as_me:$LINENO: result: $F77" >&5
6043
 
echo "${ECHO_T}$F77" >&6; }
6044
 
else
6045
 
  { echo "$as_me:$LINENO: result: no" >&5
6046
 
echo "${ECHO_T}no" >&6; }
6047
 
fi
6048
 
 
6049
 
 
6050
 
    test -n "$F77" && break
6051
 
  done
6052
 
fi
6053
 
if test -z "$F77"; then
6054
 
  ac_ct_F77=$F77
6055
 
  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
6056
 
do
6057
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6058
 
set dummy $ac_prog; ac_word=$2
6059
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6060
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6061
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6063
 
else
6064
 
  if test -n "$ac_ct_F77"; then
6065
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6066
 
else
6067
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068
 
for as_dir in $PATH
6069
 
do
6070
 
  IFS=$as_save_IFS
6071
 
  test -z "$as_dir" && as_dir=.
6072
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6073
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6075
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076
 
    break 2
6077
 
  fi
6078
 
done
6079
 
done
6080
 
IFS=$as_save_IFS
6081
 
 
6082
 
fi
6083
 
fi
6084
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6085
 
if test -n "$ac_ct_F77"; then
6086
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6087
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
6088
 
else
6089
 
  { echo "$as_me:$LINENO: result: no" >&5
6090
 
echo "${ECHO_T}no" >&6; }
6091
 
fi
6092
 
 
6093
 
 
6094
 
  test -n "$ac_ct_F77" && break
6095
 
done
6096
 
 
6097
 
  if test "x$ac_ct_F77" = x; then
6098
 
    F77=""
6099
 
  else
6100
 
    case $cross_compiling:$ac_tool_warned in
6101
 
yes:)
6102
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6103
 
whose name does not start with the host triplet.  If you think this
6104
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6105
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6106
 
whose name does not start with the host triplet.  If you think this
6107
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6108
 
ac_tool_warned=yes ;;
6109
 
esac
6110
 
    F77=$ac_ct_F77
6111
 
  fi
6112
 
fi
6113
 
 
6114
 
 
6115
 
# Provide some information about the compiler.
6116
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6117
 
ac_compiler=`set X $ac_compile; echo $2`
6118
 
{ (ac_try="$ac_compiler --version >&5"
6119
 
case "(($ac_try" in
6120
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121
 
  *) ac_try_echo=$ac_try;;
6122
 
esac
6123
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124
 
  (eval "$ac_compiler --version >&5") 2>&5
6125
 
  ac_status=$?
6126
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127
 
  (exit $ac_status); }
6128
 
{ (ac_try="$ac_compiler -v >&5"
6129
 
case "(($ac_try" in
6130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131
 
  *) ac_try_echo=$ac_try;;
6132
 
esac
6133
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134
 
  (eval "$ac_compiler -v >&5") 2>&5
6135
 
  ac_status=$?
6136
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137
 
  (exit $ac_status); }
6138
 
{ (ac_try="$ac_compiler -V >&5"
6139
 
case "(($ac_try" in
6140
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141
 
  *) ac_try_echo=$ac_try;;
6142
 
esac
6143
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144
 
  (eval "$ac_compiler -V >&5") 2>&5
6145
 
  ac_status=$?
6146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147
 
  (exit $ac_status); }
6148
 
rm -f a.out
6149
 
 
6150
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6151
 
# input file.  (Note that this only needs to work for GNU compilers.)
6152
 
ac_save_ext=$ac_ext
6153
 
ac_ext=F
6154
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6155
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6156
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6157
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6158
 
else
6159
 
  cat >conftest.$ac_ext <<_ACEOF
6160
 
      program main
6161
 
#ifndef __GNUC__
6162
 
       choke me
6163
 
#endif
6164
 
 
6165
 
      end
6166
 
_ACEOF
6167
 
rm -f conftest.$ac_objext
6168
 
if { (ac_try="$ac_compile"
6169
 
case "(($ac_try" in
6170
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171
 
  *) ac_try_echo=$ac_try;;
6172
 
esac
6173
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174
 
  (eval "$ac_compile") 2>conftest.er1
6175
 
  ac_status=$?
6176
 
  grep -v '^ *+' conftest.er1 >conftest.err
6177
 
  rm -f conftest.er1
6178
 
  cat conftest.err >&5
6179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180
 
  (exit $ac_status); } && {
6181
 
         test -z "$ac_f77_werror_flag" ||
6182
 
         test ! -s conftest.err
6183
 
       } && test -s conftest.$ac_objext; then
6184
 
  ac_compiler_gnu=yes
6185
 
else
6186
 
  echo "$as_me: failed program was:" >&5
6187
 
sed 's/^/| /' conftest.$ac_ext >&5
6188
 
 
6189
 
        ac_compiler_gnu=no
6190
 
fi
6191
 
 
6192
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6194
 
 
6195
 
fi
6196
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6197
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6198
 
ac_ext=$ac_save_ext
6199
 
ac_test_FFLAGS=${FFLAGS+set}
6200
 
ac_save_FFLAGS=$FFLAGS
6201
 
FFLAGS=
6202
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6203
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6204
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6206
 
else
6207
 
  FFLAGS=-g
6208
 
cat >conftest.$ac_ext <<_ACEOF
6209
 
      program main
6210
 
 
6211
 
      end
6212
 
_ACEOF
6213
 
rm -f conftest.$ac_objext
6214
 
if { (ac_try="$ac_compile"
6215
 
case "(($ac_try" in
6216
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217
 
  *) ac_try_echo=$ac_try;;
6218
 
esac
6219
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220
 
  (eval "$ac_compile") 2>conftest.er1
6221
 
  ac_status=$?
6222
 
  grep -v '^ *+' conftest.er1 >conftest.err
6223
 
  rm -f conftest.er1
6224
 
  cat conftest.err >&5
6225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226
 
  (exit $ac_status); } && {
6227
 
         test -z "$ac_f77_werror_flag" ||
6228
 
         test ! -s conftest.err
6229
 
       } && test -s conftest.$ac_objext; then
6230
 
  ac_cv_prog_f77_g=yes
6231
 
else
6232
 
  echo "$as_me: failed program was:" >&5
6233
 
sed 's/^/| /' conftest.$ac_ext >&5
6234
 
 
6235
 
        ac_cv_prog_f77_g=no
6236
 
fi
6237
 
 
6238
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239
 
 
6240
 
fi
6241
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6242
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6243
 
if test "$ac_test_FFLAGS" = set; then
6244
 
  FFLAGS=$ac_save_FFLAGS
6245
 
elif test $ac_cv_prog_f77_g = yes; then
6246
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6247
 
    FFLAGS="-g -O2"
6248
 
  else
6249
 
    FFLAGS="-g"
6250
 
  fi
6251
 
else
6252
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6253
 
    FFLAGS="-O2"
6254
 
  else
6255
 
    FFLAGS=
6256
 
  fi
6257
 
fi
6258
 
 
6259
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6260
 
ac_ext=c
6261
 
ac_cpp='$CPP $CPPFLAGS'
6262
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265
 
 
6266
 
 
6267
 
 
6268
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6269
 
 
6270
 
# find the maximum length of command line arguments
6271
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6272
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6273
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6274
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6275
 
else
6276
 
    i=0
6277
 
  teststring="ABCD"
6278
 
 
6279
 
  case $build_os in
6280
 
  msdosdjgpp*)
6281
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6282
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6283
 
    # during glob expansion).  Even if it were fixed, the result of this
6284
 
    # check would be larger than it should be.
6285
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6286
 
    ;;
6287
 
 
6288
 
  gnu*)
6289
 
    # Under GNU Hurd, this test is not required because there is
6290
 
    # no limit to the length of command line arguments.
6291
 
    # Libtool will interpret -1 as no limit whatsoever
6292
 
    lt_cv_sys_max_cmd_len=-1;
6293
 
    ;;
6294
 
 
6295
 
  cygwin* | mingw*)
6296
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6297
 
    # about 5 minutes as the teststring grows exponentially.
6298
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6299
 
    # you end up with a "frozen" computer, even though with patience
6300
 
    # the test eventually succeeds (with a max line length of 256k).
6301
 
    # Instead, let's just punt: use the minimum linelength reported by
6302
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6303
 
    lt_cv_sys_max_cmd_len=8192;
6304
 
    ;;
6305
 
 
6306
 
  amigaos*)
6307
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6308
 
    # So we just punt and use a minimum line length of 8192.
6309
 
    lt_cv_sys_max_cmd_len=8192;
6310
 
    ;;
6311
 
 
6312
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6313
 
    # This has been around since 386BSD, at least.  Likely further.
6314
 
    if test -x /sbin/sysctl; then
6315
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6316
 
    elif test -x /usr/sbin/sysctl; then
6317
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6318
 
    else
6319
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6320
 
    fi
6321
 
    # And add a safety zone
6322
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6323
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6324
 
    ;;
6325
 
 
6326
 
  interix*)
6327
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6328
 
    lt_cv_sys_max_cmd_len=196608
6329
 
    ;;
6330
 
 
6331
 
  osf*)
6332
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6333
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6334
 
    # nice to cause kernel panics so lets avoid the loop below.
6335
 
    # First set a reasonable default.
6336
 
    lt_cv_sys_max_cmd_len=16384
6337
 
    #
6338
 
    if test -x /sbin/sysconfig; then
6339
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6340
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6341
 
      esac
6342
 
    fi
6343
 
    ;;
6344
 
  sco3.2v5*)
6345
 
    lt_cv_sys_max_cmd_len=102400
6346
 
    ;;
6347
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6348
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6349
 
    if test -n "$kargmax"; then
6350
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6351
 
    else
6352
 
      lt_cv_sys_max_cmd_len=32768
6353
 
    fi
6354
 
    ;;
6355
 
  *)
6356
 
    # If test is not a shell built-in, we'll probably end up computing a
6357
 
    # maximum length that is only half of the actual maximum length, but
6358
 
    # we can't tell.
6359
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6360
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6361
 
               = "XX$teststring") >/dev/null 2>&1 &&
6362
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6363
 
            lt_cv_sys_max_cmd_len=$new_result &&
6364
 
            test $i != 17 # 1/2 MB should be enough
6365
 
    do
6366
 
      i=`expr $i + 1`
6367
 
      teststring=$teststring$teststring
6368
 
    done
6369
 
    teststring=
6370
 
    # Add a significant safety factor because C++ compilers can tack on massive
6371
 
    # amounts of additional arguments before passing them to the linker.
6372
 
    # It appears as though 1/2 is a usable value.
6373
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6374
 
    ;;
6375
 
  esac
6376
 
 
6377
 
fi
6378
 
 
6379
 
if test -n $lt_cv_sys_max_cmd_len ; then
6380
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6381
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6382
 
else
6383
 
  { echo "$as_me:$LINENO: result: none" >&5
6384
 
echo "${ECHO_T}none" >&6; }
6385
 
fi
6386
 
 
6387
 
 
6388
 
 
6389
 
 
6390
6925
# Check for command to grab the raw symbol name followed by C symbol from nm.
6391
6926
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6392
6927
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6403
6938
# Regexp to match symbols that can be accessed directly from C.
6404
6939
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6405
6940
 
6406
 
# Transform an extracted symbol line into a proper C declaration
6407
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6408
 
 
6409
 
# Transform an extracted symbol line into symbol name and symbol address
6410
 
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'"
6411
 
 
6412
6941
# Define system-specific variables.
6413
6942
case $host_os in
6414
6943
aix*)
6415
6944
  symcode='[BCDT]'
6416
6945
  ;;
6417
 
cygwin* | mingw* | pw32*)
 
6946
cygwin* | mingw* | pw32* | cegcc*)
6418
6947
  symcode='[ABCDGISTW]'
6419
6948
  ;;
6420
 
hpux*) # Its linker distinguishes data from code symbols
 
6949
hpux*)
6421
6950
  if test "$host_cpu" = ia64; then
6422
6951
    symcode='[ABCDEGRST]'
6423
6952
  fi
6424
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425
 
  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'"
6426
 
  ;;
6427
 
linux* | k*bsd*-gnu)
6428
 
  if test "$host_cpu" = ia64; then
6429
 
    symcode='[ABCDGIRSTW]'
6430
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6431
 
    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'"
6432
 
  fi
6433
6953
  ;;
6434
6954
irix* | nonstopux*)
6435
6955
  symcode='[BCDEGRST]'
6454
6974
  ;;
6455
6975
esac
6456
6976
 
 
6977
# If we're using GNU nm, then use its standard symbol codes.
 
6978
case `$NM -V 2>&1` in
 
6979
*GNU* | *'with BFD'*)
 
6980
  symcode='[ABCDGIRSTW]' ;;
 
6981
esac
 
6982
 
 
6983
# Transform an extracted symbol line into a proper C declaration.
 
6984
# Some systems (esp. on ia64) link data and code symbols differently,
 
6985
# so use this general approach.
 
6986
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6987
 
 
6988
# Transform an extracted symbol line into symbol name and symbol address
 
6989
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6990
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'"
 
6991
 
6457
6992
# Handle CRLF in mingw tool chain
6458
6993
opt_cr=
6459
6994
case $build_os in
6460
6995
mingw*)
6461
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6996
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6462
6997
  ;;
6463
6998
esac
6464
6999
 
6465
 
# If we're using GNU nm, then use its standard symbol codes.
6466
 
case `$NM -V 2>&1` in
6467
 
*GNU* | *'with BFD'*)
6468
 
  symcode='[ABCDGIRSTW]' ;;
6469
 
esac
6470
 
 
6471
 
# Try without a prefix undercore, then with it.
 
7000
# Try without a prefix underscore, then with it.
6472
7001
for ac_symprfx in "" "_"; do
6473
7002
 
6474
7003
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6475
7004
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6476
7005
 
6477
7006
  # Write the raw and C identifiers.
6478
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7007
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7008
    # Fake it for dumpbin and say T for any non-static function
 
7009
    # and D for any global variable.
 
7010
    # Also find C++ and __fastcall symbols from MSVC++,
 
7011
    # which start with @ or ?.
 
7012
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7013
"     {last_section=section; section=\$ 3};"\
 
7014
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7015
"     \$ 0!~/External *\|/{next};"\
 
7016
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7017
"     {if(hide[section]) next};"\
 
7018
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7019
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7020
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7021
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7022
"     ' prfx=^$ac_symprfx"
 
7023
  else
 
7024
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7025
  fi
6479
7026
 
6480
7027
  # Check to see that the pipe works correctly.
6481
7028
  pipe_works=no
6482
7029
 
6483
7030
  rm -f conftest*
6484
 
  cat > conftest.$ac_ext <<EOF
 
7031
  cat > conftest.$ac_ext <<_LT_EOF
6485
7032
#ifdef __cplusplus
6486
7033
extern "C" {
6487
7034
#endif
6488
7035
char nm_test_var;
6489
 
void nm_test_func(){}
 
7036
void nm_test_func(void);
 
7037
void nm_test_func(void){}
6490
7038
#ifdef __cplusplus
6491
7039
}
6492
7040
#endif
6493
7041
int main(){nm_test_var='a';nm_test_func();return(0);}
6494
 
EOF
 
7042
_LT_EOF
6495
7043
 
6496
7044
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6497
7045
  (eval $ac_compile) 2>&5
6513
7061
      fi
6514
7062
 
6515
7063
      # Make sure that we snagged all the symbols we need.
6516
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6517
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6518
 
          cat <<EOF > conftest.$ac_ext
 
7064
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7065
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7066
          cat <<_LT_EOF > conftest.$ac_ext
6519
7067
#ifdef __cplusplus
6520
7068
extern "C" {
6521
7069
#endif
6522
7070
 
6523
 
EOF
 
7071
_LT_EOF
6524
7072
          # Now generate the symbol file.
6525
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6526
 
 
6527
 
          cat <<EOF >> conftest.$ac_ext
6528
 
#if defined (__STDC__) && __STDC__
6529
 
# define lt_ptr_t void *
6530
 
#else
6531
 
# define lt_ptr_t char *
6532
 
# define const
6533
 
#endif
6534
 
 
6535
 
/* The mapping between symbol names and symbols. */
 
7073
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7074
 
 
7075
          cat <<_LT_EOF >> conftest.$ac_ext
 
7076
 
 
7077
/* The mapping between symbol names and symbols.  */
6536
7078
const struct {
6537
7079
  const char *name;
6538
 
  lt_ptr_t address;
 
7080
  void       *address;
6539
7081
}
6540
 
lt_preloaded_symbols[] =
 
7082
lt__PROGRAM__LTX_preloaded_symbols[] =
6541
7083
{
6542
 
EOF
6543
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6544
 
          cat <<\EOF >> conftest.$ac_ext
6545
 
  {0, (lt_ptr_t) 0}
 
7084
  { "@PROGRAM@", (void *) 0 },
 
7085
_LT_EOF
 
7086
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7087
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7088
  {0, (void *) 0}
6546
7089
};
6547
7090
 
 
7091
/* This works around a problem in FreeBSD linker */
 
7092
#ifdef FREEBSD_WORKAROUND
 
7093
static const void *lt_preloaded_setup() {
 
7094
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7095
}
 
7096
#endif
 
7097
 
6548
7098
#ifdef __cplusplus
6549
7099
}
6550
7100
#endif
6551
 
EOF
 
7101
_LT_EOF
6552
7102
          # Now try linking the two files.
6553
7103
          mv conftest.$ac_objext conftstm.$ac_objext
6554
7104
          lt_save_LIBS="$LIBS"
6577
7127
    echo "$progname: failed program was:" >&5
6578
7128
    cat conftest.$ac_ext >&5
6579
7129
  fi
6580
 
  rm -f conftest* conftst*
 
7130
  rm -rf conftest* conftst*
6581
7131
 
6582
7132
  # Do not use the global_symbol_pipe unless it works.
6583
7133
  if test "$pipe_works" = yes; then
6600
7150
echo "${ECHO_T}ok" >&6; }
6601
7151
fi
6602
7152
 
 
7153
 
 
7154
 
 
7155
 
 
7156
 
 
7157
 
 
7158
 
 
7159
 
 
7160
 
 
7161
 
 
7162
 
 
7163
 
 
7164
 
 
7165
 
 
7166
 
 
7167
 
 
7168
 
 
7169
 
 
7170
 
 
7171
 
 
7172
 
 
7173
 
 
7174
# Check whether --enable-libtool-lock was given.
 
7175
if test "${enable_libtool_lock+set}" = set; then
 
7176
  enableval=$enable_libtool_lock;
 
7177
fi
 
7178
 
 
7179
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7180
 
 
7181
# Some flags need to be propagated to the compiler or linker for good
 
7182
# libtool support.
 
7183
case $host in
 
7184
ia64-*-hpux*)
 
7185
  # Find out which ABI we are using.
 
7186
  echo 'int i;' > conftest.$ac_ext
 
7187
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7188
  (eval $ac_compile) 2>&5
 
7189
  ac_status=$?
 
7190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7191
  (exit $ac_status); }; then
 
7192
    case `/usr/bin/file conftest.$ac_objext` in
 
7193
      *ELF-32*)
 
7194
        HPUX_IA64_MODE="32"
 
7195
        ;;
 
7196
      *ELF-64*)
 
7197
        HPUX_IA64_MODE="64"
 
7198
        ;;
 
7199
    esac
 
7200
  fi
 
7201
  rm -rf conftest*
 
7202
  ;;
 
7203
*-*-irix6*)
 
7204
  # Find out which ABI we are using.
 
7205
  echo '#line 7205 "configure"' > conftest.$ac_ext
 
7206
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7207
  (eval $ac_compile) 2>&5
 
7208
  ac_status=$?
 
7209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7210
  (exit $ac_status); }; then
 
7211
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7212
      case `/usr/bin/file conftest.$ac_objext` in
 
7213
        *32-bit*)
 
7214
          LD="${LD-ld} -melf32bsmip"
 
7215
          ;;
 
7216
        *N32*)
 
7217
          LD="${LD-ld} -melf32bmipn32"
 
7218
          ;;
 
7219
        *64-bit*)
 
7220
          LD="${LD-ld} -melf64bmip"
 
7221
        ;;
 
7222
      esac
 
7223
    else
 
7224
      case `/usr/bin/file conftest.$ac_objext` in
 
7225
        *32-bit*)
 
7226
          LD="${LD-ld} -32"
 
7227
          ;;
 
7228
        *N32*)
 
7229
          LD="${LD-ld} -n32"
 
7230
          ;;
 
7231
        *64-bit*)
 
7232
          LD="${LD-ld} -64"
 
7233
          ;;
 
7234
      esac
 
7235
    fi
 
7236
  fi
 
7237
  rm -rf conftest*
 
7238
  ;;
 
7239
 
 
7240
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7241
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7242
  # Find out which ABI we are using.
 
7243
  echo 'int i;' > conftest.$ac_ext
 
7244
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7245
  (eval $ac_compile) 2>&5
 
7246
  ac_status=$?
 
7247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7248
  (exit $ac_status); }; then
 
7249
    case `/usr/bin/file conftest.o` in
 
7250
      *32-bit*)
 
7251
        case $host in
 
7252
          x86_64-*kfreebsd*-gnu)
 
7253
            LD="${LD-ld} -m elf_i386_fbsd"
 
7254
            ;;
 
7255
          x86_64-*linux*)
 
7256
            LD="${LD-ld} -m elf_i386"
 
7257
            ;;
 
7258
          ppc64-*linux*|powerpc64-*linux*)
 
7259
            LD="${LD-ld} -m elf32ppclinux"
 
7260
            ;;
 
7261
          s390x-*linux*)
 
7262
            LD="${LD-ld} -m elf_s390"
 
7263
            ;;
 
7264
          sparc64-*linux*)
 
7265
            LD="${LD-ld} -m elf32_sparc"
 
7266
            ;;
 
7267
        esac
 
7268
        ;;
 
7269
      *64-bit*)
 
7270
        case $host in
 
7271
          x86_64-*kfreebsd*-gnu)
 
7272
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7273
            ;;
 
7274
          x86_64-*linux*)
 
7275
            LD="${LD-ld} -m elf_x86_64"
 
7276
            ;;
 
7277
          ppc*-*linux*|powerpc*-*linux*)
 
7278
            LD="${LD-ld} -m elf64ppc"
 
7279
            ;;
 
7280
          s390*-*linux*|s390*-*tpf*)
 
7281
            LD="${LD-ld} -m elf64_s390"
 
7282
            ;;
 
7283
          sparc*-*linux*)
 
7284
            LD="${LD-ld} -m elf64_sparc"
 
7285
            ;;
 
7286
        esac
 
7287
        ;;
 
7288
    esac
 
7289
  fi
 
7290
  rm -rf conftest*
 
7291
  ;;
 
7292
 
 
7293
*-*-sco3.2v5*)
 
7294
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7295
  SAVE_CFLAGS="$CFLAGS"
 
7296
  CFLAGS="$CFLAGS -belf"
 
7297
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
7298
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
7299
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
7300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7301
else
 
7302
  ac_ext=c
 
7303
ac_cpp='$CPP $CPPFLAGS'
 
7304
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7305
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7306
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7307
 
 
7308
     cat >conftest.$ac_ext <<_ACEOF
 
7309
/* confdefs.h.  */
 
7310
_ACEOF
 
7311
cat confdefs.h >>conftest.$ac_ext
 
7312
cat >>conftest.$ac_ext <<_ACEOF
 
7313
/* end confdefs.h.  */
 
7314
 
 
7315
int
 
7316
main ()
 
7317
{
 
7318
 
 
7319
  ;
 
7320
  return 0;
 
7321
}
 
7322
_ACEOF
 
7323
rm -f conftest.$ac_objext conftest$ac_exeext
 
7324
if { (ac_try="$ac_link"
 
7325
case "(($ac_try" in
 
7326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7327
  *) ac_try_echo=$ac_try;;
 
7328
esac
 
7329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7330
  (eval "$ac_link") 2>conftest.er1
 
7331
  ac_status=$?
 
7332
  grep -v '^ *+' conftest.er1 >conftest.err
 
7333
  rm -f conftest.er1
 
7334
  cat conftest.err >&5
 
7335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7336
  (exit $ac_status); } && {
 
7337
         test -z "$ac_c_werror_flag" ||
 
7338
         test ! -s conftest.err
 
7339
       } && test -s conftest$ac_exeext &&
 
7340
       $as_test_x conftest$ac_exeext; then
 
7341
  lt_cv_cc_needs_belf=yes
 
7342
else
 
7343
  echo "$as_me: failed program was:" >&5
 
7344
sed 's/^/| /' conftest.$ac_ext >&5
 
7345
 
 
7346
        lt_cv_cc_needs_belf=no
 
7347
fi
 
7348
 
 
7349
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7350
      conftest$ac_exeext conftest.$ac_ext
 
7351
     ac_ext=c
 
7352
ac_cpp='$CPP $CPPFLAGS'
 
7353
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7354
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7355
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7356
 
 
7357
fi
 
7358
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7359
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
7360
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7361
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7362
    CFLAGS="$SAVE_CFLAGS"
 
7363
  fi
 
7364
  ;;
 
7365
sparc*-*solaris*)
 
7366
  # Find out which ABI we are using.
 
7367
  echo 'int i;' > conftest.$ac_ext
 
7368
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7369
  (eval $ac_compile) 2>&5
 
7370
  ac_status=$?
 
7371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7372
  (exit $ac_status); }; then
 
7373
    case `/usr/bin/file conftest.o` in
 
7374
    *64-bit*)
 
7375
      case $lt_cv_prog_gnu_ld in
 
7376
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7377
      *)
 
7378
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7379
          LD="${LD-ld} -64"
 
7380
        fi
 
7381
        ;;
 
7382
      esac
 
7383
      ;;
 
7384
    esac
 
7385
  fi
 
7386
  rm -rf conftest*
 
7387
  ;;
 
7388
esac
 
7389
 
 
7390
need_locks="$enable_libtool_lock"
 
7391
 
 
7392
 
 
7393
  case $host_os in
 
7394
    rhapsody* | darwin*)
 
7395
    if test -n "$ac_tool_prefix"; then
 
7396
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7397
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7398
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7400
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7402
else
 
7403
  if test -n "$DSYMUTIL"; then
 
7404
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7405
else
 
7406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7407
for as_dir in $PATH
 
7408
do
 
7409
  IFS=$as_save_IFS
 
7410
  test -z "$as_dir" && as_dir=.
 
7411
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7412
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7413
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7414
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7415
    break 2
 
7416
  fi
 
7417
done
 
7418
done
 
7419
IFS=$as_save_IFS
 
7420
 
 
7421
fi
 
7422
fi
 
7423
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7424
if test -n "$DSYMUTIL"; then
 
7425
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7426
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7427
else
 
7428
  { echo "$as_me:$LINENO: result: no" >&5
 
7429
echo "${ECHO_T}no" >&6; }
 
7430
fi
 
7431
 
 
7432
 
 
7433
fi
 
7434
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7435
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7436
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7437
set dummy dsymutil; ac_word=$2
 
7438
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7439
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7440
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7442
else
 
7443
  if test -n "$ac_ct_DSYMUTIL"; then
 
7444
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7445
else
 
7446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7447
for as_dir in $PATH
 
7448
do
 
7449
  IFS=$as_save_IFS
 
7450
  test -z "$as_dir" && as_dir=.
 
7451
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7453
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7454
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7455
    break 2
 
7456
  fi
 
7457
done
 
7458
done
 
7459
IFS=$as_save_IFS
 
7460
 
 
7461
fi
 
7462
fi
 
7463
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7464
if test -n "$ac_ct_DSYMUTIL"; then
 
7465
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7466
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7467
else
 
7468
  { echo "$as_me:$LINENO: result: no" >&5
 
7469
echo "${ECHO_T}no" >&6; }
 
7470
fi
 
7471
 
 
7472
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7473
    DSYMUTIL=":"
 
7474
  else
 
7475
    case $cross_compiling:$ac_tool_warned in
 
7476
yes:)
 
7477
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7478
whose name does not start with the host triplet.  If you think this
 
7479
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7480
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7481
whose name does not start with the host triplet.  If you think this
 
7482
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7483
ac_tool_warned=yes ;;
 
7484
esac
 
7485
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7486
  fi
 
7487
else
 
7488
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7489
fi
 
7490
 
 
7491
    if test -n "$ac_tool_prefix"; then
 
7492
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7493
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7494
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7496
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7498
else
 
7499
  if test -n "$NMEDIT"; then
 
7500
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7501
else
 
7502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7503
for as_dir in $PATH
 
7504
do
 
7505
  IFS=$as_save_IFS
 
7506
  test -z "$as_dir" && as_dir=.
 
7507
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7508
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7509
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7510
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7511
    break 2
 
7512
  fi
 
7513
done
 
7514
done
 
7515
IFS=$as_save_IFS
 
7516
 
 
7517
fi
 
7518
fi
 
7519
NMEDIT=$ac_cv_prog_NMEDIT
 
7520
if test -n "$NMEDIT"; then
 
7521
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7522
echo "${ECHO_T}$NMEDIT" >&6; }
 
7523
else
 
7524
  { echo "$as_me:$LINENO: result: no" >&5
 
7525
echo "${ECHO_T}no" >&6; }
 
7526
fi
 
7527
 
 
7528
 
 
7529
fi
 
7530
if test -z "$ac_cv_prog_NMEDIT"; then
 
7531
  ac_ct_NMEDIT=$NMEDIT
 
7532
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7533
set dummy nmedit; ac_word=$2
 
7534
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7535
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7536
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7538
else
 
7539
  if test -n "$ac_ct_NMEDIT"; then
 
7540
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7541
else
 
7542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7543
for as_dir in $PATH
 
7544
do
 
7545
  IFS=$as_save_IFS
 
7546
  test -z "$as_dir" && as_dir=.
 
7547
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7548
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7549
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7550
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7551
    break 2
 
7552
  fi
 
7553
done
 
7554
done
 
7555
IFS=$as_save_IFS
 
7556
 
 
7557
fi
 
7558
fi
 
7559
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7560
if test -n "$ac_ct_NMEDIT"; then
 
7561
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7562
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7563
else
 
7564
  { echo "$as_me:$LINENO: result: no" >&5
 
7565
echo "${ECHO_T}no" >&6; }
 
7566
fi
 
7567
 
 
7568
  if test "x$ac_ct_NMEDIT" = x; then
 
7569
    NMEDIT=":"
 
7570
  else
 
7571
    case $cross_compiling:$ac_tool_warned in
 
7572
yes:)
 
7573
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7574
whose name does not start with the host triplet.  If you think this
 
7575
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7576
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7577
whose name does not start with the host triplet.  If you think this
 
7578
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7579
ac_tool_warned=yes ;;
 
7580
esac
 
7581
    NMEDIT=$ac_ct_NMEDIT
 
7582
  fi
 
7583
else
 
7584
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7585
fi
 
7586
 
 
7587
    if test -n "$ac_tool_prefix"; then
 
7588
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7589
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7590
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7591
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7592
if test "${ac_cv_prog_LIPO+set}" = set; then
 
7593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7594
else
 
7595
  if test -n "$LIPO"; then
 
7596
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7597
else
 
7598
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7599
for as_dir in $PATH
 
7600
do
 
7601
  IFS=$as_save_IFS
 
7602
  test -z "$as_dir" && as_dir=.
 
7603
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7604
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7605
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7606
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7607
    break 2
 
7608
  fi
 
7609
done
 
7610
done
 
7611
IFS=$as_save_IFS
 
7612
 
 
7613
fi
 
7614
fi
 
7615
LIPO=$ac_cv_prog_LIPO
 
7616
if test -n "$LIPO"; then
 
7617
  { echo "$as_me:$LINENO: result: $LIPO" >&5
 
7618
echo "${ECHO_T}$LIPO" >&6; }
 
7619
else
 
7620
  { echo "$as_me:$LINENO: result: no" >&5
 
7621
echo "${ECHO_T}no" >&6; }
 
7622
fi
 
7623
 
 
7624
 
 
7625
fi
 
7626
if test -z "$ac_cv_prog_LIPO"; then
 
7627
  ac_ct_LIPO=$LIPO
 
7628
  # Extract the first word of "lipo", so it can be a program name with args.
 
7629
set dummy lipo; ac_word=$2
 
7630
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7631
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7632
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
7633
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7634
else
 
7635
  if test -n "$ac_ct_LIPO"; then
 
7636
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7637
else
 
7638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7639
for as_dir in $PATH
 
7640
do
 
7641
  IFS=$as_save_IFS
 
7642
  test -z "$as_dir" && as_dir=.
 
7643
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7644
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7645
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7646
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7647
    break 2
 
7648
  fi
 
7649
done
 
7650
done
 
7651
IFS=$as_save_IFS
 
7652
 
 
7653
fi
 
7654
fi
 
7655
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7656
if test -n "$ac_ct_LIPO"; then
 
7657
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
7658
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
 
7659
else
 
7660
  { echo "$as_me:$LINENO: result: no" >&5
 
7661
echo "${ECHO_T}no" >&6; }
 
7662
fi
 
7663
 
 
7664
  if test "x$ac_ct_LIPO" = x; then
 
7665
    LIPO=":"
 
7666
  else
 
7667
    case $cross_compiling:$ac_tool_warned in
 
7668
yes:)
 
7669
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7670
whose name does not start with the host triplet.  If you think this
 
7671
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7672
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7673
whose name does not start with the host triplet.  If you think this
 
7674
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7675
ac_tool_warned=yes ;;
 
7676
esac
 
7677
    LIPO=$ac_ct_LIPO
 
7678
  fi
 
7679
else
 
7680
  LIPO="$ac_cv_prog_LIPO"
 
7681
fi
 
7682
 
 
7683
    if test -n "$ac_tool_prefix"; then
 
7684
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7685
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7686
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7688
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
7689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7690
else
 
7691
  if test -n "$OTOOL"; then
 
7692
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7693
else
 
7694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7695
for as_dir in $PATH
 
7696
do
 
7697
  IFS=$as_save_IFS
 
7698
  test -z "$as_dir" && as_dir=.
 
7699
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7700
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7701
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7702
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7703
    break 2
 
7704
  fi
 
7705
done
 
7706
done
 
7707
IFS=$as_save_IFS
 
7708
 
 
7709
fi
 
7710
fi
 
7711
OTOOL=$ac_cv_prog_OTOOL
 
7712
if test -n "$OTOOL"; then
 
7713
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
 
7714
echo "${ECHO_T}$OTOOL" >&6; }
 
7715
else
 
7716
  { echo "$as_me:$LINENO: result: no" >&5
 
7717
echo "${ECHO_T}no" >&6; }
 
7718
fi
 
7719
 
 
7720
 
 
7721
fi
 
7722
if test -z "$ac_cv_prog_OTOOL"; then
 
7723
  ac_ct_OTOOL=$OTOOL
 
7724
  # Extract the first word of "otool", so it can be a program name with args.
 
7725
set dummy otool; ac_word=$2
 
7726
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7727
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7728
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
7729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7730
else
 
7731
  if test -n "$ac_ct_OTOOL"; then
 
7732
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7733
else
 
7734
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7735
for as_dir in $PATH
 
7736
do
 
7737
  IFS=$as_save_IFS
 
7738
  test -z "$as_dir" && as_dir=.
 
7739
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7740
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7741
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7742
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7743
    break 2
 
7744
  fi
 
7745
done
 
7746
done
 
7747
IFS=$as_save_IFS
 
7748
 
 
7749
fi
 
7750
fi
 
7751
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7752
if test -n "$ac_ct_OTOOL"; then
 
7753
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
7754
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
 
7755
else
 
7756
  { echo "$as_me:$LINENO: result: no" >&5
 
7757
echo "${ECHO_T}no" >&6; }
 
7758
fi
 
7759
 
 
7760
  if test "x$ac_ct_OTOOL" = x; then
 
7761
    OTOOL=":"
 
7762
  else
 
7763
    case $cross_compiling:$ac_tool_warned in
 
7764
yes:)
 
7765
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7766
whose name does not start with the host triplet.  If you think this
 
7767
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7768
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7769
whose name does not start with the host triplet.  If you think this
 
7770
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7771
ac_tool_warned=yes ;;
 
7772
esac
 
7773
    OTOOL=$ac_ct_OTOOL
 
7774
  fi
 
7775
else
 
7776
  OTOOL="$ac_cv_prog_OTOOL"
 
7777
fi
 
7778
 
 
7779
    if test -n "$ac_tool_prefix"; then
 
7780
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7781
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7782
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7783
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7784
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
7785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7786
else
 
7787
  if test -n "$OTOOL64"; then
 
7788
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7789
else
 
7790
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7791
for as_dir in $PATH
 
7792
do
 
7793
  IFS=$as_save_IFS
 
7794
  test -z "$as_dir" && as_dir=.
 
7795
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7796
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7797
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7798
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7799
    break 2
 
7800
  fi
 
7801
done
 
7802
done
 
7803
IFS=$as_save_IFS
 
7804
 
 
7805
fi
 
7806
fi
 
7807
OTOOL64=$ac_cv_prog_OTOOL64
 
7808
if test -n "$OTOOL64"; then
 
7809
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
7810
echo "${ECHO_T}$OTOOL64" >&6; }
 
7811
else
 
7812
  { echo "$as_me:$LINENO: result: no" >&5
 
7813
echo "${ECHO_T}no" >&6; }
 
7814
fi
 
7815
 
 
7816
 
 
7817
fi
 
7818
if test -z "$ac_cv_prog_OTOOL64"; then
 
7819
  ac_ct_OTOOL64=$OTOOL64
 
7820
  # Extract the first word of "otool64", so it can be a program name with args.
 
7821
set dummy otool64; ac_word=$2
 
7822
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7823
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7824
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
7825
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7826
else
 
7827
  if test -n "$ac_ct_OTOOL64"; then
 
7828
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7829
else
 
7830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7831
for as_dir in $PATH
 
7832
do
 
7833
  IFS=$as_save_IFS
 
7834
  test -z "$as_dir" && as_dir=.
 
7835
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7836
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7837
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7838
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7839
    break 2
 
7840
  fi
 
7841
done
 
7842
done
 
7843
IFS=$as_save_IFS
 
7844
 
 
7845
fi
 
7846
fi
 
7847
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7848
if test -n "$ac_ct_OTOOL64"; then
 
7849
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
7850
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
 
7851
else
 
7852
  { echo "$as_me:$LINENO: result: no" >&5
 
7853
echo "${ECHO_T}no" >&6; }
 
7854
fi
 
7855
 
 
7856
  if test "x$ac_ct_OTOOL64" = x; then
 
7857
    OTOOL64=":"
 
7858
  else
 
7859
    case $cross_compiling:$ac_tool_warned in
 
7860
yes:)
 
7861
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7862
whose name does not start with the host triplet.  If you think this
 
7863
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7864
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7865
whose name does not start with the host triplet.  If you think this
 
7866
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7867
ac_tool_warned=yes ;;
 
7868
esac
 
7869
    OTOOL64=$ac_ct_OTOOL64
 
7870
  fi
 
7871
else
 
7872
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7873
fi
 
7874
 
 
7875
 
 
7876
 
 
7877
 
 
7878
 
 
7879
 
 
7880
 
 
7881
 
 
7882
 
 
7883
 
 
7884
 
 
7885
 
 
7886
 
 
7887
 
 
7888
 
 
7889
 
 
7890
 
 
7891
 
 
7892
 
 
7893
 
 
7894
 
 
7895
 
 
7896
 
 
7897
 
 
7898
 
 
7899
 
 
7900
 
 
7901
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7902
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7903
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7905
else
 
7906
  lt_cv_apple_cc_single_mod=no
 
7907
      if test -z "${LT_MULTI_MODULE}"; then
 
7908
        # By default we will add the -single_module flag. You can override
 
7909
        # by either setting the environment variable LT_MULTI_MODULE
 
7910
        # non-empty at configure time, or by adding -multi_module to the
 
7911
        # link flags.
 
7912
        rm -rf libconftest.dylib*
 
7913
        echo "int foo(void){return 1;}" > conftest.c
 
7914
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7915
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7916
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7917
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7918
        _lt_result=$?
 
7919
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
7920
          lt_cv_apple_cc_single_mod=yes
 
7921
        else
 
7922
          cat conftest.err >&5
 
7923
        fi
 
7924
        rm -rf libconftest.dylib*
 
7925
        rm -f conftest.*
 
7926
      fi
 
7927
fi
 
7928
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7929
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7930
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7931
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7932
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7934
else
 
7935
  lt_cv_ld_exported_symbols_list=no
 
7936
      save_LDFLAGS=$LDFLAGS
 
7937
      echo "_main" > conftest.sym
 
7938
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7939
      cat >conftest.$ac_ext <<_ACEOF
 
7940
/* confdefs.h.  */
 
7941
_ACEOF
 
7942
cat confdefs.h >>conftest.$ac_ext
 
7943
cat >>conftest.$ac_ext <<_ACEOF
 
7944
/* end confdefs.h.  */
 
7945
 
 
7946
int
 
7947
main ()
 
7948
{
 
7949
 
 
7950
  ;
 
7951
  return 0;
 
7952
}
 
7953
_ACEOF
 
7954
rm -f conftest.$ac_objext conftest$ac_exeext
 
7955
if { (ac_try="$ac_link"
 
7956
case "(($ac_try" in
 
7957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7958
  *) ac_try_echo=$ac_try;;
 
7959
esac
 
7960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7961
  (eval "$ac_link") 2>conftest.er1
 
7962
  ac_status=$?
 
7963
  grep -v '^ *+' conftest.er1 >conftest.err
 
7964
  rm -f conftest.er1
 
7965
  cat conftest.err >&5
 
7966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7967
  (exit $ac_status); } && {
 
7968
         test -z "$ac_c_werror_flag" ||
 
7969
         test ! -s conftest.err
 
7970
       } && test -s conftest$ac_exeext &&
 
7971
       $as_test_x conftest$ac_exeext; then
 
7972
  lt_cv_ld_exported_symbols_list=yes
 
7973
else
 
7974
  echo "$as_me: failed program was:" >&5
 
7975
sed 's/^/| /' conftest.$ac_ext >&5
 
7976
 
 
7977
        lt_cv_ld_exported_symbols_list=no
 
7978
fi
 
7979
 
 
7980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7981
      conftest$ac_exeext conftest.$ac_ext
 
7982
        LDFLAGS="$save_LDFLAGS"
 
7983
 
 
7984
fi
 
7985
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7986
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7987
    case $host_os in
 
7988
    rhapsody* | darwin1.[012])
 
7989
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7990
    darwin1.*)
 
7991
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7992
    darwin*) # darwin 5.x on
 
7993
      # if running on 10.5 or later, the deployment target defaults
 
7994
      # to the OS version, if on x86, and 10.4, the deployment
 
7995
      # target defaults to 10.4. Don't you love it?
 
7996
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7997
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7998
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7999
        10.[012]*)
 
8000
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8001
        10.*)
 
8002
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8003
      esac
 
8004
    ;;
 
8005
  esac
 
8006
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8007
      _lt_dar_single_mod='$single_module'
 
8008
    fi
 
8009
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8010
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8011
    else
 
8012
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8013
    fi
 
8014
    if test "$DSYMUTIL" != ":"; then
 
8015
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8016
    else
 
8017
      _lt_dsymutil=
 
8018
    fi
 
8019
    ;;
 
8020
  esac
 
8021
 
 
8022
 
 
8023
for ac_header in dlfcn.h
 
8024
do
 
8025
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8026
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8027
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8028
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8030
else
 
8031
  cat >conftest.$ac_ext <<_ACEOF
 
8032
/* confdefs.h.  */
 
8033
_ACEOF
 
8034
cat confdefs.h >>conftest.$ac_ext
 
8035
cat >>conftest.$ac_ext <<_ACEOF
 
8036
/* end confdefs.h.  */
 
8037
$ac_includes_default
 
8038
 
 
8039
#include <$ac_header>
 
8040
_ACEOF
 
8041
rm -f conftest.$ac_objext
 
8042
if { (ac_try="$ac_compile"
 
8043
case "(($ac_try" in
 
8044
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8045
  *) ac_try_echo=$ac_try;;
 
8046
esac
 
8047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8048
  (eval "$ac_compile") 2>conftest.er1
 
8049
  ac_status=$?
 
8050
  grep -v '^ *+' conftest.er1 >conftest.err
 
8051
  rm -f conftest.er1
 
8052
  cat conftest.err >&5
 
8053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8054
  (exit $ac_status); } && {
 
8055
         test -z "$ac_c_werror_flag" ||
 
8056
         test ! -s conftest.err
 
8057
       } && test -s conftest.$ac_objext; then
 
8058
  eval "$as_ac_Header=yes"
 
8059
else
 
8060
  echo "$as_me: failed program was:" >&5
 
8061
sed 's/^/| /' conftest.$ac_ext >&5
 
8062
 
 
8063
        eval "$as_ac_Header=no"
 
8064
fi
 
8065
 
 
8066
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8067
fi
 
8068
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8069
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8070
echo "${ECHO_T}$ac_res" >&6; }
 
8071
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8072
  cat >>confdefs.h <<_ACEOF
 
8073
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8074
_ACEOF
 
8075
 
 
8076
fi
 
8077
 
 
8078
done
 
8079
 
 
8080
 
 
8081
 
 
8082
# Set options
 
8083
 
 
8084
 
 
8085
 
 
8086
        enable_dlopen=no
 
8087
 
 
8088
 
 
8089
  enable_win32_dll=no
 
8090
 
 
8091
 
 
8092
            # Check whether --enable-shared was given.
 
8093
if test "${enable_shared+set}" = set; then
 
8094
  enableval=$enable_shared; p=${PACKAGE-default}
 
8095
    case $enableval in
 
8096
    yes) enable_shared=yes ;;
 
8097
    no) enable_shared=no ;;
 
8098
    *)
 
8099
      enable_shared=no
 
8100
      # Look at the argument we got.  We use all the common list separators.
 
8101
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8102
      for pkg in $enableval; do
 
8103
        IFS="$lt_save_ifs"
 
8104
        if test "X$pkg" = "X$p"; then
 
8105
          enable_shared=yes
 
8106
        fi
 
8107
      done
 
8108
      IFS="$lt_save_ifs"
 
8109
      ;;
 
8110
    esac
 
8111
else
 
8112
  enable_shared=yes
 
8113
fi
 
8114
 
 
8115
 
 
8116
 
 
8117
 
 
8118
 
 
8119
 
 
8120
 
 
8121
 
 
8122
 
 
8123
  # Check whether --enable-static was given.
 
8124
if test "${enable_static+set}" = set; then
 
8125
  enableval=$enable_static; p=${PACKAGE-default}
 
8126
    case $enableval in
 
8127
    yes) enable_static=yes ;;
 
8128
    no) enable_static=no ;;
 
8129
    *)
 
8130
     enable_static=no
 
8131
      # Look at the argument we got.  We use all the common list separators.
 
8132
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8133
      for pkg in $enableval; do
 
8134
        IFS="$lt_save_ifs"
 
8135
        if test "X$pkg" = "X$p"; then
 
8136
          enable_static=yes
 
8137
        fi
 
8138
      done
 
8139
      IFS="$lt_save_ifs"
 
8140
      ;;
 
8141
    esac
 
8142
else
 
8143
  enable_static=yes
 
8144
fi
 
8145
 
 
8146
 
 
8147
 
 
8148
 
 
8149
 
 
8150
 
 
8151
 
 
8152
 
 
8153
 
 
8154
 
 
8155
# Check whether --with-pic was given.
 
8156
if test "${with_pic+set}" = set; then
 
8157
  withval=$with_pic; pic_mode="$withval"
 
8158
else
 
8159
  pic_mode=default
 
8160
fi
 
8161
 
 
8162
 
 
8163
test -z "$pic_mode" && pic_mode=default
 
8164
 
 
8165
 
 
8166
 
 
8167
 
 
8168
 
 
8169
 
 
8170
 
 
8171
  # Check whether --enable-fast-install was given.
 
8172
if test "${enable_fast_install+set}" = set; then
 
8173
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
8174
    case $enableval in
 
8175
    yes) enable_fast_install=yes ;;
 
8176
    no) enable_fast_install=no ;;
 
8177
    *)
 
8178
      enable_fast_install=no
 
8179
      # Look at the argument we got.  We use all the common list separators.
 
8180
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8181
      for pkg in $enableval; do
 
8182
        IFS="$lt_save_ifs"
 
8183
        if test "X$pkg" = "X$p"; then
 
8184
          enable_fast_install=yes
 
8185
        fi
 
8186
      done
 
8187
      IFS="$lt_save_ifs"
 
8188
      ;;
 
8189
    esac
 
8190
else
 
8191
  enable_fast_install=yes
 
8192
fi
 
8193
 
 
8194
 
 
8195
 
 
8196
 
 
8197
 
 
8198
 
 
8199
 
 
8200
 
 
8201
 
 
8202
 
 
8203
 
 
8204
# This can be used to rebuild libtool when needed
 
8205
LIBTOOL_DEPS="$ltmain"
 
8206
 
 
8207
# Always use our own libtool.
 
8208
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8209
 
 
8210
 
 
8211
 
 
8212
 
 
8213
 
 
8214
 
 
8215
 
 
8216
 
 
8217
 
 
8218
 
 
8219
 
 
8220
 
 
8221
 
 
8222
 
 
8223
 
 
8224
 
 
8225
 
 
8226
 
 
8227
 
 
8228
 
 
8229
 
 
8230
 
 
8231
 
 
8232
 
 
8233
 
 
8234
test -z "$LN_S" && LN_S="ln -s"
 
8235
 
 
8236
 
 
8237
 
 
8238
 
 
8239
 
 
8240
 
 
8241
 
 
8242
 
 
8243
 
 
8244
 
 
8245
 
 
8246
 
 
8247
 
 
8248
 
 
8249
if test -n "${ZSH_VERSION+set}" ; then
 
8250
   setopt NO_GLOB_SUBST
 
8251
fi
 
8252
 
6603
8253
{ echo "$as_me:$LINENO: checking for objdir" >&5
6604
8254
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6605
8255
if test "${lt_cv_objdir+set}" = set; then
6623
8273
 
6624
8274
 
6625
8275
 
 
8276
cat >>confdefs.h <<_ACEOF
 
8277
#define LT_OBJDIR "$lt_cv_objdir/"
 
8278
_ACEOF
 
8279
 
 
8280
 
 
8281
 
 
8282
 
 
8283
 
 
8284
 
 
8285
 
 
8286
 
 
8287
 
 
8288
 
 
8289
 
 
8290
 
 
8291
 
 
8292
 
 
8293
 
 
8294
 
 
8295
 
6626
8296
case $host_os in
6627
8297
aix3*)
6628
8298
  # AIX sometimes has problems with the GCC collect2 program.  For some
6637
8307
 
6638
8308
# Sed substitution that helps us do robust quoting.  It backslashifies
6639
8309
# metacharacters that are still active within double-quoted strings.
6640
 
Xsed='sed -e 1s/^X//'
6641
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
8310
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6642
8311
 
6643
8312
# Same as above, but do not quote variable references.
6644
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
8313
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6645
8314
 
6646
8315
# Sed substitution to delay expansion of an escaped shell variable in a
6647
8316
# double_quote_subst'ed string.
6648
8317
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6649
8318
 
 
8319
# Sed substitution to delay expansion of an escaped single quote.
 
8320
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
8321
 
6650
8322
# Sed substitution to avoid accidental globbing in evaled expressions
6651
8323
no_glob_subst='s/\*/\\\*/g'
6652
8324
 
6653
 
# Constants:
6654
 
rm="rm -f"
6655
 
 
6656
8325
# Global variables:
6657
 
default_ofile=libtool
 
8326
ofile=libtool
6658
8327
can_build_shared=yes
6659
8328
 
6660
8329
# All known linkers require a `.a' archive for static linking (except MSVC,
6661
8330
# which needs '.lib').
6662
8331
libext=a
6663
 
ltmain="$ac_aux_dir/ltmain.sh"
6664
 
ofile="$default_ofile"
 
8332
 
6665
8333
with_gnu_ld="$lt_cv_prog_gnu_ld"
6666
8334
 
6667
 
if test -n "$ac_tool_prefix"; then
6668
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6669
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6670
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672
 
if test "${ac_cv_prog_AR+set}" = set; then
6673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6674
 
else
6675
 
  if test -n "$AR"; then
6676
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6677
 
else
6678
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679
 
for as_dir in $PATH
6680
 
do
6681
 
  IFS=$as_save_IFS
6682
 
  test -z "$as_dir" && as_dir=.
6683
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6684
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6686
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687
 
    break 2
6688
 
  fi
6689
 
done
6690
 
done
6691
 
IFS=$as_save_IFS
6692
 
 
6693
 
fi
6694
 
fi
6695
 
AR=$ac_cv_prog_AR
6696
 
if test -n "$AR"; then
6697
 
  { echo "$as_me:$LINENO: result: $AR" >&5
6698
 
echo "${ECHO_T}$AR" >&6; }
6699
 
else
6700
 
  { echo "$as_me:$LINENO: result: no" >&5
6701
 
echo "${ECHO_T}no" >&6; }
6702
 
fi
6703
 
 
6704
 
 
6705
 
fi
6706
 
if test -z "$ac_cv_prog_AR"; then
6707
 
  ac_ct_AR=$AR
6708
 
  # Extract the first word of "ar", so it can be a program name with args.
6709
 
set dummy ar; ac_word=$2
6710
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6711
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6713
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6714
 
else
6715
 
  if test -n "$ac_ct_AR"; then
6716
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6717
 
else
6718
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719
 
for as_dir in $PATH
6720
 
do
6721
 
  IFS=$as_save_IFS
6722
 
  test -z "$as_dir" && as_dir=.
6723
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6724
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725
 
    ac_cv_prog_ac_ct_AR="ar"
6726
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727
 
    break 2
6728
 
  fi
6729
 
done
6730
 
done
6731
 
IFS=$as_save_IFS
6732
 
 
6733
 
fi
6734
 
fi
6735
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6736
 
if test -n "$ac_ct_AR"; then
6737
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6738
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
6739
 
else
6740
 
  { echo "$as_me:$LINENO: result: no" >&5
6741
 
echo "${ECHO_T}no" >&6; }
6742
 
fi
6743
 
 
6744
 
  if test "x$ac_ct_AR" = x; then
6745
 
    AR="false"
6746
 
  else
6747
 
    case $cross_compiling:$ac_tool_warned in
6748
 
yes:)
6749
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6750
 
whose name does not start with the host triplet.  If you think this
6751
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6752
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6753
 
whose name does not start with the host triplet.  If you think this
6754
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6755
 
ac_tool_warned=yes ;;
6756
 
esac
6757
 
    AR=$ac_ct_AR
6758
 
  fi
6759
 
else
6760
 
  AR="$ac_cv_prog_AR"
6761
 
fi
6762
 
 
6763
 
if test -n "$ac_tool_prefix"; then
6764
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6765
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6766
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6769
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6770
 
else
6771
 
  if test -n "$RANLIB"; then
6772
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6773
 
else
6774
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775
 
for as_dir in $PATH
6776
 
do
6777
 
  IFS=$as_save_IFS
6778
 
  test -z "$as_dir" && as_dir=.
6779
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6780
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6782
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783
 
    break 2
6784
 
  fi
6785
 
done
6786
 
done
6787
 
IFS=$as_save_IFS
6788
 
 
6789
 
fi
6790
 
fi
6791
 
RANLIB=$ac_cv_prog_RANLIB
6792
 
if test -n "$RANLIB"; then
6793
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6794
 
echo "${ECHO_T}$RANLIB" >&6; }
6795
 
else
6796
 
  { echo "$as_me:$LINENO: result: no" >&5
6797
 
echo "${ECHO_T}no" >&6; }
6798
 
fi
6799
 
 
6800
 
 
6801
 
fi
6802
 
if test -z "$ac_cv_prog_RANLIB"; then
6803
 
  ac_ct_RANLIB=$RANLIB
6804
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6805
 
set dummy ranlib; ac_word=$2
6806
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6809
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6810
 
else
6811
 
  if test -n "$ac_ct_RANLIB"; then
6812
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6813
 
else
6814
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815
 
for as_dir in $PATH
6816
 
do
6817
 
  IFS=$as_save_IFS
6818
 
  test -z "$as_dir" && as_dir=.
6819
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6820
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6822
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823
 
    break 2
6824
 
  fi
6825
 
done
6826
 
done
6827
 
IFS=$as_save_IFS
6828
 
 
6829
 
fi
6830
 
fi
6831
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6832
 
if test -n "$ac_ct_RANLIB"; then
6833
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6834
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6835
 
else
6836
 
  { echo "$as_me:$LINENO: result: no" >&5
6837
 
echo "${ECHO_T}no" >&6; }
6838
 
fi
6839
 
 
6840
 
  if test "x$ac_ct_RANLIB" = x; then
6841
 
    RANLIB=":"
6842
 
  else
6843
 
    case $cross_compiling:$ac_tool_warned in
6844
 
yes:)
6845
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6846
 
whose name does not start with the host triplet.  If you think this
6847
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6848
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6849
 
whose name does not start with the host triplet.  If you think this
6850
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6851
 
ac_tool_warned=yes ;;
6852
 
esac
6853
 
    RANLIB=$ac_ct_RANLIB
6854
 
  fi
6855
 
else
6856
 
  RANLIB="$ac_cv_prog_RANLIB"
6857
 
fi
6858
 
 
6859
 
if test -n "$ac_tool_prefix"; then
6860
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6861
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6862
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6863
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6865
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6866
 
else
6867
 
  if test -n "$STRIP"; then
6868
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6869
 
else
6870
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871
 
for as_dir in $PATH
6872
 
do
6873
 
  IFS=$as_save_IFS
6874
 
  test -z "$as_dir" && as_dir=.
6875
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6876
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6878
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879
 
    break 2
6880
 
  fi
6881
 
done
6882
 
done
6883
 
IFS=$as_save_IFS
6884
 
 
6885
 
fi
6886
 
fi
6887
 
STRIP=$ac_cv_prog_STRIP
6888
 
if test -n "$STRIP"; then
6889
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6890
 
echo "${ECHO_T}$STRIP" >&6; }
6891
 
else
6892
 
  { echo "$as_me:$LINENO: result: no" >&5
6893
 
echo "${ECHO_T}no" >&6; }
6894
 
fi
6895
 
 
6896
 
 
6897
 
fi
6898
 
if test -z "$ac_cv_prog_STRIP"; then
6899
 
  ac_ct_STRIP=$STRIP
6900
 
  # Extract the first word of "strip", so it can be a program name with args.
6901
 
set dummy strip; ac_word=$2
6902
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6906
 
else
6907
 
  if test -n "$ac_ct_STRIP"; then
6908
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6909
 
else
6910
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911
 
for as_dir in $PATH
6912
 
do
6913
 
  IFS=$as_save_IFS
6914
 
  test -z "$as_dir" && as_dir=.
6915
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6916
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917
 
    ac_cv_prog_ac_ct_STRIP="strip"
6918
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919
 
    break 2
6920
 
  fi
6921
 
done
6922
 
done
6923
 
IFS=$as_save_IFS
6924
 
 
6925
 
fi
6926
 
fi
6927
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6928
 
if test -n "$ac_ct_STRIP"; then
6929
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6930
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6931
 
else
6932
 
  { echo "$as_me:$LINENO: result: no" >&5
6933
 
echo "${ECHO_T}no" >&6; }
6934
 
fi
6935
 
 
6936
 
  if test "x$ac_ct_STRIP" = x; then
6937
 
    STRIP=":"
6938
 
  else
6939
 
    case $cross_compiling:$ac_tool_warned in
6940
 
yes:)
6941
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6942
 
whose name does not start with the host triplet.  If you think this
6943
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6944
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6945
 
whose name does not start with the host triplet.  If you think this
6946
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6947
 
ac_tool_warned=yes ;;
6948
 
esac
6949
 
    STRIP=$ac_ct_STRIP
6950
 
  fi
6951
 
else
6952
 
  STRIP="$ac_cv_prog_STRIP"
6953
 
fi
6954
 
 
6955
 
 
6956
8335
old_CC="$CC"
6957
8336
old_CFLAGS="$CFLAGS"
6958
8337
 
6959
8338
# Set sane defaults for various variables
6960
 
test -z "$AR" && AR=ar
6961
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6962
 
test -z "$AS" && AS=as
6963
8339
test -z "$CC" && CC=cc
6964
8340
test -z "$LTCC" && LTCC=$CC
6965
8341
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6966
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6967
8342
test -z "$LD" && LD=ld
6968
 
test -z "$LN_S" && LN_S="ln -s"
6969
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6970
 
test -z "$NM" && NM=nm
6971
 
test -z "$SED" && SED=sed
6972
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6973
 
test -z "$RANLIB" && RANLIB=:
6974
 
test -z "$STRIP" && STRIP=:
6975
8343
test -z "$ac_objext" && ac_objext=o
6976
8344
 
6977
 
# Determine commands to create old-style static archives.
6978
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6979
 
old_postinstall_cmds='chmod 644 $oldlib'
6980
 
old_postuninstall_cmds=
6981
 
 
6982
 
if test -n "$RANLIB"; then
6983
 
  case $host_os in
6984
 
  openbsd*)
6985
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6986
 
    ;;
6987
 
  *)
6988
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6989
 
    ;;
6990
 
  esac
6991
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6992
 
fi
6993
 
 
6994
8345
for cc_temp in $compiler""; do
6995
8346
  case $cc_temp in
6996
8347
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6999
8350
    *) break;;
7000
8351
  esac
7001
8352
done
7002
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8353
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7003
8354
 
7004
8355
 
7005
8356
# Only perform the check for file, if the check method requires it
 
8357
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7006
8358
case $deplibs_check_method in
7007
8359
file_magic*)
7008
8360
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7033
8385
            $EGREP "$file_magic_regex" > /dev/null; then
7034
8386
            :
7035
8387
          else
7036
 
            cat <<EOF 1>&2
 
8388
            cat <<_LT_EOF 1>&2
7037
8389
 
7038
8390
*** Warning: the command libtool uses to detect shared libraries,
7039
8391
*** $file_magic_cmd, produces output that libtool cannot recognize.
7044
8396
*** may want to report the problem to your system manager and/or to
7045
8397
*** bug-libtool@gnu.org
7046
8398
 
7047
 
EOF
 
8399
_LT_EOF
7048
8400
          fi ;;
7049
8401
        esac
7050
8402
      fi
7066
8418
echo "${ECHO_T}no" >&6; }
7067
8419
fi
7068
8420
 
 
8421
 
 
8422
 
 
8423
 
 
8424
 
7069
8425
if test -z "$lt_cv_path_MAGIC_CMD"; then
7070
8426
  if test -n "$ac_tool_prefix"; then
7071
8427
    { echo "$as_me:$LINENO: checking for file" >&5
7095
8451
            $EGREP "$file_magic_regex" > /dev/null; then
7096
8452
            :
7097
8453
          else
7098
 
            cat <<EOF 1>&2
 
8454
            cat <<_LT_EOF 1>&2
7099
8455
 
7100
8456
*** Warning: the command libtool uses to detect shared libraries,
7101
8457
*** $file_magic_cmd, produces output that libtool cannot recognize.
7106
8462
*** may want to report the problem to your system manager and/or to
7107
8463
*** bug-libtool@gnu.org
7108
8464
 
7109
 
EOF
 
8465
_LT_EOF
7110
8466
          fi ;;
7111
8467
        esac
7112
8468
      fi
7128
8484
echo "${ECHO_T}no" >&6; }
7129
8485
fi
7130
8486
 
 
8487
 
7131
8488
  else
7132
8489
    MAGIC_CMD=:
7133
8490
  fi
7137
8494
  ;;
7138
8495
esac
7139
8496
 
7140
 
enable_dlopen=no
7141
 
enable_win32_dll=no
7142
 
 
7143
 
# Check whether --enable-libtool-lock was given.
7144
 
if test "${enable_libtool_lock+set}" = set; then
7145
 
  enableval=$enable_libtool_lock;
7146
 
fi
7147
 
 
7148
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7149
 
 
7150
 
 
7151
 
# Check whether --with-pic was given.
7152
 
if test "${with_pic+set}" = set; then
7153
 
  withval=$with_pic; pic_mode="$withval"
7154
 
else
7155
 
  pic_mode=default
7156
 
fi
7157
 
 
7158
 
test -z "$pic_mode" && pic_mode=default
7159
 
 
7160
8497
# Use C for the default configuration in the libtool script
7161
 
tagname=
 
8498
 
7162
8499
lt_save_CC="$CC"
7163
8500
ac_ext=c
7164
8501
ac_cpp='$CPP $CPPFLAGS'
7175
8512
objext=$objext
7176
8513
 
7177
8514
# Code to be used in simple compile tests
7178
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8515
lt_simple_compile_test_code="int some_variable = 0;"
7179
8516
 
7180
8517
# Code to be used in simple link tests
7181
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
8518
lt_simple_link_test_code='int main(){return(0);}'
 
8519
 
 
8520
 
 
8521
 
 
8522
 
 
8523
 
7182
8524
 
7183
8525
 
7184
8526
# If no C compiler was specified, use CC.
7190
8532
# Allow CC to be a program name with arguments.
7191
8533
compiler=$CC
7192
8534
 
 
8535
# Save the default compiler, since it gets overwritten when the other
 
8536
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
8537
compiler_DEFAULT=$CC
7193
8538
 
7194
8539
# save warnings/boilerplate of simple test code
7195
8540
ac_outfile=conftest.$ac_objext
7196
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
8541
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7197
8542
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7198
8543
_lt_compiler_boilerplate=`cat conftest.err`
7199
 
$rm conftest*
 
8544
$RM conftest*
7200
8545
 
7201
8546
ac_outfile=conftest.$ac_objext
7202
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
8547
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7203
8548
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7204
8549
_lt_linker_boilerplate=`cat conftest.err`
7205
 
$rm conftest*
7206
 
 
7207
 
 
 
8550
$RM -r conftest*
 
8551
 
 
8552
 
 
8553
if test -n "$compiler"; then
7208
8554
 
7209
8555
lt_prog_compiler_no_builtin_flag=
7210
8556
 
7211
8557
if test "$GCC" = yes; then
7212
8558
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7213
8559
 
7214
 
 
7215
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8560
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7216
8561
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7217
8562
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7218
8563
  echo $ECHO_N "(cached) $ECHO_C" >&6
7219
8564
else
7220
8565
  lt_cv_prog_compiler_rtti_exceptions=no
7221
 
  ac_outfile=conftest.$ac_objext
7222
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8566
   ac_outfile=conftest.$ac_objext
 
8567
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7223
8568
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7224
8569
   # Insert the option either (1) after the last *FLAGS variable, or
7225
8570
   # (2) before a word containing "conftest.", or (3) at the end.
7230
8575
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7231
8576
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7232
8577
   -e 's:$: $lt_compiler_flag:'`
7233
 
   (eval echo "\"\$as_me:7233: $lt_compile\"" >&5)
 
8578
   (eval echo "\"\$as_me:8578: $lt_compile\"" >&5)
7234
8579
   (eval "$lt_compile" 2>conftest.err)
7235
8580
   ac_status=$?
7236
8581
   cat conftest.err >&5
7237
 
   echo "$as_me:7237: \$? = $ac_status" >&5
 
8582
   echo "$as_me:8582: \$? = $ac_status" >&5
7238
8583
   if (exit $ac_status) && test -s "$ac_outfile"; then
7239
8584
     # The compiler can only warn and ignore the option if not recognized
7240
8585
     # So say no if there are warnings other than the usual output.
7241
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8586
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7242
8587
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7243
8588
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7244
8589
       lt_cv_prog_compiler_rtti_exceptions=yes
7245
8590
     fi
7246
8591
   fi
7247
 
   $rm conftest*
 
8592
   $RM conftest*
7248
8593
 
7249
8594
fi
7250
8595
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7258
8603
 
7259
8604
fi
7260
8605
 
7261
 
lt_prog_compiler_wl=
 
8606
 
 
8607
 
 
8608
 
 
8609
 
 
8610
 
 
8611
  lt_prog_compiler_wl=
7262
8612
lt_prog_compiler_pic=
7263
8613
lt_prog_compiler_static=
7264
8614
 
7279
8629
      ;;
7280
8630
 
7281
8631
    amigaos*)
7282
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7283
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7284
 
      # like `-m68040'.
7285
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8632
      case $host_cpu in
 
8633
      powerpc)
 
8634
            # see comment about AmigaOS4 .so support
 
8635
            lt_prog_compiler_pic='-fPIC'
 
8636
        ;;
 
8637
      m68k)
 
8638
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8639
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8640
            # like `-m68040'.
 
8641
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8642
        ;;
 
8643
      esac
7286
8644
      ;;
7287
8645
 
7288
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8646
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7289
8647
      # PIC is the default for these OSes.
7290
8648
      ;;
7291
8649
 
7292
 
    mingw* | pw32* | os2*)
 
8650
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7293
8651
      # This hack is so that the source file can tell whether it is being
7294
8652
      # built for inclusion in a dll (and should export symbols for example).
 
8653
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8654
      # (--disable-auto-import) libraries
7295
8655
      lt_prog_compiler_pic='-DDLL_EXPORT'
7296
8656
      ;;
7297
8657
 
7301
8661
      lt_prog_compiler_pic='-fno-common'
7302
8662
      ;;
7303
8663
 
7304
 
    interix3*)
 
8664
    hpux*)
 
8665
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8666
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8667
      # sets the default TLS model and affects inlining.
 
8668
      case $host_cpu in
 
8669
      hppa*64*)
 
8670
        # +Z the default
 
8671
        ;;
 
8672
      *)
 
8673
        lt_prog_compiler_pic='-fPIC'
 
8674
        ;;
 
8675
      esac
 
8676
      ;;
 
8677
 
 
8678
    interix[3-9]*)
7305
8679
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7306
8680
      # Instead, we relocate shared libraries at runtime.
7307
8681
      ;;
7313
8687
      enable_shared=no
7314
8688
      ;;
7315
8689
 
 
8690
    *nto* | *qnx*)
 
8691
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8692
      # it will coredump.
 
8693
      lt_prog_compiler_pic='-fPIC -shared'
 
8694
      ;;
 
8695
 
7316
8696
    sysv4*MP*)
7317
8697
      if test -d /usr/nec; then
7318
8698
        lt_prog_compiler_pic=-Kconform_pic
7319
8699
      fi
7320
8700
      ;;
7321
8701
 
7322
 
    hpux*)
7323
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7324
 
      # not for PA HP-UX.
7325
 
      case $host_cpu in
7326
 
      hppa*64*|ia64*)
7327
 
        # +Z the default
7328
 
        ;;
7329
 
      *)
7330
 
        lt_prog_compiler_pic='-fPIC'
7331
 
        ;;
7332
 
      esac
7333
 
      ;;
7334
 
 
7335
8702
    *)
7336
8703
      lt_prog_compiler_pic='-fPIC'
7337
8704
      ;;
7348
8715
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7349
8716
      fi
7350
8717
      ;;
7351
 
      darwin*)
7352
 
        # PIC is the default on this platform
7353
 
        # Common symbols not allowed in MH_DYLIB files
7354
 
       case $cc_basename in
7355
 
         xlc*)
7356
 
         lt_prog_compiler_pic='-qnocommon'
7357
 
         lt_prog_compiler_wl='-Wl,'
7358
 
         ;;
7359
 
       esac
7360
 
       ;;
7361
8718
 
7362
 
    mingw* | pw32* | os2*)
 
8719
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7363
8720
      # This hack is so that the source file can tell whether it is being
7364
8721
      # built for inclusion in a dll (and should export symbols for example).
7365
8722
      lt_prog_compiler_pic='-DDLL_EXPORT'
7387
8744
      lt_prog_compiler_static='-non_shared'
7388
8745
      ;;
7389
8746
 
7390
 
    newsos6)
7391
 
      lt_prog_compiler_pic='-KPIC'
7392
 
      lt_prog_compiler_static='-Bstatic'
7393
 
      ;;
7394
 
 
7395
8747
    linux* | k*bsd*-gnu)
7396
8748
      case $cc_basename in
7397
 
      icc* | ecc*)
 
8749
      # old Intel for x86_64 which still supported -KPIC.
 
8750
      ecc*)
7398
8751
        lt_prog_compiler_wl='-Wl,'
7399
8752
        lt_prog_compiler_pic='-KPIC'
7400
8753
        lt_prog_compiler_static='-static'
7401
8754
        ;;
 
8755
      # icc used to be incompatible with GCC.
 
8756
      # ICC 10 doesn't accept -KPIC any more.
 
8757
      icc* | ifort*)
 
8758
        lt_prog_compiler_wl='-Wl,'
 
8759
        lt_prog_compiler_pic='-fPIC'
 
8760
        lt_prog_compiler_static='-static'
 
8761
        ;;
 
8762
      # Lahey Fortran 8.1.
 
8763
      lf95*)
 
8764
        lt_prog_compiler_wl='-Wl,'
 
8765
        lt_prog_compiler_pic='--shared'
 
8766
        lt_prog_compiler_static='--static'
 
8767
        ;;
7402
8768
      pgcc* | pgf77* | pgf90* | pgf95*)
7403
8769
        # Portland Group compilers (*not* the Pentium gcc compiler,
7404
8770
        # which looks to be a dead project)
7411
8777
        # All Alpha code is PIC.
7412
8778
        lt_prog_compiler_static='-non_shared'
7413
8779
        ;;
 
8780
      xl*)
 
8781
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
8782
        lt_prog_compiler_wl='-Wl,'
 
8783
        lt_prog_compiler_pic='-qpic'
 
8784
        lt_prog_compiler_static='-qstaticlink'
 
8785
        ;;
 
8786
      *)
 
8787
        case `$CC -V 2>&1 | sed 5q` in
 
8788
        *Sun\ C*)
 
8789
          # Sun C 5.9
 
8790
          lt_prog_compiler_pic='-KPIC'
 
8791
          lt_prog_compiler_static='-Bstatic'
 
8792
          lt_prog_compiler_wl='-Wl,'
 
8793
          ;;
 
8794
        *Sun\ F*)
 
8795
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8796
          lt_prog_compiler_pic='-KPIC'
 
8797
          lt_prog_compiler_static='-Bstatic'
 
8798
          lt_prog_compiler_wl=''
 
8799
          ;;
 
8800
        esac
 
8801
        ;;
7414
8802
      esac
7415
8803
      ;;
7416
8804
 
 
8805
    newsos6)
 
8806
      lt_prog_compiler_pic='-KPIC'
 
8807
      lt_prog_compiler_static='-Bstatic'
 
8808
      ;;
 
8809
 
 
8810
    *nto* | *qnx*)
 
8811
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8812
      # it will coredump.
 
8813
      lt_prog_compiler_pic='-fPIC -shared'
 
8814
      ;;
 
8815
 
7417
8816
    osf3* | osf4* | osf5*)
7418
8817
      lt_prog_compiler_wl='-Wl,'
7419
8818
      # All OSF/1 code is PIC.
7420
8819
      lt_prog_compiler_static='-non_shared'
7421
8820
      ;;
7422
8821
 
 
8822
    rdos*)
 
8823
      lt_prog_compiler_static='-non_shared'
 
8824
      ;;
 
8825
 
7423
8826
    solaris*)
7424
8827
      lt_prog_compiler_pic='-KPIC'
7425
8828
      lt_prog_compiler_static='-Bstatic'
7472
8875
    esac
7473
8876
  fi
7474
8877
 
 
8878
case $host_os in
 
8879
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8880
  *djgpp*)
 
8881
    lt_prog_compiler_pic=
 
8882
    ;;
 
8883
  *)
 
8884
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8885
    ;;
 
8886
esac
7475
8887
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7476
8888
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7477
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
 
8894
 
7478
8895
#
7479
8896
# Check to make sure the PIC flag actually works.
7480
8897
#
7481
8898
if test -n "$lt_prog_compiler_pic"; then
7482
 
 
7483
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8899
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7484
8900
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7485
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8901
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7486
8902
  echo $ECHO_N "(cached) $ECHO_C" >&6
7487
8903
else
7488
 
  lt_prog_compiler_pic_works=no
7489
 
  ac_outfile=conftest.$ac_objext
7490
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8904
  lt_cv_prog_compiler_pic_works=no
 
8905
   ac_outfile=conftest.$ac_objext
 
8906
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7491
8907
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7492
8908
   # Insert the option either (1) after the last *FLAGS variable, or
7493
8909
   # (2) before a word containing "conftest.", or (3) at the end.
7498
8914
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7499
8915
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7500
8916
   -e 's:$: $lt_compiler_flag:'`
7501
 
   (eval echo "\"\$as_me:7501: $lt_compile\"" >&5)
 
8917
   (eval echo "\"\$as_me:8917: $lt_compile\"" >&5)
7502
8918
   (eval "$lt_compile" 2>conftest.err)
7503
8919
   ac_status=$?
7504
8920
   cat conftest.err >&5
7505
 
   echo "$as_me:7505: \$? = $ac_status" >&5
 
8921
   echo "$as_me:8921: \$? = $ac_status" >&5
7506
8922
   if (exit $ac_status) && test -s "$ac_outfile"; then
7507
8923
     # The compiler can only warn and ignore the option if not recognized
7508
8924
     # So say no if there are warnings other than the usual output.
7509
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8925
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7510
8926
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7511
8927
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7512
 
       lt_prog_compiler_pic_works=yes
 
8928
       lt_cv_prog_compiler_pic_works=yes
7513
8929
     fi
7514
8930
   fi
7515
 
   $rm conftest*
 
8931
   $RM conftest*
7516
8932
 
7517
8933
fi
7518
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7519
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
8934
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8935
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7520
8936
 
7521
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8937
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7522
8938
    case $lt_prog_compiler_pic in
7523
8939
     "" | " "*) ;;
7524
8940
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7529
8945
fi
7530
8946
 
7531
8947
fi
7532
 
case $host_os in
7533
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7534
 
  *djgpp*)
7535
 
    lt_prog_compiler_pic=
7536
 
    ;;
7537
 
  *)
7538
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7539
 
    ;;
7540
 
esac
 
8948
 
 
8949
 
 
8950
 
 
8951
 
 
8952
 
7541
8953
 
7542
8954
#
7543
8955
# Check to make sure the static flag actually works.
7545
8957
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7546
8958
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7547
8959
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7548
 
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8960
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7549
8961
  echo $ECHO_N "(cached) $ECHO_C" >&6
7550
8962
else
7551
 
  lt_prog_compiler_static_works=no
 
8963
  lt_cv_prog_compiler_static_works=no
7552
8964
   save_LDFLAGS="$LDFLAGS"
7553
8965
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7554
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8966
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7555
8967
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7556
8968
     # The linker can only warn and ignore the option if not recognized
7557
8969
     # So say no if there are warnings
7558
8970
     if test -s conftest.err; then
7559
8971
       # Append any errors to the config.log.
7560
8972
       cat conftest.err 1>&5
7561
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8973
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7562
8974
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7563
8975
       if diff conftest.exp conftest.er2 >/dev/null; then
7564
 
         lt_prog_compiler_static_works=yes
 
8976
         lt_cv_prog_compiler_static_works=yes
7565
8977
       fi
7566
8978
     else
7567
 
       lt_prog_compiler_static_works=yes
 
8979
       lt_cv_prog_compiler_static_works=yes
7568
8980
     fi
7569
8981
   fi
7570
 
   $rm conftest*
 
8982
   $RM -r conftest*
7571
8983
   LDFLAGS="$save_LDFLAGS"
7572
8984
 
7573
8985
fi
7574
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7575
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
8986
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8987
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7576
8988
 
7577
 
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8989
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7578
8990
    :
7579
8991
else
7580
8992
    lt_prog_compiler_static=
7581
8993
fi
7582
8994
 
7583
8995
 
7584
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7585
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7586
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7587
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7588
 
else
7589
 
  lt_cv_prog_compiler_c_o=no
7590
 
   $rm -r conftest 2>/dev/null
7591
 
   mkdir conftest
7592
 
   cd conftest
7593
 
   mkdir out
7594
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7595
 
 
7596
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7597
 
   # Insert the option either (1) after the last *FLAGS variable, or
7598
 
   # (2) before a word containing "conftest.", or (3) at the end.
7599
 
   # Note that $ac_compile itself does not contain backslashes and begins
7600
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7601
 
   lt_compile=`echo "$ac_compile" | $SED \
7602
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7603
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7604
 
   -e 's:$: $lt_compiler_flag:'`
7605
 
   (eval echo "\"\$as_me:7605: $lt_compile\"" >&5)
7606
 
   (eval "$lt_compile" 2>out/conftest.err)
7607
 
   ac_status=$?
7608
 
   cat out/conftest.err >&5
7609
 
   echo "$as_me:7609: \$? = $ac_status" >&5
7610
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7611
 
   then
7612
 
     # The compiler can only warn and ignore the option if not recognized
7613
 
     # So say no if there are warnings
7614
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7615
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7616
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7617
 
       lt_cv_prog_compiler_c_o=yes
7618
 
     fi
7619
 
   fi
7620
 
   chmod u+w . 2>&5
7621
 
   $rm conftest*
7622
 
   # SGI C++ compiler will create directory out/ii_files/ for
7623
 
   # template instantiation
7624
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7625
 
   $rm out/* && rmdir out
7626
 
   cd ..
7627
 
   rmdir conftest
7628
 
   $rm conftest*
7629
 
 
7630
 
fi
7631
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7632
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8996
 
 
8997
 
 
8998
 
 
8999
 
 
9000
 
 
9001
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9002
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
9003
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9005
else
 
9006
  lt_cv_prog_compiler_c_o=no
 
9007
   $RM -r conftest 2>/dev/null
 
9008
   mkdir conftest
 
9009
   cd conftest
 
9010
   mkdir out
 
9011
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9012
 
 
9013
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9014
   # Insert the option either (1) after the last *FLAGS variable, or
 
9015
   # (2) before a word containing "conftest.", or (3) at the end.
 
9016
   # Note that $ac_compile itself does not contain backslashes and begins
 
9017
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9018
   lt_compile=`echo "$ac_compile" | $SED \
 
9019
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9020
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9021
   -e 's:$: $lt_compiler_flag:'`
 
9022
   (eval echo "\"\$as_me:9022: $lt_compile\"" >&5)
 
9023
   (eval "$lt_compile" 2>out/conftest.err)
 
9024
   ac_status=$?
 
9025
   cat out/conftest.err >&5
 
9026
   echo "$as_me:9026: \$? = $ac_status" >&5
 
9027
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9028
   then
 
9029
     # The compiler can only warn and ignore the option if not recognized
 
9030
     # So say no if there are warnings
 
9031
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9032
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9033
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9034
       lt_cv_prog_compiler_c_o=yes
 
9035
     fi
 
9036
   fi
 
9037
   chmod u+w . 2>&5
 
9038
   $RM conftest*
 
9039
   # SGI C++ compiler will create directory out/ii_files/ for
 
9040
   # template instantiation
 
9041
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9042
   $RM out/* && rmdir out
 
9043
   cd ..
 
9044
   $RM -r conftest
 
9045
   $RM conftest*
 
9046
 
 
9047
fi
 
9048
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9049
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9050
 
 
9051
 
 
9052
 
 
9053
 
 
9054
 
 
9055
 
 
9056
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9057
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
9058
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9060
else
 
9061
  lt_cv_prog_compiler_c_o=no
 
9062
   $RM -r conftest 2>/dev/null
 
9063
   mkdir conftest
 
9064
   cd conftest
 
9065
   mkdir out
 
9066
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9067
 
 
9068
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9069
   # Insert the option either (1) after the last *FLAGS variable, or
 
9070
   # (2) before a word containing "conftest.", or (3) at the end.
 
9071
   # Note that $ac_compile itself does not contain backslashes and begins
 
9072
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9073
   lt_compile=`echo "$ac_compile" | $SED \
 
9074
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9075
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9076
   -e 's:$: $lt_compiler_flag:'`
 
9077
   (eval echo "\"\$as_me:9077: $lt_compile\"" >&5)
 
9078
   (eval "$lt_compile" 2>out/conftest.err)
 
9079
   ac_status=$?
 
9080
   cat out/conftest.err >&5
 
9081
   echo "$as_me:9081: \$? = $ac_status" >&5
 
9082
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9083
   then
 
9084
     # The compiler can only warn and ignore the option if not recognized
 
9085
     # So say no if there are warnings
 
9086
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9087
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9088
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9089
       lt_cv_prog_compiler_c_o=yes
 
9090
     fi
 
9091
   fi
 
9092
   chmod u+w . 2>&5
 
9093
   $RM conftest*
 
9094
   # SGI C++ compiler will create directory out/ii_files/ for
 
9095
   # template instantiation
 
9096
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9097
   $RM out/* && rmdir out
 
9098
   cd ..
 
9099
   $RM -r conftest
 
9100
   $RM conftest*
 
9101
 
 
9102
fi
 
9103
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9104
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9105
 
 
9106
 
7633
9107
 
7634
9108
 
7635
9109
hard_links="nottested"
7638
9112
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7639
9113
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7640
9114
  hard_links=yes
7641
 
  $rm conftest*
 
9115
  $RM conftest*
7642
9116
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7643
9117
  touch conftest.a
7644
9118
  ln conftest.a conftest.b 2>&5 || hard_links=no
7654
9128
  need_locks=no
7655
9129
fi
7656
9130
 
7657
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9131
 
 
9132
 
 
9133
 
 
9134
 
 
9135
 
 
9136
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7658
9137
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7659
9138
 
7660
9139
  runpath_var=
7661
9140
  allow_undefined_flag=
7662
 
  enable_shared_with_static_runtimes=no
 
9141
  always_export_symbols=no
7663
9142
  archive_cmds=
7664
9143
  archive_expsym_cmds=
7665
 
  old_archive_From_new_cmds=
7666
 
  old_archive_from_expsyms_cmds=
 
9144
  compiler_needs_object=no
 
9145
  enable_shared_with_static_runtimes=no
7667
9146
  export_dynamic_flag_spec=
7668
 
  whole_archive_flag_spec=
7669
 
  thread_safe_flag_spec=
 
9147
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9148
  hardcode_automatic=no
 
9149
  hardcode_direct=no
 
9150
  hardcode_direct_absolute=no
7670
9151
  hardcode_libdir_flag_spec=
7671
9152
  hardcode_libdir_flag_spec_ld=
7672
9153
  hardcode_libdir_separator=
7673
 
  hardcode_direct=no
7674
9154
  hardcode_minus_L=no
7675
9155
  hardcode_shlibpath_var=unsupported
 
9156
  inherit_rpath=no
7676
9157
  link_all_deplibs=unknown
7677
 
  hardcode_automatic=no
7678
9158
  module_cmds=
7679
9159
  module_expsym_cmds=
7680
 
  always_export_symbols=no
7681
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9160
  old_archive_from_new_cmds=
 
9161
  old_archive_from_expsyms_cmds=
 
9162
  thread_safe_flag_spec=
 
9163
  whole_archive_flag_spec=
7682
9164
  # include_expsyms should be a list of space-separated symbols to be *always*
7683
9165
  # included in the symbol list
7684
9166
  include_expsyms=
7686
9168
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7687
9169
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7688
9170
  # as well as any symbol that contains `d'.
7689
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
9171
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7690
9172
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7691
9173
  # platforms (ab)use it in PIC code, but their linkers get confused if
7692
9174
  # the symbol is explicitly referenced.  Since portable code cannot
7693
9175
  # rely on this symbol name, it's probably fine to never include it in
7694
9176
  # preloaded symbol tables.
 
9177
  # Exclude shared library initialization/finalization symbols.
7695
9178
  extract_expsyms_cmds=
7696
 
  # Just being paranoid about ensuring that cc_basename is set.
7697
 
  for cc_temp in $compiler""; do
7698
 
  case $cc_temp in
7699
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7700
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7701
 
    \-*) ;;
7702
 
    *) break;;
7703
 
  esac
7704
 
done
7705
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7706
9179
 
7707
9180
  case $host_os in
7708
 
  cygwin* | mingw* | pw32*)
 
9181
  cygwin* | mingw* | pw32* | cegcc*)
7709
9182
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7710
9183
    # When not using gcc, we currently assume that we are using
7711
9184
    # Microsoft Visual C++.
7720
9193
  openbsd*)
7721
9194
    with_gnu_ld=no
7722
9195
    ;;
 
9196
  linux* | k*bsd*-gnu)
 
9197
    link_all_deplibs=no
 
9198
    ;;
7723
9199
  esac
7724
9200
 
7725
9201
  ld_shlibs=yes
7731
9207
    # are reset later if shared libraries are not supported. Putting them
7732
9208
    # here allows them to be overridden if necessary.
7733
9209
    runpath_var=LD_RUN_PATH
7734
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9210
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7735
9211
    export_dynamic_flag_spec='${wl}--export-dynamic'
7736
9212
    # ancient GNU ld didn't support --whole-archive et. al.
7737
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7738
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7739
 
      else
7740
 
        whole_archive_flag_spec=
 
9213
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
9214
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9215
    else
 
9216
      whole_archive_flag_spec=
7741
9217
    fi
7742
9218
    supports_anon_versioning=no
7743
 
    case `$LD -v 2>/dev/null` in
 
9219
    case `$LD -v 2>&1` in
7744
9220
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7745
9221
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7746
9222
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7750
9226
 
7751
9227
    # See if GNU ld supports shared libraries.
7752
9228
    case $host_os in
7753
 
    aix3* | aix4* | aix5*)
 
9229
    aix[3-9]*)
7754
9230
      # On AIX/PPC, the GNU linker is very broken
7755
9231
      if test "$host_cpu" != ia64; then
7756
9232
        ld_shlibs=no
7757
 
        cat <<EOF 1>&2
 
9233
        cat <<_LT_EOF 1>&2
7758
9234
 
7759
9235
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7760
9236
*** to be unable to reliably create shared libraries on AIX.
7762
9238
*** really care for shared libraries, you may want to modify your PATH
7763
9239
*** so that a non-GNU linker is found, and then restart.
7764
9240
 
7765
 
EOF
 
9241
_LT_EOF
7766
9242
      fi
7767
9243
      ;;
7768
9244
 
7769
9245
    amigaos*)
7770
 
      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)'
7771
 
      hardcode_libdir_flag_spec='-L$libdir'
7772
 
      hardcode_minus_L=yes
7773
 
 
7774
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7775
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
7776
 
      # to version 4, is to share data among multiple programs linked
7777
 
      # with the same dynamic library.  Since this doesn't match the
7778
 
      # behavior of shared libraries on other platforms, we can't use
7779
 
      # them.
7780
 
      ld_shlibs=no
 
9246
      case $host_cpu in
 
9247
      powerpc)
 
9248
            # see comment about AmigaOS4 .so support
 
9249
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9250
            archive_expsym_cmds=''
 
9251
        ;;
 
9252
      m68k)
 
9253
            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)'
 
9254
            hardcode_libdir_flag_spec='-L$libdir'
 
9255
            hardcode_minus_L=yes
 
9256
        ;;
 
9257
      esac
7781
9258
      ;;
7782
9259
 
7783
9260
    beos*)
7784
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9261
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7785
9262
        allow_undefined_flag=unsupported
7786
9263
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7787
9264
        # support --undefined.  This deserves some investigation.  FIXME
7791
9268
      fi
7792
9269
      ;;
7793
9270
 
7794
 
    cygwin* | mingw* | pw32*)
7795
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9271
    cygwin* | mingw* | pw32* | cegcc*)
 
9272
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7796
9273
      # as there is no search path for DLLs.
7797
9274
      hardcode_libdir_flag_spec='-L$libdir'
7798
9275
      allow_undefined_flag=unsupported
7799
9276
      always_export_symbols=no
7800
9277
      enable_shared_with_static_runtimes=yes
7801
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
9278
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7802
9279
 
7803
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9280
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7804
9281
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7805
9282
        # If the export-symbols file already is a .def file (1st line
7806
9283
        # is EXPORTS), use it as is; otherwise, prepend...
7816
9293
      fi
7817
9294
      ;;
7818
9295
 
7819
 
    interix3*)
 
9296
    interix[3-9]*)
7820
9297
      hardcode_direct=no
7821
9298
      hardcode_shlibpath_var=no
7822
9299
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7831
9308
      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'
7832
9309
      ;;
7833
9310
 
7834
 
    linux* | k*bsd*-gnu)
7835
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9311
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
9312
      tmp_diet=no
 
9313
      if test "$host_os" = linux-dietlibc; then
 
9314
        case $cc_basename in
 
9315
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
9316
        esac
 
9317
      fi
 
9318
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
9319
         && test "$tmp_diet" = no
 
9320
      then
7836
9321
        tmp_addflag=
 
9322
        tmp_sharedflag='-shared'
7837
9323
        case $cc_basename,$host_cpu in
7838
 
        pgcc*)                          # Portland Group C compiler
7839
 
          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'
 
9324
        pgcc*)                          # Portland Group C compiler
 
9325
          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'
7840
9326
          tmp_addflag=' $pic_flag'
7841
9327
          ;;
7842
9328
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7843
 
          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'
 
9329
          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'
7844
9330
          tmp_addflag=' $pic_flag -Mnomain' ;;
7845
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
9331
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7846
9332
          tmp_addflag=' -i_dynamic' ;;
7847
9333
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7848
9334
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7849
9335
        ifc* | ifort*)                  # Intel Fortran compiler
7850
9336
          tmp_addflag=' -nofor_main' ;;
7851
 
        esac
7852
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7853
 
 
7854
 
        if test $supports_anon_versioning = yes; then
7855
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7856
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7857
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7858
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7859
 
        fi
7860
 
        link_all_deplibs=no
 
9337
        lf95*)                          # Lahey Fortran 8.1
 
9338
          whole_archive_flag_spec=
 
9339
          tmp_sharedflag='--shared' ;;
 
9340
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
9341
          tmp_sharedflag='-qmkshrobj'
 
9342
          tmp_addflag= ;;
 
9343
        esac
 
9344
        case `$CC -V 2>&1 | sed 5q` in
 
9345
        *Sun\ C*)                       # Sun C 5.9
 
9346
          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'
 
9347
          compiler_needs_object=yes
 
9348
          tmp_sharedflag='-G' ;;
 
9349
        *Sun\ F*)                       # Sun Fortran 8.3
 
9350
          tmp_sharedflag='-G' ;;
 
9351
        esac
 
9352
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9353
 
 
9354
        if test "x$supports_anon_versioning" = xyes; then
 
9355
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9356
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9357
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
9358
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9359
        fi
 
9360
 
 
9361
        case $cc_basename in
 
9362
        xlf*)
 
9363
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
9364
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
9365
          hardcode_libdir_flag_spec=
 
9366
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9367
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
9368
          if test "x$supports_anon_versioning" = xyes; then
 
9369
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
9370
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9371
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
9372
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
9373
          fi
 
9374
          ;;
 
9375
        esac
7861
9376
      else
7862
 
        ld_shlibs=no
 
9377
        ld_shlibs=no
7863
9378
      fi
7864
9379
      ;;
7865
9380
 
7866
9381
    netbsd* | netbsdelf*-gnu)
7867
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9382
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7868
9383
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7869
9384
        wlarc=
7870
9385
      else
7874
9389
      ;;
7875
9390
 
7876
9391
    solaris*)
7877
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9392
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7878
9393
        ld_shlibs=no
7879
 
        cat <<EOF 1>&2
 
9394
        cat <<_LT_EOF 1>&2
7880
9395
 
7881
9396
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7882
9397
*** create shared libraries on Solaris systems.  Therefore, libtool
7885
9400
*** your PATH or compiler configuration so that the native linker is
7886
9401
*** used, and then restart.
7887
9402
 
7888
 
EOF
7889
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9403
_LT_EOF
 
9404
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7890
9405
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7891
9406
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7892
9407
      else
7910
9425
_LT_EOF
7911
9426
        ;;
7912
9427
        *)
7913
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7914
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7915
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7916
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
9428
          # For security reasons, it is highly recommended that you always
 
9429
          # use absolute paths for naming shared libraries, and exclude the
 
9430
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
9431
          # requires that you compile everything twice, which is a pain.
 
9432
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
9433
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9434
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9435
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7917
9436
          else
7918
9437
            ld_shlibs=no
7919
9438
          fi
7929
9448
      ;;
7930
9449
 
7931
9450
    *)
7932
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9451
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7933
9452
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7934
9453
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7935
9454
      else
7961
9480
      fi
7962
9481
      ;;
7963
9482
 
7964
 
    aix4* | aix5*)
 
9483
    aix[4-9]*)
7965
9484
      if test "$host_cpu" = ia64; then
7966
9485
        # On IA64, the linker does run time linking by default, so we don't
7967
9486
        # have to do anything special.
7971
9490
      else
7972
9491
        # If we're using GNU nm, then we don't want the "-C" option.
7973
9492
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7974
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7975
 
          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'
 
9493
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9494
          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'
7976
9495
        else
7977
 
          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'
 
9496
          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'
7978
9497
        fi
7979
9498
        aix_use_runtimelinking=no
7980
9499
 
7981
9500
        # Test if we are trying to use run time linking or normal
7982
9501
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7983
9502
        # need to do runtime linking.
7984
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9503
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7985
9504
          for ld_flag in $LDFLAGS; do
7986
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7987
 
            aix_use_runtimelinking=yes
7988
 
            break
7989
 
          fi
 
9505
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9506
            aix_use_runtimelinking=yes
 
9507
            break
 
9508
          fi
7990
9509
          done
7991
9510
          ;;
7992
9511
        esac
8003
9522
 
8004
9523
      archive_cmds=''
8005
9524
      hardcode_direct=yes
 
9525
      hardcode_direct_absolute=yes
8006
9526
      hardcode_libdir_separator=':'
8007
9527
      link_all_deplibs=yes
 
9528
      file_list_spec='${wl}-f,'
8008
9529
 
8009
9530
      if test "$GCC" = yes; then
8010
9531
        case $host_os in aix4.[012]|aix4.[012].*)
8011
9532
        # We only want to do this on AIX 4.2 and lower, the check
8012
9533
        # below for broken collect2 doesn't work under 4.3+
8013
9534
          collect2name=`${CC} -print-prog-name=collect2`
8014
 
          if test -f "$collect2name" && \
8015
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9535
          if test -f "$collect2name" &&
 
9536
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8016
9537
          then
8017
 
          # We have reworked collect2
8018
 
          hardcode_direct=yes
 
9538
          # We have reworked collect2
 
9539
          :
8019
9540
          else
8020
 
          # We have old collect2
8021
 
          hardcode_direct=unsupported
8022
 
          # It fails to find uninstalled libraries when the uninstalled
8023
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8024
 
          # to unsupported forces relinking
8025
 
          hardcode_minus_L=yes
8026
 
          hardcode_libdir_flag_spec='-L$libdir'
8027
 
          hardcode_libdir_separator=
 
9541
          # We have old collect2
 
9542
          hardcode_direct=unsupported
 
9543
          # It fails to find uninstalled libraries when the uninstalled
 
9544
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9545
          # to unsupported forces relinking
 
9546
          hardcode_minus_L=yes
 
9547
          hardcode_libdir_flag_spec='-L$libdir'
 
9548
          hardcode_libdir_separator=
8028
9549
          fi
8029
9550
          ;;
8030
9551
        esac
8032
9553
        if test "$aix_use_runtimelinking" = yes; then
8033
9554
          shared_flag="$shared_flag "'${wl}-G'
8034
9555
        fi
 
9556
        link_all_deplibs=no
8035
9557
      else
8036
9558
        # not using gcc
8037
9559
        if test "$host_cpu" = ia64; then
8038
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8039
 
        # chokes on -Wl,-G. The following line is correct:
 
9560
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9561
        # chokes on -Wl,-G. The following line is correct:
8040
9562
          shared_flag='-G'
8041
9563
        else
8042
9564
          if test "$aix_use_runtimelinking" = yes; then
8047
9569
        fi
8048
9570
      fi
8049
9571
 
 
9572
      export_dynamic_flag_spec='${wl}-bexpall'
8050
9573
      # It seems that -bexpall does not export symbols beginning with
8051
9574
      # underscore (_), so it is better to generate a list of symbols to export.
8052
9575
      always_export_symbols=yes
8054
9577
        # Warning - without using the other runtime loading flags (-brtl),
8055
9578
        # -berok will link without error, but may produce a broken library.
8056
9579
        allow_undefined_flag='-berok'
8057
 
       # Determine the default libpath from the value encoded in an empty executable.
8058
 
       cat >conftest.$ac_ext <<_ACEOF
 
9580
        # Determine the default libpath from the value encoded in an
 
9581
        # empty executable.
 
9582
        cat >conftest.$ac_ext <<_ACEOF
8059
9583
/* confdefs.h.  */
8060
9584
_ACEOF
8061
9585
cat confdefs.h >>conftest.$ac_ext
8089
9613
       } && test -s conftest$ac_exeext &&
8090
9614
       $as_test_x conftest$ac_exeext; then
8091
9615
 
8092
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8093
 
}'`
 
9616
lt_aix_libpath_sed='
 
9617
    /Import File Strings/,/^$/ {
 
9618
        /^0/ {
 
9619
            s/^0  *\(.*\)$/\1/
 
9620
            p
 
9621
        }
 
9622
    }'
 
9623
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8094
9624
# Check for a 64-bit object if we didn't find anything.
8095
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8096
 
}'`; fi
 
9625
if test -z "$aix_libpath"; then
 
9626
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9627
fi
8097
9628
else
8098
9629
  echo "$as_me: failed program was:" >&5
8099
9630
sed 's/^/| /' conftest.$ac_ext >&5
8105
9636
      conftest$ac_exeext conftest.$ac_ext
8106
9637
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8107
9638
 
8108
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8109
 
        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"
8110
 
       else
 
9639
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9640
        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"
 
9641
      else
8111
9642
        if test "$host_cpu" = ia64; then
8112
9643
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8113
9644
          allow_undefined_flag="-z nodefs"
8114
9645
          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"
8115
9646
        else
8116
 
         # Determine the default libpath from the value encoded in an empty executable.
 
9647
         # Determine the default libpath from the value encoded in an
 
9648
         # empty executable.
8117
9649
         cat >conftest.$ac_ext <<_ACEOF
8118
9650
/* confdefs.h.  */
8119
9651
_ACEOF
8148
9680
       } && test -s conftest$ac_exeext &&
8149
9681
       $as_test_x conftest$ac_exeext; then
8150
9682
 
8151
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8152
 
}'`
 
9683
lt_aix_libpath_sed='
 
9684
    /Import File Strings/,/^$/ {
 
9685
        /^0/ {
 
9686
            s/^0  *\(.*\)$/\1/
 
9687
            p
 
9688
        }
 
9689
    }'
 
9690
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8153
9691
# Check for a 64-bit object if we didn't find anything.
8154
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8155
 
}'`; fi
 
9692
if test -z "$aix_libpath"; then
 
9693
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9694
fi
8156
9695
else
8157
9696
  echo "$as_me: failed program was:" >&5
8158
9697
sed 's/^/| /' conftest.$ac_ext >&5
8179
9718
      ;;
8180
9719
 
8181
9720
    amigaos*)
8182
 
      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)'
8183
 
      hardcode_libdir_flag_spec='-L$libdir'
8184
 
      hardcode_minus_L=yes
8185
 
      # see comment about different semantics on the GNU ld section
8186
 
      ld_shlibs=no
 
9721
      case $host_cpu in
 
9722
      powerpc)
 
9723
            # see comment about AmigaOS4 .so support
 
9724
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9725
            archive_expsym_cmds=''
 
9726
        ;;
 
9727
      m68k)
 
9728
            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)'
 
9729
            hardcode_libdir_flag_spec='-L$libdir'
 
9730
            hardcode_minus_L=yes
 
9731
        ;;
 
9732
      esac
8187
9733
      ;;
8188
9734
 
8189
9735
    bsdi[45]*)
8190
9736
      export_dynamic_flag_spec=-rdynamic
8191
9737
      ;;
8192
9738
 
8193
 
    cygwin* | mingw* | pw32*)
 
9739
    cygwin* | mingw* | pw32* | cegcc*)
8194
9740
      # When not using gcc, we currently assume that we are using
8195
9741
      # Microsoft Visual C++.
8196
9742
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8202
9748
      # Tell ltmain to make .dll files, not .so files.
8203
9749
      shrext_cmds=".dll"
8204
9750
      # FIXME: Setting linknames here is a bad hack.
8205
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9751
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8206
9752
      # The linker will automatically build a .lib file if we build a DLL.
8207
 
      old_archive_From_new_cmds='true'
 
9753
      old_archive_from_new_cmds='true'
8208
9754
      # FIXME: Should let the user specify the lib program.
8209
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9755
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8210
9756
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8211
9757
      enable_shared_with_static_runtimes=yes
8212
9758
      ;;
8213
9759
 
8214
9760
    darwin* | rhapsody*)
8215
 
      case $host_os in
8216
 
        rhapsody* | darwin1.[012])
8217
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8218
 
         ;;
8219
 
       *) # Darwin 1.3 on
8220
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8221
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8222
 
         else
8223
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8224
 
             10.[012])
8225
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8226
 
               ;;
8227
 
             10.*)
8228
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8229
 
               ;;
8230
 
           esac
8231
 
         fi
8232
 
         ;;
8233
 
      esac
8234
 
      archive_cmds_need_lc=no
8235
 
      hardcode_direct=no
8236
 
      hardcode_automatic=yes
8237
 
      hardcode_shlibpath_var=unsupported
8238
 
      whole_archive_flag_spec=''
8239
 
      link_all_deplibs=yes
8240
 
    if test "$GCC" = yes ; then
8241
 
        output_verbose_link_cmd='echo'
8242
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8243
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8244
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8245
 
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8246
 
      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}'
8247
 
    else
8248
 
      case $cc_basename in
8249
 
        xlc*)
8250
 
         output_verbose_link_cmd='echo'
8251
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8252
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8253
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8254
 
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8255
 
          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}'
8256
 
          ;;
8257
 
       *)
8258
 
         ld_shlibs=no
8259
 
          ;;
8260
 
      esac
8261
 
    fi
 
9761
 
 
9762
 
 
9763
  archive_cmds_need_lc=no
 
9764
  hardcode_direct=no
 
9765
  hardcode_automatic=yes
 
9766
  hardcode_shlibpath_var=unsupported
 
9767
  whole_archive_flag_spec=''
 
9768
  link_all_deplibs=yes
 
9769
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9770
  case $cc_basename in
 
9771
     ifort*) _lt_dar_can_shared=yes ;;
 
9772
     *) _lt_dar_can_shared=$GCC ;;
 
9773
  esac
 
9774
  if test "$_lt_dar_can_shared" = "yes"; then
 
9775
    output_verbose_link_cmd=echo
 
9776
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9777
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9778
    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}"
 
9779
    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}"
 
9780
 
 
9781
  else
 
9782
  ld_shlibs=no
 
9783
  fi
 
9784
 
8262
9785
      ;;
8263
9786
 
8264
9787
    dgux*)
8300
9823
 
8301
9824
    hpux9*)
8302
9825
      if test "$GCC" = yes; then
8303
 
        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'
 
9826
        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'
8304
9827
      else
8305
 
        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'
 
9828
        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'
8306
9829
      fi
8307
9830
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8308
9831
      hardcode_libdir_separator=:
8322
9845
      fi
8323
9846
      if test "$with_gnu_ld" = no; then
8324
9847
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9848
        hardcode_libdir_flag_spec_ld='+b $libdir'
8325
9849
        hardcode_libdir_separator=:
8326
 
 
8327
9850
        hardcode_direct=yes
 
9851
        hardcode_direct_absolute=yes
8328
9852
        export_dynamic_flag_spec='${wl}-E'
8329
 
 
8330
9853
        # hardcode_minus_L: Not really in the search PATH,
8331
9854
        # but as the default location of the library.
8332
9855
        hardcode_minus_L=yes
8340
9863
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8341
9864
          ;;
8342
9865
        ia64*)
8343
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9866
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8344
9867
          ;;
8345
9868
        *)
8346
9869
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8365
9888
 
8366
9889
        case $host_cpu in
8367
9890
        hppa*64*|ia64*)
8368
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8369
9891
          hardcode_direct=no
8370
9892
          hardcode_shlibpath_var=no
8371
9893
          ;;
8372
9894
        *)
8373
9895
          hardcode_direct=yes
 
9896
          hardcode_direct_absolute=yes
8374
9897
          export_dynamic_flag_spec='${wl}-E'
8375
9898
 
8376
9899
          # hardcode_minus_L: Not really in the search PATH,
8383
9906
 
8384
9907
    irix5* | irix6* | nonstopux*)
8385
9908
      if test "$GCC" = yes; then
8386
 
        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'
 
9909
        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'
 
9910
        # Try to use the -exported_symbol ld option, if it does not
 
9911
        # work, assume that -exports_file does not work either and
 
9912
        # implicitly export all symbols.
 
9913
        save_LDFLAGS="$LDFLAGS"
 
9914
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9915
        cat >conftest.$ac_ext <<_ACEOF
 
9916
int foo(void) {}
 
9917
_ACEOF
 
9918
rm -f conftest.$ac_objext conftest$ac_exeext
 
9919
if { (ac_try="$ac_link"
 
9920
case "(($ac_try" in
 
9921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9922
  *) ac_try_echo=$ac_try;;
 
9923
esac
 
9924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9925
  (eval "$ac_link") 2>conftest.er1
 
9926
  ac_status=$?
 
9927
  grep -v '^ *+' conftest.er1 >conftest.err
 
9928
  rm -f conftest.er1
 
9929
  cat conftest.err >&5
 
9930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9931
  (exit $ac_status); } && {
 
9932
         test -z "$ac_c_werror_flag" ||
 
9933
         test ! -s conftest.err
 
9934
       } && test -s conftest$ac_exeext &&
 
9935
       $as_test_x conftest$ac_exeext; then
 
9936
  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'
 
9937
 
 
9938
else
 
9939
  echo "$as_me: failed program was:" >&5
 
9940
sed 's/^/| /' conftest.$ac_ext >&5
 
9941
 
 
9942
 
 
9943
fi
 
9944
 
 
9945
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9946
      conftest$ac_exeext conftest.$ac_ext
 
9947
        LDFLAGS="$save_LDFLAGS"
8387
9948
      else
8388
 
        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'
8389
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9949
        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'
 
9950
        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'
8390
9951
      fi
 
9952
      archive_cmds_need_lc='no'
8391
9953
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8392
9954
      hardcode_libdir_separator=:
 
9955
      inherit_rpath=yes
8393
9956
      link_all_deplibs=yes
8394
9957
      ;;
8395
9958
 
8396
9959
    netbsd* | netbsdelf*-gnu)
8397
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9960
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8398
9961
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8399
9962
      else
8400
9963
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8412
9975
      hardcode_shlibpath_var=no
8413
9976
      ;;
8414
9977
 
 
9978
    *nto* | *qnx*)
 
9979
      ;;
 
9980
 
8415
9981
    openbsd*)
8416
 
      hardcode_direct=yes
8417
 
      hardcode_shlibpath_var=no
8418
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8419
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8420
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8421
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8422
 
        export_dynamic_flag_spec='${wl}-E'
 
9982
      if test -f /usr/libexec/ld.so; then
 
9983
        hardcode_direct=yes
 
9984
        hardcode_shlibpath_var=no
 
9985
        hardcode_direct_absolute=yes
 
9986
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9987
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9988
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9989
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9990
          export_dynamic_flag_spec='${wl}-E'
 
9991
        else
 
9992
          case $host_os in
 
9993
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9994
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9995
             hardcode_libdir_flag_spec='-R$libdir'
 
9996
             ;;
 
9997
           *)
 
9998
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9999
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10000
             ;;
 
10001
          esac
 
10002
        fi
8423
10003
      else
8424
 
       case $host_os in
8425
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8426
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8427
 
           hardcode_libdir_flag_spec='-R$libdir'
8428
 
           ;;
8429
 
         *)
8430
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8431
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8432
 
           ;;
8433
 
       esac
 
10004
        ld_shlibs=no
8434
10005
      fi
8435
10006
      ;;
8436
10007
 
8438
10009
      hardcode_libdir_flag_spec='-L$libdir'
8439
10010
      hardcode_minus_L=yes
8440
10011
      allow_undefined_flag=unsupported
8441
 
      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'
8442
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10012
      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'
 
10013
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8443
10014
      ;;
8444
10015
 
8445
10016
    osf3*)
8446
10017
      if test "$GCC" = yes; then
8447
10018
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8448
 
        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'
 
10019
        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'
8449
10020
      else
8450
10021
        allow_undefined_flag=' -expect_unresolved \*'
8451
 
        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'
 
10022
        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'
8452
10023
      fi
 
10024
      archive_cmds_need_lc='no'
8453
10025
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8454
10026
      hardcode_libdir_separator=:
8455
10027
      ;;
8457
10029
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8458
10030
      if test "$GCC" = yes; then
8459
10031
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8460
 
        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'
 
10032
        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'
8461
10033
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8462
10034
      else
8463
10035
        allow_undefined_flag=' -expect_unresolved \*'
8464
 
        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'
8465
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8466
 
        $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'
 
10036
        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'
 
10037
        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~
 
10038
        $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'
8467
10039
 
8468
10040
        # Both c and cxx compiler support -rpath directly
8469
10041
        hardcode_libdir_flag_spec='-rpath $libdir'
8470
10042
      fi
 
10043
      archive_cmds_need_lc='no'
8471
10044
      hardcode_libdir_separator=:
8472
10045
      ;;
8473
10046
 
8474
10047
    solaris*)
8475
 
      no_undefined_flag=' -z text'
 
10048
      no_undefined_flag=' -z defs'
8476
10049
      if test "$GCC" = yes; then
8477
10050
        wlarc='${wl}'
8478
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8479
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8480
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
10051
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10052
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10053
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8481
10054
      else
8482
 
        wlarc=''
8483
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8484
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8485
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10055
        case `$CC -V 2>&1` in
 
10056
        *"Compilers 5.0"*)
 
10057
          wlarc=''
 
10058
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10059
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10060
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10061
          ;;
 
10062
        *)
 
10063
          wlarc='${wl}'
 
10064
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10065
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10066
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10067
          ;;
 
10068
        esac
8486
10069
      fi
8487
10070
      hardcode_libdir_flag_spec='-R$libdir'
8488
10071
      hardcode_shlibpath_var=no
8489
10072
      case $host_os in
8490
10073
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8491
10074
      *)
8492
 
        # The compiler driver will combine linker options so we
8493
 
        # cannot just pass the convience library names through
8494
 
        # without $wl, iff we do not link with $LD.
8495
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
8496
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8497
 
        case $wlarc in
8498
 
        '')
8499
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8500
 
        *)
8501
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8502
 
        esac ;;
 
10075
        # The compiler driver will combine and reorder linker options,
 
10076
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10077
        # but is careful enough not to reorder.
 
10078
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10079
        if test "$GCC" = yes; then
 
10080
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10081
        else
 
10082
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10083
        fi
 
10084
        ;;
8503
10085
      esac
8504
10086
      link_all_deplibs=yes
8505
10087
      ;;
8556
10138
      fi
8557
10139
      ;;
8558
10140
 
8559
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
10141
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8560
10142
      no_undefined_flag='${wl}-z,text'
8561
10143
      archive_cmds_need_lc=no
8562
10144
      hardcode_shlibpath_var=no
8582
10164
      allow_undefined_flag='${wl}-z,nodefs'
8583
10165
      archive_cmds_need_lc=no
8584
10166
      hardcode_shlibpath_var=no
8585
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
10167
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8586
10168
      hardcode_libdir_separator=':'
8587
10169
      link_all_deplibs=yes
8588
10170
      export_dynamic_flag_spec='${wl}-Bexport'
8589
10171
      runpath_var='LD_RUN_PATH'
8590
10172
 
8591
10173
      if test "$GCC" = yes; then
8592
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10174
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10175
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8594
10176
      else
8595
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8596
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10177
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10178
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8597
10179
      fi
8598
10180
      ;;
8599
10181
 
8607
10189
      ld_shlibs=no
8608
10190
      ;;
8609
10191
    esac
 
10192
 
 
10193
    if test x$host_vendor = xsni; then
 
10194
      case $host in
 
10195
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10196
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10197
        ;;
 
10198
      esac
 
10199
    fi
8610
10200
  fi
8611
10201
 
8612
10202
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8613
10203
echo "${ECHO_T}$ld_shlibs" >&6; }
8614
10204
test "$ld_shlibs" = no && can_build_shared=no
8615
10205
 
 
10206
with_gnu_ld=$with_gnu_ld
 
10207
 
 
10208
 
 
10209
 
 
10210
 
 
10211
 
 
10212
 
 
10213
 
 
10214
 
 
10215
 
 
10216
 
 
10217
 
 
10218
 
 
10219
 
 
10220
 
 
10221
 
8616
10222
#
8617
10223
# Do we need to explicitly link libc?
8618
10224
#
8632
10238
      # to ld, don't add -lc before -lgcc.
8633
10239
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8634
10240
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8635
 
      $rm conftest*
8636
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10241
      $RM conftest*
 
10242
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637
10243
 
8638
10244
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8639
10245
  (eval $ac_compile) 2>&5
8653
10259
        libname=conftest
8654
10260
        lt_save_allow_undefined_flag=$allow_undefined_flag
8655
10261
        allow_undefined_flag=
8656
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8657
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10262
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10263
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8658
10264
  ac_status=$?
8659
10265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660
10266
  (exit $ac_status); }
8667
10273
      else
8668
10274
        cat conftest.err 1>&5
8669
10275
      fi
8670
 
      $rm conftest*
 
10276
      $RM conftest*
8671
10277
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8672
10278
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8673
10279
      ;;
8676
10282
  ;;
8677
10283
esac
8678
10284
 
8679
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10285
 
 
10286
 
 
10287
 
 
10288
 
 
10289
 
 
10290
 
 
10291
 
 
10292
 
 
10293
 
 
10294
 
 
10295
 
 
10296
 
 
10297
 
 
10298
 
 
10299
 
 
10300
 
 
10301
 
 
10302
 
 
10303
 
 
10304
 
 
10305
 
 
10306
 
 
10307
 
 
10308
 
 
10309
 
 
10310
 
 
10311
 
 
10312
 
 
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
 
10318
 
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
 
 
10324
 
 
10325
 
 
10326
 
 
10327
 
 
10328
 
 
10329
 
 
10330
 
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
 
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
 
 
10350
 
 
10351
 
 
10352
 
 
10353
 
 
10354
 
 
10355
 
 
10356
 
 
10357
 
 
10358
 
 
10359
 
 
10360
 
 
10361
 
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
 
 
10367
 
 
10368
 
 
10369
 
 
10370
 
 
10371
 
 
10372
 
 
10373
 
 
10374
 
 
10375
 
 
10376
 
 
10377
 
 
10378
 
 
10379
 
 
10380
 
 
10381
 
 
10382
 
 
10383
 
 
10384
 
 
10385
 
 
10386
 
 
10387
 
 
10388
 
 
10389
 
 
10390
 
 
10391
 
 
10392
 
 
10393
 
 
10394
 
 
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
 
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
 
10407
 
 
10408
 
 
10409
 
 
10410
 
 
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
 
10416
 
 
10417
 
 
10418
 
 
10419
 
 
10420
 
 
10421
 
 
10422
 
 
10423
 
 
10424
 
 
10425
 
 
10426
 
 
10427
 
 
10428
 
 
10429
 
 
10430
 
 
10431
 
 
10432
 
 
10433
 
 
10434
 
 
10435
 
 
10436
 
 
10437
 
 
10438
 
 
10439
 
 
10440
 
 
10441
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8680
10442
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
10443
 
 
10444
if test "$GCC" = yes; then
 
10445
  case $host_os in
 
10446
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10447
    *) lt_awk_arg="/^libraries:/" ;;
 
10448
  esac
 
10449
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10450
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
10451
    # if the path contains ";" then we assume it to be the separator
 
10452
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10453
    # assumed that no part of a normal pathname contains ";" but that should
 
10454
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10455
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
10456
  else
 
10457
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10458
  fi
 
10459
  # Ok, now we have the path, separated by spaces, we can step through it
 
10460
  # and add multilib dir if necessary.
 
10461
  lt_tmp_lt_search_path_spec=
 
10462
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10463
  for lt_sys_path in $lt_search_path_spec; do
 
10464
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10465
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10466
    else
 
10467
      test -d "$lt_sys_path" && \
 
10468
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10469
    fi
 
10470
  done
 
10471
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
10472
BEGIN {RS=" "; FS="/|\n";} {
 
10473
  lt_foo="";
 
10474
  lt_count=0;
 
10475
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10476
    if ($lt_i != "" && $lt_i != ".") {
 
10477
      if ($lt_i == "..") {
 
10478
        lt_count++;
 
10479
      } else {
 
10480
        if (lt_count == 0) {
 
10481
          lt_foo="/" $lt_i lt_foo;
 
10482
        } else {
 
10483
          lt_count--;
 
10484
        }
 
10485
      }
 
10486
    }
 
10487
  }
 
10488
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10489
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10490
}'`
 
10491
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
10492
else
 
10493
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10494
fi
8681
10495
library_names_spec=
8682
10496
libname_spec='lib$name'
8683
10497
soname_spec=
8691
10505
version_type=none
8692
10506
dynamic_linker="$host_os ld.so"
8693
10507
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8694
 
if test "$GCC" = yes; then
8695
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8696
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8697
 
    # if the path contains ";" then we assume it to be the separator
8698
 
    # otherwise default to the standard path separator (i.e. ":") - it is
8699
 
    # assumed that no part of a normal pathname contains ";" but that should
8700
 
    # okay in the real world where ";" in dirpaths is itself problematic.
8701
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8702
 
  else
8703
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8704
 
  fi
8705
 
else
8706
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8707
 
fi
8708
10508
need_lib_prefix=unknown
8709
10509
hardcode_into_libs=no
8710
10510
 
8722
10522
  soname_spec='${libname}${release}${shared_ext}$major'
8723
10523
  ;;
8724
10524
 
8725
 
aix4* | aix5*)
 
10525
aix[4-9]*)
8726
10526
  version_type=linux
8727
10527
  need_lib_prefix=no
8728
10528
  need_version=no
8741
10541
      aix4 | aix4.[01] | aix4.[01].*)
8742
10542
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8743
10543
           echo ' yes '
8744
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10544
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8745
10545
        :
8746
10546
      else
8747
10547
        can_build_shared=no
8767
10567
  ;;
8768
10568
 
8769
10569
amigaos*)
8770
 
  library_names_spec='$libname.ixlibrary $libname.a'
8771
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8772
 
  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'
 
10570
  case $host_cpu in
 
10571
  powerpc)
 
10572
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10573
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10574
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10575
    ;;
 
10576
  m68k)
 
10577
    library_names_spec='$libname.ixlibrary $libname.a'
 
10578
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10579
    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'
 
10580
    ;;
 
10581
  esac
8773
10582
  ;;
8774
10583
 
8775
10584
beos*)
8792
10601
  # libtool to hard-code these into programs
8793
10602
  ;;
8794
10603
 
8795
 
cygwin* | mingw* | pw32*)
 
10604
cygwin* | mingw* | pw32* | cegcc*)
8796
10605
  version_type=windows
8797
10606
  shrext_cmds=".dll"
8798
10607
  need_version=no
8799
10608
  need_lib_prefix=no
8800
10609
 
8801
10610
  case $GCC,$host_os in
8802
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10611
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8803
10612
    library_names_spec='$libname.dll.a'
8804
10613
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8805
10614
    postinstall_cmds='base_file=`basename \${file}`~
8806
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10615
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8807
10616
      dldir=$destdir/`dirname \$dlpath`~
8808
10617
      test -d \$dldir || mkdir -p \$dldir~
8809
10618
      $install_prog $dir/$dlname \$dldir/$dlname~
8810
 
      chmod a+x \$dldir/$dlname'
 
10619
      chmod a+x \$dldir/$dlname~
 
10620
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10621
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10622
      fi'
8811
10623
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8812
10624
      dlpath=$dir/\$dldll~
8813
 
       $rm \$dlpath'
 
10625
       $RM \$dlpath'
8814
10626
    shlibpath_overrides_runpath=yes
8815
10627
 
8816
10628
    case $host_os in
8819
10631
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8820
10632
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8821
10633
      ;;
8822
 
    mingw*)
 
10634
    mingw* | cegcc*)
8823
10635
      # MinGW DLLs use traditional 'lib' prefix
8824
10636
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8825
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10637
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10638
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8827
10639
        # It is most probably a Windows format PATH printed by
8828
10640
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8829
10641
        # path with ; separators, and with drive letters. We can handle the
8830
10642
        # drive letters (cygwin fileutils understands them), so leave them,
8831
10643
        # especially as we might pass files found there to a mingw objdump,
8832
10644
        # which wouldn't understand a cygwinified path. Ahh.
8833
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10645
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8834
10646
      else
8835
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10647
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8836
10648
      fi
8837
10649
      ;;
8838
10650
    pw32*)
8856
10668
  version_type=darwin
8857
10669
  need_lib_prefix=no
8858
10670
  need_version=no
8859
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10671
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8860
10672
  soname_spec='${libname}${release}${major}$shared_ext'
8861
10673
  shlibpath_overrides_runpath=yes
8862
10674
  shlibpath_var=DYLD_LIBRARY_PATH
8863
10675
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8864
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8865
 
  if test "$GCC" = yes; then
8866
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8867
 
  else
8868
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8869
 
  fi
 
10676
 
 
10677
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8870
10678
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8871
10679
  ;;
8872
10680
 
8920
10728
    shlibpath_overrides_runpath=no
8921
10729
    hardcode_into_libs=yes
8922
10730
    ;;
8923
 
  freebsd*) # from 4.6 on
 
10731
  *) # from 4.6 on, and DragonFly
8924
10732
    shlibpath_overrides_runpath=yes
8925
10733
    hardcode_into_libs=yes
8926
10734
    ;;
8959
10767
    fi
8960
10768
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8961
10769
    ;;
8962
 
   hppa*64*)
8963
 
     shrext_cmds='.sl'
8964
 
     hardcode_into_libs=yes
8965
 
     dynamic_linker="$host_os dld.sl"
8966
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8967
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8968
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969
 
     soname_spec='${libname}${release}${shared_ext}$major'
8970
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8971
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8972
 
     ;;
8973
 
   *)
 
10770
  hppa*64*)
 
10771
    shrext_cmds='.sl'
 
10772
    hardcode_into_libs=yes
 
10773
    dynamic_linker="$host_os dld.sl"
 
10774
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10775
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10776
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10777
    soname_spec='${libname}${release}${shared_ext}$major'
 
10778
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10779
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10780
    ;;
 
10781
  *)
8974
10782
    shrext_cmds='.sl'
8975
10783
    dynamic_linker="$host_os dld.sl"
8976
10784
    shlibpath_var=SHLIB_PATH
8983
10791
  postinstall_cmds='chmod 555 $lib'
8984
10792
  ;;
8985
10793
 
8986
 
interix3*)
 
10794
interix[3-9]*)
8987
10795
  version_type=linux
8988
10796
  need_lib_prefix=no
8989
10797
  need_version=no
9047
10855
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9048
10856
  shlibpath_var=LD_LIBRARY_PATH
9049
10857
  shlibpath_overrides_runpath=no
 
10858
  # Some binutils ld are patched to set DT_RUNPATH
 
10859
  save_LDFLAGS=$LDFLAGS
 
10860
  save_libdir=$libdir
 
10861
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10862
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10863
  cat >conftest.$ac_ext <<_ACEOF
 
10864
/* confdefs.h.  */
 
10865
_ACEOF
 
10866
cat confdefs.h >>conftest.$ac_ext
 
10867
cat >>conftest.$ac_ext <<_ACEOF
 
10868
/* end confdefs.h.  */
 
10869
 
 
10870
int
 
10871
main ()
 
10872
{
 
10873
 
 
10874
  ;
 
10875
  return 0;
 
10876
}
 
10877
_ACEOF
 
10878
rm -f conftest.$ac_objext conftest$ac_exeext
 
10879
if { (ac_try="$ac_link"
 
10880
case "(($ac_try" in
 
10881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10882
  *) ac_try_echo=$ac_try;;
 
10883
esac
 
10884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10885
  (eval "$ac_link") 2>conftest.er1
 
10886
  ac_status=$?
 
10887
  grep -v '^ *+' conftest.er1 >conftest.err
 
10888
  rm -f conftest.er1
 
10889
  cat conftest.err >&5
 
10890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10891
  (exit $ac_status); } && {
 
10892
         test -z "$ac_c_werror_flag" ||
 
10893
         test ! -s conftest.err
 
10894
       } && test -s conftest$ac_exeext &&
 
10895
       $as_test_x conftest$ac_exeext; then
 
10896
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
10897
  shlibpath_overrides_runpath=yes
 
10898
fi
 
10899
 
 
10900
else
 
10901
  echo "$as_me: failed program was:" >&5
 
10902
sed 's/^/| /' conftest.$ac_ext >&5
 
10903
 
 
10904
 
 
10905
fi
 
10906
 
 
10907
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10908
      conftest$ac_exeext conftest.$ac_ext
 
10909
  LDFLAGS=$save_LDFLAGS
 
10910
  libdir=$save_libdir
 
10911
 
9050
10912
  # This implies no fast_install, which is unacceptable.
9051
10913
  # Some rework will be needed to allow for fast_install
9052
10914
  # before this can be enabled.
9054
10916
 
9055
10917
  # Append ld.so.conf contents to the search path
9056
10918
  if test -f /etc/ld.so.conf; then
9057
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
10919
    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' ' '`
9058
10920
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9059
10921
  fi
9060
10922
 
9083
10945
  version_type=sunos
9084
10946
  need_lib_prefix=no
9085
10947
  need_version=no
9086
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10948
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9087
10949
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9088
10950
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9089
10951
    dynamic_linker='NetBSD (a.out) ld.so'
9104
10966
  shlibpath_overrides_runpath=yes
9105
10967
  ;;
9106
10968
 
9107
 
nto-qnx*)
9108
 
  version_type=linux
 
10969
*nto* | *qnx*)
 
10970
  version_type=qnx
9109
10971
  need_lib_prefix=no
9110
10972
  need_version=no
9111
10973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112
10974
  soname_spec='${libname}${release}${shared_ext}$major'
9113
10975
  shlibpath_var=LD_LIBRARY_PATH
9114
 
  shlibpath_overrides_runpath=yes
 
10976
  shlibpath_overrides_runpath=no
 
10977
  hardcode_into_libs=yes
 
10978
  dynamic_linker='ldqnx.so'
9115
10979
  ;;
9116
10980
 
9117
10981
openbsd*)
9120
10984
  need_lib_prefix=no
9121
10985
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9122
10986
  case $host_os in
9123
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9124
 
    *)                         need_version=no  ;;
 
10987
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10988
    *)                          need_version=no  ;;
9125
10989
  esac
9126
10990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127
10991
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128
10992
  shlibpath_var=LD_LIBRARY_PATH
9129
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10993
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9130
10994
    case $host_os in
9131
10995
      openbsd2.[89] | openbsd2.[89].*)
9132
10996
        shlibpath_overrides_runpath=no
9160
11024
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9161
11025
  ;;
9162
11026
 
 
11027
rdos*)
 
11028
  dynamic_linker=no
 
11029
  ;;
 
11030
 
9163
11031
solaris*)
9164
11032
  version_type=linux
9165
11033
  need_lib_prefix=no
9194
11062
    sni)
9195
11063
      shlibpath_overrides_runpath=no
9196
11064
      need_lib_prefix=no
9197
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9198
11065
      runpath_var=LD_RUN_PATH
9199
11066
      ;;
9200
11067
    siemens)
9225
11092
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9226
11093
  soname_spec='${libname}${release}${shared_ext}$major'
9227
11094
  shlibpath_var=LD_LIBRARY_PATH
 
11095
  shlibpath_overrides_runpath=yes
9228
11096
  hardcode_into_libs=yes
9229
11097
  if test "$with_gnu_ld" = yes; then
9230
11098
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9231
 
    shlibpath_overrides_runpath=no
9232
11099
  else
9233
11100
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9234
 
    shlibpath_overrides_runpath=yes
9235
11101
    case $host_os in
9236
11102
      sco3.2v5*)
9237
11103
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9241
11107
  sys_lib_dlsearch_path_spec='/usr/lib'
9242
11108
  ;;
9243
11109
 
 
11110
tpf*)
 
11111
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11112
  version_type=linux
 
11113
  need_lib_prefix=no
 
11114
  need_version=no
 
11115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11116
  shlibpath_var=LD_LIBRARY_PATH
 
11117
  shlibpath_overrides_runpath=no
 
11118
  hardcode_into_libs=yes
 
11119
  ;;
 
11120
 
9244
11121
uts4*)
9245
11122
  version_type=linux
9246
11123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261
11138
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9262
11139
fi
9263
11140
 
9264
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11141
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11142
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11143
fi
 
11144
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11145
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11146
fi
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
 
 
11216
 
 
11217
 
 
11218
 
 
11219
 
 
11220
 
 
11221
 
 
11222
 
 
11223
 
 
11224
 
 
11225
 
 
11226
 
 
11227
 
 
11228
 
 
11229
 
 
11230
 
 
11231
 
 
11232
 
 
11233
 
 
11234
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9265
11235
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9266
11236
hardcode_action=
9267
 
if test -n "$hardcode_libdir_flag_spec" || \
9268
 
   test -n "$runpath_var" || \
 
11237
if test -n "$hardcode_libdir_flag_spec" ||
 
11238
   test -n "$runpath_var" ||
9269
11239
   test "X$hardcode_automatic" = "Xyes" ; then
9270
11240
 
9271
 
  # We can hardcode non-existant directories.
 
11241
  # We can hardcode non-existent directories.
9272
11242
  if test "$hardcode_direct" != no &&
9273
11243
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9274
11244
     # have to relink, otherwise we might link with an installed library
9275
11245
     # when we should be linking with a yet-to-be-installed one
9276
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11246
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9277
11247
     test "$hardcode_minus_L" != no; then
9278
11248
    # Linking always hardcodes the temporary library directory.
9279
11249
    hardcode_action=relink
9289
11259
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9290
11260
echo "${ECHO_T}$hardcode_action" >&6; }
9291
11261
 
9292
 
if test "$hardcode_action" = relink; then
 
11262
if test "$hardcode_action" = relink ||
 
11263
   test "$inherit_rpath" = yes; then
9293
11264
  # Fast installation is not supported
9294
11265
  enable_fast_install=no
9295
11266
elif test "$shlibpath_overrides_runpath" = yes ||
9298
11269
  enable_fast_install=needless
9299
11270
fi
9300
11271
 
9301
 
striplib=
9302
 
old_striplib=
9303
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9304
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9305
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9306
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9307
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9308
 
  { echo "$as_me:$LINENO: result: yes" >&5
9309
 
echo "${ECHO_T}yes" >&6; }
9310
 
else
9311
 
# FIXME - insert some real tests, host_os isn't really good enough
9312
 
  case $host_os in
9313
 
   darwin*)
9314
 
       if test -n "$STRIP" ; then
9315
 
         striplib="$STRIP -x"
9316
 
         { echo "$as_me:$LINENO: result: yes" >&5
9317
 
echo "${ECHO_T}yes" >&6; }
9318
 
       else
9319
 
  { echo "$as_me:$LINENO: result: no" >&5
9320
 
echo "${ECHO_T}no" >&6; }
9321
 
fi
9322
 
       ;;
9323
 
   *)
9324
 
  { echo "$as_me:$LINENO: result: no" >&5
9325
 
echo "${ECHO_T}no" >&6; }
9326
 
    ;;
9327
 
  esac
9328
 
fi
9329
 
 
9330
 
if test "x$enable_dlopen" != xyes; then
 
11272
 
 
11273
 
 
11274
 
 
11275
 
 
11276
 
 
11277
  if test "x$enable_dlopen" != xyes; then
9331
11278
  enable_dlopen=unknown
9332
11279
  enable_dlopen_self=unknown
9333
11280
  enable_dlopen_self_static=unknown
9342
11289
    lt_cv_dlopen_self=yes
9343
11290
    ;;
9344
11291
 
9345
 
  mingw* | pw32*)
 
11292
  mingw* | pw32* | cegcc*)
9346
11293
    lt_cv_dlopen="LoadLibrary"
9347
11294
    lt_cv_dlopen_libs=
9348
 
   ;;
 
11295
    ;;
9349
11296
 
9350
11297
  cygwin*)
9351
11298
    lt_cv_dlopen="dlopen"
9352
11299
    lt_cv_dlopen_libs=
9353
 
   ;;
 
11300
    ;;
9354
11301
 
9355
11302
  darwin*)
9356
11303
  # if libdl is installed we need to link against it
9425
11372
 
9426
11373
fi
9427
11374
 
9428
 
   ;;
 
11375
    ;;
9429
11376
 
9430
11377
  *)
9431
11378
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9574
11521
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9575
11522
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9576
11523
if test $ac_cv_lib_dld_shl_load = yes; then
9577
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11524
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9578
11525
else
9579
11526
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9580
11527
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9850
11797
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9851
11798
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9852
11799
if test $ac_cv_lib_dld_dld_link = yes; then
9853
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11800
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9854
11801
fi
9855
11802
 
9856
11803
 
9898
11845
else
9899
11846
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9900
11847
  lt_status=$lt_dlunknown
9901
 
  cat > conftest.$ac_ext <<EOF
9902
 
#line 9902 "configure"
 
11848
  cat > conftest.$ac_ext <<_LT_EOF
 
11849
#line 11849 "configure"
9903
11850
#include "confdefs.h"
9904
11851
 
9905
11852
#if HAVE_DLFCN_H
9940
11887
#  endif
9941
11888
#endif
9942
11889
 
9943
 
#ifdef __cplusplus
9944
 
extern "C" void exit (int);
9945
 
#endif
9946
 
 
9947
11890
void fnord() { int i=42;}
9948
11891
int main ()
9949
11892
{
9959
11902
  else
9960
11903
    puts (dlerror ());
9961
11904
 
9962
 
    exit (status);
 
11905
  return status;
9963
11906
}
9964
 
EOF
 
11907
_LT_EOF
9965
11908
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966
11909
  (eval $ac_link) 2>&5
9967
11910
  ac_status=$?
9998
11941
else
9999
11942
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10000
11943
  lt_status=$lt_dlunknown
10001
 
  cat > conftest.$ac_ext <<EOF
10002
 
#line 10002 "configure"
 
11944
  cat > conftest.$ac_ext <<_LT_EOF
 
11945
#line 11945 "configure"
10003
11946
#include "confdefs.h"
10004
11947
 
10005
11948
#if HAVE_DLFCN_H
10040
11983
#  endif
10041
11984
#endif
10042
11985
 
10043
 
#ifdef __cplusplus
10044
 
extern "C" void exit (int);
10045
 
#endif
10046
 
 
10047
11986
void fnord() { int i=42;}
10048
11987
int main ()
10049
11988
{
10059
11998
  else
10060
11999
    puts (dlerror ());
10061
12000
 
10062
 
    exit (status);
 
12001
  return status;
10063
12002
}
10064
 
EOF
 
12003
_LT_EOF
10065
12004
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066
12005
  (eval $ac_link) 2>&5
10067
12006
  ac_status=$?
10105
12044
fi
10106
12045
 
10107
12046
 
10108
 
# Report which library types will actually be built
10109
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10110
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10111
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10112
 
echo "${ECHO_T}$can_build_shared" >&6; }
10113
 
 
10114
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10115
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10116
 
test "$can_build_shared" = "no" && enable_shared=no
10117
 
 
10118
 
# On AIX, shared libraries and static libraries use the same namespace, and
10119
 
# are all built from PIC.
10120
 
case $host_os in
10121
 
aix3*)
10122
 
  test "$enable_shared" = yes && enable_static=no
10123
 
  if test -n "$RANLIB"; then
10124
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10125
 
    postinstall_cmds='$RANLIB $lib'
10126
 
  fi
10127
 
  ;;
10128
 
 
10129
 
aix4* | aix5*)
10130
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10131
 
    test "$enable_shared" = yes && enable_static=no
10132
 
  fi
10133
 
    ;;
10134
 
esac
10135
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10136
 
echo "${ECHO_T}$enable_shared" >&6; }
10137
 
 
10138
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10139
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10140
 
# Make sure either enable_shared or enable_static is yes.
10141
 
test "$enable_shared" = yes || enable_static=yes
10142
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10143
 
echo "${ECHO_T}$enable_static" >&6; }
10144
 
 
10145
 
# The else clause should only fire when bootstrapping the
10146
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10147
 
# with your package, and you will get complaints that there are
10148
 
# no rules to generate ltmain.sh.
10149
 
if test -f "$ltmain"; then
10150
 
  # See if we are running on zsh, and set the options which allow our commands through
10151
 
  # without removal of \ escapes.
10152
 
  if test -n "${ZSH_VERSION+set}" ; then
10153
 
    setopt NO_GLOB_SUBST
10154
 
  fi
10155
 
  # Now quote all the things that may contain metacharacters while being
10156
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10157
 
  # variables and quote the copies for generation of the libtool script.
10158
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10159
 
    SED SHELL STRIP \
10160
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10161
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10162
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10163
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10164
 
    lt_cv_sys_global_symbol_to_c_name_address \
10165
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10166
 
    old_postinstall_cmds old_postuninstall_cmds \
10167
 
    compiler \
10168
 
    CC \
10169
 
    LD \
10170
 
    lt_prog_compiler_wl \
10171
 
    lt_prog_compiler_pic \
10172
 
    lt_prog_compiler_static \
10173
 
    lt_prog_compiler_no_builtin_flag \
10174
 
    export_dynamic_flag_spec \
10175
 
    thread_safe_flag_spec \
10176
 
    whole_archive_flag_spec \
10177
 
    enable_shared_with_static_runtimes \
10178
 
    old_archive_cmds \
10179
 
    old_archive_from_new_cmds \
10180
 
    predep_objects \
10181
 
    postdep_objects \
10182
 
    predeps \
10183
 
    postdeps \
10184
 
    compiler_lib_search_path \
10185
 
    archive_cmds \
10186
 
    archive_expsym_cmds \
10187
 
    postinstall_cmds \
10188
 
    postuninstall_cmds \
10189
 
    old_archive_from_expsyms_cmds \
10190
 
    allow_undefined_flag \
10191
 
    no_undefined_flag \
10192
 
    export_symbols_cmds \
10193
 
    hardcode_libdir_flag_spec \
10194
 
    hardcode_libdir_flag_spec_ld \
10195
 
    hardcode_libdir_separator \
10196
 
    hardcode_automatic \
10197
 
    module_cmds \
10198
 
    module_expsym_cmds \
10199
 
    lt_cv_prog_compiler_c_o \
10200
 
    exclude_expsyms \
10201
 
    include_expsyms; do
10202
 
 
10203
 
    case $var in
10204
 
    old_archive_cmds | \
10205
 
    old_archive_from_new_cmds | \
10206
 
    archive_cmds | \
10207
 
    archive_expsym_cmds | \
10208
 
    module_cmds | \
10209
 
    module_expsym_cmds | \
10210
 
    old_archive_from_expsyms_cmds | \
10211
 
    export_symbols_cmds | \
10212
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10213
 
    postinstall_cmds | postuninstall_cmds | \
10214
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10215
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10216
 
      # Double-quote double-evaled strings.
10217
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10218
 
      ;;
10219
 
    *)
10220
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10221
 
      ;;
10222
 
    esac
10223
 
  done
10224
 
 
10225
 
  case $lt_echo in
10226
 
  *'\$0 --fallback-echo"')
10227
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10228
 
    ;;
10229
 
  esac
10230
 
 
10231
 
cfgfile="${ofile}T"
10232
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10233
 
  $rm -f "$cfgfile"
10234
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10235
 
echo "$as_me: creating $ofile" >&6;}
10236
 
 
10237
 
  cat <<__EOF__ >> "$cfgfile"
10238
 
#! $SHELL
10239
 
 
10240
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10241
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10242
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10243
 
#
10244
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10245
 
# Free Software Foundation, Inc.
10246
 
#
10247
 
# This file is part of GNU Libtool:
10248
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10249
 
#
10250
 
# This program is free software; you can redistribute it and/or modify
10251
 
# it under the terms of the GNU General Public License as published by
10252
 
# the Free Software Foundation; either version 2 of the License, or
10253
 
# (at your option) any later version.
10254
 
#
10255
 
# This program is distributed in the hope that it will be useful, but
10256
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10257
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10258
 
# General Public License for more details.
10259
 
#
10260
 
# You should have received a copy of the GNU General Public License
10261
 
# along with this program; if not, write to the Free Software
10262
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10263
 
#
10264
 
# As a special exception to the GNU General Public License, if you
10265
 
# distribute this file as part of a program that contains a
10266
 
# configuration script generated by Autoconf, you may include it under
10267
 
# the same distribution terms that you use for the rest of that program.
10268
 
 
10269
 
# A sed program that does not truncate output.
10270
 
SED=$lt_SED
10271
 
 
10272
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10273
 
Xsed="$SED -e 1s/^X//"
10274
 
 
10275
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10276
 
# if CDPATH is set.
10277
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10278
 
 
10279
 
# The names of the tagged configurations supported by this script.
10280
 
available_tags=
10281
 
 
10282
 
# ### BEGIN LIBTOOL CONFIG
10283
 
 
10284
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10285
 
 
10286
 
# Shell to use when invoking shell scripts.
10287
 
SHELL=$lt_SHELL
10288
 
 
10289
 
# Whether or not to build shared libraries.
10290
 
build_libtool_libs=$enable_shared
10291
 
 
10292
 
# Whether or not to build static libraries.
10293
 
build_old_libs=$enable_static
10294
 
 
10295
 
# Whether or not to add -lc for building shared libraries.
10296
 
build_libtool_need_lc=$archive_cmds_need_lc
10297
 
 
10298
 
# Whether or not to disallow shared libs when runtime libs are static
10299
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10300
 
 
10301
 
# Whether or not to optimize for fast installation.
10302
 
fast_install=$enable_fast_install
10303
 
 
10304
 
# The host system.
10305
 
host_alias=$host_alias
10306
 
host=$host
10307
 
host_os=$host_os
10308
 
 
10309
 
# The build system.
10310
 
build_alias=$build_alias
10311
 
build=$build
10312
 
build_os=$build_os
10313
 
 
10314
 
# An echo program that does not interpret backslashes.
10315
 
echo=$lt_echo
10316
 
 
10317
 
# The archiver.
10318
 
AR=$lt_AR
10319
 
AR_FLAGS=$lt_AR_FLAGS
10320
 
 
10321
 
# A C compiler.
10322
 
LTCC=$lt_LTCC
10323
 
 
10324
 
# LTCC compiler flags.
10325
 
LTCFLAGS=$lt_LTCFLAGS
10326
 
 
10327
 
# A language-specific compiler.
10328
 
CC=$lt_compiler
10329
 
 
10330
 
# Is the compiler the GNU C compiler?
10331
 
with_gcc=$GCC
10332
 
 
10333
 
# An ERE matcher.
10334
 
EGREP=$lt_EGREP
10335
 
 
10336
 
# The linker used to build libraries.
10337
 
LD=$lt_LD
10338
 
 
10339
 
# Whether we need hard or soft links.
10340
 
LN_S=$lt_LN_S
10341
 
 
10342
 
# A BSD-compatible nm program.
10343
 
NM=$lt_NM
10344
 
 
10345
 
# A symbol stripping program
10346
 
STRIP=$lt_STRIP
10347
 
 
10348
 
# Used to examine libraries when file_magic_cmd begins "file"
10349
 
MAGIC_CMD=$MAGIC_CMD
10350
 
 
10351
 
# Used on cygwin: DLL creation program.
10352
 
DLLTOOL="$DLLTOOL"
10353
 
 
10354
 
# Used on cygwin: object dumper.
10355
 
OBJDUMP="$OBJDUMP"
10356
 
 
10357
 
# Used on cygwin: assembler.
10358
 
AS="$AS"
10359
 
 
10360
 
# The name of the directory that contains temporary libtool files.
10361
 
objdir=$objdir
10362
 
 
10363
 
# How to create reloadable object files.
10364
 
reload_flag=$lt_reload_flag
10365
 
reload_cmds=$lt_reload_cmds
10366
 
 
10367
 
# How to pass a linker flag through the compiler.
10368
 
wl=$lt_lt_prog_compiler_wl
10369
 
 
10370
 
# Object file suffix (normally "o").
10371
 
objext="$ac_objext"
10372
 
 
10373
 
# Old archive suffix (normally "a").
10374
 
libext="$libext"
10375
 
 
10376
 
# Shared library suffix (normally ".so").
10377
 
shrext_cmds='$shrext_cmds'
10378
 
 
10379
 
# Executable file suffix (normally "").
10380
 
exeext="$exeext"
10381
 
 
10382
 
# Additional compiler flags for building library objects.
10383
 
pic_flag=$lt_lt_prog_compiler_pic
10384
 
pic_mode=$pic_mode
10385
 
 
10386
 
# What is the maximum length of a command?
10387
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10388
 
 
10389
 
# Does compiler simultaneously support -c and -o options?
10390
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10391
 
 
10392
 
# Must we lock files when doing compilation?
10393
 
need_locks=$lt_need_locks
10394
 
 
10395
 
# Do we need the lib prefix for modules?
10396
 
need_lib_prefix=$need_lib_prefix
10397
 
 
10398
 
# Do we need a version for libraries?
10399
 
need_version=$need_version
10400
 
 
10401
 
# Whether dlopen is supported.
10402
 
dlopen_support=$enable_dlopen
10403
 
 
10404
 
# Whether dlopen of programs is supported.
10405
 
dlopen_self=$enable_dlopen_self
10406
 
 
10407
 
# Whether dlopen of statically linked programs is supported.
10408
 
dlopen_self_static=$enable_dlopen_self_static
10409
 
 
10410
 
# Compiler flag to prevent dynamic linking.
10411
 
link_static_flag=$lt_lt_prog_compiler_static
10412
 
 
10413
 
# Compiler flag to turn off builtin functions.
10414
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10415
 
 
10416
 
# Compiler flag to allow reflexive dlopens.
10417
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10418
 
 
10419
 
# Compiler flag to generate shared objects directly from archives.
10420
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10421
 
 
10422
 
# Compiler flag to generate thread-safe objects.
10423
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10424
 
 
10425
 
# Library versioning type.
10426
 
version_type=$version_type
10427
 
 
10428
 
# Format of library name prefix.
10429
 
libname_spec=$lt_libname_spec
10430
 
 
10431
 
# List of archive names.  First name is the real one, the rest are links.
10432
 
# The last name is the one that the linker finds with -lNAME.
10433
 
library_names_spec=$lt_library_names_spec
10434
 
 
10435
 
# The coded name of the library, if different from the real name.
10436
 
soname_spec=$lt_soname_spec
10437
 
 
10438
 
# Commands used to build and install an old-style archive.
10439
 
RANLIB=$lt_RANLIB
10440
 
old_archive_cmds=$lt_old_archive_cmds
10441
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10442
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10443
 
 
10444
 
# Create an old-style archive from a shared archive.
10445
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10446
 
 
10447
 
# Create a temporary old-style archive to link instead of a shared archive.
10448
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10449
 
 
10450
 
# Commands used to build and install a shared archive.
10451
 
archive_cmds=$lt_archive_cmds
10452
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10453
 
postinstall_cmds=$lt_postinstall_cmds
10454
 
postuninstall_cmds=$lt_postuninstall_cmds
10455
 
 
10456
 
# Commands used to build a loadable module (assumed same as above if empty)
10457
 
module_cmds=$lt_module_cmds
10458
 
module_expsym_cmds=$lt_module_expsym_cmds
10459
 
 
10460
 
# Commands to strip libraries.
10461
 
old_striplib=$lt_old_striplib
10462
 
striplib=$lt_striplib
10463
 
 
10464
 
# Dependencies to place before the objects being linked to create a
10465
 
# shared library.
10466
 
predep_objects=$lt_predep_objects
10467
 
 
10468
 
# Dependencies to place after the objects being linked to create a
10469
 
# shared library.
10470
 
postdep_objects=$lt_postdep_objects
10471
 
 
10472
 
# Dependencies to place before the objects being linked to create a
10473
 
# shared library.
10474
 
predeps=$lt_predeps
10475
 
 
10476
 
# Dependencies to place after the objects being linked to create a
10477
 
# shared library.
10478
 
postdeps=$lt_postdeps
10479
 
 
10480
 
# The library search path used internally by the compiler when linking
10481
 
# a shared library.
10482
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10483
 
 
10484
 
# Method to check whether dependent libraries are shared objects.
10485
 
deplibs_check_method=$lt_deplibs_check_method
10486
 
 
10487
 
# Command to use when deplibs_check_method == file_magic.
10488
 
file_magic_cmd=$lt_file_magic_cmd
10489
 
 
10490
 
# Flag that allows shared libraries with undefined symbols to be built.
10491
 
allow_undefined_flag=$lt_allow_undefined_flag
10492
 
 
10493
 
# Flag that forces no undefined symbols.
10494
 
no_undefined_flag=$lt_no_undefined_flag
10495
 
 
10496
 
# Commands used to finish a libtool library installation in a directory.
10497
 
finish_cmds=$lt_finish_cmds
10498
 
 
10499
 
# Same as above, but a single script fragment to be evaled but not shown.
10500
 
finish_eval=$lt_finish_eval
10501
 
 
10502
 
# Take the output of nm and produce a listing of raw symbols and C names.
10503
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10504
 
 
10505
 
# Transform the output of nm in a proper C declaration
10506
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10507
 
 
10508
 
# Transform the output of nm in a C name address pair
10509
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10510
 
 
10511
 
# This is the shared library runtime path variable.
10512
 
runpath_var=$runpath_var
10513
 
 
10514
 
# This is the shared library path variable.
10515
 
shlibpath_var=$shlibpath_var
10516
 
 
10517
 
# Is shlibpath searched before the hard-coded library search path?
10518
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10519
 
 
10520
 
# How to hardcode a shared library path into an executable.
10521
 
hardcode_action=$hardcode_action
10522
 
 
10523
 
# Whether we should hardcode library paths into libraries.
10524
 
hardcode_into_libs=$hardcode_into_libs
10525
 
 
10526
 
# Flag to hardcode \$libdir into a binary during linking.
10527
 
# This must work even if \$libdir does not exist.
10528
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10529
 
 
10530
 
# If ld is used when linking, flag to hardcode \$libdir into
10531
 
# a binary during linking. This must work even if \$libdir does
10532
 
# not exist.
10533
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10534
 
 
10535
 
# Whether we need a single -rpath flag with a separated argument.
10536
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10537
 
 
10538
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10539
 
# resulting binary.
10540
 
hardcode_direct=$hardcode_direct
10541
 
 
10542
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10543
 
# resulting binary.
10544
 
hardcode_minus_L=$hardcode_minus_L
10545
 
 
10546
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10547
 
# the resulting binary.
10548
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10549
 
 
10550
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10551
 
# and all subsequent libraries and executables linked against it.
10552
 
hardcode_automatic=$hardcode_automatic
10553
 
 
10554
 
# Variables whose values should be saved in libtool wrapper scripts and
10555
 
# restored at relink time.
10556
 
variables_saved_for_relink="$variables_saved_for_relink"
10557
 
 
10558
 
# Whether libtool must link a program against all its dependency libraries.
10559
 
link_all_deplibs=$link_all_deplibs
10560
 
 
10561
 
# Compile-time system search path for libraries
10562
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10563
 
 
10564
 
# Run-time system search path for libraries
10565
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10566
 
 
10567
 
# Fix the shell variable \$srcfile for the compiler.
10568
 
fix_srcfile_path="$fix_srcfile_path"
10569
 
 
10570
 
# Set to yes if exported symbols are required.
10571
 
always_export_symbols=$always_export_symbols
10572
 
 
10573
 
# The commands to list exported symbols.
10574
 
export_symbols_cmds=$lt_export_symbols_cmds
10575
 
 
10576
 
# The commands to extract the exported symbol list from a shared archive.
10577
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10578
 
 
10579
 
# Symbols that should not be listed in the preloaded symbols.
10580
 
exclude_expsyms=$lt_exclude_expsyms
10581
 
 
10582
 
# Symbols that must always be exported.
10583
 
include_expsyms=$lt_include_expsyms
10584
 
 
10585
 
# ### END LIBTOOL CONFIG
10586
 
 
10587
 
__EOF__
10588
 
 
10589
 
 
10590
 
  case $host_os in
10591
 
  aix3*)
10592
 
    cat <<\EOF >> "$cfgfile"
10593
 
 
10594
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10595
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10596
 
# vanish in a puff of smoke.
10597
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10598
 
  COLLECT_NAMES=
10599
 
  export COLLECT_NAMES
10600
 
fi
10601
 
EOF
10602
 
    ;;
10603
 
  esac
10604
 
 
10605
 
  # We use sed instead of cat because bash on DJGPP gets confused if
10606
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10607
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
10608
 
  # is reportedly fixed, but why not run on old versions too?
10609
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10610
 
 
10611
 
  mv -f "$cfgfile" "$ofile" || \
10612
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10613
 
  chmod +x "$ofile"
10614
 
 
10615
 
else
10616
 
  # If there is no Makefile yet, we rely on a make rule to execute
10617
 
  # `config.status --recheck' to rerun these tests and create the
10618
 
  # libtool script then.
10619
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10620
 
  if test -f "$ltmain_in"; then
10621
 
    test -f Makefile && make "$ltmain"
10622
 
  fi
10623
 
fi
10624
 
 
10625
 
 
10626
 
ac_ext=c
10627
 
ac_cpp='$CPP $CPPFLAGS'
10628
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10629
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10630
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10631
 
 
10632
 
CC="$lt_save_CC"
10633
 
 
10634
 
 
10635
 
# Check whether --with-tags was given.
10636
 
if test "${with_tags+set}" = set; then
10637
 
  withval=$with_tags; tagnames="$withval"
10638
 
fi
10639
 
 
10640
 
 
10641
 
if test -f "$ltmain" && test -n "$tagnames"; then
10642
 
  if test ! -f "${ofile}"; then
10643
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10644
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10645
 
  fi
10646
 
 
10647
 
  if test -z "$LTCC"; then
10648
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10649
 
    if test -z "$LTCC"; then
10650
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10651
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10652
 
    else
10653
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10654
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10655
 
    fi
10656
 
  fi
10657
 
  if test -z "$LTCFLAGS"; then
10658
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10659
 
  fi
10660
 
 
10661
 
  # Extract list of available tagged configurations in $ofile.
10662
 
  # Note that this assumes the entire list is on one line.
10663
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10664
 
 
10665
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10666
 
  for tagname in $tagnames; do
10667
 
    IFS="$lt_save_ifs"
10668
 
    # Check whether tagname contains only valid characters
10669
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10670
 
    "") ;;
10671
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10672
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10673
 
   { (exit 1); exit 1; }; }
10674
 
        ;;
10675
 
    esac
10676
 
 
10677
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10678
 
    then
10679
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10680
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10681
 
   { (exit 1); exit 1; }; }
10682
 
    fi
10683
 
 
10684
 
    # Update the list of available tags.
10685
 
    if test -n "$tagname"; then
10686
 
      echo appending configuration tag \"$tagname\" to $ofile
10687
 
 
10688
 
      case $tagname in
10689
 
      CXX)
10690
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10691
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10692
 
            (test "X$CXX" != "Xg++"))) ; then
10693
 
          ac_ext=cpp
10694
 
ac_cpp='$CXXCPP $CPPFLAGS'
10695
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10696
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10697
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10698
 
 
10699
 
 
10700
 
 
10701
 
 
10702
 
archive_cmds_need_lc_CXX=no
10703
 
allow_undefined_flag_CXX=
10704
 
always_export_symbols_CXX=no
10705
 
archive_expsym_cmds_CXX=
10706
 
export_dynamic_flag_spec_CXX=
10707
 
hardcode_direct_CXX=no
10708
 
hardcode_libdir_flag_spec_CXX=
10709
 
hardcode_libdir_flag_spec_ld_CXX=
10710
 
hardcode_libdir_separator_CXX=
10711
 
hardcode_minus_L_CXX=no
10712
 
hardcode_shlibpath_var_CXX=unsupported
10713
 
hardcode_automatic_CXX=no
10714
 
module_cmds_CXX=
10715
 
module_expsym_cmds_CXX=
10716
 
link_all_deplibs_CXX=unknown
10717
 
old_archive_cmds_CXX=$old_archive_cmds
10718
 
no_undefined_flag_CXX=
10719
 
whole_archive_flag_spec_CXX=
10720
 
enable_shared_with_static_runtimes_CXX=no
10721
 
 
10722
 
# Dependencies to place before and after the object being linked:
10723
 
predep_objects_CXX=
10724
 
postdep_objects_CXX=
10725
 
predeps_CXX=
10726
 
postdeps_CXX=
10727
 
compiler_lib_search_path_CXX=
10728
 
 
10729
 
# Source file extension for C++ test sources.
10730
 
ac_ext=cpp
10731
 
 
10732
 
# Object file extension for compiled C++ test sources.
10733
 
objext=o
10734
 
objext_CXX=$objext
10735
 
 
10736
 
# Code to be used in simple compile tests
10737
 
lt_simple_compile_test_code="int some_variable = 0;\n"
10738
 
 
10739
 
# Code to be used in simple link tests
10740
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10741
 
 
10742
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10743
 
 
10744
 
# If no C compiler was specified, use CC.
10745
 
LTCC=${LTCC-"$CC"}
10746
 
 
10747
 
# If no C compiler flags were specified, use CFLAGS.
10748
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10749
 
 
10750
 
# Allow CC to be a program name with arguments.
10751
 
compiler=$CC
10752
 
 
10753
 
 
10754
 
# save warnings/boilerplate of simple test code
10755
 
ac_outfile=conftest.$ac_objext
10756
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10757
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10758
 
_lt_compiler_boilerplate=`cat conftest.err`
10759
 
$rm conftest*
10760
 
 
10761
 
ac_outfile=conftest.$ac_objext
10762
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10763
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10764
 
_lt_linker_boilerplate=`cat conftest.err`
10765
 
$rm conftest*
10766
 
 
10767
 
 
10768
 
# Allow CC to be a program name with arguments.
10769
 
lt_save_CC=$CC
10770
 
lt_save_LD=$LD
10771
 
lt_save_GCC=$GCC
10772
 
GCC=$GXX
10773
 
lt_save_with_gnu_ld=$with_gnu_ld
10774
 
lt_save_path_LD=$lt_cv_path_LD
10775
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10776
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10777
 
else
10778
 
  $as_unset lt_cv_prog_gnu_ld
10779
 
fi
10780
 
if test -n "${lt_cv_path_LDCXX+set}"; then
10781
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
10782
 
else
10783
 
  $as_unset lt_cv_path_LD
10784
 
fi
10785
 
test -z "${LDCXX+set}" || LD=$LDCXX
10786
 
CC=${CXX-"c++"}
10787
 
compiler=$CC
10788
 
compiler_CXX=$CC
10789
 
for cc_temp in $compiler""; do
10790
 
  case $cc_temp in
10791
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10792
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10793
 
    \-*) ;;
10794
 
    *) break;;
10795
 
  esac
10796
 
done
10797
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10798
 
 
10799
 
 
10800
 
# We don't want -fno-exception wen compiling C++ code, so set the
10801
 
# no_builtin_flag separately
10802
 
if test "$GXX" = yes; then
10803
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10804
 
else
10805
 
  lt_prog_compiler_no_builtin_flag_CXX=
10806
 
fi
10807
 
 
10808
 
if test "$GXX" = yes; then
10809
 
  # Set up default GNU C++ configuration
10810
 
 
10811
 
 
10812
 
# Check whether --with-gnu-ld was given.
10813
 
if test "${with_gnu_ld+set}" = set; then
10814
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10815
 
else
10816
 
  with_gnu_ld=no
10817
 
fi
10818
 
 
10819
 
ac_prog=ld
10820
 
if test "$GCC" = yes; then
10821
 
  # Check if gcc -print-prog-name=ld gives a path.
10822
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10823
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10824
 
  case $host in
10825
 
  *-*-mingw*)
10826
 
    # gcc leaves a trailing carriage return which upsets mingw
10827
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10828
 
  *)
10829
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10830
 
  esac
10831
 
  case $ac_prog in
10832
 
    # Accept absolute paths.
10833
 
    [\\/]* | ?:[\\/]*)
10834
 
      re_direlt='/[^/][^/]*/\.\./'
10835
 
      # Canonicalize the pathname of ld
10836
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10837
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10838
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10839
 
      done
10840
 
      test -z "$LD" && LD="$ac_prog"
10841
 
      ;;
10842
 
  "")
10843
 
    # If it fails, then pretend we aren't using GCC.
10844
 
    ac_prog=ld
10845
 
    ;;
10846
 
  *)
10847
 
    # If it is relative, then search for the first ld in PATH.
10848
 
    with_gnu_ld=unknown
10849
 
    ;;
10850
 
  esac
10851
 
elif test "$with_gnu_ld" = yes; then
10852
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10853
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10854
 
else
10855
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10856
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10857
 
fi
10858
 
if test "${lt_cv_path_LD+set}" = set; then
10859
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10860
 
else
10861
 
  if test -z "$LD"; then
10862
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10863
 
  for ac_dir in $PATH; do
10864
 
    IFS="$lt_save_ifs"
10865
 
    test -z "$ac_dir" && ac_dir=.
10866
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10867
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
10868
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
10869
 
      # but apparently some variants of GNU ld only accept -v.
10870
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
10871
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10872
 
      *GNU* | *'with BFD'*)
10873
 
        test "$with_gnu_ld" != no && break
10874
 
        ;;
10875
 
      *)
10876
 
        test "$with_gnu_ld" != yes && break
10877
 
        ;;
10878
 
      esac
10879
 
    fi
10880
 
  done
10881
 
  IFS="$lt_save_ifs"
10882
 
else
10883
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10884
 
fi
10885
 
fi
10886
 
 
10887
 
LD="$lt_cv_path_LD"
10888
 
if test -n "$LD"; then
10889
 
  { echo "$as_me:$LINENO: result: $LD" >&5
10890
 
echo "${ECHO_T}$LD" >&6; }
10891
 
else
10892
 
  { echo "$as_me:$LINENO: result: no" >&5
10893
 
echo "${ECHO_T}no" >&6; }
10894
 
fi
10895
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10896
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10897
 
   { (exit 1); exit 1; }; }
10898
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10899
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10900
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10901
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10902
 
else
10903
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10904
 
case `$LD -v 2>&1 </dev/null` in
10905
 
*GNU* | *'with BFD'*)
10906
 
  lt_cv_prog_gnu_ld=yes
10907
 
  ;;
10908
 
*)
10909
 
  lt_cv_prog_gnu_ld=no
10910
 
  ;;
10911
 
esac
10912
 
fi
10913
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10914
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10915
 
with_gnu_ld=$lt_cv_prog_gnu_ld
10916
 
 
10917
 
 
10918
 
 
10919
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10920
 
  # archiving commands below assume that GNU ld is being used.
10921
 
  if test "$with_gnu_ld" = yes; then
10922
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10923
 
    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'
10924
 
 
10925
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10926
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10927
 
 
10928
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
10929
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10930
 
    #     investigate it a little bit more. (MM)
10931
 
    wlarc='${wl}'
10932
 
 
10933
 
    # ancient GNU ld didn't support --whole-archive et. al.
10934
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10935
 
        grep 'no-whole-archive' > /dev/null; then
10936
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10937
 
    else
10938
 
      whole_archive_flag_spec_CXX=
10939
 
    fi
10940
 
  else
10941
 
    with_gnu_ld=no
10942
 
    wlarc=
10943
 
 
10944
 
    # A generic and very simple default shared library creation
10945
 
    # command for GNU C++ for the case where it uses the native
10946
 
    # linker, instead of GNU ld.  If possible, this setting should
10947
 
    # overridden to take advantage of the native linker features on
10948
 
    # the platform it is being used on.
10949
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10950
 
  fi
10951
 
 
10952
 
  # Commands to make compiler produce verbose output that lists
10953
 
  # what "hidden" libraries, object files and flags are used when
10954
 
  # linking a shared library.
10955
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10956
 
 
10957
 
else
10958
 
  GXX=no
10959
 
  with_gnu_ld=no
10960
 
  wlarc=
10961
 
fi
10962
 
 
10963
 
# PORTME: fill in a description of your system's C++ link characteristics
10964
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10966
 
ld_shlibs_CXX=yes
10967
 
case $host_os in
10968
 
  aix3*)
10969
 
    # FIXME: insert proper C++ library support
10970
 
    ld_shlibs_CXX=no
10971
 
    ;;
10972
 
  aix4* | aix5*)
10973
 
    if test "$host_cpu" = ia64; then
10974
 
      # On IA64, the linker does run time linking by default, so we don't
10975
 
      # have to do anything special.
10976
 
      aix_use_runtimelinking=no
10977
 
      exp_sym_flag='-Bexport'
10978
 
      no_entry_flag=""
10979
 
    else
10980
 
      aix_use_runtimelinking=no
10981
 
 
10982
 
      # Test if we are trying to use run time linking or normal
10983
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10984
 
      # need to do runtime linking.
10985
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10986
 
        for ld_flag in $LDFLAGS; do
10987
 
          case $ld_flag in
10988
 
          *-brtl*)
10989
 
            aix_use_runtimelinking=yes
10990
 
            break
10991
 
            ;;
10992
 
          esac
10993
 
        done
10994
 
        ;;
10995
 
      esac
10996
 
 
10997
 
      exp_sym_flag='-bexport'
10998
 
      no_entry_flag='-bnoentry'
10999
 
    fi
11000
 
 
11001
 
    # When large executables or shared objects are built, AIX ld can
11002
 
    # have problems creating the table of contents.  If linking a library
11003
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11004
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11005
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11006
 
 
11007
 
    archive_cmds_CXX=''
11008
 
    hardcode_direct_CXX=yes
11009
 
    hardcode_libdir_separator_CXX=':'
11010
 
    link_all_deplibs_CXX=yes
11011
 
 
11012
 
    if test "$GXX" = yes; then
11013
 
      case $host_os in aix4.[012]|aix4.[012].*)
11014
 
      # We only want to do this on AIX 4.2 and lower, the check
11015
 
      # below for broken collect2 doesn't work under 4.3+
11016
 
        collect2name=`${CC} -print-prog-name=collect2`
11017
 
        if test -f "$collect2name" && \
11018
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11019
 
        then
11020
 
          # We have reworked collect2
11021
 
          hardcode_direct_CXX=yes
11022
 
        else
11023
 
          # We have old collect2
11024
 
          hardcode_direct_CXX=unsupported
11025
 
          # It fails to find uninstalled libraries when the uninstalled
11026
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11027
 
          # to unsupported forces relinking
11028
 
          hardcode_minus_L_CXX=yes
11029
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11030
 
          hardcode_libdir_separator_CXX=
11031
 
        fi
11032
 
        ;;
11033
 
      esac
11034
 
      shared_flag='-shared'
11035
 
      if test "$aix_use_runtimelinking" = yes; then
11036
 
        shared_flag="$shared_flag "'${wl}-G'
11037
 
      fi
11038
 
    else
11039
 
      # not using gcc
11040
 
      if test "$host_cpu" = ia64; then
11041
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11042
 
        # chokes on -Wl,-G. The following line is correct:
11043
 
        shared_flag='-G'
11044
 
      else
11045
 
        if test "$aix_use_runtimelinking" = yes; then
11046
 
          shared_flag='${wl}-G'
11047
 
        else
11048
 
          shared_flag='${wl}-bM:SRE'
11049
 
        fi
11050
 
      fi
11051
 
    fi
11052
 
 
11053
 
    # It seems that -bexpall does not export symbols beginning with
11054
 
    # underscore (_), so it is better to generate a list of symbols to export.
11055
 
    always_export_symbols_CXX=yes
11056
 
    if test "$aix_use_runtimelinking" = yes; then
11057
 
      # Warning - without using the other runtime loading flags (-brtl),
11058
 
      # -berok will link without error, but may produce a broken library.
11059
 
      allow_undefined_flag_CXX='-berok'
11060
 
      # Determine the default libpath from the value encoded in an empty executable.
11061
 
      cat >conftest.$ac_ext <<_ACEOF
11062
 
/* confdefs.h.  */
11063
 
_ACEOF
11064
 
cat confdefs.h >>conftest.$ac_ext
11065
 
cat >>conftest.$ac_ext <<_ACEOF
11066
 
/* end confdefs.h.  */
11067
 
 
11068
 
int
11069
 
main ()
11070
 
{
11071
 
 
11072
 
  ;
11073
 
  return 0;
11074
 
}
11075
 
_ACEOF
11076
 
rm -f conftest.$ac_objext conftest$ac_exeext
11077
 
if { (ac_try="$ac_link"
11078
 
case "(($ac_try" in
11079
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080
 
  *) ac_try_echo=$ac_try;;
11081
 
esac
11082
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083
 
  (eval "$ac_link") 2>conftest.er1
11084
 
  ac_status=$?
11085
 
  grep -v '^ *+' conftest.er1 >conftest.err
11086
 
  rm -f conftest.er1
11087
 
  cat conftest.err >&5
11088
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089
 
  (exit $ac_status); } && {
11090
 
         test -z "$ac_cxx_werror_flag" ||
11091
 
         test ! -s conftest.err
11092
 
       } && test -s conftest$ac_exeext &&
11093
 
       $as_test_x conftest$ac_exeext; then
11094
 
 
11095
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11096
 
}'`
11097
 
# Check for a 64-bit object if we didn't find anything.
11098
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11099
 
}'`; fi
11100
 
else
11101
 
  echo "$as_me: failed program was:" >&5
11102
 
sed 's/^/| /' conftest.$ac_ext >&5
11103
 
 
11104
 
 
11105
 
fi
11106
 
 
11107
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108
 
      conftest$ac_exeext conftest.$ac_ext
11109
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11110
 
 
11111
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11112
 
 
11113
 
      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"
11114
 
     else
11115
 
      if test "$host_cpu" = ia64; then
11116
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11117
 
        allow_undefined_flag_CXX="-z nodefs"
11118
 
        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"
11119
 
      else
11120
 
        # Determine the default libpath from the value encoded in an empty executable.
11121
 
        cat >conftest.$ac_ext <<_ACEOF
11122
 
/* confdefs.h.  */
11123
 
_ACEOF
11124
 
cat confdefs.h >>conftest.$ac_ext
11125
 
cat >>conftest.$ac_ext <<_ACEOF
11126
 
/* end confdefs.h.  */
11127
 
 
11128
 
int
11129
 
main ()
11130
 
{
11131
 
 
11132
 
  ;
11133
 
  return 0;
11134
 
}
11135
 
_ACEOF
11136
 
rm -f conftest.$ac_objext conftest$ac_exeext
11137
 
if { (ac_try="$ac_link"
11138
 
case "(($ac_try" in
11139
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140
 
  *) ac_try_echo=$ac_try;;
11141
 
esac
11142
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143
 
  (eval "$ac_link") 2>conftest.er1
11144
 
  ac_status=$?
11145
 
  grep -v '^ *+' conftest.er1 >conftest.err
11146
 
  rm -f conftest.er1
11147
 
  cat conftest.err >&5
11148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149
 
  (exit $ac_status); } && {
11150
 
         test -z "$ac_cxx_werror_flag" ||
11151
 
         test ! -s conftest.err
11152
 
       } && test -s conftest$ac_exeext &&
11153
 
       $as_test_x conftest$ac_exeext; then
11154
 
 
11155
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11156
 
}'`
11157
 
# Check for a 64-bit object if we didn't find anything.
11158
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11159
 
}'`; fi
11160
 
else
11161
 
  echo "$as_me: failed program was:" >&5
11162
 
sed 's/^/| /' conftest.$ac_ext >&5
11163
 
 
11164
 
 
11165
 
fi
11166
 
 
11167
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11168
 
      conftest$ac_exeext conftest.$ac_ext
11169
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11170
 
 
11171
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172
 
        # Warning - without using the other run time loading flags,
11173
 
        # -berok will link without error, but may produce a broken library.
11174
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11175
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11176
 
        # Exported symbols can be pulled into shared objects from archives
11177
 
        whole_archive_flag_spec_CXX='$convenience'
11178
 
        archive_cmds_need_lc_CXX=yes
11179
 
        # This is similar to how AIX traditionally builds its shared libraries.
11180
 
        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'
11181
 
      fi
11182
 
    fi
11183
 
    ;;
11184
 
 
11185
 
  beos*)
11186
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11187
 
      allow_undefined_flag_CXX=unsupported
11188
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11189
 
      # support --undefined.  This deserves some investigation.  FIXME
11190
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11191
 
    else
11192
 
      ld_shlibs_CXX=no
11193
 
    fi
11194
 
    ;;
11195
 
 
11196
 
  chorus*)
11197
 
    case $cc_basename in
11198
 
      *)
11199
 
        # FIXME: insert proper C++ library support
11200
 
        ld_shlibs_CXX=no
11201
 
        ;;
11202
 
    esac
11203
 
    ;;
11204
 
 
11205
 
  cygwin* | mingw* | pw32*)
11206
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11207
 
    # as there is no search path for DLLs.
11208
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11209
 
    allow_undefined_flag_CXX=unsupported
11210
 
    always_export_symbols_CXX=no
11211
 
    enable_shared_with_static_runtimes_CXX=yes
11212
 
 
11213
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11214
 
      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'
11215
 
      # If the export-symbols file already is a .def file (1st line
11216
 
      # is EXPORTS), use it as is; otherwise, prepend...
11217
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11218
 
        cp $export_symbols $output_objdir/$soname.def;
11219
 
      else
11220
 
        echo EXPORTS > $output_objdir/$soname.def;
11221
 
        cat $export_symbols >> $output_objdir/$soname.def;
11222
 
      fi~
11223
 
      $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'
11224
 
    else
11225
 
      ld_shlibs_CXX=no
11226
 
    fi
11227
 
  ;;
11228
 
      darwin* | rhapsody*)
11229
 
        case $host_os in
11230
 
        rhapsody* | darwin1.[012])
11231
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11232
 
         ;;
11233
 
       *) # Darwin 1.3 on
11234
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11235
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11236
 
         else
11237
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11238
 
             10.[012])
11239
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11240
 
               ;;
11241
 
             10.*)
11242
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11243
 
               ;;
11244
 
           esac
11245
 
         fi
11246
 
         ;;
11247
 
        esac
11248
 
      archive_cmds_need_lc_CXX=no
11249
 
      hardcode_direct_CXX=no
11250
 
      hardcode_automatic_CXX=yes
11251
 
      hardcode_shlibpath_var_CXX=unsupported
11252
 
      whole_archive_flag_spec_CXX=''
11253
 
      link_all_deplibs_CXX=yes
11254
 
 
11255
 
    if test "$GXX" = yes ; then
11256
 
      lt_int_apple_cc_single_mod=no
11257
 
      output_verbose_link_cmd='echo'
11258
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11259
 
       lt_int_apple_cc_single_mod=yes
11260
 
      fi
11261
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11263
 
      else
11264
 
          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'
11265
 
        fi
11266
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11267
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11268
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11270
 
          else
11271
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11272
 
          fi
11273
 
            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}'
11274
 
      else
11275
 
      case $cc_basename in
11276
 
        xlc*)
11277
 
         output_verbose_link_cmd='echo'
11278
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11279
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281
 
          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11282
 
          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}'
11283
 
          ;;
11284
 
       *)
11285
 
         ld_shlibs_CXX=no
11286
 
          ;;
11287
 
      esac
11288
 
      fi
11289
 
        ;;
11290
 
 
11291
 
  dgux*)
11292
 
    case $cc_basename in
11293
 
      ec++*)
11294
 
        # FIXME: insert proper C++ library support
11295
 
        ld_shlibs_CXX=no
11296
 
        ;;
11297
 
      ghcx*)
11298
 
        # Green Hills C++ Compiler
11299
 
        # FIXME: insert proper C++ library support
11300
 
        ld_shlibs_CXX=no
11301
 
        ;;
11302
 
      *)
11303
 
        # FIXME: insert proper C++ library support
11304
 
        ld_shlibs_CXX=no
11305
 
        ;;
11306
 
    esac
11307
 
    ;;
11308
 
  freebsd[12]*)
11309
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11310
 
    ld_shlibs_CXX=no
11311
 
    ;;
11312
 
  freebsd-elf*)
11313
 
    archive_cmds_need_lc_CXX=no
11314
 
    ;;
11315
 
  freebsd* | dragonfly*)
11316
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11317
 
    # conventions
11318
 
    ld_shlibs_CXX=yes
11319
 
    ;;
11320
 
  gnu*)
11321
 
    ;;
11322
 
  hpux9*)
11323
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324
 
    hardcode_libdir_separator_CXX=:
11325
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11326
 
    hardcode_direct_CXX=yes
11327
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11328
 
                                # but as the default
11329
 
                                # location of the library.
11330
 
 
11331
 
    case $cc_basename in
11332
 
    CC*)
11333
 
      # FIXME: insert proper C++ library support
11334
 
      ld_shlibs_CXX=no
11335
 
      ;;
11336
 
    aCC*)
11337
 
      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'
11338
 
      # Commands to make compiler produce verbose output that lists
11339
 
      # what "hidden" libraries, object files and flags are used when
11340
 
      # linking a shared library.
11341
 
      #
11342
 
      # There doesn't appear to be a way to prevent this compiler from
11343
 
      # explicitly linking system object files so we need to strip them
11344
 
      # from the output so that they don't get included in the library
11345
 
      # dependencies.
11346
 
      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'
11347
 
      ;;
11348
 
    *)
11349
 
      if test "$GXX" = yes; then
11350
 
        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'
11351
 
      else
11352
 
        # FIXME: insert proper C++ library support
11353
 
        ld_shlibs_CXX=no
11354
 
      fi
11355
 
      ;;
11356
 
    esac
11357
 
    ;;
11358
 
  hpux10*|hpux11*)
11359
 
    if test $with_gnu_ld = no; then
11360
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11361
 
      hardcode_libdir_separator_CXX=:
11362
 
 
11363
 
      case $host_cpu in
11364
 
      hppa*64*|ia64*)
11365
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11366
 
        ;;
11367
 
      *)
11368
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11369
 
        ;;
11370
 
      esac
11371
 
    fi
11372
 
    case $host_cpu in
11373
 
    hppa*64*|ia64*)
11374
 
      hardcode_direct_CXX=no
11375
 
      hardcode_shlibpath_var_CXX=no
11376
 
      ;;
11377
 
    *)
11378
 
      hardcode_direct_CXX=yes
11379
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11380
 
                                              # but as the default
11381
 
                                              # location of the library.
11382
 
      ;;
11383
 
    esac
11384
 
 
11385
 
    case $cc_basename in
11386
 
      CC*)
11387
 
        # FIXME: insert proper C++ library support
11388
 
        ld_shlibs_CXX=no
11389
 
        ;;
11390
 
      aCC*)
11391
 
        case $host_cpu in
11392
 
        hppa*64*)
11393
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11394
 
          ;;
11395
 
        ia64*)
11396
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11397
 
          ;;
11398
 
        *)
11399
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11400
 
          ;;
11401
 
        esac
11402
 
        # Commands to make compiler produce verbose output that lists
11403
 
        # what "hidden" libraries, object files and flags are used when
11404
 
        # linking a shared library.
11405
 
        #
11406
 
        # There doesn't appear to be a way to prevent this compiler from
11407
 
        # explicitly linking system object files so we need to strip them
11408
 
        # from the output so that they don't get included in the library
11409
 
        # dependencies.
11410
 
        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'
11411
 
        ;;
11412
 
      *)
11413
 
        if test "$GXX" = yes; then
11414
 
          if test $with_gnu_ld = no; then
11415
 
            case $host_cpu in
11416
 
            hppa*64*)
11417
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11418
 
              ;;
11419
 
            ia64*)
11420
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11421
 
              ;;
11422
 
            *)
11423
 
              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'
11424
 
              ;;
11425
 
            esac
11426
 
          fi
11427
 
        else
11428
 
          # FIXME: insert proper C++ library support
11429
 
          ld_shlibs_CXX=no
11430
 
        fi
11431
 
        ;;
11432
 
    esac
11433
 
    ;;
11434
 
  interix3*)
11435
 
    hardcode_direct_CXX=no
11436
 
    hardcode_shlibpath_var_CXX=no
11437
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11439
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11441
 
    # default) and relocated if they conflict, which is a slow very memory
11442
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11443
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11445
 
    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'
11446
 
    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'
11447
 
    ;;
11448
 
  irix5* | irix6*)
11449
 
    case $cc_basename in
11450
 
      CC*)
11451
 
        # SGI C++
11452
 
        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'
11453
 
 
11454
 
        # Archives containing C++ object files must be created using
11455
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11456
 
        # necessary to make sure instantiated templates are included
11457
 
        # in the archive.
11458
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11459
 
        ;;
11460
 
      *)
11461
 
        if test "$GXX" = yes; then
11462
 
          if test "$with_gnu_ld" = no; then
11463
 
            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'
11464
 
          else
11465
 
            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'
11466
 
          fi
11467
 
        fi
11468
 
        link_all_deplibs_CXX=yes
11469
 
        ;;
11470
 
    esac
11471
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11472
 
    hardcode_libdir_separator_CXX=:
11473
 
    ;;
11474
 
  linux* | k*bsd*-gnu)
11475
 
    case $cc_basename in
11476
 
      KCC*)
11477
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11478
 
 
11479
 
        # KCC will only create a shared library if the output file
11480
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11481
 
        # to its proper name (with version) after linking.
11482
 
        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'
11483
 
        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'
11484
 
        # Commands to make compiler produce verbose output that lists
11485
 
        # what "hidden" libraries, object files and flags are used when
11486
 
        # linking a shared library.
11487
 
        #
11488
 
        # There doesn't appear to be a way to prevent this compiler from
11489
 
        # explicitly linking system object files so we need to strip them
11490
 
        # from the output so that they don't get included in the library
11491
 
        # dependencies.
11492
 
        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'
11493
 
 
11494
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11495
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11496
 
 
11497
 
        # Archives containing C++ object files must be created using
11498
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11499
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11500
 
        ;;
11501
 
      icpc*)
11502
 
        # Intel C++
11503
 
        with_gnu_ld=yes
11504
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11505
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11506
 
        # earlier do not add the objects themselves.
11507
 
        case `$CC -V 2>&1` in
11508
 
        *"Version 7."*)
11509
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510
 
          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'
11511
 
          ;;
11512
 
        *)  # Version 8.0 or newer
11513
 
          tmp_idyn=
11514
 
          case $host_cpu in
11515
 
            ia64*) tmp_idyn=' -i_dynamic';;
11516
 
          esac
11517
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518
 
          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'
11519
 
          ;;
11520
 
        esac
11521
 
        archive_cmds_need_lc_CXX=no
11522
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11524
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11525
 
        ;;
11526
 
      pgCC*)
11527
 
        # Portland Group C++ compiler
11528
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11529
 
        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'
11530
 
 
11531
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11532
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11533
 
        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'
11534
 
        ;;
11535
 
      cxx*)
11536
 
        # Compaq C++
11537
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538
 
        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'
11539
 
 
11540
 
        runpath_var=LD_RUN_PATH
11541
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11542
 
        hardcode_libdir_separator_CXX=:
11543
 
 
11544
 
        # Commands to make compiler produce verbose output that lists
11545
 
        # what "hidden" libraries, object files and flags are used when
11546
 
        # linking a shared library.
11547
 
        #
11548
 
        # There doesn't appear to be a way to prevent this compiler from
11549
 
        # explicitly linking system object files so we need to strip them
11550
 
        # from the output so that they don't get included in the library
11551
 
        # dependencies.
11552
 
        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'
11553
 
        ;;
11554
 
    esac
11555
 
    ;;
11556
 
  lynxos*)
11557
 
    # FIXME: insert proper C++ library support
11558
 
    ld_shlibs_CXX=no
11559
 
    ;;
11560
 
  m88k*)
11561
 
    # FIXME: insert proper C++ library support
11562
 
    ld_shlibs_CXX=no
11563
 
    ;;
11564
 
  mvs*)
11565
 
    case $cc_basename in
11566
 
      cxx*)
11567
 
        # FIXME: insert proper C++ library support
11568
 
        ld_shlibs_CXX=no
11569
 
        ;;
11570
 
      *)
11571
 
        # FIXME: insert proper C++ library support
11572
 
        ld_shlibs_CXX=no
11573
 
        ;;
11574
 
    esac
11575
 
    ;;
11576
 
  netbsd* | netbsdelf*-gnu)
11577
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11578
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11579
 
      wlarc=
11580
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11581
 
      hardcode_direct_CXX=yes
11582
 
      hardcode_shlibpath_var_CXX=no
11583
 
    fi
11584
 
    # Workaround some broken pre-1.5 toolchains
11585
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11586
 
    ;;
11587
 
  openbsd2*)
11588
 
    # C++ shared libraries are fairly broken
11589
 
    ld_shlibs_CXX=no
11590
 
    ;;
11591
 
  openbsd*)
11592
 
    hardcode_direct_CXX=yes
11593
 
    hardcode_shlibpath_var_CXX=no
11594
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11595
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11596
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11597
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11598
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11599
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11600
 
    fi
11601
 
    output_verbose_link_cmd='echo'
11602
 
    ;;
11603
 
  osf3*)
11604
 
    case $cc_basename in
11605
 
      KCC*)
11606
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11607
 
 
11608
 
        # KCC will only create a shared library if the output file
11609
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11610
 
        # to its proper name (with version) after linking.
11611
 
        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'
11612
 
 
11613
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11614
 
        hardcode_libdir_separator_CXX=:
11615
 
 
11616
 
        # Archives containing C++ object files must be created using
11617
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11619
 
 
11620
 
        ;;
11621
 
      RCC*)
11622
 
        # Rational C++ 2.4.1
11623
 
        # FIXME: insert proper C++ library support
11624
 
        ld_shlibs_CXX=no
11625
 
        ;;
11626
 
      cxx*)
11627
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11628
 
        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'
11629
 
 
11630
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11631
 
        hardcode_libdir_separator_CXX=:
11632
 
 
11633
 
        # Commands to make compiler produce verbose output that lists
11634
 
        # what "hidden" libraries, object files and flags are used when
11635
 
        # linking a shared library.
11636
 
        #
11637
 
        # There doesn't appear to be a way to prevent this compiler from
11638
 
        # explicitly linking system object files so we need to strip them
11639
 
        # from the output so that they don't get included in the library
11640
 
        # dependencies.
11641
 
        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'
11642
 
        ;;
11643
 
      *)
11644
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11645
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11646
 
          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'
11647
 
 
11648
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11649
 
          hardcode_libdir_separator_CXX=:
11650
 
 
11651
 
          # Commands to make compiler produce verbose output that lists
11652
 
          # what "hidden" libraries, object files and flags are used when
11653
 
          # linking a shared library.
11654
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11655
 
 
11656
 
        else
11657
 
          # FIXME: insert proper C++ library support
11658
 
          ld_shlibs_CXX=no
11659
 
        fi
11660
 
        ;;
11661
 
    esac
11662
 
    ;;
11663
 
  osf4* | osf5*)
11664
 
    case $cc_basename in
11665
 
      KCC*)
11666
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11667
 
 
11668
 
        # KCC will only create a shared library if the output file
11669
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11670
 
        # to its proper name (with version) after linking.
11671
 
        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'
11672
 
 
11673
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674
 
        hardcode_libdir_separator_CXX=:
11675
 
 
11676
 
        # Archives containing C++ object files must be created using
11677
 
        # the KAI C++ compiler.
11678
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11679
 
        ;;
11680
 
      RCC*)
11681
 
        # Rational C++ 2.4.1
11682
 
        # FIXME: insert proper C++ library support
11683
 
        ld_shlibs_CXX=no
11684
 
        ;;
11685
 
      cxx*)
11686
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11687
 
        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'
11688
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11689
 
          echo "-hidden">> $lib.exp~
11690
 
          $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~
11691
 
          $rm $lib.exp'
11692
 
 
11693
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11694
 
        hardcode_libdir_separator_CXX=:
11695
 
 
11696
 
        # Commands to make compiler produce verbose output that lists
11697
 
        # what "hidden" libraries, object files and flags are used when
11698
 
        # linking a shared library.
11699
 
        #
11700
 
        # There doesn't appear to be a way to prevent this compiler from
11701
 
        # explicitly linking system object files so we need to strip them
11702
 
        # from the output so that they don't get included in the library
11703
 
        # dependencies.
11704
 
        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'
11705
 
        ;;
11706
 
      *)
11707
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11709
 
         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'
11710
 
 
11711
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11712
 
          hardcode_libdir_separator_CXX=:
11713
 
 
11714
 
          # Commands to make compiler produce verbose output that lists
11715
 
          # what "hidden" libraries, object files and flags are used when
11716
 
          # linking a shared library.
11717
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11718
 
 
11719
 
        else
11720
 
          # FIXME: insert proper C++ library support
11721
 
          ld_shlibs_CXX=no
11722
 
        fi
11723
 
        ;;
11724
 
    esac
11725
 
    ;;
11726
 
  psos*)
11727
 
    # FIXME: insert proper C++ library support
11728
 
    ld_shlibs_CXX=no
11729
 
    ;;
11730
 
  sunos4*)
11731
 
    case $cc_basename in
11732
 
      CC*)
11733
 
        # Sun C++ 4.x
11734
 
        # FIXME: insert proper C++ library support
11735
 
        ld_shlibs_CXX=no
11736
 
        ;;
11737
 
      lcc*)
11738
 
        # Lucid
11739
 
        # FIXME: insert proper C++ library support
11740
 
        ld_shlibs_CXX=no
11741
 
        ;;
11742
 
      *)
11743
 
        # FIXME: insert proper C++ library support
11744
 
        ld_shlibs_CXX=no
11745
 
        ;;
11746
 
    esac
11747
 
    ;;
11748
 
  solaris*)
11749
 
    case $cc_basename in
11750
 
      CC*)
11751
 
        # Sun C++ 4.2, 5.x and Centerline C++
11752
 
        archive_cmds_need_lc_CXX=yes
11753
 
        no_undefined_flag_CXX=' -zdefs'
11754
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11755
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756
 
        $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'
11757
 
 
11758
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11759
 
        hardcode_shlibpath_var_CXX=no
11760
 
        case $host_os in
11761
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11762
 
          *)
11763
 
            # The C++ compiler is used as linker so we must use $wl
11764
 
            # flag to pass the commands to the underlying system
11765
 
            # linker. We must also pass each convience library through
11766
 
            # to the system linker between allextract/defaultextract.
11767
 
            # The C++ compiler will combine linker options so we
11768
 
            # cannot just pass the convience library names through
11769
 
            # without $wl.
11770
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11771
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11772
 
            ;;
11773
 
        esac
11774
 
        link_all_deplibs_CXX=yes
11775
 
 
11776
 
        output_verbose_link_cmd='echo'
11777
 
 
11778
 
        # Archives containing C++ object files must be created using
11779
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11780
 
        # necessary to make sure instantiated templates are included
11781
 
        # in the archive.
11782
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11783
 
        ;;
11784
 
      gcx*)
11785
 
        # Green Hills C++ Compiler
11786
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11787
 
 
11788
 
        # The C++ compiler must be used to create the archive.
11789
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11790
 
        ;;
11791
 
      *)
11792
 
        # GNU C++ compiler with Solaris linker
11793
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11794
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11795
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11796
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11797
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11799
 
 
11800
 
            # Commands to make compiler produce verbose output that lists
11801
 
            # what "hidden" libraries, object files and flags are used when
11802
 
            # linking a shared library.
11803
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11804
 
          else
11805
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11806
 
            # platform.
11807
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11810
 
 
11811
 
            # Commands to make compiler produce verbose output that lists
11812
 
            # what "hidden" libraries, object files and flags are used when
11813
 
            # linking a shared library.
11814
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11815
 
          fi
11816
 
 
11817
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11818
 
        fi
11819
 
        ;;
11820
 
    esac
11821
 
    ;;
11822
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11823
 
    no_undefined_flag_CXX='${wl}-z,text'
11824
 
    archive_cmds_need_lc_CXX=no
11825
 
    hardcode_shlibpath_var_CXX=no
11826
 
    runpath_var='LD_RUN_PATH'
11827
 
 
11828
 
    case $cc_basename in
11829
 
      CC*)
11830
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11832
 
        ;;
11833
 
      *)
11834
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11836
 
        ;;
11837
 
    esac
11838
 
    ;;
11839
 
  sysv5* | sco3.2v5* | sco5v6*)
11840
 
    # Note: We can NOT use -z defs as we might desire, because we do not
11841
 
    # link with -lc, and that would cause any symbols used from libc to
11842
 
    # always be unresolved, which means just about no library would
11843
 
    # ever link correctly.  If we're not using GNU ld we use -z text
11844
 
    # though, which does catch some bad symbols but isn't as heavy-handed
11845
 
    # as -z defs.
11846
 
    # For security reasons, it is highly recommended that you always
11847
 
    # use absolute paths for naming shared libraries, and exclude the
11848
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
11849
 
    # requires that you compile everything twice, which is a pain.
11850
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
11851
 
    # non-empty value in the environment.  Most likely only useful for
11852
 
    # creating official distributions of packages.
11853
 
    # This is a hack until libtool officially supports absolute path
11854
 
    # names for shared libraries.
11855
 
    no_undefined_flag_CXX='${wl}-z,text'
11856
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11857
 
    archive_cmds_need_lc_CXX=no
11858
 
    hardcode_shlibpath_var_CXX=no
11859
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11860
 
    hardcode_libdir_separator_CXX=':'
11861
 
    link_all_deplibs_CXX=yes
11862
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11863
 
    runpath_var='LD_RUN_PATH'
11864
 
 
11865
 
    case $cc_basename in
11866
 
      CC*)
11867
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11869
 
        ;;
11870
 
      *)
11871
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11873
 
        ;;
11874
 
    esac
11875
 
    ;;
11876
 
  tandem*)
11877
 
    case $cc_basename in
11878
 
      NCC*)
11879
 
        # NonStop-UX NCC 3.20
11880
 
        # FIXME: insert proper C++ library support
11881
 
        ld_shlibs_CXX=no
11882
 
        ;;
11883
 
      *)
11884
 
        # FIXME: insert proper C++ library support
11885
 
        ld_shlibs_CXX=no
11886
 
        ;;
11887
 
    esac
11888
 
    ;;
11889
 
  vxworks*)
11890
 
    # FIXME: insert proper C++ library support
11891
 
    ld_shlibs_CXX=no
11892
 
    ;;
11893
 
  *)
11894
 
    # FIXME: insert proper C++ library support
11895
 
    ld_shlibs_CXX=no
11896
 
    ;;
11897
 
esac
11898
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11899
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11900
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11901
 
 
11902
 
GCC_CXX="$GXX"
11903
 
LD_CXX="$LD"
11904
 
 
11905
 
 
11906
 
cat > conftest.$ac_ext <<EOF
11907
 
class Foo
11908
 
{
11909
 
public:
11910
 
  Foo (void) { a = 0; }
11911
 
private:
11912
 
  int a;
11913
 
};
11914
 
EOF
11915
 
 
11916
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917
 
  (eval $ac_compile) 2>&5
11918
 
  ac_status=$?
11919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920
 
  (exit $ac_status); }; then
11921
 
  # Parse the compiler output and extract the necessary
11922
 
  # objects, libraries and library flags.
11923
 
 
11924
 
  # Sentinel used to keep track of whether or not we are before
11925
 
  # the conftest object file.
11926
 
  pre_test_object_deps_done=no
11927
 
 
11928
 
  # The `*' in the case matches for architectures that use `case' in
11929
 
  # $output_verbose_cmd can trigger glob expansion during the loop
11930
 
  # eval without this substitution.
11931
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11932
 
 
11933
 
  for p in `eval $output_verbose_link_cmd`; do
11934
 
    case $p in
11935
 
 
11936
 
    -L* | -R* | -l*)
11937
 
       # Some compilers place space between "-{L,R}" and the path.
11938
 
       # Remove the space.
11939
 
       if test $p = "-L" \
11940
 
          || test $p = "-R"; then
11941
 
         prev=$p
11942
 
         continue
11943
 
       else
11944
 
         prev=
11945
 
       fi
11946
 
 
11947
 
       if test "$pre_test_object_deps_done" = no; then
11948
 
         case $p in
11949
 
         -L* | -R*)
11950
 
           # Internal compiler library paths should come after those
11951
 
           # provided the user.  The postdeps already come after the
11952
 
           # user supplied libs so there is no need to process them.
11953
 
           if test -z "$compiler_lib_search_path_CXX"; then
11954
 
             compiler_lib_search_path_CXX="${prev}${p}"
11955
 
           else
11956
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11957
 
           fi
11958
 
           ;;
11959
 
         # The "-l" case would never come before the object being
11960
 
         # linked, so don't bother handling this case.
11961
 
         esac
11962
 
       else
11963
 
         if test -z "$postdeps_CXX"; then
11964
 
           postdeps_CXX="${prev}${p}"
11965
 
         else
11966
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11967
 
         fi
11968
 
       fi
11969
 
       ;;
11970
 
 
11971
 
    *.$objext)
11972
 
       # This assumes that the test object file only shows up
11973
 
       # once in the compiler output.
11974
 
       if test "$p" = "conftest.$objext"; then
11975
 
         pre_test_object_deps_done=yes
11976
 
         continue
11977
 
       fi
11978
 
 
11979
 
       if test "$pre_test_object_deps_done" = no; then
11980
 
         if test -z "$predep_objects_CXX"; then
11981
 
           predep_objects_CXX="$p"
11982
 
         else
11983
 
           predep_objects_CXX="$predep_objects_CXX $p"
11984
 
         fi
11985
 
       else
11986
 
         if test -z "$postdep_objects_CXX"; then
11987
 
           postdep_objects_CXX="$p"
11988
 
         else
11989
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
11990
 
         fi
11991
 
       fi
11992
 
       ;;
11993
 
 
11994
 
    *) ;; # Ignore the rest.
11995
 
 
11996
 
    esac
11997
 
  done
11998
 
 
11999
 
  # Clean up.
12000
 
  rm -f a.out a.exe
12001
 
else
12002
 
  echo "libtool.m4: error: problem compiling CXX test program"
12003
 
fi
12004
 
 
12005
 
$rm -f confest.$objext
12006
 
 
12007
 
# PORTME: override above test on systems where it is broken
12008
 
case $host_os in
12009
 
interix3*)
12010
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12011
 
  # hack all around it, let's just trust "g++" to DTRT.
12012
 
  predep_objects_CXX=
12013
 
  postdep_objects_CXX=
12014
 
  postdeps_CXX=
12015
 
  ;;
12016
 
 
12017
 
solaris*)
12018
 
  case $cc_basename in
12019
 
  CC*)
12020
 
    # Adding this requires a known-good setup of shared libraries for
12021
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12022
 
    # archive will be linked into the output, leading to subtle bugs.
12023
 
    postdeps_CXX='-lCstd -lCrun'
12024
 
    ;;
12025
 
  esac
12026
 
  ;;
12027
 
esac
12028
 
 
12029
 
 
12030
 
case " $postdeps_CXX " in
12031
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12032
 
esac
12033
 
 
12034
 
lt_prog_compiler_wl_CXX=
12035
 
lt_prog_compiler_pic_CXX=
12036
 
lt_prog_compiler_static_CXX=
12037
 
 
12038
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12039
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12040
 
 
12041
 
  # C++ specific cases for pic, static, wl, etc.
12042
 
  if test "$GXX" = yes; then
12043
 
    lt_prog_compiler_wl_CXX='-Wl,'
12044
 
    lt_prog_compiler_static_CXX='-static'
12045
 
 
12046
 
    case $host_os in
12047
 
    aix*)
12048
 
      # All AIX code is PIC.
12049
 
      if test "$host_cpu" = ia64; then
12050
 
        # AIX 5 now supports IA64 processor
12051
 
        lt_prog_compiler_static_CXX='-Bstatic'
12052
 
      fi
12053
 
      ;;
12054
 
    amigaos*)
12055
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12056
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12057
 
      # like `-m68040'.
12058
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12059
 
      ;;
12060
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12061
 
      # PIC is the default for these OSes.
12062
 
      ;;
12063
 
    mingw* | os2* | pw32*)
12064
 
      # This hack is so that the source file can tell whether it is being
12065
 
      # built for inclusion in a dll (and should export symbols for example).
12066
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12067
 
      ;;
12068
 
    darwin* | rhapsody*)
12069
 
      # PIC is the default on this platform
12070
 
      # Common symbols not allowed in MH_DYLIB files
12071
 
      lt_prog_compiler_pic_CXX='-fno-common'
12072
 
      ;;
12073
 
    *djgpp*)
12074
 
      # DJGPP does not support shared libraries at all
12075
 
      lt_prog_compiler_pic_CXX=
12076
 
      ;;
12077
 
    interix3*)
12078
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079
 
      # Instead, we relocate shared libraries at runtime.
12080
 
      ;;
12081
 
    sysv4*MP*)
12082
 
      if test -d /usr/nec; then
12083
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12084
 
      fi
12085
 
      ;;
12086
 
    hpux*)
12087
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088
 
      # not for PA HP-UX.
12089
 
      case $host_cpu in
12090
 
      hppa*64*|ia64*)
12091
 
        ;;
12092
 
      *)
12093
 
        lt_prog_compiler_pic_CXX='-fPIC'
12094
 
        ;;
12095
 
      esac
12096
 
      ;;
12097
 
    *)
12098
 
      lt_prog_compiler_pic_CXX='-fPIC'
12099
 
      ;;
12100
 
    esac
12101
 
  else
12102
 
    case $host_os in
12103
 
      aix4* | aix5*)
12104
 
        # All AIX code is PIC.
12105
 
        if test "$host_cpu" = ia64; then
12106
 
          # AIX 5 now supports IA64 processor
12107
 
          lt_prog_compiler_static_CXX='-Bstatic'
12108
 
        else
12109
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12110
 
        fi
12111
 
        ;;
12112
 
      chorus*)
12113
 
        case $cc_basename in
12114
 
        cxch68*)
12115
 
          # Green Hills C++ Compiler
12116
 
          # _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"
12117
 
          ;;
12118
 
        esac
12119
 
        ;;
12120
 
       darwin*)
12121
 
         # PIC is the default on this platform
12122
 
         # Common symbols not allowed in MH_DYLIB files
12123
 
         case $cc_basename in
12124
 
           xlc*)
12125
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12126
 
           lt_prog_compiler_wl_CXX='-Wl,'
12127
 
           ;;
12128
 
         esac
12129
 
       ;;
12130
 
      dgux*)
12131
 
        case $cc_basename in
12132
 
          ec++*)
12133
 
            lt_prog_compiler_pic_CXX='-KPIC'
12134
 
            ;;
12135
 
          ghcx*)
12136
 
            # Green Hills C++ Compiler
12137
 
            lt_prog_compiler_pic_CXX='-pic'
12138
 
            ;;
12139
 
          *)
12140
 
            ;;
12141
 
        esac
12142
 
        ;;
12143
 
      freebsd* | dragonfly*)
12144
 
        # FreeBSD uses GNU C++
12145
 
        ;;
12146
 
      hpux9* | hpux10* | hpux11*)
12147
 
        case $cc_basename in
12148
 
          CC*)
12149
 
            lt_prog_compiler_wl_CXX='-Wl,'
12150
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151
 
            if test "$host_cpu" != ia64; then
12152
 
              lt_prog_compiler_pic_CXX='+Z'
12153
 
            fi
12154
 
            ;;
12155
 
          aCC*)
12156
 
            lt_prog_compiler_wl_CXX='-Wl,'
12157
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12158
 
            case $host_cpu in
12159
 
            hppa*64*|ia64*)
12160
 
              # +Z the default
12161
 
              ;;
12162
 
            *)
12163
 
              lt_prog_compiler_pic_CXX='+Z'
12164
 
              ;;
12165
 
            esac
12166
 
            ;;
12167
 
          *)
12168
 
            ;;
12169
 
        esac
12170
 
        ;;
12171
 
      interix*)
12172
 
        # This is c89, which is MS Visual C++ (no shared libs)
12173
 
        # Anyone wants to do a port?
12174
 
        ;;
12175
 
      irix5* | irix6* | nonstopux*)
12176
 
        case $cc_basename in
12177
 
          CC*)
12178
 
            lt_prog_compiler_wl_CXX='-Wl,'
12179
 
            lt_prog_compiler_static_CXX='-non_shared'
12180
 
            # CC pic flag -KPIC is the default.
12181
 
            ;;
12182
 
          *)
12183
 
            ;;
12184
 
        esac
12185
 
        ;;
12186
 
      linux* | k*bsd*-gnu)
12187
 
        case $cc_basename in
12188
 
          KCC*)
12189
 
            # KAI C++ Compiler
12190
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12191
 
            lt_prog_compiler_pic_CXX='-fPIC'
12192
 
            ;;
12193
 
          icpc* | ecpc*)
12194
 
            # Intel C++
12195
 
            lt_prog_compiler_wl_CXX='-Wl,'
12196
 
            lt_prog_compiler_pic_CXX='-KPIC'
12197
 
            lt_prog_compiler_static_CXX='-static'
12198
 
            ;;
12199
 
          pgCC*)
12200
 
            # Portland Group C++ compiler.
12201
 
            lt_prog_compiler_wl_CXX='-Wl,'
12202
 
            lt_prog_compiler_pic_CXX='-fpic'
12203
 
            lt_prog_compiler_static_CXX='-Bstatic'
12204
 
            ;;
12205
 
          cxx*)
12206
 
            # Compaq C++
12207
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12208
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12209
 
            lt_prog_compiler_pic_CXX=
12210
 
            lt_prog_compiler_static_CXX='-non_shared'
12211
 
            ;;
12212
 
          *)
12213
 
            ;;
12214
 
        esac
12215
 
        ;;
12216
 
      lynxos*)
12217
 
        ;;
12218
 
      m88k*)
12219
 
        ;;
12220
 
      mvs*)
12221
 
        case $cc_basename in
12222
 
          cxx*)
12223
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12224
 
            ;;
12225
 
          *)
12226
 
            ;;
12227
 
        esac
12228
 
        ;;
12229
 
      netbsd* | netbsdelf*-gnu)
12230
 
        ;;
12231
 
      osf3* | osf4* | osf5*)
12232
 
        case $cc_basename in
12233
 
          KCC*)
12234
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12235
 
            ;;
12236
 
          RCC*)
12237
 
            # Rational C++ 2.4.1
12238
 
            lt_prog_compiler_pic_CXX='-pic'
12239
 
            ;;
12240
 
          cxx*)
12241
 
            # Digital/Compaq C++
12242
 
            lt_prog_compiler_wl_CXX='-Wl,'
12243
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12244
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12245
 
            lt_prog_compiler_pic_CXX=
12246
 
            lt_prog_compiler_static_CXX='-non_shared'
12247
 
            ;;
12248
 
          *)
12249
 
            ;;
12250
 
        esac
12251
 
        ;;
12252
 
      psos*)
12253
 
        ;;
12254
 
      solaris*)
12255
 
        case $cc_basename in
12256
 
          CC*)
12257
 
            # Sun C++ 4.2, 5.x and Centerline C++
12258
 
            lt_prog_compiler_pic_CXX='-KPIC'
12259
 
            lt_prog_compiler_static_CXX='-Bstatic'
12260
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12261
 
            ;;
12262
 
          gcx*)
12263
 
            # Green Hills C++ Compiler
12264
 
            lt_prog_compiler_pic_CXX='-PIC'
12265
 
            ;;
12266
 
          *)
12267
 
            ;;
12268
 
        esac
12269
 
        ;;
12270
 
      sunos4*)
12271
 
        case $cc_basename in
12272
 
          CC*)
12273
 
            # Sun C++ 4.x
12274
 
            lt_prog_compiler_pic_CXX='-pic'
12275
 
            lt_prog_compiler_static_CXX='-Bstatic'
12276
 
            ;;
12277
 
          lcc*)
12278
 
            # Lucid
12279
 
            lt_prog_compiler_pic_CXX='-pic'
12280
 
            ;;
12281
 
          *)
12282
 
            ;;
12283
 
        esac
12284
 
        ;;
12285
 
      tandem*)
12286
 
        case $cc_basename in
12287
 
          NCC*)
12288
 
            # NonStop-UX NCC 3.20
12289
 
            lt_prog_compiler_pic_CXX='-KPIC'
12290
 
            ;;
12291
 
          *)
12292
 
            ;;
12293
 
        esac
12294
 
        ;;
12295
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12296
 
        case $cc_basename in
12297
 
          CC*)
12298
 
            lt_prog_compiler_wl_CXX='-Wl,'
12299
 
            lt_prog_compiler_pic_CXX='-KPIC'
12300
 
            lt_prog_compiler_static_CXX='-Bstatic'
12301
 
            ;;
12302
 
        esac
12303
 
        ;;
12304
 
      vxworks*)
12305
 
        ;;
12306
 
      *)
12307
 
        lt_prog_compiler_can_build_shared_CXX=no
12308
 
        ;;
12309
 
    esac
12310
 
  fi
12311
 
 
12312
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12313
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12314
 
 
12315
 
#
12316
 
# Check to make sure the PIC flag actually works.
12317
 
#
12318
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12319
 
 
12320
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12322
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12323
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12324
 
else
12325
 
  lt_prog_compiler_pic_works_CXX=no
12326
 
  ac_outfile=conftest.$ac_objext
12327
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12328
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12329
 
   # Insert the option either (1) after the last *FLAGS variable, or
12330
 
   # (2) before a word containing "conftest.", or (3) at the end.
12331
 
   # Note that $ac_compile itself does not contain backslashes and begins
12332
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12333
 
   # The option is referenced via a variable to avoid confusing sed.
12334
 
   lt_compile=`echo "$ac_compile" | $SED \
12335
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337
 
   -e 's:$: $lt_compiler_flag:'`
12338
 
   (eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339
 
   (eval "$lt_compile" 2>conftest.err)
12340
 
   ac_status=$?
12341
 
   cat conftest.err >&5
12342
 
   echo "$as_me:12342: \$? = $ac_status" >&5
12343
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12344
 
     # The compiler can only warn and ignore the option if not recognized
12345
 
     # So say no if there are warnings other than the usual output.
12346
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12347
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12348
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12349
 
       lt_prog_compiler_pic_works_CXX=yes
12350
 
     fi
12351
 
   fi
12352
 
   $rm conftest*
12353
 
 
12354
 
fi
12355
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12356
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12357
 
 
12358
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12359
 
    case $lt_prog_compiler_pic_CXX in
12360
 
     "" | " "*) ;;
12361
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12362
 
     esac
12363
 
else
12364
 
    lt_prog_compiler_pic_CXX=
12365
 
     lt_prog_compiler_can_build_shared_CXX=no
12366
 
fi
12367
 
 
12368
 
fi
12369
 
case $host_os in
12370
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12371
 
  *djgpp*)
12372
 
    lt_prog_compiler_pic_CXX=
12373
 
    ;;
12374
 
  *)
12375
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12376
 
    ;;
12377
 
esac
12378
 
 
12379
 
#
12380
 
# Check to make sure the static flag actually works.
12381
 
#
12382
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12383
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12385
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12386
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12387
 
else
12388
 
  lt_prog_compiler_static_works_CXX=no
12389
 
   save_LDFLAGS="$LDFLAGS"
12390
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12391
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12392
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12393
 
     # The linker can only warn and ignore the option if not recognized
12394
 
     # So say no if there are warnings
12395
 
     if test -s conftest.err; then
12396
 
       # Append any errors to the config.log.
12397
 
       cat conftest.err 1>&5
12398
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12399
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12401
 
         lt_prog_compiler_static_works_CXX=yes
12402
 
       fi
12403
 
     else
12404
 
       lt_prog_compiler_static_works_CXX=yes
12405
 
     fi
12406
 
   fi
12407
 
   $rm conftest*
12408
 
   LDFLAGS="$save_LDFLAGS"
12409
 
 
12410
 
fi
12411
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12412
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12413
 
 
12414
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12415
 
    :
12416
 
else
12417
 
    lt_prog_compiler_static_CXX=
12418
 
fi
12419
 
 
12420
 
 
12421
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12422
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12423
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12425
 
else
12426
 
  lt_cv_prog_compiler_c_o_CXX=no
12427
 
   $rm -r conftest 2>/dev/null
12428
 
   mkdir conftest
12429
 
   cd conftest
12430
 
   mkdir out
12431
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12432
 
 
12433
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12434
 
   # Insert the option either (1) after the last *FLAGS variable, or
12435
 
   # (2) before a word containing "conftest.", or (3) at the end.
12436
 
   # Note that $ac_compile itself does not contain backslashes and begins
12437
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12438
 
   lt_compile=`echo "$ac_compile" | $SED \
12439
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441
 
   -e 's:$: $lt_compiler_flag:'`
12442
 
   (eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443
 
   (eval "$lt_compile" 2>out/conftest.err)
12444
 
   ac_status=$?
12445
 
   cat out/conftest.err >&5
12446
 
   echo "$as_me:12446: \$? = $ac_status" >&5
12447
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12448
 
   then
12449
 
     # The compiler can only warn and ignore the option if not recognized
12450
 
     # So say no if there are warnings
12451
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12452
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12453
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12454
 
       lt_cv_prog_compiler_c_o_CXX=yes
12455
 
     fi
12456
 
   fi
12457
 
   chmod u+w . 2>&5
12458
 
   $rm conftest*
12459
 
   # SGI C++ compiler will create directory out/ii_files/ for
12460
 
   # template instantiation
12461
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12462
 
   $rm out/* && rmdir out
12463
 
   cd ..
12464
 
   rmdir conftest
12465
 
   $rm conftest*
12466
 
 
12467
 
fi
12468
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12470
 
 
12471
 
 
12472
 
hard_links="nottested"
12473
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12474
 
  # do not overwrite the value of need_locks provided by the user
12475
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12476
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12477
 
  hard_links=yes
12478
 
  $rm conftest*
12479
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12480
 
  touch conftest.a
12481
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12482
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12484
 
echo "${ECHO_T}$hard_links" >&6; }
12485
 
  if test "$hard_links" = no; then
12486
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12488
 
    need_locks=warn
12489
 
  fi
12490
 
else
12491
 
  need_locks=no
12492
 
fi
12493
 
 
12494
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12496
 
 
12497
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12498
 
  case $host_os in
12499
 
  aix4* | aix5*)
12500
 
    # If we're using GNU nm, then we don't want the "-C" option.
12501
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12502
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12503
 
      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'
12504
 
    else
12505
 
      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'
12506
 
    fi
12507
 
    ;;
12508
 
  pw32*)
12509
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12510
 
  ;;
12511
 
  cygwin* | mingw*)
12512
 
    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'
12513
 
  ;;
12514
 
  linux* | k*bsd*-gnu)
12515
 
    link_all_deplibs_CXX=no
12516
 
  ;;
12517
 
  *)
12518
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12519
 
  ;;
12520
 
  esac
12521
 
 
12522
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12523
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12524
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12525
 
 
12526
 
#
12527
 
# Do we need to explicitly link libc?
12528
 
#
12529
 
case "x$archive_cmds_need_lc_CXX" in
12530
 
x|xyes)
12531
 
  # Assume -lc should be added
12532
 
  archive_cmds_need_lc_CXX=yes
12533
 
 
12534
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12535
 
    case $archive_cmds_CXX in
12536
 
    *'~'*)
12537
 
      # FIXME: we may have to deal with multi-command sequences.
12538
 
      ;;
12539
 
    '$CC '*)
12540
 
      # Test whether the compiler implicitly links with -lc since on some
12541
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12542
 
      # to ld, don't add -lc before -lgcc.
12543
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12544
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12545
 
      $rm conftest*
12546
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12547
 
 
12548
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549
 
  (eval $ac_compile) 2>&5
12550
 
  ac_status=$?
12551
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552
 
  (exit $ac_status); } 2>conftest.err; then
12553
 
        soname=conftest
12554
 
        lib=conftest
12555
 
        libobjs=conftest.$ac_objext
12556
 
        deplibs=
12557
 
        wl=$lt_prog_compiler_wl_CXX
12558
 
        pic_flag=$lt_prog_compiler_pic_CXX
12559
 
        compiler_flags=-v
12560
 
        linker_flags=-v
12561
 
        verstring=
12562
 
        output_objdir=.
12563
 
        libname=conftest
12564
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12565
 
        allow_undefined_flag_CXX=
12566
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12567
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12568
 
  ac_status=$?
12569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570
 
  (exit $ac_status); }
12571
 
        then
12572
 
          archive_cmds_need_lc_CXX=no
12573
 
        else
12574
 
          archive_cmds_need_lc_CXX=yes
12575
 
        fi
12576
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12577
 
      else
12578
 
        cat conftest.err 1>&5
12579
 
      fi
12580
 
      $rm conftest*
12581
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12582
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12583
 
      ;;
12584
 
    esac
12585
 
  fi
12586
 
  ;;
12587
 
esac
12588
 
 
12589
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12590
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12591
 
library_names_spec=
12592
 
libname_spec='lib$name'
12593
 
soname_spec=
12594
 
shrext_cmds=".so"
12595
 
postinstall_cmds=
12596
 
postuninstall_cmds=
12597
 
finish_cmds=
12598
 
finish_eval=
12599
 
shlibpath_var=
12600
 
shlibpath_overrides_runpath=unknown
12601
 
version_type=none
12602
 
dynamic_linker="$host_os ld.so"
12603
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12604
 
if test "$GCC" = yes; then
12605
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12606
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12607
 
    # if the path contains ";" then we assume it to be the separator
12608
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12609
 
    # assumed that no part of a normal pathname contains ";" but that should
12610
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12611
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12612
 
  else
12613
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12614
 
  fi
12615
 
else
12616
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12617
 
fi
12618
 
need_lib_prefix=unknown
12619
 
hardcode_into_libs=no
12620
 
 
12621
 
# when you set need_version to no, make sure it does not cause -set_version
12622
 
# flags to be left without arguments
12623
 
need_version=unknown
12624
 
 
12625
 
case $host_os in
12626
 
aix3*)
12627
 
  version_type=linux
12628
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12629
 
  shlibpath_var=LIBPATH
12630
 
 
12631
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12632
 
  soname_spec='${libname}${release}${shared_ext}$major'
12633
 
  ;;
12634
 
 
12635
 
aix4* | aix5*)
12636
 
  version_type=linux
12637
 
  need_lib_prefix=no
12638
 
  need_version=no
12639
 
  hardcode_into_libs=yes
12640
 
  if test "$host_cpu" = ia64; then
12641
 
    # AIX 5 supports IA64
12642
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12643
 
    shlibpath_var=LD_LIBRARY_PATH
12644
 
  else
12645
 
    # With GCC up to 2.95.x, collect2 would create an import file
12646
 
    # for dependence libraries.  The import file would start with
12647
 
    # the line `#! .'.  This would cause the generated library to
12648
 
    # depend on `.', always an invalid library.  This was fixed in
12649
 
    # development snapshots of GCC prior to 3.0.
12650
 
    case $host_os in
12651
 
      aix4 | aix4.[01] | aix4.[01].*)
12652
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12653
 
           echo ' yes '
12654
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12655
 
        :
12656
 
      else
12657
 
        can_build_shared=no
12658
 
      fi
12659
 
      ;;
12660
 
    esac
12661
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12662
 
    # soname into executable. Probably we can add versioning support to
12663
 
    # collect2, so additional links can be useful in future.
12664
 
    if test "$aix_use_runtimelinking" = yes; then
12665
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12666
 
      # instead of lib<name>.a to let people know that these are not
12667
 
      # typical AIX shared libraries.
12668
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12669
 
    else
12670
 
      # We preserve .a as extension for shared libraries through AIX4.2
12671
 
      # and later when we are not doing run time linking.
12672
 
      library_names_spec='${libname}${release}.a $libname.a'
12673
 
      soname_spec='${libname}${release}${shared_ext}$major'
12674
 
    fi
12675
 
    shlibpath_var=LIBPATH
12676
 
  fi
12677
 
  ;;
12678
 
 
12679
 
amigaos*)
12680
 
  library_names_spec='$libname.ixlibrary $libname.a'
12681
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12682
 
  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'
12683
 
  ;;
12684
 
 
12685
 
beos*)
12686
 
  library_names_spec='${libname}${shared_ext}'
12687
 
  dynamic_linker="$host_os ld.so"
12688
 
  shlibpath_var=LIBRARY_PATH
12689
 
  ;;
12690
 
 
12691
 
bsdi[45]*)
12692
 
  version_type=linux
12693
 
  need_version=no
12694
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695
 
  soname_spec='${libname}${release}${shared_ext}$major'
12696
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12697
 
  shlibpath_var=LD_LIBRARY_PATH
12698
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12699
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12700
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12701
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12702
 
  # libtool to hard-code these into programs
12703
 
  ;;
12704
 
 
12705
 
cygwin* | mingw* | pw32*)
12706
 
  version_type=windows
12707
 
  shrext_cmds=".dll"
12708
 
  need_version=no
12709
 
  need_lib_prefix=no
12710
 
 
12711
 
  case $GCC,$host_os in
12712
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
12713
 
    library_names_spec='$libname.dll.a'
12714
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12715
 
    postinstall_cmds='base_file=`basename \${file}`~
12716
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12717
 
      dldir=$destdir/`dirname \$dlpath`~
12718
 
      test -d \$dldir || mkdir -p \$dldir~
12719
 
      $install_prog $dir/$dlname \$dldir/$dlname~
12720
 
      chmod a+x \$dldir/$dlname'
12721
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12722
 
      dlpath=$dir/\$dldll~
12723
 
       $rm \$dlpath'
12724
 
    shlibpath_overrides_runpath=yes
12725
 
 
12726
 
    case $host_os in
12727
 
    cygwin*)
12728
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12729
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12730
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12731
 
      ;;
12732
 
    mingw*)
12733
 
      # MinGW DLLs use traditional 'lib' prefix
12734
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12735
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12736
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12737
 
        # It is most probably a Windows format PATH printed by
12738
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12739
 
        # path with ; separators, and with drive letters. We can handle the
12740
 
        # drive letters (cygwin fileutils understands them), so leave them,
12741
 
        # especially as we might pass files found there to a mingw objdump,
12742
 
        # which wouldn't understand a cygwinified path. Ahh.
12743
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12744
 
      else
12745
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12746
 
      fi
12747
 
      ;;
12748
 
    pw32*)
12749
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12750
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12751
 
      ;;
12752
 
    esac
12753
 
    ;;
12754
 
 
12755
 
  *)
12756
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12757
 
    ;;
12758
 
  esac
12759
 
  dynamic_linker='Win32 ld.exe'
12760
 
  # FIXME: first we should search . and the directory the executable is in
12761
 
  shlibpath_var=PATH
12762
 
  ;;
12763
 
 
12764
 
darwin* | rhapsody*)
12765
 
  dynamic_linker="$host_os dyld"
12766
 
  version_type=darwin
12767
 
  need_lib_prefix=no
12768
 
  need_version=no
12769
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12770
 
  soname_spec='${libname}${release}${major}$shared_ext'
12771
 
  shlibpath_overrides_runpath=yes
12772
 
  shlibpath_var=DYLD_LIBRARY_PATH
12773
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12774
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12775
 
  if test "$GCC" = yes; then
12776
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12777
 
  else
12778
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12779
 
  fi
12780
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12781
 
  ;;
12782
 
 
12783
 
dgux*)
12784
 
  version_type=linux
12785
 
  need_lib_prefix=no
12786
 
  need_version=no
12787
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12788
 
  soname_spec='${libname}${release}${shared_ext}$major'
12789
 
  shlibpath_var=LD_LIBRARY_PATH
12790
 
  ;;
12791
 
 
12792
 
freebsd1*)
12793
 
  dynamic_linker=no
12794
 
  ;;
12795
 
 
12796
 
freebsd* | dragonfly*)
12797
 
  # DragonFly does not have aout.  When/if they implement a new
12798
 
  # versioning mechanism, adjust this.
12799
 
  if test -x /usr/bin/objformat; then
12800
 
    objformat=`/usr/bin/objformat`
12801
 
  else
12802
 
    case $host_os in
12803
 
    freebsd[123]*) objformat=aout ;;
12804
 
    *) objformat=elf ;;
12805
 
    esac
12806
 
  fi
12807
 
  version_type=freebsd-$objformat
12808
 
  case $version_type in
12809
 
    freebsd-elf*)
12810
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12811
 
      need_version=no
12812
 
      need_lib_prefix=no
12813
 
      ;;
12814
 
    freebsd-*)
12815
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12816
 
      need_version=yes
12817
 
      ;;
12818
 
  esac
12819
 
  shlibpath_var=LD_LIBRARY_PATH
12820
 
  case $host_os in
12821
 
  freebsd2*)
12822
 
    shlibpath_overrides_runpath=yes
12823
 
    ;;
12824
 
  freebsd3.[01]* | freebsdelf3.[01]*)
12825
 
    shlibpath_overrides_runpath=yes
12826
 
    hardcode_into_libs=yes
12827
 
    ;;
12828
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12829
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12830
 
    shlibpath_overrides_runpath=no
12831
 
    hardcode_into_libs=yes
12832
 
    ;;
12833
 
  freebsd*) # from 4.6 on
12834
 
    shlibpath_overrides_runpath=yes
12835
 
    hardcode_into_libs=yes
12836
 
    ;;
12837
 
  esac
12838
 
  ;;
12839
 
 
12840
 
gnu*)
12841
 
  version_type=linux
12842
 
  need_lib_prefix=no
12843
 
  need_version=no
12844
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12845
 
  soname_spec='${libname}${release}${shared_ext}$major'
12846
 
  shlibpath_var=LD_LIBRARY_PATH
12847
 
  hardcode_into_libs=yes
12848
 
  ;;
12849
 
 
12850
 
hpux9* | hpux10* | hpux11*)
12851
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12852
 
  # link against other versions.
12853
 
  version_type=sunos
12854
 
  need_lib_prefix=no
12855
 
  need_version=no
12856
 
  case $host_cpu in
12857
 
  ia64*)
12858
 
    shrext_cmds='.so'
12859
 
    hardcode_into_libs=yes
12860
 
    dynamic_linker="$host_os dld.so"
12861
 
    shlibpath_var=LD_LIBRARY_PATH
12862
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12863
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864
 
    soname_spec='${libname}${release}${shared_ext}$major'
12865
 
    if test "X$HPUX_IA64_MODE" = X32; then
12866
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12867
 
    else
12868
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12869
 
    fi
12870
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12871
 
    ;;
12872
 
   hppa*64*)
12873
 
     shrext_cmds='.sl'
12874
 
     hardcode_into_libs=yes
12875
 
     dynamic_linker="$host_os dld.sl"
12876
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12877
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12878
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879
 
     soname_spec='${libname}${release}${shared_ext}$major'
12880
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12881
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12882
 
     ;;
12883
 
   *)
12884
 
    shrext_cmds='.sl'
12885
 
    dynamic_linker="$host_os dld.sl"
12886
 
    shlibpath_var=SHLIB_PATH
12887
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12888
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889
 
    soname_spec='${libname}${release}${shared_ext}$major'
12890
 
    ;;
12891
 
  esac
12892
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12893
 
  postinstall_cmds='chmod 555 $lib'
12894
 
  ;;
12895
 
 
12896
 
interix3*)
12897
 
  version_type=linux
12898
 
  need_lib_prefix=no
12899
 
  need_version=no
12900
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12901
 
  soname_spec='${libname}${release}${shared_ext}$major'
12902
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12903
 
  shlibpath_var=LD_LIBRARY_PATH
12904
 
  shlibpath_overrides_runpath=no
12905
 
  hardcode_into_libs=yes
12906
 
  ;;
12907
 
 
12908
 
irix5* | irix6* | nonstopux*)
12909
 
  case $host_os in
12910
 
    nonstopux*) version_type=nonstopux ;;
12911
 
    *)
12912
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
12913
 
                version_type=linux
12914
 
        else
12915
 
                version_type=irix
12916
 
        fi ;;
12917
 
  esac
12918
 
  need_lib_prefix=no
12919
 
  need_version=no
12920
 
  soname_spec='${libname}${release}${shared_ext}$major'
12921
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12922
 
  case $host_os in
12923
 
  irix5* | nonstopux*)
12924
 
    libsuff= shlibsuff=
12925
 
    ;;
12926
 
  *)
12927
 
    case $LD in # libtool.m4 will add one of these switches to LD
12928
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12929
 
      libsuff= shlibsuff= libmagic=32-bit;;
12930
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12931
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12932
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12933
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12934
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12935
 
    esac
12936
 
    ;;
12937
 
  esac
12938
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12939
 
  shlibpath_overrides_runpath=no
12940
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12941
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12942
 
  hardcode_into_libs=yes
12943
 
  ;;
12944
 
 
12945
 
# No shared lib support for Linux oldld, aout, or coff.
12946
 
linux*oldld* | linux*aout* | linux*coff*)
12947
 
  dynamic_linker=no
12948
 
  ;;
12949
 
 
12950
 
# This must be Linux ELF.
12951
 
linux* | k*bsd*-gnu)
12952
 
  version_type=linux
12953
 
  need_lib_prefix=no
12954
 
  need_version=no
12955
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956
 
  soname_spec='${libname}${release}${shared_ext}$major'
12957
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12958
 
  shlibpath_var=LD_LIBRARY_PATH
12959
 
  shlibpath_overrides_runpath=no
12960
 
  # This implies no fast_install, which is unacceptable.
12961
 
  # Some rework will be needed to allow for fast_install
12962
 
  # before this can be enabled.
12963
 
  hardcode_into_libs=yes
12964
 
 
12965
 
  # Append ld.so.conf contents to the search path
12966
 
  if test -f /etc/ld.so.conf; then
12967
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12968
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12969
 
  fi
12970
 
 
12971
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12972
 
  # powerpc, because MkLinux only supported shared libraries with the
12973
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12974
 
  # most powerpc-linux boxes support dynamic linking these days and
12975
 
  # people can always --disable-shared, the test was removed, and we
12976
 
  # assume the GNU/Linux dynamic linker is in use.
12977
 
  dynamic_linker='GNU/Linux ld.so'
12978
 
  ;;
12979
 
 
12980
 
netbsdelf*-gnu)
12981
 
  version_type=linux
12982
 
  need_lib_prefix=no
12983
 
  need_version=no
12984
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12985
 
  soname_spec='${libname}${release}${shared_ext}$major'
12986
 
  shlibpath_var=LD_LIBRARY_PATH
12987
 
  shlibpath_overrides_runpath=no
12988
 
  hardcode_into_libs=yes
12989
 
  dynamic_linker='NetBSD ld.elf_so'
12990
 
  ;;
12991
 
 
12992
 
netbsd*)
12993
 
  version_type=sunos
12994
 
  need_lib_prefix=no
12995
 
  need_version=no
12996
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12997
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12998
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12999
 
    dynamic_linker='NetBSD (a.out) ld.so'
13000
 
  else
13001
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13002
 
    soname_spec='${libname}${release}${shared_ext}$major'
13003
 
    dynamic_linker='NetBSD ld.elf_so'
13004
 
  fi
13005
 
  shlibpath_var=LD_LIBRARY_PATH
13006
 
  shlibpath_overrides_runpath=yes
13007
 
  hardcode_into_libs=yes
13008
 
  ;;
13009
 
 
13010
 
newsos6)
13011
 
  version_type=linux
13012
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13013
 
  shlibpath_var=LD_LIBRARY_PATH
13014
 
  shlibpath_overrides_runpath=yes
13015
 
  ;;
13016
 
 
13017
 
nto-qnx*)
13018
 
  version_type=linux
13019
 
  need_lib_prefix=no
13020
 
  need_version=no
13021
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022
 
  soname_spec='${libname}${release}${shared_ext}$major'
13023
 
  shlibpath_var=LD_LIBRARY_PATH
13024
 
  shlibpath_overrides_runpath=yes
13025
 
  ;;
13026
 
 
13027
 
openbsd*)
13028
 
  version_type=sunos
13029
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13030
 
  need_lib_prefix=no
13031
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13032
 
  case $host_os in
13033
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13034
 
    *)                         need_version=no  ;;
13035
 
  esac
13036
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13037
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13038
 
  shlibpath_var=LD_LIBRARY_PATH
13039
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13040
 
    case $host_os in
13041
 
      openbsd2.[89] | openbsd2.[89].*)
13042
 
        shlibpath_overrides_runpath=no
13043
 
        ;;
13044
 
      *)
13045
 
        shlibpath_overrides_runpath=yes
13046
 
        ;;
13047
 
      esac
13048
 
  else
13049
 
    shlibpath_overrides_runpath=yes
13050
 
  fi
13051
 
  ;;
13052
 
 
13053
 
os2*)
13054
 
  libname_spec='$name'
13055
 
  shrext_cmds=".dll"
13056
 
  need_lib_prefix=no
13057
 
  library_names_spec='$libname${shared_ext} $libname.a'
13058
 
  dynamic_linker='OS/2 ld.exe'
13059
 
  shlibpath_var=LIBPATH
13060
 
  ;;
13061
 
 
13062
 
osf3* | osf4* | osf5*)
13063
 
  version_type=osf
13064
 
  need_lib_prefix=no
13065
 
  need_version=no
13066
 
  soname_spec='${libname}${release}${shared_ext}$major'
13067
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068
 
  shlibpath_var=LD_LIBRARY_PATH
13069
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13070
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13071
 
  ;;
13072
 
 
13073
 
solaris*)
13074
 
  version_type=linux
13075
 
  need_lib_prefix=no
13076
 
  need_version=no
13077
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13078
 
  soname_spec='${libname}${release}${shared_ext}$major'
13079
 
  shlibpath_var=LD_LIBRARY_PATH
13080
 
  shlibpath_overrides_runpath=yes
13081
 
  hardcode_into_libs=yes
13082
 
  # ldd complains unless libraries are executable
13083
 
  postinstall_cmds='chmod +x $lib'
13084
 
  ;;
13085
 
 
13086
 
sunos4*)
13087
 
  version_type=sunos
13088
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13089
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13090
 
  shlibpath_var=LD_LIBRARY_PATH
13091
 
  shlibpath_overrides_runpath=yes
13092
 
  if test "$with_gnu_ld" = yes; then
13093
 
    need_lib_prefix=no
13094
 
  fi
13095
 
  need_version=yes
13096
 
  ;;
13097
 
 
13098
 
sysv4 | sysv4.3*)
13099
 
  version_type=linux
13100
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101
 
  soname_spec='${libname}${release}${shared_ext}$major'
13102
 
  shlibpath_var=LD_LIBRARY_PATH
13103
 
  case $host_vendor in
13104
 
    sni)
13105
 
      shlibpath_overrides_runpath=no
13106
 
      need_lib_prefix=no
13107
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13108
 
      runpath_var=LD_RUN_PATH
13109
 
      ;;
13110
 
    siemens)
13111
 
      need_lib_prefix=no
13112
 
      ;;
13113
 
    motorola)
13114
 
      need_lib_prefix=no
13115
 
      need_version=no
13116
 
      shlibpath_overrides_runpath=no
13117
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13118
 
      ;;
13119
 
  esac
13120
 
  ;;
13121
 
 
13122
 
sysv4*MP*)
13123
 
  if test -d /usr/nec ;then
13124
 
    version_type=linux
13125
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13126
 
    soname_spec='$libname${shared_ext}.$major'
13127
 
    shlibpath_var=LD_LIBRARY_PATH
13128
 
  fi
13129
 
  ;;
13130
 
 
13131
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13132
 
  version_type=freebsd-elf
13133
 
  need_lib_prefix=no
13134
 
  need_version=no
13135
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13136
 
  soname_spec='${libname}${release}${shared_ext}$major'
13137
 
  shlibpath_var=LD_LIBRARY_PATH
13138
 
  hardcode_into_libs=yes
13139
 
  if test "$with_gnu_ld" = yes; then
13140
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13141
 
    shlibpath_overrides_runpath=no
13142
 
  else
13143
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13144
 
    shlibpath_overrides_runpath=yes
13145
 
    case $host_os in
13146
 
      sco3.2v5*)
13147
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13148
 
        ;;
13149
 
    esac
13150
 
  fi
13151
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13152
 
  ;;
13153
 
 
13154
 
uts4*)
13155
 
  version_type=linux
13156
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13157
 
  soname_spec='${libname}${release}${shared_ext}$major'
13158
 
  shlibpath_var=LD_LIBRARY_PATH
13159
 
  ;;
13160
 
 
13161
 
*)
13162
 
  dynamic_linker=no
13163
 
  ;;
13164
 
esac
13165
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13166
 
echo "${ECHO_T}$dynamic_linker" >&6; }
13167
 
test "$dynamic_linker" = no && can_build_shared=no
13168
 
 
13169
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13170
 
if test "$GCC" = yes; then
13171
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13172
 
fi
13173
 
 
13174
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13175
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13176
 
hardcode_action_CXX=
13177
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13178
 
   test -n "$runpath_var_CXX" || \
13179
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13180
 
 
13181
 
  # We can hardcode non-existant directories.
13182
 
  if test "$hardcode_direct_CXX" != no &&
13183
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13184
 
     # have to relink, otherwise we might link with an installed library
13185
 
     # when we should be linking with a yet-to-be-installed one
13186
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13187
 
     test "$hardcode_minus_L_CXX" != no; then
13188
 
    # Linking always hardcodes the temporary library directory.
13189
 
    hardcode_action_CXX=relink
13190
 
  else
13191
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13192
 
    hardcode_action_CXX=immediate
13193
 
  fi
13194
 
else
13195
 
  # We cannot hardcode anything, or else we can only hardcode existing
13196
 
  # directories.
13197
 
  hardcode_action_CXX=unsupported
13198
 
fi
13199
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13200
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13201
 
 
13202
 
if test "$hardcode_action_CXX" = relink; then
13203
 
  # Fast installation is not supported
13204
 
  enable_fast_install=no
13205
 
elif test "$shlibpath_overrides_runpath" = yes ||
13206
 
     test "$enable_shared" = no; then
13207
 
  # Fast installation is not necessary
13208
 
  enable_fast_install=needless
13209
 
fi
13210
 
 
13211
 
 
13212
 
# The else clause should only fire when bootstrapping the
13213
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13214
 
# with your package, and you will get complaints that there are
13215
 
# no rules to generate ltmain.sh.
13216
 
if test -f "$ltmain"; then
13217
 
  # See if we are running on zsh, and set the options which allow our commands through
13218
 
  # without removal of \ escapes.
13219
 
  if test -n "${ZSH_VERSION+set}" ; then
13220
 
    setopt NO_GLOB_SUBST
13221
 
  fi
13222
 
  # Now quote all the things that may contain metacharacters while being
13223
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13224
 
  # variables and quote the copies for generation of the libtool script.
13225
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13226
 
    SED SHELL STRIP \
13227
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13228
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13229
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13230
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13231
 
    lt_cv_sys_global_symbol_to_c_name_address \
13232
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13233
 
    old_postinstall_cmds old_postuninstall_cmds \
13234
 
    compiler_CXX \
13235
 
    CC_CXX \
13236
 
    LD_CXX \
13237
 
    lt_prog_compiler_wl_CXX \
13238
 
    lt_prog_compiler_pic_CXX \
13239
 
    lt_prog_compiler_static_CXX \
13240
 
    lt_prog_compiler_no_builtin_flag_CXX \
13241
 
    export_dynamic_flag_spec_CXX \
13242
 
    thread_safe_flag_spec_CXX \
13243
 
    whole_archive_flag_spec_CXX \
13244
 
    enable_shared_with_static_runtimes_CXX \
13245
 
    old_archive_cmds_CXX \
13246
 
    old_archive_from_new_cmds_CXX \
13247
 
    predep_objects_CXX \
13248
 
    postdep_objects_CXX \
13249
 
    predeps_CXX \
13250
 
    postdeps_CXX \
13251
 
    compiler_lib_search_path_CXX \
13252
 
    archive_cmds_CXX \
13253
 
    archive_expsym_cmds_CXX \
13254
 
    postinstall_cmds_CXX \
13255
 
    postuninstall_cmds_CXX \
13256
 
    old_archive_from_expsyms_cmds_CXX \
13257
 
    allow_undefined_flag_CXX \
13258
 
    no_undefined_flag_CXX \
13259
 
    export_symbols_cmds_CXX \
13260
 
    hardcode_libdir_flag_spec_CXX \
13261
 
    hardcode_libdir_flag_spec_ld_CXX \
13262
 
    hardcode_libdir_separator_CXX \
13263
 
    hardcode_automatic_CXX \
13264
 
    module_cmds_CXX \
13265
 
    module_expsym_cmds_CXX \
13266
 
    lt_cv_prog_compiler_c_o_CXX \
13267
 
    exclude_expsyms_CXX \
13268
 
    include_expsyms_CXX; do
13269
 
 
13270
 
    case $var in
13271
 
    old_archive_cmds_CXX | \
13272
 
    old_archive_from_new_cmds_CXX | \
13273
 
    archive_cmds_CXX | \
13274
 
    archive_expsym_cmds_CXX | \
13275
 
    module_cmds_CXX | \
13276
 
    module_expsym_cmds_CXX | \
13277
 
    old_archive_from_expsyms_cmds_CXX | \
13278
 
    export_symbols_cmds_CXX | \
13279
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13280
 
    postinstall_cmds | postuninstall_cmds | \
13281
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13282
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13283
 
      # Double-quote double-evaled strings.
13284
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13285
 
      ;;
13286
 
    *)
13287
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13288
 
      ;;
13289
 
    esac
13290
 
  done
13291
 
 
13292
 
  case $lt_echo in
13293
 
  *'\$0 --fallback-echo"')
13294
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13295
 
    ;;
13296
 
  esac
13297
 
 
13298
 
cfgfile="$ofile"
13299
 
 
13300
 
  cat <<__EOF__ >> "$cfgfile"
13301
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13302
 
 
13303
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13304
 
 
13305
 
# Shell to use when invoking shell scripts.
13306
 
SHELL=$lt_SHELL
13307
 
 
13308
 
# Whether or not to build shared libraries.
13309
 
build_libtool_libs=$enable_shared
13310
 
 
13311
 
# Whether or not to build static libraries.
13312
 
build_old_libs=$enable_static
13313
 
 
13314
 
# Whether or not to add -lc for building shared libraries.
13315
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13316
 
 
13317
 
# Whether or not to disallow shared libs when runtime libs are static
13318
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13319
 
 
13320
 
# Whether or not to optimize for fast installation.
13321
 
fast_install=$enable_fast_install
13322
 
 
13323
 
# The host system.
13324
 
host_alias=$host_alias
13325
 
host=$host
13326
 
host_os=$host_os
13327
 
 
13328
 
# The build system.
13329
 
build_alias=$build_alias
13330
 
build=$build
13331
 
build_os=$build_os
13332
 
 
13333
 
# An echo program that does not interpret backslashes.
13334
 
echo=$lt_echo
13335
 
 
13336
 
# The archiver.
13337
 
AR=$lt_AR
13338
 
AR_FLAGS=$lt_AR_FLAGS
13339
 
 
13340
 
# A C compiler.
13341
 
LTCC=$lt_LTCC
13342
 
 
13343
 
# LTCC compiler flags.
13344
 
LTCFLAGS=$lt_LTCFLAGS
13345
 
 
13346
 
# A language-specific compiler.
13347
 
CC=$lt_compiler_CXX
13348
 
 
13349
 
# Is the compiler the GNU C compiler?
13350
 
with_gcc=$GCC_CXX
13351
 
 
13352
 
# An ERE matcher.
13353
 
EGREP=$lt_EGREP
13354
 
 
13355
 
# The linker used to build libraries.
13356
 
LD=$lt_LD_CXX
13357
 
 
13358
 
# Whether we need hard or soft links.
13359
 
LN_S=$lt_LN_S
13360
 
 
13361
 
# A BSD-compatible nm program.
13362
 
NM=$lt_NM
13363
 
 
13364
 
# A symbol stripping program
13365
 
STRIP=$lt_STRIP
13366
 
 
13367
 
# Used to examine libraries when file_magic_cmd begins "file"
13368
 
MAGIC_CMD=$MAGIC_CMD
13369
 
 
13370
 
# Used on cygwin: DLL creation program.
13371
 
DLLTOOL="$DLLTOOL"
13372
 
 
13373
 
# Used on cygwin: object dumper.
13374
 
OBJDUMP="$OBJDUMP"
13375
 
 
13376
 
# Used on cygwin: assembler.
13377
 
AS="$AS"
13378
 
 
13379
 
# The name of the directory that contains temporary libtool files.
13380
 
objdir=$objdir
13381
 
 
13382
 
# How to create reloadable object files.
13383
 
reload_flag=$lt_reload_flag
13384
 
reload_cmds=$lt_reload_cmds
13385
 
 
13386
 
# How to pass a linker flag through the compiler.
13387
 
wl=$lt_lt_prog_compiler_wl_CXX
13388
 
 
13389
 
# Object file suffix (normally "o").
13390
 
objext="$ac_objext"
13391
 
 
13392
 
# Old archive suffix (normally "a").
13393
 
libext="$libext"
13394
 
 
13395
 
# Shared library suffix (normally ".so").
13396
 
shrext_cmds='$shrext_cmds'
13397
 
 
13398
 
# Executable file suffix (normally "").
13399
 
exeext="$exeext"
13400
 
 
13401
 
# Additional compiler flags for building library objects.
13402
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13403
 
pic_mode=$pic_mode
13404
 
 
13405
 
# What is the maximum length of a command?
13406
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13407
 
 
13408
 
# Does compiler simultaneously support -c and -o options?
13409
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13410
 
 
13411
 
# Must we lock files when doing compilation?
13412
 
need_locks=$lt_need_locks
13413
 
 
13414
 
# Do we need the lib prefix for modules?
13415
 
need_lib_prefix=$need_lib_prefix
13416
 
 
13417
 
# Do we need a version for libraries?
13418
 
need_version=$need_version
13419
 
 
13420
 
# Whether dlopen is supported.
13421
 
dlopen_support=$enable_dlopen
13422
 
 
13423
 
# Whether dlopen of programs is supported.
13424
 
dlopen_self=$enable_dlopen_self
13425
 
 
13426
 
# Whether dlopen of statically linked programs is supported.
13427
 
dlopen_self_static=$enable_dlopen_self_static
13428
 
 
13429
 
# Compiler flag to prevent dynamic linking.
13430
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13431
 
 
13432
 
# Compiler flag to turn off builtin functions.
13433
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13434
 
 
13435
 
# Compiler flag to allow reflexive dlopens.
13436
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13437
 
 
13438
 
# Compiler flag to generate shared objects directly from archives.
13439
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13440
 
 
13441
 
# Compiler flag to generate thread-safe objects.
13442
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13443
 
 
13444
 
# Library versioning type.
13445
 
version_type=$version_type
13446
 
 
13447
 
# Format of library name prefix.
13448
 
libname_spec=$lt_libname_spec
13449
 
 
13450
 
# List of archive names.  First name is the real one, the rest are links.
13451
 
# The last name is the one that the linker finds with -lNAME.
13452
 
library_names_spec=$lt_library_names_spec
13453
 
 
13454
 
# The coded name of the library, if different from the real name.
13455
 
soname_spec=$lt_soname_spec
13456
 
 
13457
 
# Commands used to build and install an old-style archive.
13458
 
RANLIB=$lt_RANLIB
13459
 
old_archive_cmds=$lt_old_archive_cmds_CXX
13460
 
old_postinstall_cmds=$lt_old_postinstall_cmds
13461
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13462
 
 
13463
 
# Create an old-style archive from a shared archive.
13464
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13465
 
 
13466
 
# Create a temporary old-style archive to link instead of a shared archive.
13467
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13468
 
 
13469
 
# Commands used to build and install a shared archive.
13470
 
archive_cmds=$lt_archive_cmds_CXX
13471
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13472
 
postinstall_cmds=$lt_postinstall_cmds
13473
 
postuninstall_cmds=$lt_postuninstall_cmds
13474
 
 
13475
 
# Commands used to build a loadable module (assumed same as above if empty)
13476
 
module_cmds=$lt_module_cmds_CXX
13477
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13478
 
 
13479
 
# Commands to strip libraries.
13480
 
old_striplib=$lt_old_striplib
13481
 
striplib=$lt_striplib
13482
 
 
13483
 
# Dependencies to place before the objects being linked to create a
13484
 
# shared library.
13485
 
predep_objects=$lt_predep_objects_CXX
13486
 
 
13487
 
# Dependencies to place after the objects being linked to create a
13488
 
# shared library.
13489
 
postdep_objects=$lt_postdep_objects_CXX
13490
 
 
13491
 
# Dependencies to place before the objects being linked to create a
13492
 
# shared library.
13493
 
predeps=$lt_predeps_CXX
13494
 
 
13495
 
# Dependencies to place after the objects being linked to create a
13496
 
# shared library.
13497
 
postdeps=$lt_postdeps_CXX
13498
 
 
13499
 
# The library search path used internally by the compiler when linking
13500
 
# a shared library.
13501
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13502
 
 
13503
 
# Method to check whether dependent libraries are shared objects.
13504
 
deplibs_check_method=$lt_deplibs_check_method
13505
 
 
13506
 
# Command to use when deplibs_check_method == file_magic.
13507
 
file_magic_cmd=$lt_file_magic_cmd
13508
 
 
13509
 
# Flag that allows shared libraries with undefined symbols to be built.
13510
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13511
 
 
13512
 
# Flag that forces no undefined symbols.
13513
 
no_undefined_flag=$lt_no_undefined_flag_CXX
13514
 
 
13515
 
# Commands used to finish a libtool library installation in a directory.
13516
 
finish_cmds=$lt_finish_cmds
13517
 
 
13518
 
# Same as above, but a single script fragment to be evaled but not shown.
13519
 
finish_eval=$lt_finish_eval
13520
 
 
13521
 
# Take the output of nm and produce a listing of raw symbols and C names.
13522
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13523
 
 
13524
 
# Transform the output of nm in a proper C declaration
13525
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13526
 
 
13527
 
# Transform the output of nm in a C name address pair
13528
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13529
 
 
13530
 
# This is the shared library runtime path variable.
13531
 
runpath_var=$runpath_var
13532
 
 
13533
 
# This is the shared library path variable.
13534
 
shlibpath_var=$shlibpath_var
13535
 
 
13536
 
# Is shlibpath searched before the hard-coded library search path?
13537
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13538
 
 
13539
 
# How to hardcode a shared library path into an executable.
13540
 
hardcode_action=$hardcode_action_CXX
13541
 
 
13542
 
# Whether we should hardcode library paths into libraries.
13543
 
hardcode_into_libs=$hardcode_into_libs
13544
 
 
13545
 
# Flag to hardcode \$libdir into a binary during linking.
13546
 
# This must work even if \$libdir does not exist.
13547
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13548
 
 
13549
 
# If ld is used when linking, flag to hardcode \$libdir into
13550
 
# a binary during linking. This must work even if \$libdir does
13551
 
# not exist.
13552
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13553
 
 
13554
 
# Whether we need a single -rpath flag with a separated argument.
13555
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13556
 
 
13557
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13558
 
# resulting binary.
13559
 
hardcode_direct=$hardcode_direct_CXX
13560
 
 
13561
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13562
 
# resulting binary.
13563
 
hardcode_minus_L=$hardcode_minus_L_CXX
13564
 
 
13565
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13566
 
# the resulting binary.
13567
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13568
 
 
13569
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
13570
 
# and all subsequent libraries and executables linked against it.
13571
 
hardcode_automatic=$hardcode_automatic_CXX
13572
 
 
13573
 
# Variables whose values should be saved in libtool wrapper scripts and
13574
 
# restored at relink time.
13575
 
variables_saved_for_relink="$variables_saved_for_relink"
13576
 
 
13577
 
# Whether libtool must link a program against all its dependency libraries.
13578
 
link_all_deplibs=$link_all_deplibs_CXX
13579
 
 
13580
 
# Compile-time system search path for libraries
13581
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13582
 
 
13583
 
# Run-time system search path for libraries
13584
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13585
 
 
13586
 
# Fix the shell variable \$srcfile for the compiler.
13587
 
fix_srcfile_path="$fix_srcfile_path_CXX"
13588
 
 
13589
 
# Set to yes if exported symbols are required.
13590
 
always_export_symbols=$always_export_symbols_CXX
13591
 
 
13592
 
# The commands to list exported symbols.
13593
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13594
 
 
13595
 
# The commands to extract the exported symbol list from a shared archive.
13596
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13597
 
 
13598
 
# Symbols that should not be listed in the preloaded symbols.
13599
 
exclude_expsyms=$lt_exclude_expsyms_CXX
13600
 
 
13601
 
# Symbols that must always be exported.
13602
 
include_expsyms=$lt_include_expsyms_CXX
13603
 
 
13604
 
# ### END LIBTOOL TAG CONFIG: $tagname
13605
 
 
13606
 
__EOF__
13607
 
 
13608
 
 
13609
 
else
13610
 
  # If there is no Makefile yet, we rely on a make rule to execute
13611
 
  # `config.status --recheck' to rerun these tests and create the
13612
 
  # libtool script then.
13613
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13614
 
  if test -f "$ltmain_in"; then
13615
 
    test -f Makefile && make "$ltmain"
13616
 
  fi
13617
 
fi
13618
 
 
13619
 
 
13620
 
ac_ext=c
13621
 
ac_cpp='$CPP $CPPFLAGS'
13622
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13623
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13624
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13625
 
 
13626
 
CC=$lt_save_CC
13627
 
LDCXX=$LD
13628
 
LD=$lt_save_LD
13629
 
GCC=$lt_save_GCC
13630
 
with_gnu_ldcxx=$with_gnu_ld
13631
 
with_gnu_ld=$lt_save_with_gnu_ld
13632
 
lt_cv_path_LDCXX=$lt_cv_path_LD
13633
 
lt_cv_path_LD=$lt_save_path_LD
13634
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13635
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13636
 
 
13637
 
        else
13638
 
          tagname=""
13639
 
        fi
13640
 
        ;;
13641
 
 
13642
 
      F77)
13643
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
13644
 
 
13645
 
ac_ext=f
13646
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13647
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13649
 
 
13650
 
 
13651
 
archive_cmds_need_lc_F77=no
13652
 
allow_undefined_flag_F77=
13653
 
always_export_symbols_F77=no
13654
 
archive_expsym_cmds_F77=
13655
 
export_dynamic_flag_spec_F77=
13656
 
hardcode_direct_F77=no
13657
 
hardcode_libdir_flag_spec_F77=
13658
 
hardcode_libdir_flag_spec_ld_F77=
13659
 
hardcode_libdir_separator_F77=
13660
 
hardcode_minus_L_F77=no
13661
 
hardcode_automatic_F77=no
13662
 
module_cmds_F77=
13663
 
module_expsym_cmds_F77=
13664
 
link_all_deplibs_F77=unknown
13665
 
old_archive_cmds_F77=$old_archive_cmds
13666
 
no_undefined_flag_F77=
13667
 
whole_archive_flag_spec_F77=
13668
 
enable_shared_with_static_runtimes_F77=no
13669
 
 
13670
 
# Source file extension for f77 test sources.
13671
 
ac_ext=f
13672
 
 
13673
 
# Object file extension for compiled f77 test sources.
13674
 
objext=o
13675
 
objext_F77=$objext
13676
 
 
13677
 
# Code to be used in simple compile tests
13678
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13679
 
 
13680
 
# Code to be used in simple link tests
13681
 
lt_simple_link_test_code="      program t\n      end\n"
13682
 
 
13683
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13684
 
 
13685
 
# If no C compiler was specified, use CC.
13686
 
LTCC=${LTCC-"$CC"}
13687
 
 
13688
 
# If no C compiler flags were specified, use CFLAGS.
13689
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13690
 
 
13691
 
# Allow CC to be a program name with arguments.
13692
 
compiler=$CC
13693
 
 
13694
 
 
13695
 
# save warnings/boilerplate of simple test code
13696
 
ac_outfile=conftest.$ac_objext
13697
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13698
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13699
 
_lt_compiler_boilerplate=`cat conftest.err`
13700
 
$rm conftest*
13701
 
 
13702
 
ac_outfile=conftest.$ac_objext
13703
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13704
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13705
 
_lt_linker_boilerplate=`cat conftest.err`
13706
 
$rm conftest*
13707
 
 
13708
 
 
13709
 
# Allow CC to be a program name with arguments.
13710
 
lt_save_CC="$CC"
13711
 
CC=${F77-"f77"}
13712
 
compiler=$CC
13713
 
compiler_F77=$CC
13714
 
for cc_temp in $compiler""; do
13715
 
  case $cc_temp in
13716
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13717
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13718
 
    \-*) ;;
13719
 
    *) break;;
13720
 
  esac
13721
 
done
13722
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13723
 
 
13724
 
 
13725
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13726
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13727
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13728
 
echo "${ECHO_T}$can_build_shared" >&6; }
13729
 
 
13730
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13731
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13732
 
test "$can_build_shared" = "no" && enable_shared=no
13733
 
 
13734
 
# On AIX, shared libraries and static libraries use the same namespace, and
13735
 
# are all built from PIC.
13736
 
case $host_os in
13737
 
aix3*)
13738
 
  test "$enable_shared" = yes && enable_static=no
13739
 
  if test -n "$RANLIB"; then
13740
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13741
 
    postinstall_cmds='$RANLIB $lib'
13742
 
  fi
13743
 
  ;;
13744
 
aix4* | aix5*)
13745
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13746
 
    test "$enable_shared" = yes && enable_static=no
13747
 
  fi
13748
 
  ;;
13749
 
esac
13750
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13751
 
echo "${ECHO_T}$enable_shared" >&6; }
13752
 
 
13753
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13754
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13755
 
# Make sure either enable_shared or enable_static is yes.
13756
 
test "$enable_shared" = yes || enable_static=yes
13757
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13758
 
echo "${ECHO_T}$enable_static" >&6; }
13759
 
 
13760
 
GCC_F77="$G77"
13761
 
LD_F77="$LD"
13762
 
 
13763
 
lt_prog_compiler_wl_F77=
13764
 
lt_prog_compiler_pic_F77=
13765
 
lt_prog_compiler_static_F77=
13766
 
 
13767
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13768
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13769
 
 
13770
 
  if test "$GCC" = yes; then
13771
 
    lt_prog_compiler_wl_F77='-Wl,'
13772
 
    lt_prog_compiler_static_F77='-static'
13773
 
 
13774
 
    case $host_os in
13775
 
      aix*)
13776
 
      # All AIX code is PIC.
13777
 
      if test "$host_cpu" = ia64; then
13778
 
        # AIX 5 now supports IA64 processor
13779
 
        lt_prog_compiler_static_F77='-Bstatic'
13780
 
      fi
13781
 
      ;;
13782
 
 
13783
 
    amigaos*)
13784
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13785
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13786
 
      # like `-m68040'.
13787
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13788
 
      ;;
13789
 
 
13790
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13791
 
      # PIC is the default for these OSes.
13792
 
      ;;
13793
 
 
13794
 
    mingw* | pw32* | os2*)
13795
 
      # This hack is so that the source file can tell whether it is being
13796
 
      # built for inclusion in a dll (and should export symbols for example).
13797
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13798
 
      ;;
13799
 
 
13800
 
    darwin* | rhapsody*)
13801
 
      # PIC is the default on this platform
13802
 
      # Common symbols not allowed in MH_DYLIB files
13803
 
      lt_prog_compiler_pic_F77='-fno-common'
13804
 
      ;;
13805
 
 
13806
 
    interix3*)
13807
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13808
 
      # Instead, we relocate shared libraries at runtime.
13809
 
      ;;
13810
 
 
13811
 
    msdosdjgpp*)
13812
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13813
 
      # on systems that don't support them.
13814
 
      lt_prog_compiler_can_build_shared_F77=no
13815
 
      enable_shared=no
13816
 
      ;;
13817
 
 
13818
 
    sysv4*MP*)
13819
 
      if test -d /usr/nec; then
13820
 
        lt_prog_compiler_pic_F77=-Kconform_pic
13821
 
      fi
13822
 
      ;;
13823
 
 
13824
 
    hpux*)
13825
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13826
 
      # not for PA HP-UX.
13827
 
      case $host_cpu in
13828
 
      hppa*64*|ia64*)
13829
 
        # +Z the default
13830
 
        ;;
13831
 
      *)
13832
 
        lt_prog_compiler_pic_F77='-fPIC'
13833
 
        ;;
13834
 
      esac
13835
 
      ;;
13836
 
 
13837
 
    *)
13838
 
      lt_prog_compiler_pic_F77='-fPIC'
13839
 
      ;;
13840
 
    esac
13841
 
  else
13842
 
    # PORTME Check for flag to pass linker flags through the system compiler.
13843
 
    case $host_os in
13844
 
    aix*)
13845
 
      lt_prog_compiler_wl_F77='-Wl,'
13846
 
      if test "$host_cpu" = ia64; then
13847
 
        # AIX 5 now supports IA64 processor
13848
 
        lt_prog_compiler_static_F77='-Bstatic'
13849
 
      else
13850
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13851
 
      fi
13852
 
      ;;
13853
 
      darwin*)
13854
 
        # PIC is the default on this platform
13855
 
        # Common symbols not allowed in MH_DYLIB files
13856
 
       case $cc_basename in
13857
 
         xlc*)
13858
 
         lt_prog_compiler_pic_F77='-qnocommon'
13859
 
         lt_prog_compiler_wl_F77='-Wl,'
13860
 
         ;;
13861
 
       esac
13862
 
       ;;
13863
 
 
13864
 
    mingw* | pw32* | os2*)
13865
 
      # This hack is so that the source file can tell whether it is being
13866
 
      # built for inclusion in a dll (and should export symbols for example).
13867
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13868
 
      ;;
13869
 
 
13870
 
    hpux9* | hpux10* | hpux11*)
13871
 
      lt_prog_compiler_wl_F77='-Wl,'
13872
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13873
 
      # not for PA HP-UX.
13874
 
      case $host_cpu in
13875
 
      hppa*64*|ia64*)
13876
 
        # +Z the default
13877
 
        ;;
13878
 
      *)
13879
 
        lt_prog_compiler_pic_F77='+Z'
13880
 
        ;;
13881
 
      esac
13882
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13883
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13884
 
      ;;
13885
 
 
13886
 
    irix5* | irix6* | nonstopux*)
13887
 
      lt_prog_compiler_wl_F77='-Wl,'
13888
 
      # PIC (with -KPIC) is the default.
13889
 
      lt_prog_compiler_static_F77='-non_shared'
13890
 
      ;;
13891
 
 
13892
 
    newsos6)
13893
 
      lt_prog_compiler_pic_F77='-KPIC'
13894
 
      lt_prog_compiler_static_F77='-Bstatic'
13895
 
      ;;
13896
 
 
13897
 
    linux* | k*bsd*-gnu)
13898
 
      case $cc_basename in
13899
 
      icc* | ecc*)
13900
 
        lt_prog_compiler_wl_F77='-Wl,'
13901
 
        lt_prog_compiler_pic_F77='-KPIC'
13902
 
        lt_prog_compiler_static_F77='-static'
13903
 
        ;;
13904
 
      pgcc* | pgf77* | pgf90* | pgf95*)
13905
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
13906
 
        # which looks to be a dead project)
13907
 
        lt_prog_compiler_wl_F77='-Wl,'
13908
 
        lt_prog_compiler_pic_F77='-fpic'
13909
 
        lt_prog_compiler_static_F77='-Bstatic'
13910
 
        ;;
13911
 
      ccc*)
13912
 
        lt_prog_compiler_wl_F77='-Wl,'
13913
 
        # All Alpha code is PIC.
13914
 
        lt_prog_compiler_static_F77='-non_shared'
13915
 
        ;;
13916
 
      esac
13917
 
      ;;
13918
 
 
13919
 
    osf3* | osf4* | osf5*)
13920
 
      lt_prog_compiler_wl_F77='-Wl,'
13921
 
      # All OSF/1 code is PIC.
13922
 
      lt_prog_compiler_static_F77='-non_shared'
13923
 
      ;;
13924
 
 
13925
 
    solaris*)
13926
 
      lt_prog_compiler_pic_F77='-KPIC'
13927
 
      lt_prog_compiler_static_F77='-Bstatic'
13928
 
      case $cc_basename in
13929
 
      f77* | f90* | f95*)
13930
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13931
 
      *)
13932
 
        lt_prog_compiler_wl_F77='-Wl,';;
13933
 
      esac
13934
 
      ;;
13935
 
 
13936
 
    sunos4*)
13937
 
      lt_prog_compiler_wl_F77='-Qoption ld '
13938
 
      lt_prog_compiler_pic_F77='-PIC'
13939
 
      lt_prog_compiler_static_F77='-Bstatic'
13940
 
      ;;
13941
 
 
13942
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
13943
 
      lt_prog_compiler_wl_F77='-Wl,'
13944
 
      lt_prog_compiler_pic_F77='-KPIC'
13945
 
      lt_prog_compiler_static_F77='-Bstatic'
13946
 
      ;;
13947
 
 
13948
 
    sysv4*MP*)
13949
 
      if test -d /usr/nec ;then
13950
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
13951
 
        lt_prog_compiler_static_F77='-Bstatic'
13952
 
      fi
13953
 
      ;;
13954
 
 
13955
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13956
 
      lt_prog_compiler_wl_F77='-Wl,'
13957
 
      lt_prog_compiler_pic_F77='-KPIC'
13958
 
      lt_prog_compiler_static_F77='-Bstatic'
13959
 
      ;;
13960
 
 
13961
 
    unicos*)
13962
 
      lt_prog_compiler_wl_F77='-Wl,'
13963
 
      lt_prog_compiler_can_build_shared_F77=no
13964
 
      ;;
13965
 
 
13966
 
    uts4*)
13967
 
      lt_prog_compiler_pic_F77='-pic'
13968
 
      lt_prog_compiler_static_F77='-Bstatic'
13969
 
      ;;
13970
 
 
13971
 
    *)
13972
 
      lt_prog_compiler_can_build_shared_F77=no
13973
 
      ;;
13974
 
    esac
13975
 
  fi
13976
 
 
13977
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13978
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13979
 
 
13980
 
#
13981
 
# Check to make sure the PIC flag actually works.
13982
 
#
13983
 
if test -n "$lt_prog_compiler_pic_F77"; then
13984
 
 
13985
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13986
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13987
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13989
 
else
13990
 
  lt_prog_compiler_pic_works_F77=no
13991
 
  ac_outfile=conftest.$ac_objext
13992
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13993
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13994
 
   # Insert the option either (1) after the last *FLAGS variable, or
13995
 
   # (2) before a word containing "conftest.", or (3) at the end.
13996
 
   # Note that $ac_compile itself does not contain backslashes and begins
13997
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13998
 
   # The option is referenced via a variable to avoid confusing sed.
13999
 
   lt_compile=`echo "$ac_compile" | $SED \
14000
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14001
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14002
 
   -e 's:$: $lt_compiler_flag:'`
14003
 
   (eval echo "\"\$as_me:14003: $lt_compile\"" >&5)
14004
 
   (eval "$lt_compile" 2>conftest.err)
14005
 
   ac_status=$?
14006
 
   cat conftest.err >&5
14007
 
   echo "$as_me:14007: \$? = $ac_status" >&5
14008
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14009
 
     # The compiler can only warn and ignore the option if not recognized
14010
 
     # So say no if there are warnings other than the usual output.
14011
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14012
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14013
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14014
 
       lt_prog_compiler_pic_works_F77=yes
14015
 
     fi
14016
 
   fi
14017
 
   $rm conftest*
14018
 
 
14019
 
fi
14020
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14021
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14022
 
 
14023
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14024
 
    case $lt_prog_compiler_pic_F77 in
14025
 
     "" | " "*) ;;
14026
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14027
 
     esac
14028
 
else
14029
 
    lt_prog_compiler_pic_F77=
14030
 
     lt_prog_compiler_can_build_shared_F77=no
14031
 
fi
14032
 
 
14033
 
fi
14034
 
case $host_os in
14035
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14036
 
  *djgpp*)
14037
 
    lt_prog_compiler_pic_F77=
14038
 
    ;;
14039
 
  *)
14040
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14041
 
    ;;
14042
 
esac
14043
 
 
14044
 
#
14045
 
# Check to make sure the static flag actually works.
14046
 
#
14047
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14048
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14049
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14050
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14051
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14052
 
else
14053
 
  lt_prog_compiler_static_works_F77=no
14054
 
   save_LDFLAGS="$LDFLAGS"
14055
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14056
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14057
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14058
 
     # The linker can only warn and ignore the option if not recognized
14059
 
     # So say no if there are warnings
14060
 
     if test -s conftest.err; then
14061
 
       # Append any errors to the config.log.
14062
 
       cat conftest.err 1>&5
14063
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14064
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14065
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14066
 
         lt_prog_compiler_static_works_F77=yes
14067
 
       fi
14068
 
     else
14069
 
       lt_prog_compiler_static_works_F77=yes
14070
 
     fi
14071
 
   fi
14072
 
   $rm conftest*
14073
 
   LDFLAGS="$save_LDFLAGS"
14074
 
 
14075
 
fi
14076
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14077
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14078
 
 
14079
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14080
 
    :
14081
 
else
14082
 
    lt_prog_compiler_static_F77=
14083
 
fi
14084
 
 
14085
 
 
14086
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14087
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14088
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14089
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14090
 
else
14091
 
  lt_cv_prog_compiler_c_o_F77=no
14092
 
   $rm -r conftest 2>/dev/null
14093
 
   mkdir conftest
14094
 
   cd conftest
14095
 
   mkdir out
14096
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14097
 
 
14098
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14099
 
   # Insert the option either (1) after the last *FLAGS variable, or
14100
 
   # (2) before a word containing "conftest.", or (3) at the end.
14101
 
   # Note that $ac_compile itself does not contain backslashes and begins
14102
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14103
 
   lt_compile=`echo "$ac_compile" | $SED \
14104
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106
 
   -e 's:$: $lt_compiler_flag:'`
14107
 
   (eval echo "\"\$as_me:14107: $lt_compile\"" >&5)
14108
 
   (eval "$lt_compile" 2>out/conftest.err)
14109
 
   ac_status=$?
14110
 
   cat out/conftest.err >&5
14111
 
   echo "$as_me:14111: \$? = $ac_status" >&5
14112
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14113
 
   then
14114
 
     # The compiler can only warn and ignore the option if not recognized
14115
 
     # So say no if there are warnings
14116
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14117
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14118
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14119
 
       lt_cv_prog_compiler_c_o_F77=yes
14120
 
     fi
14121
 
   fi
14122
 
   chmod u+w . 2>&5
14123
 
   $rm conftest*
14124
 
   # SGI C++ compiler will create directory out/ii_files/ for
14125
 
   # template instantiation
14126
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14127
 
   $rm out/* && rmdir out
14128
 
   cd ..
14129
 
   rmdir conftest
14130
 
   $rm conftest*
14131
 
 
14132
 
fi
14133
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14134
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14135
 
 
14136
 
 
14137
 
hard_links="nottested"
14138
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14139
 
  # do not overwrite the value of need_locks provided by the user
14140
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14141
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14142
 
  hard_links=yes
14143
 
  $rm conftest*
14144
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14145
 
  touch conftest.a
14146
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14147
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14148
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14149
 
echo "${ECHO_T}$hard_links" >&6; }
14150
 
  if test "$hard_links" = no; then
14151
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14152
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14153
 
    need_locks=warn
14154
 
  fi
14155
 
else
14156
 
  need_locks=no
14157
 
fi
14158
 
 
14159
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14160
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14161
 
 
14162
 
  runpath_var=
14163
 
  allow_undefined_flag_F77=
14164
 
  enable_shared_with_static_runtimes_F77=no
14165
 
  archive_cmds_F77=
14166
 
  archive_expsym_cmds_F77=
14167
 
  old_archive_From_new_cmds_F77=
14168
 
  old_archive_from_expsyms_cmds_F77=
14169
 
  export_dynamic_flag_spec_F77=
14170
 
  whole_archive_flag_spec_F77=
14171
 
  thread_safe_flag_spec_F77=
14172
 
  hardcode_libdir_flag_spec_F77=
14173
 
  hardcode_libdir_flag_spec_ld_F77=
14174
 
  hardcode_libdir_separator_F77=
14175
 
  hardcode_direct_F77=no
14176
 
  hardcode_minus_L_F77=no
14177
 
  hardcode_shlibpath_var_F77=unsupported
14178
 
  link_all_deplibs_F77=unknown
14179
 
  hardcode_automatic_F77=no
14180
 
  module_cmds_F77=
14181
 
  module_expsym_cmds_F77=
14182
 
  always_export_symbols_F77=no
14183
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14184
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14185
 
  # included in the symbol list
14186
 
  include_expsyms_F77=
14187
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14188
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14189
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14190
 
  # as well as any symbol that contains `d'.
14191
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14192
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14193
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14194
 
  # the symbol is explicitly referenced.  Since portable code cannot
14195
 
  # rely on this symbol name, it's probably fine to never include it in
14196
 
  # preloaded symbol tables.
14197
 
  extract_expsyms_cmds=
14198
 
  # Just being paranoid about ensuring that cc_basename is set.
14199
 
  for cc_temp in $compiler""; do
14200
 
  case $cc_temp in
14201
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14202
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14203
 
    \-*) ;;
14204
 
    *) break;;
14205
 
  esac
14206
 
done
14207
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14208
 
 
14209
 
  case $host_os in
14210
 
  cygwin* | mingw* | pw32*)
14211
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14212
 
    # When not using gcc, we currently assume that we are using
14213
 
    # Microsoft Visual C++.
14214
 
    if test "$GCC" != yes; then
14215
 
      with_gnu_ld=no
14216
 
    fi
14217
 
    ;;
14218
 
  interix*)
14219
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14220
 
    with_gnu_ld=yes
14221
 
    ;;
14222
 
  openbsd*)
14223
 
    with_gnu_ld=no
14224
 
    ;;
14225
 
  esac
14226
 
 
14227
 
  ld_shlibs_F77=yes
14228
 
  if test "$with_gnu_ld" = yes; then
14229
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14230
 
    wlarc='${wl}'
14231
 
 
14232
 
    # Set some defaults for GNU ld with shared library support. These
14233
 
    # are reset later if shared libraries are not supported. Putting them
14234
 
    # here allows them to be overridden if necessary.
14235
 
    runpath_var=LD_RUN_PATH
14236
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14237
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14238
 
    # ancient GNU ld didn't support --whole-archive et. al.
14239
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14240
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14241
 
      else
14242
 
        whole_archive_flag_spec_F77=
14243
 
    fi
14244
 
    supports_anon_versioning=no
14245
 
    case `$LD -v 2>/dev/null` in
14246
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14247
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14248
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14249
 
      *\ 2.11.*) ;; # other 2.11 versions
14250
 
      *) supports_anon_versioning=yes ;;
14251
 
    esac
14252
 
 
14253
 
    # See if GNU ld supports shared libraries.
14254
 
    case $host_os in
14255
 
    aix3* | aix4* | aix5*)
14256
 
      # On AIX/PPC, the GNU linker is very broken
14257
 
      if test "$host_cpu" != ia64; then
14258
 
        ld_shlibs_F77=no
14259
 
        cat <<EOF 1>&2
14260
 
 
14261
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14262
 
*** to be unable to reliably create shared libraries on AIX.
14263
 
*** Therefore, libtool is disabling shared libraries support.  If you
14264
 
*** really care for shared libraries, you may want to modify your PATH
14265
 
*** so that a non-GNU linker is found, and then restart.
14266
 
 
14267
 
EOF
14268
 
      fi
14269
 
      ;;
14270
 
 
14271
 
    amigaos*)
14272
 
      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)'
14273
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14274
 
      hardcode_minus_L_F77=yes
14275
 
 
14276
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14277
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14278
 
      # to version 4, is to share data among multiple programs linked
14279
 
      # with the same dynamic library.  Since this doesn't match the
14280
 
      # behavior of shared libraries on other platforms, we can't use
14281
 
      # them.
14282
 
      ld_shlibs_F77=no
14283
 
      ;;
14284
 
 
14285
 
    beos*)
14286
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14287
 
        allow_undefined_flag_F77=unsupported
14288
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14289
 
        # support --undefined.  This deserves some investigation.  FIXME
14290
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14291
 
      else
14292
 
        ld_shlibs_F77=no
14293
 
      fi
14294
 
      ;;
14295
 
 
14296
 
    cygwin* | mingw* | pw32*)
14297
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14298
 
      # as there is no search path for DLLs.
14299
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14300
 
      allow_undefined_flag_F77=unsupported
14301
 
      always_export_symbols_F77=no
14302
 
      enable_shared_with_static_runtimes_F77=yes
14303
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14304
 
 
14305
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14306
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14307
 
        # If the export-symbols file already is a .def file (1st line
14308
 
        # is EXPORTS), use it as is; otherwise, prepend...
14309
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14310
 
          cp $export_symbols $output_objdir/$soname.def;
14311
 
        else
14312
 
          echo EXPORTS > $output_objdir/$soname.def;
14313
 
          cat $export_symbols >> $output_objdir/$soname.def;
14314
 
        fi~
14315
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14316
 
      else
14317
 
        ld_shlibs_F77=no
14318
 
      fi
14319
 
      ;;
14320
 
 
14321
 
    interix3*)
14322
 
      hardcode_direct_F77=no
14323
 
      hardcode_shlibpath_var_F77=no
14324
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14325
 
      export_dynamic_flag_spec_F77='${wl}-E'
14326
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14327
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14328
 
      # default) and relocated if they conflict, which is a slow very memory
14329
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14330
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14331
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14332
 
      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'
14333
 
      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'
14334
 
      ;;
14335
 
 
14336
 
    linux* | k*bsd*-gnu)
14337
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14338
 
        tmp_addflag=
14339
 
        case $cc_basename,$host_cpu in
14340
 
        pgcc*)                          # Portland Group C compiler
14341
 
          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'
14342
 
          tmp_addflag=' $pic_flag'
14343
 
          ;;
14344
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14345
 
          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'
14346
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14347
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14348
 
          tmp_addflag=' -i_dynamic' ;;
14349
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14350
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14351
 
        ifc* | ifort*)                  # Intel Fortran compiler
14352
 
          tmp_addflag=' -nofor_main' ;;
14353
 
        esac
14354
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14355
 
 
14356
 
        if test $supports_anon_versioning = yes; then
14357
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14358
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14360
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14361
 
        fi
14362
 
        link_all_deplibs_F77=no
14363
 
      else
14364
 
        ld_shlibs_F77=no
14365
 
      fi
14366
 
      ;;
14367
 
 
14368
 
    netbsd* | netbsdelf*-gnu)
14369
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14370
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14371
 
        wlarc=
14372
 
      else
14373
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14374
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14375
 
      fi
14376
 
      ;;
14377
 
 
14378
 
    solaris*)
14379
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14380
 
        ld_shlibs_F77=no
14381
 
        cat <<EOF 1>&2
14382
 
 
14383
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14384
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14385
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14386
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14387
 
*** your PATH or compiler configuration so that the native linker is
14388
 
*** used, and then restart.
14389
 
 
14390
 
EOF
14391
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14392
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14393
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14394
 
      else
14395
 
        ld_shlibs_F77=no
14396
 
      fi
14397
 
      ;;
14398
 
 
14399
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14400
 
      case `$LD -v 2>&1` in
14401
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14402
 
        ld_shlibs_F77=no
14403
 
        cat <<_LT_EOF 1>&2
14404
 
 
14405
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14406
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14407
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14408
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14409
 
*** your PATH or compiler configuration so that the native linker is
14410
 
*** used, and then restart.
14411
 
 
14412
 
_LT_EOF
14413
 
        ;;
14414
 
        *)
14415
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14417
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14418
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14419
 
          else
14420
 
            ld_shlibs_F77=no
14421
 
          fi
14422
 
        ;;
14423
 
      esac
14424
 
      ;;
14425
 
 
14426
 
    sunos4*)
14427
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14428
 
      wlarc=
14429
 
      hardcode_direct_F77=yes
14430
 
      hardcode_shlibpath_var_F77=no
14431
 
      ;;
14432
 
 
14433
 
    *)
14434
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14435
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14436
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14437
 
      else
14438
 
        ld_shlibs_F77=no
14439
 
      fi
14440
 
      ;;
14441
 
    esac
14442
 
 
14443
 
    if test "$ld_shlibs_F77" = no; then
14444
 
      runpath_var=
14445
 
      hardcode_libdir_flag_spec_F77=
14446
 
      export_dynamic_flag_spec_F77=
14447
 
      whole_archive_flag_spec_F77=
14448
 
    fi
14449
 
  else
14450
 
    # PORTME fill in a description of your system's linker (not GNU ld)
14451
 
    case $host_os in
14452
 
    aix3*)
14453
 
      allow_undefined_flag_F77=unsupported
14454
 
      always_export_symbols_F77=yes
14455
 
      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'
14456
 
      # Note: this linker hardcodes the directories in LIBPATH if there
14457
 
      # are no directories specified by -L.
14458
 
      hardcode_minus_L_F77=yes
14459
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14460
 
        # Neither direct hardcoding nor static linking is supported with a
14461
 
        # broken collect2.
14462
 
        hardcode_direct_F77=unsupported
14463
 
      fi
14464
 
      ;;
14465
 
 
14466
 
    aix4* | aix5*)
14467
 
      if test "$host_cpu" = ia64; then
14468
 
        # On IA64, the linker does run time linking by default, so we don't
14469
 
        # have to do anything special.
14470
 
        aix_use_runtimelinking=no
14471
 
        exp_sym_flag='-Bexport'
14472
 
        no_entry_flag=""
14473
 
      else
14474
 
        # If we're using GNU nm, then we don't want the "-C" option.
14475
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14476
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14477
 
          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'
14478
 
        else
14479
 
          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'
14480
 
        fi
14481
 
        aix_use_runtimelinking=no
14482
 
 
14483
 
        # Test if we are trying to use run time linking or normal
14484
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14485
 
        # need to do runtime linking.
14486
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14487
 
          for ld_flag in $LDFLAGS; do
14488
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14489
 
            aix_use_runtimelinking=yes
14490
 
            break
14491
 
          fi
14492
 
          done
14493
 
          ;;
14494
 
        esac
14495
 
 
14496
 
        exp_sym_flag='-bexport'
14497
 
        no_entry_flag='-bnoentry'
14498
 
      fi
14499
 
 
14500
 
      # When large executables or shared objects are built, AIX ld can
14501
 
      # have problems creating the table of contents.  If linking a library
14502
 
      # or program results in "error TOC overflow" add -mminimal-toc to
14503
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14504
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14505
 
 
14506
 
      archive_cmds_F77=''
14507
 
      hardcode_direct_F77=yes
14508
 
      hardcode_libdir_separator_F77=':'
14509
 
      link_all_deplibs_F77=yes
14510
 
 
14511
 
      if test "$GCC" = yes; then
14512
 
        case $host_os in aix4.[012]|aix4.[012].*)
14513
 
        # We only want to do this on AIX 4.2 and lower, the check
14514
 
        # below for broken collect2 doesn't work under 4.3+
14515
 
          collect2name=`${CC} -print-prog-name=collect2`
14516
 
          if test -f "$collect2name" && \
14517
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14518
 
          then
14519
 
          # We have reworked collect2
14520
 
          hardcode_direct_F77=yes
14521
 
          else
14522
 
          # We have old collect2
14523
 
          hardcode_direct_F77=unsupported
14524
 
          # It fails to find uninstalled libraries when the uninstalled
14525
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
14526
 
          # to unsupported forces relinking
14527
 
          hardcode_minus_L_F77=yes
14528
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14529
 
          hardcode_libdir_separator_F77=
14530
 
          fi
14531
 
          ;;
14532
 
        esac
14533
 
        shared_flag='-shared'
14534
 
        if test "$aix_use_runtimelinking" = yes; then
14535
 
          shared_flag="$shared_flag "'${wl}-G'
14536
 
        fi
14537
 
      else
14538
 
        # not using gcc
14539
 
        if test "$host_cpu" = ia64; then
14540
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14541
 
        # chokes on -Wl,-G. The following line is correct:
14542
 
          shared_flag='-G'
14543
 
        else
14544
 
          if test "$aix_use_runtimelinking" = yes; then
14545
 
            shared_flag='${wl}-G'
14546
 
          else
14547
 
            shared_flag='${wl}-bM:SRE'
14548
 
          fi
14549
 
        fi
14550
 
      fi
14551
 
 
14552
 
      # It seems that -bexpall does not export symbols beginning with
14553
 
      # underscore (_), so it is better to generate a list of symbols to export.
14554
 
      always_export_symbols_F77=yes
14555
 
      if test "$aix_use_runtimelinking" = yes; then
14556
 
        # Warning - without using the other runtime loading flags (-brtl),
14557
 
        # -berok will link without error, but may produce a broken library.
14558
 
        allow_undefined_flag_F77='-berok'
14559
 
       # Determine the default libpath from the value encoded in an empty executable.
14560
 
       cat >conftest.$ac_ext <<_ACEOF
14561
 
      program main
14562
 
 
14563
 
      end
14564
 
_ACEOF
14565
 
rm -f conftest.$ac_objext conftest$ac_exeext
14566
 
if { (ac_try="$ac_link"
14567
 
case "(($ac_try" in
14568
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569
 
  *) ac_try_echo=$ac_try;;
14570
 
esac
14571
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572
 
  (eval "$ac_link") 2>conftest.er1
14573
 
  ac_status=$?
14574
 
  grep -v '^ *+' conftest.er1 >conftest.err
14575
 
  rm -f conftest.er1
14576
 
  cat conftest.err >&5
14577
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578
 
  (exit $ac_status); } && {
14579
 
         test -z "$ac_f77_werror_flag" ||
14580
 
         test ! -s conftest.err
14581
 
       } && test -s conftest$ac_exeext &&
14582
 
       $as_test_x conftest$ac_exeext; then
14583
 
 
14584
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14585
 
}'`
14586
 
# Check for a 64-bit object if we didn't find anything.
14587
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14588
 
}'`; fi
14589
 
else
14590
 
  echo "$as_me: failed program was:" >&5
14591
 
sed 's/^/| /' conftest.$ac_ext >&5
14592
 
 
14593
 
 
14594
 
fi
14595
 
 
14596
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597
 
      conftest$ac_exeext conftest.$ac_ext
14598
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14599
 
 
14600
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14601
 
        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"
14602
 
       else
14603
 
        if test "$host_cpu" = ia64; then
14604
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14605
 
          allow_undefined_flag_F77="-z nodefs"
14606
 
          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"
14607
 
        else
14608
 
         # Determine the default libpath from the value encoded in an empty executable.
14609
 
         cat >conftest.$ac_ext <<_ACEOF
14610
 
      program main
14611
 
 
14612
 
      end
14613
 
_ACEOF
14614
 
rm -f conftest.$ac_objext conftest$ac_exeext
14615
 
if { (ac_try="$ac_link"
14616
 
case "(($ac_try" in
14617
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618
 
  *) ac_try_echo=$ac_try;;
14619
 
esac
14620
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621
 
  (eval "$ac_link") 2>conftest.er1
14622
 
  ac_status=$?
14623
 
  grep -v '^ *+' conftest.er1 >conftest.err
14624
 
  rm -f conftest.er1
14625
 
  cat conftest.err >&5
14626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627
 
  (exit $ac_status); } && {
14628
 
         test -z "$ac_f77_werror_flag" ||
14629
 
         test ! -s conftest.err
14630
 
       } && test -s conftest$ac_exeext &&
14631
 
       $as_test_x conftest$ac_exeext; then
14632
 
 
14633
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14634
 
}'`
14635
 
# Check for a 64-bit object if we didn't find anything.
14636
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14637
 
}'`; fi
14638
 
else
14639
 
  echo "$as_me: failed program was:" >&5
14640
 
sed 's/^/| /' conftest.$ac_ext >&5
14641
 
 
14642
 
 
14643
 
fi
14644
 
 
14645
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14646
 
      conftest$ac_exeext conftest.$ac_ext
14647
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14648
 
 
14649
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14650
 
          # Warning - without using the other run time loading flags,
14651
 
          # -berok will link without error, but may produce a broken library.
14652
 
          no_undefined_flag_F77=' ${wl}-bernotok'
14653
 
          allow_undefined_flag_F77=' ${wl}-berok'
14654
 
          # Exported symbols can be pulled into shared objects from archives
14655
 
          whole_archive_flag_spec_F77='$convenience'
14656
 
          archive_cmds_need_lc_F77=yes
14657
 
          # This is similar to how AIX traditionally builds its shared libraries.
14658
 
          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'
14659
 
        fi
14660
 
      fi
14661
 
      ;;
14662
 
 
14663
 
    amigaos*)
14664
 
      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)'
14665
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14666
 
      hardcode_minus_L_F77=yes
14667
 
      # see comment about different semantics on the GNU ld section
14668
 
      ld_shlibs_F77=no
14669
 
      ;;
14670
 
 
14671
 
    bsdi[45]*)
14672
 
      export_dynamic_flag_spec_F77=-rdynamic
14673
 
      ;;
14674
 
 
14675
 
    cygwin* | mingw* | pw32*)
14676
 
      # When not using gcc, we currently assume that we are using
14677
 
      # Microsoft Visual C++.
14678
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14679
 
      # no search path for DLLs.
14680
 
      hardcode_libdir_flag_spec_F77=' '
14681
 
      allow_undefined_flag_F77=unsupported
14682
 
      # Tell ltmain to make .lib files, not .a files.
14683
 
      libext=lib
14684
 
      # Tell ltmain to make .dll files, not .so files.
14685
 
      shrext_cmds=".dll"
14686
 
      # FIXME: Setting linknames here is a bad hack.
14687
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14688
 
      # The linker will automatically build a .lib file if we build a DLL.
14689
 
      old_archive_From_new_cmds_F77='true'
14690
 
      # FIXME: Should let the user specify the lib program.
14691
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14692
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14693
 
      enable_shared_with_static_runtimes_F77=yes
14694
 
      ;;
14695
 
 
14696
 
    darwin* | rhapsody*)
14697
 
      case $host_os in
14698
 
        rhapsody* | darwin1.[012])
14699
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14700
 
         ;;
14701
 
       *) # Darwin 1.3 on
14702
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14703
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14704
 
         else
14705
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
14706
 
             10.[012])
14707
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14708
 
               ;;
14709
 
             10.*)
14710
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14711
 
               ;;
14712
 
           esac
14713
 
         fi
14714
 
         ;;
14715
 
      esac
14716
 
      archive_cmds_need_lc_F77=no
14717
 
      hardcode_direct_F77=no
14718
 
      hardcode_automatic_F77=yes
14719
 
      hardcode_shlibpath_var_F77=unsupported
14720
 
      whole_archive_flag_spec_F77=''
14721
 
      link_all_deplibs_F77=yes
14722
 
    if test "$GCC" = yes ; then
14723
 
        output_verbose_link_cmd='echo'
14724
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14725
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14726
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14727
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14728
 
      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}'
14729
 
    else
14730
 
      case $cc_basename in
14731
 
        xlc*)
14732
 
         output_verbose_link_cmd='echo'
14733
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14734
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14735
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14736
 
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14737
 
          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}'
14738
 
          ;;
14739
 
       *)
14740
 
         ld_shlibs_F77=no
14741
 
          ;;
14742
 
      esac
14743
 
    fi
14744
 
      ;;
14745
 
 
14746
 
    dgux*)
14747
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14748
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14749
 
      hardcode_shlibpath_var_F77=no
14750
 
      ;;
14751
 
 
14752
 
    freebsd1*)
14753
 
      ld_shlibs_F77=no
14754
 
      ;;
14755
 
 
14756
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14757
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14758
 
    # does not break anything, and helps significantly (at the cost of a little
14759
 
    # extra space).
14760
 
    freebsd2.2*)
14761
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14762
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14763
 
      hardcode_direct_F77=yes
14764
 
      hardcode_shlibpath_var_F77=no
14765
 
      ;;
14766
 
 
14767
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14768
 
    freebsd2*)
14769
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14770
 
      hardcode_direct_F77=yes
14771
 
      hardcode_minus_L_F77=yes
14772
 
      hardcode_shlibpath_var_F77=no
14773
 
      ;;
14774
 
 
14775
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14776
 
    freebsd* | dragonfly*)
14777
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14778
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14779
 
      hardcode_direct_F77=yes
14780
 
      hardcode_shlibpath_var_F77=no
14781
 
      ;;
14782
 
 
14783
 
    hpux9*)
14784
 
      if test "$GCC" = yes; then
14785
 
        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'
14786
 
      else
14787
 
        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'
14788
 
      fi
14789
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14790
 
      hardcode_libdir_separator_F77=:
14791
 
      hardcode_direct_F77=yes
14792
 
 
14793
 
      # hardcode_minus_L: Not really in the search PATH,
14794
 
      # but as the default location of the library.
14795
 
      hardcode_minus_L_F77=yes
14796
 
      export_dynamic_flag_spec_F77='${wl}-E'
14797
 
      ;;
14798
 
 
14799
 
    hpux10*)
14800
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14801
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14802
 
      else
14803
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14804
 
      fi
14805
 
      if test "$with_gnu_ld" = no; then
14806
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14807
 
        hardcode_libdir_separator_F77=:
14808
 
 
14809
 
        hardcode_direct_F77=yes
14810
 
        export_dynamic_flag_spec_F77='${wl}-E'
14811
 
 
14812
 
        # hardcode_minus_L: Not really in the search PATH,
14813
 
        # but as the default location of the library.
14814
 
        hardcode_minus_L_F77=yes
14815
 
      fi
14816
 
      ;;
14817
 
 
14818
 
    hpux11*)
14819
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14820
 
        case $host_cpu in
14821
 
        hppa*64*)
14822
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14823
 
          ;;
14824
 
        ia64*)
14825
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14826
 
          ;;
14827
 
        *)
14828
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14829
 
          ;;
14830
 
        esac
14831
 
      else
14832
 
        case $host_cpu in
14833
 
        hppa*64*)
14834
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14835
 
          ;;
14836
 
        ia64*)
14837
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14838
 
          ;;
14839
 
        *)
14840
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14841
 
          ;;
14842
 
        esac
14843
 
      fi
14844
 
      if test "$with_gnu_ld" = no; then
14845
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14846
 
        hardcode_libdir_separator_F77=:
14847
 
 
14848
 
        case $host_cpu in
14849
 
        hppa*64*|ia64*)
14850
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14851
 
          hardcode_direct_F77=no
14852
 
          hardcode_shlibpath_var_F77=no
14853
 
          ;;
14854
 
        *)
14855
 
          hardcode_direct_F77=yes
14856
 
          export_dynamic_flag_spec_F77='${wl}-E'
14857
 
 
14858
 
          # hardcode_minus_L: Not really in the search PATH,
14859
 
          # but as the default location of the library.
14860
 
          hardcode_minus_L_F77=yes
14861
 
          ;;
14862
 
        esac
14863
 
      fi
14864
 
      ;;
14865
 
 
14866
 
    irix5* | irix6* | nonstopux*)
14867
 
      if test "$GCC" = yes; then
14868
 
        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'
14869
 
      else
14870
 
        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'
14871
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14872
 
      fi
14873
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14874
 
      hardcode_libdir_separator_F77=:
14875
 
      link_all_deplibs_F77=yes
14876
 
      ;;
14877
 
 
14878
 
    netbsd* | netbsdelf*-gnu)
14879
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14880
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14881
 
      else
14882
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14883
 
      fi
14884
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14885
 
      hardcode_direct_F77=yes
14886
 
      hardcode_shlibpath_var_F77=no
14887
 
      ;;
14888
 
 
14889
 
    newsos6)
14890
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891
 
      hardcode_direct_F77=yes
14892
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14893
 
      hardcode_libdir_separator_F77=:
14894
 
      hardcode_shlibpath_var_F77=no
14895
 
      ;;
14896
 
 
14897
 
    openbsd*)
14898
 
      hardcode_direct_F77=yes
14899
 
      hardcode_shlibpath_var_F77=no
14900
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14902
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14903
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14904
 
        export_dynamic_flag_spec_F77='${wl}-E'
14905
 
      else
14906
 
       case $host_os in
14907
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14908
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14909
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14910
 
           ;;
14911
 
         *)
14912
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14913
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14914
 
           ;;
14915
 
       esac
14916
 
      fi
14917
 
      ;;
14918
 
 
14919
 
    os2*)
14920
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14921
 
      hardcode_minus_L_F77=yes
14922
 
      allow_undefined_flag_F77=unsupported
14923
 
      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'
14924
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14925
 
      ;;
14926
 
 
14927
 
    osf3*)
14928
 
      if test "$GCC" = yes; then
14929
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14930
 
        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'
14931
 
      else
14932
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14933
 
        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'
14934
 
      fi
14935
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14936
 
      hardcode_libdir_separator_F77=:
14937
 
      ;;
14938
 
 
14939
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14940
 
      if test "$GCC" = yes; then
14941
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14942
 
        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'
14943
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14944
 
      else
14945
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14946
 
        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'
14947
 
        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~
14948
 
        $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'
14949
 
 
14950
 
        # Both c and cxx compiler support -rpath directly
14951
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14952
 
      fi
14953
 
      hardcode_libdir_separator_F77=:
14954
 
      ;;
14955
 
 
14956
 
    solaris*)
14957
 
      no_undefined_flag_F77=' -z text'
14958
 
      if test "$GCC" = yes; then
14959
 
        wlarc='${wl}'
14960
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14961
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14962
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14963
 
      else
14964
 
        wlarc=''
14965
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14967
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14968
 
      fi
14969
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14970
 
      hardcode_shlibpath_var_F77=no
14971
 
      case $host_os in
14972
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14973
 
      *)
14974
 
        # The compiler driver will combine linker options so we
14975
 
        # cannot just pass the convience library names through
14976
 
        # without $wl, iff we do not link with $LD.
14977
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
14978
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14979
 
        case $wlarc in
14980
 
        '')
14981
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14982
 
        *)
14983
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14984
 
        esac ;;
14985
 
      esac
14986
 
      link_all_deplibs_F77=yes
14987
 
      ;;
14988
 
 
14989
 
    sunos4*)
14990
 
      if test "x$host_vendor" = xsequent; then
14991
 
        # Use $CC to link under sequent, because it throws in some extra .o
14992
 
        # files that make .init and .fini sections work.
14993
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14994
 
      else
14995
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14996
 
      fi
14997
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14998
 
      hardcode_direct_F77=yes
14999
 
      hardcode_minus_L_F77=yes
15000
 
      hardcode_shlibpath_var_F77=no
15001
 
      ;;
15002
 
 
15003
 
    sysv4)
15004
 
      case $host_vendor in
15005
 
        sni)
15006
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15007
 
          hardcode_direct_F77=yes # is this really true???
15008
 
        ;;
15009
 
        siemens)
15010
 
          ## LD is ld it makes a PLAMLIB
15011
 
          ## CC just makes a GrossModule.
15012
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15013
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15014
 
          hardcode_direct_F77=no
15015
 
        ;;
15016
 
        motorola)
15017
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15018
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15019
 
        ;;
15020
 
      esac
15021
 
      runpath_var='LD_RUN_PATH'
15022
 
      hardcode_shlibpath_var_F77=no
15023
 
      ;;
15024
 
 
15025
 
    sysv4.3*)
15026
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15027
 
      hardcode_shlibpath_var_F77=no
15028
 
      export_dynamic_flag_spec_F77='-Bexport'
15029
 
      ;;
15030
 
 
15031
 
    sysv4*MP*)
15032
 
      if test -d /usr/nec; then
15033
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034
 
        hardcode_shlibpath_var_F77=no
15035
 
        runpath_var=LD_RUN_PATH
15036
 
        hardcode_runpath_var=yes
15037
 
        ld_shlibs_F77=yes
15038
 
      fi
15039
 
      ;;
15040
 
 
15041
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15042
 
      no_undefined_flag_F77='${wl}-z,text'
15043
 
      archive_cmds_need_lc_F77=no
15044
 
      hardcode_shlibpath_var_F77=no
15045
 
      runpath_var='LD_RUN_PATH'
15046
 
 
15047
 
      if test "$GCC" = yes; then
15048
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15050
 
      else
15051
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15052
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15053
 
      fi
15054
 
      ;;
15055
 
 
15056
 
    sysv5* | sco3.2v5* | sco5v6*)
15057
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15058
 
      # link with -lc, and that would cause any symbols used from libc to
15059
 
      # always be unresolved, which means just about no library would
15060
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15061
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15062
 
      # as -z defs.
15063
 
      no_undefined_flag_F77='${wl}-z,text'
15064
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15065
 
      archive_cmds_need_lc_F77=no
15066
 
      hardcode_shlibpath_var_F77=no
15067
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15068
 
      hardcode_libdir_separator_F77=':'
15069
 
      link_all_deplibs_F77=yes
15070
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15071
 
      runpath_var='LD_RUN_PATH'
15072
 
 
15073
 
      if test "$GCC" = yes; then
15074
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076
 
      else
15077
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15079
 
      fi
15080
 
      ;;
15081
 
 
15082
 
    uts4*)
15083
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15085
 
      hardcode_shlibpath_var_F77=no
15086
 
      ;;
15087
 
 
15088
 
    *)
15089
 
      ld_shlibs_F77=no
15090
 
      ;;
15091
 
    esac
15092
 
  fi
15093
 
 
15094
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15095
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15096
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15097
 
 
15098
 
#
15099
 
# Do we need to explicitly link libc?
15100
 
#
15101
 
case "x$archive_cmds_need_lc_F77" in
15102
 
x|xyes)
15103
 
  # Assume -lc should be added
15104
 
  archive_cmds_need_lc_F77=yes
15105
 
 
15106
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15107
 
    case $archive_cmds_F77 in
15108
 
    *'~'*)
15109
 
      # FIXME: we may have to deal with multi-command sequences.
15110
 
      ;;
15111
 
    '$CC '*)
15112
 
      # Test whether the compiler implicitly links with -lc since on some
15113
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15114
 
      # to ld, don't add -lc before -lgcc.
15115
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15116
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15117
 
      $rm conftest*
15118
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15119
 
 
15120
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121
 
  (eval $ac_compile) 2>&5
15122
 
  ac_status=$?
15123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124
 
  (exit $ac_status); } 2>conftest.err; then
15125
 
        soname=conftest
15126
 
        lib=conftest
15127
 
        libobjs=conftest.$ac_objext
15128
 
        deplibs=
15129
 
        wl=$lt_prog_compiler_wl_F77
15130
 
        pic_flag=$lt_prog_compiler_pic_F77
15131
 
        compiler_flags=-v
15132
 
        linker_flags=-v
15133
 
        verstring=
15134
 
        output_objdir=.
15135
 
        libname=conftest
15136
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15137
 
        allow_undefined_flag_F77=
15138
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15139
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15140
 
  ac_status=$?
15141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142
 
  (exit $ac_status); }
15143
 
        then
15144
 
          archive_cmds_need_lc_F77=no
15145
 
        else
15146
 
          archive_cmds_need_lc_F77=yes
15147
 
        fi
15148
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15149
 
      else
15150
 
        cat conftest.err 1>&5
15151
 
      fi
15152
 
      $rm conftest*
15153
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15154
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15155
 
      ;;
15156
 
    esac
15157
 
  fi
15158
 
  ;;
15159
 
esac
15160
 
 
15161
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15163
 
library_names_spec=
15164
 
libname_spec='lib$name'
15165
 
soname_spec=
15166
 
shrext_cmds=".so"
15167
 
postinstall_cmds=
15168
 
postuninstall_cmds=
15169
 
finish_cmds=
15170
 
finish_eval=
15171
 
shlibpath_var=
15172
 
shlibpath_overrides_runpath=unknown
15173
 
version_type=none
15174
 
dynamic_linker="$host_os ld.so"
15175
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15176
 
if test "$GCC" = yes; then
15177
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15178
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15179
 
    # if the path contains ";" then we assume it to be the separator
15180
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15181
 
    # assumed that no part of a normal pathname contains ";" but that should
15182
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15183
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15184
 
  else
15185
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15186
 
  fi
15187
 
else
15188
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15189
 
fi
15190
 
need_lib_prefix=unknown
15191
 
hardcode_into_libs=no
15192
 
 
15193
 
# when you set need_version to no, make sure it does not cause -set_version
15194
 
# flags to be left without arguments
15195
 
need_version=unknown
15196
 
 
15197
 
case $host_os in
15198
 
aix3*)
15199
 
  version_type=linux
15200
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15201
 
  shlibpath_var=LIBPATH
15202
 
 
15203
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15204
 
  soname_spec='${libname}${release}${shared_ext}$major'
15205
 
  ;;
15206
 
 
15207
 
aix4* | aix5*)
15208
 
  version_type=linux
15209
 
  need_lib_prefix=no
15210
 
  need_version=no
15211
 
  hardcode_into_libs=yes
15212
 
  if test "$host_cpu" = ia64; then
15213
 
    # AIX 5 supports IA64
15214
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15215
 
    shlibpath_var=LD_LIBRARY_PATH
15216
 
  else
15217
 
    # With GCC up to 2.95.x, collect2 would create an import file
15218
 
    # for dependence libraries.  The import file would start with
15219
 
    # the line `#! .'.  This would cause the generated library to
15220
 
    # depend on `.', always an invalid library.  This was fixed in
15221
 
    # development snapshots of GCC prior to 3.0.
15222
 
    case $host_os in
15223
 
      aix4 | aix4.[01] | aix4.[01].*)
15224
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15225
 
           echo ' yes '
15226
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15227
 
        :
15228
 
      else
15229
 
        can_build_shared=no
15230
 
      fi
15231
 
      ;;
15232
 
    esac
15233
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15234
 
    # soname into executable. Probably we can add versioning support to
15235
 
    # collect2, so additional links can be useful in future.
15236
 
    if test "$aix_use_runtimelinking" = yes; then
15237
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15238
 
      # instead of lib<name>.a to let people know that these are not
15239
 
      # typical AIX shared libraries.
15240
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241
 
    else
15242
 
      # We preserve .a as extension for shared libraries through AIX4.2
15243
 
      # and later when we are not doing run time linking.
15244
 
      library_names_spec='${libname}${release}.a $libname.a'
15245
 
      soname_spec='${libname}${release}${shared_ext}$major'
15246
 
    fi
15247
 
    shlibpath_var=LIBPATH
15248
 
  fi
15249
 
  ;;
15250
 
 
15251
 
amigaos*)
15252
 
  library_names_spec='$libname.ixlibrary $libname.a'
15253
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15254
 
  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'
15255
 
  ;;
15256
 
 
15257
 
beos*)
15258
 
  library_names_spec='${libname}${shared_ext}'
15259
 
  dynamic_linker="$host_os ld.so"
15260
 
  shlibpath_var=LIBRARY_PATH
15261
 
  ;;
15262
 
 
15263
 
bsdi[45]*)
15264
 
  version_type=linux
15265
 
  need_version=no
15266
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267
 
  soname_spec='${libname}${release}${shared_ext}$major'
15268
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15269
 
  shlibpath_var=LD_LIBRARY_PATH
15270
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15271
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15272
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15273
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15274
 
  # libtool to hard-code these into programs
15275
 
  ;;
15276
 
 
15277
 
cygwin* | mingw* | pw32*)
15278
 
  version_type=windows
15279
 
  shrext_cmds=".dll"
15280
 
  need_version=no
15281
 
  need_lib_prefix=no
15282
 
 
15283
 
  case $GCC,$host_os in
15284
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15285
 
    library_names_spec='$libname.dll.a'
15286
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15287
 
    postinstall_cmds='base_file=`basename \${file}`~
15288
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15289
 
      dldir=$destdir/`dirname \$dlpath`~
15290
 
      test -d \$dldir || mkdir -p \$dldir~
15291
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15292
 
      chmod a+x \$dldir/$dlname'
15293
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15294
 
      dlpath=$dir/\$dldll~
15295
 
       $rm \$dlpath'
15296
 
    shlibpath_overrides_runpath=yes
15297
 
 
15298
 
    case $host_os in
15299
 
    cygwin*)
15300
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15301
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15302
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15303
 
      ;;
15304
 
    mingw*)
15305
 
      # MinGW DLLs use traditional 'lib' prefix
15306
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15307
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15308
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15309
 
        # It is most probably a Windows format PATH printed by
15310
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15311
 
        # path with ; separators, and with drive letters. We can handle the
15312
 
        # drive letters (cygwin fileutils understands them), so leave them,
15313
 
        # especially as we might pass files found there to a mingw objdump,
15314
 
        # which wouldn't understand a cygwinified path. Ahh.
15315
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15316
 
      else
15317
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15318
 
      fi
15319
 
      ;;
15320
 
    pw32*)
15321
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15322
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15323
 
      ;;
15324
 
    esac
15325
 
    ;;
15326
 
 
15327
 
  *)
15328
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15329
 
    ;;
15330
 
  esac
15331
 
  dynamic_linker='Win32 ld.exe'
15332
 
  # FIXME: first we should search . and the directory the executable is in
15333
 
  shlibpath_var=PATH
15334
 
  ;;
15335
 
 
15336
 
darwin* | rhapsody*)
15337
 
  dynamic_linker="$host_os dyld"
15338
 
  version_type=darwin
15339
 
  need_lib_prefix=no
15340
 
  need_version=no
15341
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15342
 
  soname_spec='${libname}${release}${major}$shared_ext'
15343
 
  shlibpath_overrides_runpath=yes
15344
 
  shlibpath_var=DYLD_LIBRARY_PATH
15345
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15346
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15347
 
  if test "$GCC" = yes; then
15348
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15349
 
  else
15350
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15351
 
  fi
15352
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15353
 
  ;;
15354
 
 
15355
 
dgux*)
15356
 
  version_type=linux
15357
 
  need_lib_prefix=no
15358
 
  need_version=no
15359
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15360
 
  soname_spec='${libname}${release}${shared_ext}$major'
15361
 
  shlibpath_var=LD_LIBRARY_PATH
15362
 
  ;;
15363
 
 
15364
 
freebsd1*)
15365
 
  dynamic_linker=no
15366
 
  ;;
15367
 
 
15368
 
freebsd* | dragonfly*)
15369
 
  # DragonFly does not have aout.  When/if they implement a new
15370
 
  # versioning mechanism, adjust this.
15371
 
  if test -x /usr/bin/objformat; then
15372
 
    objformat=`/usr/bin/objformat`
15373
 
  else
15374
 
    case $host_os in
15375
 
    freebsd[123]*) objformat=aout ;;
15376
 
    *) objformat=elf ;;
15377
 
    esac
15378
 
  fi
15379
 
  version_type=freebsd-$objformat
15380
 
  case $version_type in
15381
 
    freebsd-elf*)
15382
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15383
 
      need_version=no
15384
 
      need_lib_prefix=no
15385
 
      ;;
15386
 
    freebsd-*)
15387
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15388
 
      need_version=yes
15389
 
      ;;
15390
 
  esac
15391
 
  shlibpath_var=LD_LIBRARY_PATH
15392
 
  case $host_os in
15393
 
  freebsd2*)
15394
 
    shlibpath_overrides_runpath=yes
15395
 
    ;;
15396
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15397
 
    shlibpath_overrides_runpath=yes
15398
 
    hardcode_into_libs=yes
15399
 
    ;;
15400
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15401
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15402
 
    shlibpath_overrides_runpath=no
15403
 
    hardcode_into_libs=yes
15404
 
    ;;
15405
 
  freebsd*) # from 4.6 on
15406
 
    shlibpath_overrides_runpath=yes
15407
 
    hardcode_into_libs=yes
15408
 
    ;;
15409
 
  esac
15410
 
  ;;
15411
 
 
15412
 
gnu*)
15413
 
  version_type=linux
15414
 
  need_lib_prefix=no
15415
 
  need_version=no
15416
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15417
 
  soname_spec='${libname}${release}${shared_ext}$major'
15418
 
  shlibpath_var=LD_LIBRARY_PATH
15419
 
  hardcode_into_libs=yes
15420
 
  ;;
15421
 
 
15422
 
hpux9* | hpux10* | hpux11*)
15423
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15424
 
  # link against other versions.
15425
 
  version_type=sunos
15426
 
  need_lib_prefix=no
15427
 
  need_version=no
15428
 
  case $host_cpu in
15429
 
  ia64*)
15430
 
    shrext_cmds='.so'
15431
 
    hardcode_into_libs=yes
15432
 
    dynamic_linker="$host_os dld.so"
15433
 
    shlibpath_var=LD_LIBRARY_PATH
15434
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15435
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436
 
    soname_spec='${libname}${release}${shared_ext}$major'
15437
 
    if test "X$HPUX_IA64_MODE" = X32; then
15438
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15439
 
    else
15440
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15441
 
    fi
15442
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15443
 
    ;;
15444
 
   hppa*64*)
15445
 
     shrext_cmds='.sl'
15446
 
     hardcode_into_libs=yes
15447
 
     dynamic_linker="$host_os dld.sl"
15448
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15449
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15450
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451
 
     soname_spec='${libname}${release}${shared_ext}$major'
15452
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15453
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454
 
     ;;
15455
 
   *)
15456
 
    shrext_cmds='.sl'
15457
 
    dynamic_linker="$host_os dld.sl"
15458
 
    shlibpath_var=SHLIB_PATH
15459
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15460
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461
 
    soname_spec='${libname}${release}${shared_ext}$major'
15462
 
    ;;
15463
 
  esac
15464
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15465
 
  postinstall_cmds='chmod 555 $lib'
15466
 
  ;;
15467
 
 
15468
 
interix3*)
15469
 
  version_type=linux
15470
 
  need_lib_prefix=no
15471
 
  need_version=no
15472
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15473
 
  soname_spec='${libname}${release}${shared_ext}$major'
15474
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15475
 
  shlibpath_var=LD_LIBRARY_PATH
15476
 
  shlibpath_overrides_runpath=no
15477
 
  hardcode_into_libs=yes
15478
 
  ;;
15479
 
 
15480
 
irix5* | irix6* | nonstopux*)
15481
 
  case $host_os in
15482
 
    nonstopux*) version_type=nonstopux ;;
15483
 
    *)
15484
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
15485
 
                version_type=linux
15486
 
        else
15487
 
                version_type=irix
15488
 
        fi ;;
15489
 
  esac
15490
 
  need_lib_prefix=no
15491
 
  need_version=no
15492
 
  soname_spec='${libname}${release}${shared_ext}$major'
15493
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15494
 
  case $host_os in
15495
 
  irix5* | nonstopux*)
15496
 
    libsuff= shlibsuff=
15497
 
    ;;
15498
 
  *)
15499
 
    case $LD in # libtool.m4 will add one of these switches to LD
15500
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15501
 
      libsuff= shlibsuff= libmagic=32-bit;;
15502
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15503
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15504
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15505
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15506
 
    *) libsuff= shlibsuff= libmagic=never-match;;
15507
 
    esac
15508
 
    ;;
15509
 
  esac
15510
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15511
 
  shlibpath_overrides_runpath=no
15512
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15513
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15514
 
  hardcode_into_libs=yes
15515
 
  ;;
15516
 
 
15517
 
# No shared lib support for Linux oldld, aout, or coff.
15518
 
linux*oldld* | linux*aout* | linux*coff*)
15519
 
  dynamic_linker=no
15520
 
  ;;
15521
 
 
15522
 
# This must be Linux ELF.
15523
 
linux* | k*bsd*-gnu)
15524
 
  version_type=linux
15525
 
  need_lib_prefix=no
15526
 
  need_version=no
15527
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528
 
  soname_spec='${libname}${release}${shared_ext}$major'
15529
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15530
 
  shlibpath_var=LD_LIBRARY_PATH
15531
 
  shlibpath_overrides_runpath=no
15532
 
  # This implies no fast_install, which is unacceptable.
15533
 
  # Some rework will be needed to allow for fast_install
15534
 
  # before this can be enabled.
15535
 
  hardcode_into_libs=yes
15536
 
 
15537
 
  # Append ld.so.conf contents to the search path
15538
 
  if test -f /etc/ld.so.conf; then
15539
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15540
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541
 
  fi
15542
 
 
15543
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15544
 
  # powerpc, because MkLinux only supported shared libraries with the
15545
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
15546
 
  # most powerpc-linux boxes support dynamic linking these days and
15547
 
  # people can always --disable-shared, the test was removed, and we
15548
 
  # assume the GNU/Linux dynamic linker is in use.
15549
 
  dynamic_linker='GNU/Linux ld.so'
15550
 
  ;;
15551
 
 
15552
 
netbsdelf*-gnu)
15553
 
  version_type=linux
15554
 
  need_lib_prefix=no
15555
 
  need_version=no
15556
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557
 
  soname_spec='${libname}${release}${shared_ext}$major'
15558
 
  shlibpath_var=LD_LIBRARY_PATH
15559
 
  shlibpath_overrides_runpath=no
15560
 
  hardcode_into_libs=yes
15561
 
  dynamic_linker='NetBSD ld.elf_so'
15562
 
  ;;
15563
 
 
15564
 
netbsd*)
15565
 
  version_type=sunos
15566
 
  need_lib_prefix=no
15567
 
  need_version=no
15568
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15569
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15570
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15571
 
    dynamic_linker='NetBSD (a.out) ld.so'
15572
 
  else
15573
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15574
 
    soname_spec='${libname}${release}${shared_ext}$major'
15575
 
    dynamic_linker='NetBSD ld.elf_so'
15576
 
  fi
15577
 
  shlibpath_var=LD_LIBRARY_PATH
15578
 
  shlibpath_overrides_runpath=yes
15579
 
  hardcode_into_libs=yes
15580
 
  ;;
15581
 
 
15582
 
newsos6)
15583
 
  version_type=linux
15584
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585
 
  shlibpath_var=LD_LIBRARY_PATH
15586
 
  shlibpath_overrides_runpath=yes
15587
 
  ;;
15588
 
 
15589
 
nto-qnx*)
15590
 
  version_type=linux
15591
 
  need_lib_prefix=no
15592
 
  need_version=no
15593
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594
 
  soname_spec='${libname}${release}${shared_ext}$major'
15595
 
  shlibpath_var=LD_LIBRARY_PATH
15596
 
  shlibpath_overrides_runpath=yes
15597
 
  ;;
15598
 
 
15599
 
openbsd*)
15600
 
  version_type=sunos
15601
 
  sys_lib_dlsearch_path_spec="/usr/lib"
15602
 
  need_lib_prefix=no
15603
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15604
 
  case $host_os in
15605
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15606
 
    *)                         need_version=no  ;;
15607
 
  esac
15608
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15609
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15610
 
  shlibpath_var=LD_LIBRARY_PATH
15611
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15612
 
    case $host_os in
15613
 
      openbsd2.[89] | openbsd2.[89].*)
15614
 
        shlibpath_overrides_runpath=no
15615
 
        ;;
15616
 
      *)
15617
 
        shlibpath_overrides_runpath=yes
15618
 
        ;;
15619
 
      esac
15620
 
  else
15621
 
    shlibpath_overrides_runpath=yes
15622
 
  fi
15623
 
  ;;
15624
 
 
15625
 
os2*)
15626
 
  libname_spec='$name'
15627
 
  shrext_cmds=".dll"
15628
 
  need_lib_prefix=no
15629
 
  library_names_spec='$libname${shared_ext} $libname.a'
15630
 
  dynamic_linker='OS/2 ld.exe'
15631
 
  shlibpath_var=LIBPATH
15632
 
  ;;
15633
 
 
15634
 
osf3* | osf4* | osf5*)
15635
 
  version_type=osf
15636
 
  need_lib_prefix=no
15637
 
  need_version=no
15638
 
  soname_spec='${libname}${release}${shared_ext}$major'
15639
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640
 
  shlibpath_var=LD_LIBRARY_PATH
15641
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15642
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15643
 
  ;;
15644
 
 
15645
 
solaris*)
15646
 
  version_type=linux
15647
 
  need_lib_prefix=no
15648
 
  need_version=no
15649
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650
 
  soname_spec='${libname}${release}${shared_ext}$major'
15651
 
  shlibpath_var=LD_LIBRARY_PATH
15652
 
  shlibpath_overrides_runpath=yes
15653
 
  hardcode_into_libs=yes
15654
 
  # ldd complains unless libraries are executable
15655
 
  postinstall_cmds='chmod +x $lib'
15656
 
  ;;
15657
 
 
15658
 
sunos4*)
15659
 
  version_type=sunos
15660
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15661
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15662
 
  shlibpath_var=LD_LIBRARY_PATH
15663
 
  shlibpath_overrides_runpath=yes
15664
 
  if test "$with_gnu_ld" = yes; then
15665
 
    need_lib_prefix=no
15666
 
  fi
15667
 
  need_version=yes
15668
 
  ;;
15669
 
 
15670
 
sysv4 | sysv4.3*)
15671
 
  version_type=linux
15672
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673
 
  soname_spec='${libname}${release}${shared_ext}$major'
15674
 
  shlibpath_var=LD_LIBRARY_PATH
15675
 
  case $host_vendor in
15676
 
    sni)
15677
 
      shlibpath_overrides_runpath=no
15678
 
      need_lib_prefix=no
15679
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15680
 
      runpath_var=LD_RUN_PATH
15681
 
      ;;
15682
 
    siemens)
15683
 
      need_lib_prefix=no
15684
 
      ;;
15685
 
    motorola)
15686
 
      need_lib_prefix=no
15687
 
      need_version=no
15688
 
      shlibpath_overrides_runpath=no
15689
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15690
 
      ;;
15691
 
  esac
15692
 
  ;;
15693
 
 
15694
 
sysv4*MP*)
15695
 
  if test -d /usr/nec ;then
15696
 
    version_type=linux
15697
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15698
 
    soname_spec='$libname${shared_ext}.$major'
15699
 
    shlibpath_var=LD_LIBRARY_PATH
15700
 
  fi
15701
 
  ;;
15702
 
 
15703
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15704
 
  version_type=freebsd-elf
15705
 
  need_lib_prefix=no
15706
 
  need_version=no
15707
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15708
 
  soname_spec='${libname}${release}${shared_ext}$major'
15709
 
  shlibpath_var=LD_LIBRARY_PATH
15710
 
  hardcode_into_libs=yes
15711
 
  if test "$with_gnu_ld" = yes; then
15712
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15713
 
    shlibpath_overrides_runpath=no
15714
 
  else
15715
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15716
 
    shlibpath_overrides_runpath=yes
15717
 
    case $host_os in
15718
 
      sco3.2v5*)
15719
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15720
 
        ;;
15721
 
    esac
15722
 
  fi
15723
 
  sys_lib_dlsearch_path_spec='/usr/lib'
15724
 
  ;;
15725
 
 
15726
 
uts4*)
15727
 
  version_type=linux
15728
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729
 
  soname_spec='${libname}${release}${shared_ext}$major'
15730
 
  shlibpath_var=LD_LIBRARY_PATH
15731
 
  ;;
15732
 
 
15733
 
*)
15734
 
  dynamic_linker=no
15735
 
  ;;
15736
 
esac
15737
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15738
 
echo "${ECHO_T}$dynamic_linker" >&6; }
15739
 
test "$dynamic_linker" = no && can_build_shared=no
15740
 
 
15741
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15742
 
if test "$GCC" = yes; then
15743
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15744
 
fi
15745
 
 
15746
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15747
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15748
 
hardcode_action_F77=
15749
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
15750
 
   test -n "$runpath_var_F77" || \
15751
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15752
 
 
15753
 
  # We can hardcode non-existant directories.
15754
 
  if test "$hardcode_direct_F77" != no &&
15755
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15756
 
     # have to relink, otherwise we might link with an installed library
15757
 
     # when we should be linking with a yet-to-be-installed one
15758
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15759
 
     test "$hardcode_minus_L_F77" != no; then
15760
 
    # Linking always hardcodes the temporary library directory.
15761
 
    hardcode_action_F77=relink
15762
 
  else
15763
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15764
 
    hardcode_action_F77=immediate
15765
 
  fi
15766
 
else
15767
 
  # We cannot hardcode anything, or else we can only hardcode existing
15768
 
  # directories.
15769
 
  hardcode_action_F77=unsupported
15770
 
fi
15771
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15772
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15773
 
 
15774
 
if test "$hardcode_action_F77" = relink; then
15775
 
  # Fast installation is not supported
15776
 
  enable_fast_install=no
15777
 
elif test "$shlibpath_overrides_runpath" = yes ||
15778
 
     test "$enable_shared" = no; then
15779
 
  # Fast installation is not necessary
15780
 
  enable_fast_install=needless
15781
 
fi
15782
 
 
15783
 
 
15784
 
# The else clause should only fire when bootstrapping the
15785
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
15786
 
# with your package, and you will get complaints that there are
15787
 
# no rules to generate ltmain.sh.
15788
 
if test -f "$ltmain"; then
15789
 
  # See if we are running on zsh, and set the options which allow our commands through
15790
 
  # without removal of \ escapes.
15791
 
  if test -n "${ZSH_VERSION+set}" ; then
15792
 
    setopt NO_GLOB_SUBST
15793
 
  fi
15794
 
  # Now quote all the things that may contain metacharacters while being
15795
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15796
 
  # variables and quote the copies for generation of the libtool script.
15797
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15798
 
    SED SHELL STRIP \
15799
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15800
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15801
 
    deplibs_check_method reload_flag reload_cmds need_locks \
15802
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15803
 
    lt_cv_sys_global_symbol_to_c_name_address \
15804
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15805
 
    old_postinstall_cmds old_postuninstall_cmds \
15806
 
    compiler_F77 \
15807
 
    CC_F77 \
15808
 
    LD_F77 \
15809
 
    lt_prog_compiler_wl_F77 \
15810
 
    lt_prog_compiler_pic_F77 \
15811
 
    lt_prog_compiler_static_F77 \
15812
 
    lt_prog_compiler_no_builtin_flag_F77 \
15813
 
    export_dynamic_flag_spec_F77 \
15814
 
    thread_safe_flag_spec_F77 \
15815
 
    whole_archive_flag_spec_F77 \
15816
 
    enable_shared_with_static_runtimes_F77 \
15817
 
    old_archive_cmds_F77 \
15818
 
    old_archive_from_new_cmds_F77 \
15819
 
    predep_objects_F77 \
15820
 
    postdep_objects_F77 \
15821
 
    predeps_F77 \
15822
 
    postdeps_F77 \
15823
 
    compiler_lib_search_path_F77 \
15824
 
    archive_cmds_F77 \
15825
 
    archive_expsym_cmds_F77 \
15826
 
    postinstall_cmds_F77 \
15827
 
    postuninstall_cmds_F77 \
15828
 
    old_archive_from_expsyms_cmds_F77 \
15829
 
    allow_undefined_flag_F77 \
15830
 
    no_undefined_flag_F77 \
15831
 
    export_symbols_cmds_F77 \
15832
 
    hardcode_libdir_flag_spec_F77 \
15833
 
    hardcode_libdir_flag_spec_ld_F77 \
15834
 
    hardcode_libdir_separator_F77 \
15835
 
    hardcode_automatic_F77 \
15836
 
    module_cmds_F77 \
15837
 
    module_expsym_cmds_F77 \
15838
 
    lt_cv_prog_compiler_c_o_F77 \
15839
 
    exclude_expsyms_F77 \
15840
 
    include_expsyms_F77; do
15841
 
 
15842
 
    case $var in
15843
 
    old_archive_cmds_F77 | \
15844
 
    old_archive_from_new_cmds_F77 | \
15845
 
    archive_cmds_F77 | \
15846
 
    archive_expsym_cmds_F77 | \
15847
 
    module_cmds_F77 | \
15848
 
    module_expsym_cmds_F77 | \
15849
 
    old_archive_from_expsyms_cmds_F77 | \
15850
 
    export_symbols_cmds_F77 | \
15851
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15852
 
    postinstall_cmds | postuninstall_cmds | \
15853
 
    old_postinstall_cmds | old_postuninstall_cmds | \
15854
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15855
 
      # Double-quote double-evaled strings.
15856
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15857
 
      ;;
15858
 
    *)
15859
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15860
 
      ;;
15861
 
    esac
15862
 
  done
15863
 
 
15864
 
  case $lt_echo in
15865
 
  *'\$0 --fallback-echo"')
15866
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15867
 
    ;;
15868
 
  esac
15869
 
 
15870
 
cfgfile="$ofile"
15871
 
 
15872
 
  cat <<__EOF__ >> "$cfgfile"
15873
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15874
 
 
15875
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15876
 
 
15877
 
# Shell to use when invoking shell scripts.
15878
 
SHELL=$lt_SHELL
15879
 
 
15880
 
# Whether or not to build shared libraries.
15881
 
build_libtool_libs=$enable_shared
15882
 
 
15883
 
# Whether or not to build static libraries.
15884
 
build_old_libs=$enable_static
15885
 
 
15886
 
# Whether or not to add -lc for building shared libraries.
15887
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
15888
 
 
15889
 
# Whether or not to disallow shared libs when runtime libs are static
15890
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15891
 
 
15892
 
# Whether or not to optimize for fast installation.
15893
 
fast_install=$enable_fast_install
15894
 
 
15895
 
# The host system.
15896
 
host_alias=$host_alias
15897
 
host=$host
15898
 
host_os=$host_os
15899
 
 
15900
 
# The build system.
15901
 
build_alias=$build_alias
15902
 
build=$build
15903
 
build_os=$build_os
15904
 
 
15905
 
# An echo program that does not interpret backslashes.
15906
 
echo=$lt_echo
15907
 
 
15908
 
# The archiver.
15909
 
AR=$lt_AR
15910
 
AR_FLAGS=$lt_AR_FLAGS
15911
 
 
15912
 
# A C compiler.
15913
 
LTCC=$lt_LTCC
15914
 
 
15915
 
# LTCC compiler flags.
15916
 
LTCFLAGS=$lt_LTCFLAGS
15917
 
 
15918
 
# A language-specific compiler.
15919
 
CC=$lt_compiler_F77
15920
 
 
15921
 
# Is the compiler the GNU C compiler?
15922
 
with_gcc=$GCC_F77
15923
 
 
15924
 
# An ERE matcher.
15925
 
EGREP=$lt_EGREP
15926
 
 
15927
 
# The linker used to build libraries.
15928
 
LD=$lt_LD_F77
15929
 
 
15930
 
# Whether we need hard or soft links.
15931
 
LN_S=$lt_LN_S
15932
 
 
15933
 
# A BSD-compatible nm program.
15934
 
NM=$lt_NM
15935
 
 
15936
 
# A symbol stripping program
15937
 
STRIP=$lt_STRIP
15938
 
 
15939
 
# Used to examine libraries when file_magic_cmd begins "file"
15940
 
MAGIC_CMD=$MAGIC_CMD
15941
 
 
15942
 
# Used on cygwin: DLL creation program.
15943
 
DLLTOOL="$DLLTOOL"
15944
 
 
15945
 
# Used on cygwin: object dumper.
15946
 
OBJDUMP="$OBJDUMP"
15947
 
 
15948
 
# Used on cygwin: assembler.
15949
 
AS="$AS"
15950
 
 
15951
 
# The name of the directory that contains temporary libtool files.
15952
 
objdir=$objdir
15953
 
 
15954
 
# How to create reloadable object files.
15955
 
reload_flag=$lt_reload_flag
15956
 
reload_cmds=$lt_reload_cmds
15957
 
 
15958
 
# How to pass a linker flag through the compiler.
15959
 
wl=$lt_lt_prog_compiler_wl_F77
15960
 
 
15961
 
# Object file suffix (normally "o").
15962
 
objext="$ac_objext"
15963
 
 
15964
 
# Old archive suffix (normally "a").
15965
 
libext="$libext"
15966
 
 
15967
 
# Shared library suffix (normally ".so").
15968
 
shrext_cmds='$shrext_cmds'
15969
 
 
15970
 
# Executable file suffix (normally "").
15971
 
exeext="$exeext"
15972
 
 
15973
 
# Additional compiler flags for building library objects.
15974
 
pic_flag=$lt_lt_prog_compiler_pic_F77
15975
 
pic_mode=$pic_mode
15976
 
 
15977
 
# What is the maximum length of a command?
15978
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15979
 
 
15980
 
# Does compiler simultaneously support -c and -o options?
15981
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15982
 
 
15983
 
# Must we lock files when doing compilation?
15984
 
need_locks=$lt_need_locks
15985
 
 
15986
 
# Do we need the lib prefix for modules?
15987
 
need_lib_prefix=$need_lib_prefix
15988
 
 
15989
 
# Do we need a version for libraries?
15990
 
need_version=$need_version
15991
 
 
15992
 
# Whether dlopen is supported.
15993
 
dlopen_support=$enable_dlopen
15994
 
 
15995
 
# Whether dlopen of programs is supported.
15996
 
dlopen_self=$enable_dlopen_self
15997
 
 
15998
 
# Whether dlopen of statically linked programs is supported.
15999
 
dlopen_self_static=$enable_dlopen_self_static
16000
 
 
16001
 
# Compiler flag to prevent dynamic linking.
16002
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16003
 
 
16004
 
# Compiler flag to turn off builtin functions.
16005
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16006
 
 
16007
 
# Compiler flag to allow reflexive dlopens.
16008
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16009
 
 
16010
 
# Compiler flag to generate shared objects directly from archives.
16011
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16012
 
 
16013
 
# Compiler flag to generate thread-safe objects.
16014
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16015
 
 
16016
 
# Library versioning type.
16017
 
version_type=$version_type
16018
 
 
16019
 
# Format of library name prefix.
16020
 
libname_spec=$lt_libname_spec
16021
 
 
16022
 
# List of archive names.  First name is the real one, the rest are links.
16023
 
# The last name is the one that the linker finds with -lNAME.
16024
 
library_names_spec=$lt_library_names_spec
16025
 
 
16026
 
# The coded name of the library, if different from the real name.
16027
 
soname_spec=$lt_soname_spec
16028
 
 
16029
 
# Commands used to build and install an old-style archive.
16030
 
RANLIB=$lt_RANLIB
16031
 
old_archive_cmds=$lt_old_archive_cmds_F77
16032
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16033
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16034
 
 
16035
 
# Create an old-style archive from a shared archive.
16036
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16037
 
 
16038
 
# Create a temporary old-style archive to link instead of a shared archive.
16039
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16040
 
 
16041
 
# Commands used to build and install a shared archive.
16042
 
archive_cmds=$lt_archive_cmds_F77
16043
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16044
 
postinstall_cmds=$lt_postinstall_cmds
16045
 
postuninstall_cmds=$lt_postuninstall_cmds
16046
 
 
16047
 
# Commands used to build a loadable module (assumed same as above if empty)
16048
 
module_cmds=$lt_module_cmds_F77
16049
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16050
 
 
16051
 
# Commands to strip libraries.
16052
 
old_striplib=$lt_old_striplib
16053
 
striplib=$lt_striplib
16054
 
 
16055
 
# Dependencies to place before the objects being linked to create a
16056
 
# shared library.
16057
 
predep_objects=$lt_predep_objects_F77
16058
 
 
16059
 
# Dependencies to place after the objects being linked to create a
16060
 
# shared library.
16061
 
postdep_objects=$lt_postdep_objects_F77
16062
 
 
16063
 
# Dependencies to place before the objects being linked to create a
16064
 
# shared library.
16065
 
predeps=$lt_predeps_F77
16066
 
 
16067
 
# Dependencies to place after the objects being linked to create a
16068
 
# shared library.
16069
 
postdeps=$lt_postdeps_F77
16070
 
 
16071
 
# The library search path used internally by the compiler when linking
16072
 
# a shared library.
16073
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16074
 
 
16075
 
# Method to check whether dependent libraries are shared objects.
16076
 
deplibs_check_method=$lt_deplibs_check_method
16077
 
 
16078
 
# Command to use when deplibs_check_method == file_magic.
16079
 
file_magic_cmd=$lt_file_magic_cmd
16080
 
 
16081
 
# Flag that allows shared libraries with undefined symbols to be built.
16082
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16083
 
 
16084
 
# Flag that forces no undefined symbols.
16085
 
no_undefined_flag=$lt_no_undefined_flag_F77
16086
 
 
16087
 
# Commands used to finish a libtool library installation in a directory.
16088
 
finish_cmds=$lt_finish_cmds
16089
 
 
16090
 
# Same as above, but a single script fragment to be evaled but not shown.
16091
 
finish_eval=$lt_finish_eval
16092
 
 
16093
 
# Take the output of nm and produce a listing of raw symbols and C names.
16094
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16095
 
 
16096
 
# Transform the output of nm in a proper C declaration
16097
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16098
 
 
16099
 
# Transform the output of nm in a C name address pair
16100
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16101
 
 
16102
 
# This is the shared library runtime path variable.
16103
 
runpath_var=$runpath_var
16104
 
 
16105
 
# This is the shared library path variable.
16106
 
shlibpath_var=$shlibpath_var
16107
 
 
16108
 
# Is shlibpath searched before the hard-coded library search path?
16109
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16110
 
 
16111
 
# How to hardcode a shared library path into an executable.
16112
 
hardcode_action=$hardcode_action_F77
16113
 
 
16114
 
# Whether we should hardcode library paths into libraries.
16115
 
hardcode_into_libs=$hardcode_into_libs
16116
 
 
16117
 
# Flag to hardcode \$libdir into a binary during linking.
16118
 
# This must work even if \$libdir does not exist.
16119
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16120
 
 
16121
 
# If ld is used when linking, flag to hardcode \$libdir into
16122
 
# a binary during linking. This must work even if \$libdir does
16123
 
# not exist.
16124
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16125
 
 
16126
 
# Whether we need a single -rpath flag with a separated argument.
16127
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16128
 
 
16129
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16130
 
# resulting binary.
16131
 
hardcode_direct=$hardcode_direct_F77
16132
 
 
16133
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16134
 
# resulting binary.
16135
 
hardcode_minus_L=$hardcode_minus_L_F77
16136
 
 
16137
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16138
 
# the resulting binary.
16139
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16140
 
 
16141
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16142
 
# and all subsequent libraries and executables linked against it.
16143
 
hardcode_automatic=$hardcode_automatic_F77
16144
 
 
16145
 
# Variables whose values should be saved in libtool wrapper scripts and
16146
 
# restored at relink time.
16147
 
variables_saved_for_relink="$variables_saved_for_relink"
16148
 
 
16149
 
# Whether libtool must link a program against all its dependency libraries.
16150
 
link_all_deplibs=$link_all_deplibs_F77
16151
 
 
16152
 
# Compile-time system search path for libraries
16153
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16154
 
 
16155
 
# Run-time system search path for libraries
16156
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16157
 
 
16158
 
# Fix the shell variable \$srcfile for the compiler.
16159
 
fix_srcfile_path="$fix_srcfile_path_F77"
16160
 
 
16161
 
# Set to yes if exported symbols are required.
16162
 
always_export_symbols=$always_export_symbols_F77
16163
 
 
16164
 
# The commands to list exported symbols.
16165
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16166
 
 
16167
 
# The commands to extract the exported symbol list from a shared archive.
16168
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16169
 
 
16170
 
# Symbols that should not be listed in the preloaded symbols.
16171
 
exclude_expsyms=$lt_exclude_expsyms_F77
16172
 
 
16173
 
# Symbols that must always be exported.
16174
 
include_expsyms=$lt_include_expsyms_F77
16175
 
 
16176
 
# ### END LIBTOOL TAG CONFIG: $tagname
16177
 
 
16178
 
__EOF__
16179
 
 
16180
 
 
16181
 
else
16182
 
  # If there is no Makefile yet, we rely on a make rule to execute
16183
 
  # `config.status --recheck' to rerun these tests and create the
16184
 
  # libtool script then.
16185
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16186
 
  if test -f "$ltmain_in"; then
16187
 
    test -f Makefile && make "$ltmain"
16188
 
  fi
16189
 
fi
16190
 
 
16191
 
 
16192
 
ac_ext=c
16193
 
ac_cpp='$CPP $CPPFLAGS'
16194
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16197
 
 
16198
 
CC="$lt_save_CC"
16199
 
 
16200
 
        else
16201
 
          tagname=""
16202
 
        fi
16203
 
        ;;
16204
 
 
16205
 
      GCJ)
16206
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16207
 
 
16208
 
 
16209
 
# Source file extension for Java test sources.
16210
 
ac_ext=java
16211
 
 
16212
 
# Object file extension for compiled Java test sources.
16213
 
objext=o
16214
 
objext_GCJ=$objext
16215
 
 
16216
 
# Code to be used in simple compile tests
16217
 
lt_simple_compile_test_code="class foo {}\n"
16218
 
 
16219
 
# Code to be used in simple link tests
16220
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16221
 
 
16222
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16223
 
 
16224
 
# If no C compiler was specified, use CC.
16225
 
LTCC=${LTCC-"$CC"}
16226
 
 
16227
 
# If no C compiler flags were specified, use CFLAGS.
16228
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16229
 
 
16230
 
# Allow CC to be a program name with arguments.
16231
 
compiler=$CC
16232
 
 
16233
 
 
16234
 
# save warnings/boilerplate of simple test code
16235
 
ac_outfile=conftest.$ac_objext
16236
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16237
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16238
 
_lt_compiler_boilerplate=`cat conftest.err`
16239
 
$rm conftest*
16240
 
 
16241
 
ac_outfile=conftest.$ac_objext
16242
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16243
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16244
 
_lt_linker_boilerplate=`cat conftest.err`
16245
 
$rm conftest*
16246
 
 
16247
 
 
16248
 
# Allow CC to be a program name with arguments.
16249
 
lt_save_CC="$CC"
16250
 
CC=${GCJ-"gcj"}
16251
 
compiler=$CC
16252
 
compiler_GCJ=$CC
16253
 
for cc_temp in $compiler""; do
16254
 
  case $cc_temp in
16255
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16256
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16257
 
    \-*) ;;
16258
 
    *) break;;
16259
 
  esac
16260
 
done
16261
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16262
 
 
16263
 
 
16264
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16265
 
archive_cmds_need_lc_GCJ=no
16266
 
 
16267
 
old_archive_cmds_GCJ=$old_archive_cmds
16268
 
 
16269
 
 
16270
 
lt_prog_compiler_no_builtin_flag_GCJ=
16271
 
 
16272
 
if test "$GCC" = yes; then
16273
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16274
 
 
16275
 
 
16276
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16277
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16278
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16279
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16280
 
else
16281
 
  lt_cv_prog_compiler_rtti_exceptions=no
16282
 
  ac_outfile=conftest.$ac_objext
16283
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16284
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16285
 
   # Insert the option either (1) after the last *FLAGS variable, or
16286
 
   # (2) before a word containing "conftest.", or (3) at the end.
16287
 
   # Note that $ac_compile itself does not contain backslashes and begins
16288
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16289
 
   # The option is referenced via a variable to avoid confusing sed.
16290
 
   lt_compile=`echo "$ac_compile" | $SED \
16291
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16292
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293
 
   -e 's:$: $lt_compiler_flag:'`
16294
 
   (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295
 
   (eval "$lt_compile" 2>conftest.err)
16296
 
   ac_status=$?
16297
 
   cat conftest.err >&5
16298
 
   echo "$as_me:16298: \$? = $ac_status" >&5
16299
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16300
 
     # The compiler can only warn and ignore the option if not recognized
16301
 
     # So say no if there are warnings other than the usual output.
16302
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16303
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16304
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16305
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16306
 
     fi
16307
 
   fi
16308
 
   $rm conftest*
16309
 
 
16310
 
fi
16311
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16312
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16313
 
 
16314
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16315
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16316
 
else
16317
 
    :
16318
 
fi
16319
 
 
16320
 
fi
16321
 
 
16322
 
lt_prog_compiler_wl_GCJ=
16323
 
lt_prog_compiler_pic_GCJ=
16324
 
lt_prog_compiler_static_GCJ=
16325
 
 
16326
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16327
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16328
 
 
16329
 
  if test "$GCC" = yes; then
16330
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16331
 
    lt_prog_compiler_static_GCJ='-static'
16332
 
 
16333
 
    case $host_os in
16334
 
      aix*)
16335
 
      # All AIX code is PIC.
16336
 
      if test "$host_cpu" = ia64; then
16337
 
        # AIX 5 now supports IA64 processor
16338
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16339
 
      fi
16340
 
      ;;
16341
 
 
16342
 
    amigaos*)
16343
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16344
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16345
 
      # like `-m68040'.
16346
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16347
 
      ;;
16348
 
 
16349
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16350
 
      # PIC is the default for these OSes.
16351
 
      ;;
16352
 
 
16353
 
    mingw* | pw32* | os2*)
16354
 
      # This hack is so that the source file can tell whether it is being
16355
 
      # built for inclusion in a dll (and should export symbols for example).
16356
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16357
 
      ;;
16358
 
 
16359
 
    darwin* | rhapsody*)
16360
 
      # PIC is the default on this platform
16361
 
      # Common symbols not allowed in MH_DYLIB files
16362
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16363
 
      ;;
16364
 
 
16365
 
    interix3*)
16366
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16367
 
      # Instead, we relocate shared libraries at runtime.
16368
 
      ;;
16369
 
 
16370
 
    msdosdjgpp*)
16371
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16372
 
      # on systems that don't support them.
16373
 
      lt_prog_compiler_can_build_shared_GCJ=no
16374
 
      enable_shared=no
16375
 
      ;;
16376
 
 
16377
 
    sysv4*MP*)
16378
 
      if test -d /usr/nec; then
16379
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16380
 
      fi
16381
 
      ;;
16382
 
 
16383
 
    hpux*)
16384
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16385
 
      # not for PA HP-UX.
16386
 
      case $host_cpu in
16387
 
      hppa*64*|ia64*)
16388
 
        # +Z the default
16389
 
        ;;
16390
 
      *)
16391
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16392
 
        ;;
16393
 
      esac
16394
 
      ;;
16395
 
 
16396
 
    *)
16397
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16398
 
      ;;
16399
 
    esac
16400
 
  else
16401
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16402
 
    case $host_os in
16403
 
    aix*)
16404
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16405
 
      if test "$host_cpu" = ia64; then
16406
 
        # AIX 5 now supports IA64 processor
16407
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16408
 
      else
16409
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16410
 
      fi
16411
 
      ;;
16412
 
      darwin*)
16413
 
        # PIC is the default on this platform
16414
 
        # Common symbols not allowed in MH_DYLIB files
16415
 
       case $cc_basename in
16416
 
         xlc*)
16417
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16418
 
         lt_prog_compiler_wl_GCJ='-Wl,'
16419
 
         ;;
16420
 
       esac
16421
 
       ;;
16422
 
 
16423
 
    mingw* | pw32* | os2*)
16424
 
      # This hack is so that the source file can tell whether it is being
16425
 
      # built for inclusion in a dll (and should export symbols for example).
16426
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16427
 
      ;;
16428
 
 
16429
 
    hpux9* | hpux10* | hpux11*)
16430
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16431
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16432
 
      # not for PA HP-UX.
16433
 
      case $host_cpu in
16434
 
      hppa*64*|ia64*)
16435
 
        # +Z the default
16436
 
        ;;
16437
 
      *)
16438
 
        lt_prog_compiler_pic_GCJ='+Z'
16439
 
        ;;
16440
 
      esac
16441
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16442
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16443
 
      ;;
16444
 
 
16445
 
    irix5* | irix6* | nonstopux*)
16446
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16447
 
      # PIC (with -KPIC) is the default.
16448
 
      lt_prog_compiler_static_GCJ='-non_shared'
16449
 
      ;;
16450
 
 
16451
 
    newsos6)
16452
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16453
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16454
 
      ;;
16455
 
 
16456
 
    linux* | k*bsd*-gnu)
16457
 
      case $cc_basename in
16458
 
      icc* | ecc*)
16459
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16460
 
        lt_prog_compiler_pic_GCJ='-KPIC'
16461
 
        lt_prog_compiler_static_GCJ='-static'
16462
 
        ;;
16463
 
      pgcc* | pgf77* | pgf90* | pgf95*)
16464
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
16465
 
        # which looks to be a dead project)
16466
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16467
 
        lt_prog_compiler_pic_GCJ='-fpic'
16468
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16469
 
        ;;
16470
 
      ccc*)
16471
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16472
 
        # All Alpha code is PIC.
16473
 
        lt_prog_compiler_static_GCJ='-non_shared'
16474
 
        ;;
16475
 
      esac
16476
 
      ;;
16477
 
 
16478
 
    osf3* | osf4* | osf5*)
16479
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16480
 
      # All OSF/1 code is PIC.
16481
 
      lt_prog_compiler_static_GCJ='-non_shared'
16482
 
      ;;
16483
 
 
16484
 
    solaris*)
16485
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16486
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16487
 
      case $cc_basename in
16488
 
      f77* | f90* | f95*)
16489
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16490
 
      *)
16491
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
16492
 
      esac
16493
 
      ;;
16494
 
 
16495
 
    sunos4*)
16496
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
16497
 
      lt_prog_compiler_pic_GCJ='-PIC'
16498
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16499
 
      ;;
16500
 
 
16501
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
16502
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16503
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16504
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16505
 
      ;;
16506
 
 
16507
 
    sysv4*MP*)
16508
 
      if test -d /usr/nec ;then
16509
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
16510
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16511
 
      fi
16512
 
      ;;
16513
 
 
16514
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16515
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16516
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16517
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16518
 
      ;;
16519
 
 
16520
 
    unicos*)
16521
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16522
 
      lt_prog_compiler_can_build_shared_GCJ=no
16523
 
      ;;
16524
 
 
16525
 
    uts4*)
16526
 
      lt_prog_compiler_pic_GCJ='-pic'
16527
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16528
 
      ;;
16529
 
 
16530
 
    *)
16531
 
      lt_prog_compiler_can_build_shared_GCJ=no
16532
 
      ;;
16533
 
    esac
16534
 
  fi
16535
 
 
16536
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16537
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16538
 
 
16539
 
#
16540
 
# Check to make sure the PIC flag actually works.
16541
 
#
16542
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
16543
 
 
16544
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16545
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16546
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16547
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16548
 
else
16549
 
  lt_prog_compiler_pic_works_GCJ=no
16550
 
  ac_outfile=conftest.$ac_objext
16551
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16553
 
   # Insert the option either (1) after the last *FLAGS variable, or
16554
 
   # (2) before a word containing "conftest.", or (3) at the end.
16555
 
   # Note that $ac_compile itself does not contain backslashes and begins
16556
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16557
 
   # The option is referenced via a variable to avoid confusing sed.
16558
 
   lt_compile=`echo "$ac_compile" | $SED \
16559
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16560
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16561
 
   -e 's:$: $lt_compiler_flag:'`
16562
 
   (eval echo "\"\$as_me:16562: $lt_compile\"" >&5)
16563
 
   (eval "$lt_compile" 2>conftest.err)
16564
 
   ac_status=$?
16565
 
   cat conftest.err >&5
16566
 
   echo "$as_me:16566: \$? = $ac_status" >&5
16567
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16568
 
     # The compiler can only warn and ignore the option if not recognized
16569
 
     # So say no if there are warnings other than the usual output.
16570
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16571
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16572
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16573
 
       lt_prog_compiler_pic_works_GCJ=yes
16574
 
     fi
16575
 
   fi
16576
 
   $rm conftest*
16577
 
 
16578
 
fi
16579
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16580
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16581
 
 
16582
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16583
 
    case $lt_prog_compiler_pic_GCJ in
16584
 
     "" | " "*) ;;
16585
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16586
 
     esac
16587
 
else
16588
 
    lt_prog_compiler_pic_GCJ=
16589
 
     lt_prog_compiler_can_build_shared_GCJ=no
16590
 
fi
16591
 
 
16592
 
fi
16593
 
case $host_os in
16594
 
  # For platforms which do not support PIC, -DPIC is meaningless:
16595
 
  *djgpp*)
16596
 
    lt_prog_compiler_pic_GCJ=
16597
 
    ;;
16598
 
  *)
16599
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16600
 
    ;;
16601
 
esac
16602
 
 
16603
 
#
16604
 
# Check to make sure the static flag actually works.
16605
 
#
16606
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16607
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16608
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16609
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16610
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16611
 
else
16612
 
  lt_prog_compiler_static_works_GCJ=no
16613
 
   save_LDFLAGS="$LDFLAGS"
16614
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16615
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16616
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16617
 
     # The linker can only warn and ignore the option if not recognized
16618
 
     # So say no if there are warnings
16619
 
     if test -s conftest.err; then
16620
 
       # Append any errors to the config.log.
16621
 
       cat conftest.err 1>&5
16622
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16623
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16624
 
       if diff conftest.exp conftest.er2 >/dev/null; then
16625
 
         lt_prog_compiler_static_works_GCJ=yes
16626
 
       fi
16627
 
     else
16628
 
       lt_prog_compiler_static_works_GCJ=yes
16629
 
     fi
16630
 
   fi
16631
 
   $rm conftest*
16632
 
   LDFLAGS="$save_LDFLAGS"
16633
 
 
16634
 
fi
16635
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16636
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16637
 
 
16638
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16639
 
    :
16640
 
else
16641
 
    lt_prog_compiler_static_GCJ=
16642
 
fi
16643
 
 
16644
 
 
16645
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16646
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16647
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16648
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16649
 
else
16650
 
  lt_cv_prog_compiler_c_o_GCJ=no
16651
 
   $rm -r conftest 2>/dev/null
16652
 
   mkdir conftest
16653
 
   cd conftest
16654
 
   mkdir out
16655
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16656
 
 
16657
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16658
 
   # Insert the option either (1) after the last *FLAGS variable, or
16659
 
   # (2) before a word containing "conftest.", or (3) at the end.
16660
 
   # Note that $ac_compile itself does not contain backslashes and begins
16661
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16662
 
   lt_compile=`echo "$ac_compile" | $SED \
16663
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16664
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16665
 
   -e 's:$: $lt_compiler_flag:'`
16666
 
   (eval echo "\"\$as_me:16666: $lt_compile\"" >&5)
16667
 
   (eval "$lt_compile" 2>out/conftest.err)
16668
 
   ac_status=$?
16669
 
   cat out/conftest.err >&5
16670
 
   echo "$as_me:16670: \$? = $ac_status" >&5
16671
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16672
 
   then
16673
 
     # The compiler can only warn and ignore the option if not recognized
16674
 
     # So say no if there are warnings
16675
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16676
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16677
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16678
 
       lt_cv_prog_compiler_c_o_GCJ=yes
16679
 
     fi
16680
 
   fi
16681
 
   chmod u+w . 2>&5
16682
 
   $rm conftest*
16683
 
   # SGI C++ compiler will create directory out/ii_files/ for
16684
 
   # template instantiation
16685
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16686
 
   $rm out/* && rmdir out
16687
 
   cd ..
16688
 
   rmdir conftest
16689
 
   $rm conftest*
16690
 
 
16691
 
fi
16692
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16693
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16694
 
 
16695
 
 
16696
 
hard_links="nottested"
16697
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16698
 
  # do not overwrite the value of need_locks provided by the user
16699
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16700
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16701
 
  hard_links=yes
16702
 
  $rm conftest*
16703
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16704
 
  touch conftest.a
16705
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
16706
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16707
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16708
 
echo "${ECHO_T}$hard_links" >&6; }
16709
 
  if test "$hard_links" = no; then
16710
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16711
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16712
 
    need_locks=warn
16713
 
  fi
16714
 
else
16715
 
  need_locks=no
16716
 
fi
16717
 
 
16718
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16719
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16720
 
 
16721
 
  runpath_var=
16722
 
  allow_undefined_flag_GCJ=
16723
 
  enable_shared_with_static_runtimes_GCJ=no
16724
 
  archive_cmds_GCJ=
16725
 
  archive_expsym_cmds_GCJ=
16726
 
  old_archive_From_new_cmds_GCJ=
16727
 
  old_archive_from_expsyms_cmds_GCJ=
16728
 
  export_dynamic_flag_spec_GCJ=
16729
 
  whole_archive_flag_spec_GCJ=
16730
 
  thread_safe_flag_spec_GCJ=
16731
 
  hardcode_libdir_flag_spec_GCJ=
16732
 
  hardcode_libdir_flag_spec_ld_GCJ=
16733
 
  hardcode_libdir_separator_GCJ=
16734
 
  hardcode_direct_GCJ=no
16735
 
  hardcode_minus_L_GCJ=no
16736
 
  hardcode_shlibpath_var_GCJ=unsupported
16737
 
  link_all_deplibs_GCJ=unknown
16738
 
  hardcode_automatic_GCJ=no
16739
 
  module_cmds_GCJ=
16740
 
  module_expsym_cmds_GCJ=
16741
 
  always_export_symbols_GCJ=no
16742
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16743
 
  # include_expsyms should be a list of space-separated symbols to be *always*
16744
 
  # included in the symbol list
16745
 
  include_expsyms_GCJ=
16746
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
16747
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16748
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16749
 
  # as well as any symbol that contains `d'.
16750
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16751
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16752
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
16753
 
  # the symbol is explicitly referenced.  Since portable code cannot
16754
 
  # rely on this symbol name, it's probably fine to never include it in
16755
 
  # preloaded symbol tables.
16756
 
  extract_expsyms_cmds=
16757
 
  # Just being paranoid about ensuring that cc_basename is set.
16758
 
  for cc_temp in $compiler""; do
16759
 
  case $cc_temp in
16760
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16761
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16762
 
    \-*) ;;
16763
 
    *) break;;
16764
 
  esac
16765
 
done
16766
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16767
 
 
16768
 
  case $host_os in
16769
 
  cygwin* | mingw* | pw32*)
16770
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16771
 
    # When not using gcc, we currently assume that we are using
16772
 
    # Microsoft Visual C++.
16773
 
    if test "$GCC" != yes; then
16774
 
      with_gnu_ld=no
16775
 
    fi
16776
 
    ;;
16777
 
  interix*)
16778
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16779
 
    with_gnu_ld=yes
16780
 
    ;;
16781
 
  openbsd*)
16782
 
    with_gnu_ld=no
16783
 
    ;;
16784
 
  esac
16785
 
 
16786
 
  ld_shlibs_GCJ=yes
16787
 
  if test "$with_gnu_ld" = yes; then
16788
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
16789
 
    wlarc='${wl}'
16790
 
 
16791
 
    # Set some defaults for GNU ld with shared library support. These
16792
 
    # are reset later if shared libraries are not supported. Putting them
16793
 
    # here allows them to be overridden if necessary.
16794
 
    runpath_var=LD_RUN_PATH
16795
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16796
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16797
 
    # ancient GNU ld didn't support --whole-archive et. al.
16798
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16799
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16800
 
      else
16801
 
        whole_archive_flag_spec_GCJ=
16802
 
    fi
16803
 
    supports_anon_versioning=no
16804
 
    case `$LD -v 2>/dev/null` in
16805
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16806
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16807
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16808
 
      *\ 2.11.*) ;; # other 2.11 versions
16809
 
      *) supports_anon_versioning=yes ;;
16810
 
    esac
16811
 
 
16812
 
    # See if GNU ld supports shared libraries.
16813
 
    case $host_os in
16814
 
    aix3* | aix4* | aix5*)
16815
 
      # On AIX/PPC, the GNU linker is very broken
16816
 
      if test "$host_cpu" != ia64; then
16817
 
        ld_shlibs_GCJ=no
16818
 
        cat <<EOF 1>&2
16819
 
 
16820
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16821
 
*** to be unable to reliably create shared libraries on AIX.
16822
 
*** Therefore, libtool is disabling shared libraries support.  If you
16823
 
*** really care for shared libraries, you may want to modify your PATH
16824
 
*** so that a non-GNU linker is found, and then restart.
16825
 
 
16826
 
EOF
16827
 
      fi
16828
 
      ;;
16829
 
 
16830
 
    amigaos*)
16831
 
      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)'
16832
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16833
 
      hardcode_minus_L_GCJ=yes
16834
 
 
16835
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16836
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
16837
 
      # to version 4, is to share data among multiple programs linked
16838
 
      # with the same dynamic library.  Since this doesn't match the
16839
 
      # behavior of shared libraries on other platforms, we can't use
16840
 
      # them.
16841
 
      ld_shlibs_GCJ=no
16842
 
      ;;
16843
 
 
16844
 
    beos*)
16845
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16846
 
        allow_undefined_flag_GCJ=unsupported
16847
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16848
 
        # support --undefined.  This deserves some investigation.  FIXME
16849
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16850
 
      else
16851
 
        ld_shlibs_GCJ=no
16852
 
      fi
16853
 
      ;;
16854
 
 
16855
 
    cygwin* | mingw* | pw32*)
16856
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16857
 
      # as there is no search path for DLLs.
16858
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16859
 
      allow_undefined_flag_GCJ=unsupported
16860
 
      always_export_symbols_GCJ=no
16861
 
      enable_shared_with_static_runtimes_GCJ=yes
16862
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16863
 
 
16864
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16865
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16866
 
        # If the export-symbols file already is a .def file (1st line
16867
 
        # is EXPORTS), use it as is; otherwise, prepend...
16868
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16869
 
          cp $export_symbols $output_objdir/$soname.def;
16870
 
        else
16871
 
          echo EXPORTS > $output_objdir/$soname.def;
16872
 
          cat $export_symbols >> $output_objdir/$soname.def;
16873
 
        fi~
16874
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16875
 
      else
16876
 
        ld_shlibs_GCJ=no
16877
 
      fi
16878
 
      ;;
16879
 
 
16880
 
    interix3*)
16881
 
      hardcode_direct_GCJ=no
16882
 
      hardcode_shlibpath_var_GCJ=no
16883
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16884
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16885
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16886
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16887
 
      # default) and relocated if they conflict, which is a slow very memory
16888
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
16889
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16890
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16891
 
      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'
16892
 
      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'
16893
 
      ;;
16894
 
 
16895
 
    linux* | k*bsd*-gnu)
16896
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16897
 
        tmp_addflag=
16898
 
        case $cc_basename,$host_cpu in
16899
 
        pgcc*)                          # Portland Group C compiler
16900
 
          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'
16901
 
          tmp_addflag=' $pic_flag'
16902
 
          ;;
16903
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16904
 
          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'
16905
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
16906
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16907
 
          tmp_addflag=' -i_dynamic' ;;
16908
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16909
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16910
 
        ifc* | ifort*)                  # Intel Fortran compiler
16911
 
          tmp_addflag=' -nofor_main' ;;
16912
 
        esac
16913
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16914
 
 
16915
 
        if test $supports_anon_versioning = yes; then
16916
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16917
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16918
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16919
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16920
 
        fi
16921
 
        link_all_deplibs_GCJ=no
16922
 
      else
16923
 
        ld_shlibs_GCJ=no
16924
 
      fi
16925
 
      ;;
16926
 
 
16927
 
    netbsd* | netbsdelf*-gnu)
16928
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16929
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16930
 
        wlarc=
16931
 
      else
16932
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16933
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16934
 
      fi
16935
 
      ;;
16936
 
 
16937
 
    solaris*)
16938
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16939
 
        ld_shlibs_GCJ=no
16940
 
        cat <<EOF 1>&2
16941
 
 
16942
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16943
 
*** create shared libraries on Solaris systems.  Therefore, libtool
16944
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16945
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
16946
 
*** your PATH or compiler configuration so that the native linker is
16947
 
*** used, and then restart.
16948
 
 
16949
 
EOF
16950
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16951
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16952
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16953
 
      else
16954
 
        ld_shlibs_GCJ=no
16955
 
      fi
16956
 
      ;;
16957
 
 
16958
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16959
 
      case `$LD -v 2>&1` in
16960
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16961
 
        ld_shlibs_GCJ=no
16962
 
        cat <<_LT_EOF 1>&2
16963
 
 
16964
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16965
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16966
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16967
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16968
 
*** your PATH or compiler configuration so that the native linker is
16969
 
*** used, and then restart.
16970
 
 
16971
 
_LT_EOF
16972
 
        ;;
16973
 
        *)
16974
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16975
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16976
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16977
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16978
 
          else
16979
 
            ld_shlibs_GCJ=no
16980
 
          fi
16981
 
        ;;
16982
 
      esac
16983
 
      ;;
16984
 
 
16985
 
    sunos4*)
16986
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16987
 
      wlarc=
16988
 
      hardcode_direct_GCJ=yes
16989
 
      hardcode_shlibpath_var_GCJ=no
16990
 
      ;;
16991
 
 
16992
 
    *)
16993
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16994
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16996
 
      else
16997
 
        ld_shlibs_GCJ=no
16998
 
      fi
16999
 
      ;;
17000
 
    esac
17001
 
 
17002
 
    if test "$ld_shlibs_GCJ" = no; then
17003
 
      runpath_var=
17004
 
      hardcode_libdir_flag_spec_GCJ=
17005
 
      export_dynamic_flag_spec_GCJ=
17006
 
      whole_archive_flag_spec_GCJ=
17007
 
    fi
17008
 
  else
17009
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17010
 
    case $host_os in
17011
 
    aix3*)
17012
 
      allow_undefined_flag_GCJ=unsupported
17013
 
      always_export_symbols_GCJ=yes
17014
 
      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'
17015
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17016
 
      # are no directories specified by -L.
17017
 
      hardcode_minus_L_GCJ=yes
17018
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17019
 
        # Neither direct hardcoding nor static linking is supported with a
17020
 
        # broken collect2.
17021
 
        hardcode_direct_GCJ=unsupported
17022
 
      fi
17023
 
      ;;
17024
 
 
17025
 
    aix4* | aix5*)
17026
 
      if test "$host_cpu" = ia64; then
17027
 
        # On IA64, the linker does run time linking by default, so we don't
17028
 
        # have to do anything special.
17029
 
        aix_use_runtimelinking=no
17030
 
        exp_sym_flag='-Bexport'
17031
 
        no_entry_flag=""
17032
 
      else
17033
 
        # If we're using GNU nm, then we don't want the "-C" option.
17034
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17035
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17036
 
          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'
17037
 
        else
17038
 
          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'
17039
 
        fi
17040
 
        aix_use_runtimelinking=no
17041
 
 
17042
 
        # Test if we are trying to use run time linking or normal
17043
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17044
 
        # need to do runtime linking.
17045
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17046
 
          for ld_flag in $LDFLAGS; do
17047
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17048
 
            aix_use_runtimelinking=yes
17049
 
            break
17050
 
          fi
17051
 
          done
17052
 
          ;;
17053
 
        esac
17054
 
 
17055
 
        exp_sym_flag='-bexport'
17056
 
        no_entry_flag='-bnoentry'
17057
 
      fi
17058
 
 
17059
 
      # When large executables or shared objects are built, AIX ld can
17060
 
      # have problems creating the table of contents.  If linking a library
17061
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17062
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17063
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17064
 
 
17065
 
      archive_cmds_GCJ=''
17066
 
      hardcode_direct_GCJ=yes
17067
 
      hardcode_libdir_separator_GCJ=':'
17068
 
      link_all_deplibs_GCJ=yes
17069
 
 
17070
 
      if test "$GCC" = yes; then
17071
 
        case $host_os in aix4.[012]|aix4.[012].*)
17072
 
        # We only want to do this on AIX 4.2 and lower, the check
17073
 
        # below for broken collect2 doesn't work under 4.3+
17074
 
          collect2name=`${CC} -print-prog-name=collect2`
17075
 
          if test -f "$collect2name" && \
17076
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17077
 
          then
17078
 
          # We have reworked collect2
17079
 
          hardcode_direct_GCJ=yes
17080
 
          else
17081
 
          # We have old collect2
17082
 
          hardcode_direct_GCJ=unsupported
17083
 
          # It fails to find uninstalled libraries when the uninstalled
17084
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17085
 
          # to unsupported forces relinking
17086
 
          hardcode_minus_L_GCJ=yes
17087
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17088
 
          hardcode_libdir_separator_GCJ=
17089
 
          fi
17090
 
          ;;
17091
 
        esac
17092
 
        shared_flag='-shared'
17093
 
        if test "$aix_use_runtimelinking" = yes; then
17094
 
          shared_flag="$shared_flag "'${wl}-G'
17095
 
        fi
17096
 
      else
17097
 
        # not using gcc
17098
 
        if test "$host_cpu" = ia64; then
17099
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17100
 
        # chokes on -Wl,-G. The following line is correct:
17101
 
          shared_flag='-G'
17102
 
        else
17103
 
          if test "$aix_use_runtimelinking" = yes; then
17104
 
            shared_flag='${wl}-G'
17105
 
          else
17106
 
            shared_flag='${wl}-bM:SRE'
17107
 
          fi
17108
 
        fi
17109
 
      fi
17110
 
 
17111
 
      # It seems that -bexpall does not export symbols beginning with
17112
 
      # underscore (_), so it is better to generate a list of symbols to export.
17113
 
      always_export_symbols_GCJ=yes
17114
 
      if test "$aix_use_runtimelinking" = yes; then
17115
 
        # Warning - without using the other runtime loading flags (-brtl),
17116
 
        # -berok will link without error, but may produce a broken library.
17117
 
        allow_undefined_flag_GCJ='-berok'
17118
 
       # Determine the default libpath from the value encoded in an empty executable.
17119
 
       cat >conftest.$ac_ext <<_ACEOF
17120
 
/* confdefs.h.  */
17121
 
_ACEOF
17122
 
cat confdefs.h >>conftest.$ac_ext
17123
 
cat >>conftest.$ac_ext <<_ACEOF
17124
 
/* end confdefs.h.  */
17125
 
 
17126
 
int
17127
 
main ()
17128
 
{
17129
 
 
17130
 
  ;
17131
 
  return 0;
17132
 
}
17133
 
_ACEOF
17134
 
rm -f conftest.$ac_objext conftest$ac_exeext
17135
 
if { (ac_try="$ac_link"
17136
 
case "(($ac_try" in
17137
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138
 
  *) ac_try_echo=$ac_try;;
17139
 
esac
17140
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141
 
  (eval "$ac_link") 2>conftest.er1
17142
 
  ac_status=$?
17143
 
  grep -v '^ *+' conftest.er1 >conftest.err
17144
 
  rm -f conftest.er1
17145
 
  cat conftest.err >&5
17146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147
 
  (exit $ac_status); } && {
17148
 
         test -z "$ac_c_werror_flag" ||
17149
 
         test ! -s conftest.err
17150
 
       } && test -s conftest$ac_exeext &&
17151
 
       $as_test_x conftest$ac_exeext; then
17152
 
 
17153
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17154
 
}'`
17155
 
# Check for a 64-bit object if we didn't find anything.
17156
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17157
 
}'`; fi
17158
 
else
17159
 
  echo "$as_me: failed program was:" >&5
17160
 
sed 's/^/| /' conftest.$ac_ext >&5
17161
 
 
17162
 
 
17163
 
fi
17164
 
 
17165
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17166
 
      conftest$ac_exeext conftest.$ac_ext
17167
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17168
 
 
17169
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17170
 
        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"
17171
 
       else
17172
 
        if test "$host_cpu" = ia64; then
17173
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17174
 
          allow_undefined_flag_GCJ="-z nodefs"
17175
 
          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"
17176
 
        else
17177
 
         # Determine the default libpath from the value encoded in an empty executable.
17178
 
         cat >conftest.$ac_ext <<_ACEOF
17179
 
/* confdefs.h.  */
17180
 
_ACEOF
17181
 
cat confdefs.h >>conftest.$ac_ext
17182
 
cat >>conftest.$ac_ext <<_ACEOF
17183
 
/* end confdefs.h.  */
17184
 
 
17185
 
int
17186
 
main ()
17187
 
{
17188
 
 
17189
 
  ;
17190
 
  return 0;
17191
 
}
17192
 
_ACEOF
17193
 
rm -f conftest.$ac_objext conftest$ac_exeext
17194
 
if { (ac_try="$ac_link"
17195
 
case "(($ac_try" in
17196
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197
 
  *) ac_try_echo=$ac_try;;
17198
 
esac
17199
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200
 
  (eval "$ac_link") 2>conftest.er1
17201
 
  ac_status=$?
17202
 
  grep -v '^ *+' conftest.er1 >conftest.err
17203
 
  rm -f conftest.er1
17204
 
  cat conftest.err >&5
17205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206
 
  (exit $ac_status); } && {
17207
 
         test -z "$ac_c_werror_flag" ||
17208
 
         test ! -s conftest.err
17209
 
       } && test -s conftest$ac_exeext &&
17210
 
       $as_test_x conftest$ac_exeext; then
17211
 
 
17212
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17213
 
}'`
17214
 
# Check for a 64-bit object if we didn't find anything.
17215
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17216
 
}'`; fi
17217
 
else
17218
 
  echo "$as_me: failed program was:" >&5
17219
 
sed 's/^/| /' conftest.$ac_ext >&5
17220
 
 
17221
 
 
17222
 
fi
17223
 
 
17224
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17225
 
      conftest$ac_exeext conftest.$ac_ext
17226
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17227
 
 
17228
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17229
 
          # Warning - without using the other run time loading flags,
17230
 
          # -berok will link without error, but may produce a broken library.
17231
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17232
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17233
 
          # Exported symbols can be pulled into shared objects from archives
17234
 
          whole_archive_flag_spec_GCJ='$convenience'
17235
 
          archive_cmds_need_lc_GCJ=yes
17236
 
          # This is similar to how AIX traditionally builds its shared libraries.
17237
 
          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'
17238
 
        fi
17239
 
      fi
17240
 
      ;;
17241
 
 
17242
 
    amigaos*)
17243
 
      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)'
17244
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17245
 
      hardcode_minus_L_GCJ=yes
17246
 
      # see comment about different semantics on the GNU ld section
17247
 
      ld_shlibs_GCJ=no
17248
 
      ;;
17249
 
 
17250
 
    bsdi[45]*)
17251
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17252
 
      ;;
17253
 
 
17254
 
    cygwin* | mingw* | pw32*)
17255
 
      # When not using gcc, we currently assume that we are using
17256
 
      # Microsoft Visual C++.
17257
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17258
 
      # no search path for DLLs.
17259
 
      hardcode_libdir_flag_spec_GCJ=' '
17260
 
      allow_undefined_flag_GCJ=unsupported
17261
 
      # Tell ltmain to make .lib files, not .a files.
17262
 
      libext=lib
17263
 
      # Tell ltmain to make .dll files, not .so files.
17264
 
      shrext_cmds=".dll"
17265
 
      # FIXME: Setting linknames here is a bad hack.
17266
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17267
 
      # The linker will automatically build a .lib file if we build a DLL.
17268
 
      old_archive_From_new_cmds_GCJ='true'
17269
 
      # FIXME: Should let the user specify the lib program.
17270
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17271
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17272
 
      enable_shared_with_static_runtimes_GCJ=yes
17273
 
      ;;
17274
 
 
17275
 
    darwin* | rhapsody*)
17276
 
      case $host_os in
17277
 
        rhapsody* | darwin1.[012])
17278
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17279
 
         ;;
17280
 
       *) # Darwin 1.3 on
17281
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17282
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17283
 
         else
17284
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17285
 
             10.[012])
17286
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17287
 
               ;;
17288
 
             10.*)
17289
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17290
 
               ;;
17291
 
           esac
17292
 
         fi
17293
 
         ;;
17294
 
      esac
17295
 
      archive_cmds_need_lc_GCJ=no
17296
 
      hardcode_direct_GCJ=no
17297
 
      hardcode_automatic_GCJ=yes
17298
 
      hardcode_shlibpath_var_GCJ=unsupported
17299
 
      whole_archive_flag_spec_GCJ=''
17300
 
      link_all_deplibs_GCJ=yes
17301
 
    if test "$GCC" = yes ; then
17302
 
        output_verbose_link_cmd='echo'
17303
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17304
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17305
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17306
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17307
 
      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}'
17308
 
    else
17309
 
      case $cc_basename in
17310
 
        xlc*)
17311
 
         output_verbose_link_cmd='echo'
17312
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17313
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17315
 
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17316
 
          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}'
17317
 
          ;;
17318
 
       *)
17319
 
         ld_shlibs_GCJ=no
17320
 
          ;;
17321
 
      esac
17322
 
    fi
17323
 
      ;;
17324
 
 
17325
 
    dgux*)
17326
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328
 
      hardcode_shlibpath_var_GCJ=no
17329
 
      ;;
17330
 
 
17331
 
    freebsd1*)
17332
 
      ld_shlibs_GCJ=no
17333
 
      ;;
17334
 
 
17335
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17336
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17337
 
    # does not break anything, and helps significantly (at the cost of a little
17338
 
    # extra space).
17339
 
    freebsd2.2*)
17340
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17341
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17342
 
      hardcode_direct_GCJ=yes
17343
 
      hardcode_shlibpath_var_GCJ=no
17344
 
      ;;
17345
 
 
17346
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17347
 
    freebsd2*)
17348
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349
 
      hardcode_direct_GCJ=yes
17350
 
      hardcode_minus_L_GCJ=yes
17351
 
      hardcode_shlibpath_var_GCJ=no
17352
 
      ;;
17353
 
 
17354
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17355
 
    freebsd* | dragonfly*)
17356
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17357
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17358
 
      hardcode_direct_GCJ=yes
17359
 
      hardcode_shlibpath_var_GCJ=no
17360
 
      ;;
17361
 
 
17362
 
    hpux9*)
17363
 
      if test "$GCC" = yes; then
17364
 
        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'
17365
 
      else
17366
 
        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'
17367
 
      fi
17368
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17369
 
      hardcode_libdir_separator_GCJ=:
17370
 
      hardcode_direct_GCJ=yes
17371
 
 
17372
 
      # hardcode_minus_L: Not really in the search PATH,
17373
 
      # but as the default location of the library.
17374
 
      hardcode_minus_L_GCJ=yes
17375
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17376
 
      ;;
17377
 
 
17378
 
    hpux10*)
17379
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17380
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17381
 
      else
17382
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17383
 
      fi
17384
 
      if test "$with_gnu_ld" = no; then
17385
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17386
 
        hardcode_libdir_separator_GCJ=:
17387
 
 
17388
 
        hardcode_direct_GCJ=yes
17389
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17390
 
 
17391
 
        # hardcode_minus_L: Not really in the search PATH,
17392
 
        # but as the default location of the library.
17393
 
        hardcode_minus_L_GCJ=yes
17394
 
      fi
17395
 
      ;;
17396
 
 
17397
 
    hpux11*)
17398
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17399
 
        case $host_cpu in
17400
 
        hppa*64*)
17401
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17402
 
          ;;
17403
 
        ia64*)
17404
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17405
 
          ;;
17406
 
        *)
17407
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17408
 
          ;;
17409
 
        esac
17410
 
      else
17411
 
        case $host_cpu in
17412
 
        hppa*64*)
17413
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17414
 
          ;;
17415
 
        ia64*)
17416
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17417
 
          ;;
17418
 
        *)
17419
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17420
 
          ;;
17421
 
        esac
17422
 
      fi
17423
 
      if test "$with_gnu_ld" = no; then
17424
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17425
 
        hardcode_libdir_separator_GCJ=:
17426
 
 
17427
 
        case $host_cpu in
17428
 
        hppa*64*|ia64*)
17429
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17430
 
          hardcode_direct_GCJ=no
17431
 
          hardcode_shlibpath_var_GCJ=no
17432
 
          ;;
17433
 
        *)
17434
 
          hardcode_direct_GCJ=yes
17435
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17436
 
 
17437
 
          # hardcode_minus_L: Not really in the search PATH,
17438
 
          # but as the default location of the library.
17439
 
          hardcode_minus_L_GCJ=yes
17440
 
          ;;
17441
 
        esac
17442
 
      fi
17443
 
      ;;
17444
 
 
17445
 
    irix5* | irix6* | nonstopux*)
17446
 
      if test "$GCC" = yes; then
17447
 
        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'
17448
 
      else
17449
 
        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'
17450
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17451
 
      fi
17452
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17453
 
      hardcode_libdir_separator_GCJ=:
17454
 
      link_all_deplibs_GCJ=yes
17455
 
      ;;
17456
 
 
17457
 
    netbsd* | netbsdelf*-gnu)
17458
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17459
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17460
 
      else
17461
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17462
 
      fi
17463
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17464
 
      hardcode_direct_GCJ=yes
17465
 
      hardcode_shlibpath_var_GCJ=no
17466
 
      ;;
17467
 
 
17468
 
    newsos6)
17469
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470
 
      hardcode_direct_GCJ=yes
17471
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17472
 
      hardcode_libdir_separator_GCJ=:
17473
 
      hardcode_shlibpath_var_GCJ=no
17474
 
      ;;
17475
 
 
17476
 
    openbsd*)
17477
 
      hardcode_direct_GCJ=yes
17478
 
      hardcode_shlibpath_var_GCJ=no
17479
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17480
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17481
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17482
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17483
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17484
 
      else
17485
 
       case $host_os in
17486
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17487
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17488
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17489
 
           ;;
17490
 
         *)
17491
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17492
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17493
 
           ;;
17494
 
       esac
17495
 
      fi
17496
 
      ;;
17497
 
 
17498
 
    os2*)
17499
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17500
 
      hardcode_minus_L_GCJ=yes
17501
 
      allow_undefined_flag_GCJ=unsupported
17502
 
      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'
17503
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17504
 
      ;;
17505
 
 
17506
 
    osf3*)
17507
 
      if test "$GCC" = yes; then
17508
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17509
 
        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'
17510
 
      else
17511
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17512
 
        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'
17513
 
      fi
17514
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17515
 
      hardcode_libdir_separator_GCJ=:
17516
 
      ;;
17517
 
 
17518
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
17519
 
      if test "$GCC" = yes; then
17520
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17521
 
        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'
17522
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17523
 
      else
17524
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17525
 
        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'
17526
 
        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~
17527
 
        $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'
17528
 
 
17529
 
        # Both c and cxx compiler support -rpath directly
17530
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17531
 
      fi
17532
 
      hardcode_libdir_separator_GCJ=:
17533
 
      ;;
17534
 
 
17535
 
    solaris*)
17536
 
      no_undefined_flag_GCJ=' -z text'
17537
 
      if test "$GCC" = yes; then
17538
 
        wlarc='${wl}'
17539
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17540
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17541
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17542
 
      else
17543
 
        wlarc=''
17544
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17546
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17547
 
      fi
17548
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17549
 
      hardcode_shlibpath_var_GCJ=no
17550
 
      case $host_os in
17551
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17552
 
      *)
17553
 
        # The compiler driver will combine linker options so we
17554
 
        # cannot just pass the convience library names through
17555
 
        # without $wl, iff we do not link with $LD.
17556
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
17557
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17558
 
        case $wlarc in
17559
 
        '')
17560
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17561
 
        *)
17562
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17563
 
        esac ;;
17564
 
      esac
17565
 
      link_all_deplibs_GCJ=yes
17566
 
      ;;
17567
 
 
17568
 
    sunos4*)
17569
 
      if test "x$host_vendor" = xsequent; then
17570
 
        # Use $CC to link under sequent, because it throws in some extra .o
17571
 
        # files that make .init and .fini sections work.
17572
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17573
 
      else
17574
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17575
 
      fi
17576
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17577
 
      hardcode_direct_GCJ=yes
17578
 
      hardcode_minus_L_GCJ=yes
17579
 
      hardcode_shlibpath_var_GCJ=no
17580
 
      ;;
17581
 
 
17582
 
    sysv4)
17583
 
      case $host_vendor in
17584
 
        sni)
17585
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586
 
          hardcode_direct_GCJ=yes # is this really true???
17587
 
        ;;
17588
 
        siemens)
17589
 
          ## LD is ld it makes a PLAMLIB
17590
 
          ## CC just makes a GrossModule.
17591
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17592
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17593
 
          hardcode_direct_GCJ=no
17594
 
        ;;
17595
 
        motorola)
17596
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17597
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17598
 
        ;;
17599
 
      esac
17600
 
      runpath_var='LD_RUN_PATH'
17601
 
      hardcode_shlibpath_var_GCJ=no
17602
 
      ;;
17603
 
 
17604
 
    sysv4.3*)
17605
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606
 
      hardcode_shlibpath_var_GCJ=no
17607
 
      export_dynamic_flag_spec_GCJ='-Bexport'
17608
 
      ;;
17609
 
 
17610
 
    sysv4*MP*)
17611
 
      if test -d /usr/nec; then
17612
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613
 
        hardcode_shlibpath_var_GCJ=no
17614
 
        runpath_var=LD_RUN_PATH
17615
 
        hardcode_runpath_var=yes
17616
 
        ld_shlibs_GCJ=yes
17617
 
      fi
17618
 
      ;;
17619
 
 
17620
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17621
 
      no_undefined_flag_GCJ='${wl}-z,text'
17622
 
      archive_cmds_need_lc_GCJ=no
17623
 
      hardcode_shlibpath_var_GCJ=no
17624
 
      runpath_var='LD_RUN_PATH'
17625
 
 
17626
 
      if test "$GCC" = yes; then
17627
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17628
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17629
 
      else
17630
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17631
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17632
 
      fi
17633
 
      ;;
17634
 
 
17635
 
    sysv5* | sco3.2v5* | sco5v6*)
17636
 
      # Note: We can NOT use -z defs as we might desire, because we do not
17637
 
      # link with -lc, and that would cause any symbols used from libc to
17638
 
      # always be unresolved, which means just about no library would
17639
 
      # ever link correctly.  If we're not using GNU ld we use -z text
17640
 
      # though, which does catch some bad symbols but isn't as heavy-handed
17641
 
      # as -z defs.
17642
 
      no_undefined_flag_GCJ='${wl}-z,text'
17643
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17644
 
      archive_cmds_need_lc_GCJ=no
17645
 
      hardcode_shlibpath_var_GCJ=no
17646
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17647
 
      hardcode_libdir_separator_GCJ=':'
17648
 
      link_all_deplibs_GCJ=yes
17649
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17650
 
      runpath_var='LD_RUN_PATH'
17651
 
 
17652
 
      if test "$GCC" = yes; then
17653
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17654
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17655
 
      else
17656
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17657
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17658
 
      fi
17659
 
      ;;
17660
 
 
17661
 
    uts4*)
17662
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17663
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17664
 
      hardcode_shlibpath_var_GCJ=no
17665
 
      ;;
17666
 
 
17667
 
    *)
17668
 
      ld_shlibs_GCJ=no
17669
 
      ;;
17670
 
    esac
17671
 
  fi
17672
 
 
17673
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17674
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17675
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17676
 
 
17677
 
#
17678
 
# Do we need to explicitly link libc?
17679
 
#
17680
 
case "x$archive_cmds_need_lc_GCJ" in
17681
 
x|xyes)
17682
 
  # Assume -lc should be added
17683
 
  archive_cmds_need_lc_GCJ=yes
17684
 
 
17685
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17686
 
    case $archive_cmds_GCJ in
17687
 
    *'~'*)
17688
 
      # FIXME: we may have to deal with multi-command sequences.
17689
 
      ;;
17690
 
    '$CC '*)
17691
 
      # Test whether the compiler implicitly links with -lc since on some
17692
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17693
 
      # to ld, don't add -lc before -lgcc.
17694
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17695
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17696
 
      $rm conftest*
17697
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17698
 
 
17699
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700
 
  (eval $ac_compile) 2>&5
17701
 
  ac_status=$?
17702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703
 
  (exit $ac_status); } 2>conftest.err; then
17704
 
        soname=conftest
17705
 
        lib=conftest
17706
 
        libobjs=conftest.$ac_objext
17707
 
        deplibs=
17708
 
        wl=$lt_prog_compiler_wl_GCJ
17709
 
        pic_flag=$lt_prog_compiler_pic_GCJ
17710
 
        compiler_flags=-v
17711
 
        linker_flags=-v
17712
 
        verstring=
17713
 
        output_objdir=.
17714
 
        libname=conftest
17715
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17716
 
        allow_undefined_flag_GCJ=
17717
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17718
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17719
 
  ac_status=$?
17720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721
 
  (exit $ac_status); }
17722
 
        then
17723
 
          archive_cmds_need_lc_GCJ=no
17724
 
        else
17725
 
          archive_cmds_need_lc_GCJ=yes
17726
 
        fi
17727
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17728
 
      else
17729
 
        cat conftest.err 1>&5
17730
 
      fi
17731
 
      $rm conftest*
17732
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17733
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17734
 
      ;;
17735
 
    esac
17736
 
  fi
17737
 
  ;;
17738
 
esac
17739
 
 
17740
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17741
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17742
 
library_names_spec=
17743
 
libname_spec='lib$name'
17744
 
soname_spec=
17745
 
shrext_cmds=".so"
17746
 
postinstall_cmds=
17747
 
postuninstall_cmds=
17748
 
finish_cmds=
17749
 
finish_eval=
17750
 
shlibpath_var=
17751
 
shlibpath_overrides_runpath=unknown
17752
 
version_type=none
17753
 
dynamic_linker="$host_os ld.so"
17754
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17755
 
if test "$GCC" = yes; then
17756
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17757
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17758
 
    # if the path contains ";" then we assume it to be the separator
17759
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17760
 
    # assumed that no part of a normal pathname contains ";" but that should
17761
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17762
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17763
 
  else
17764
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17765
 
  fi
17766
 
else
17767
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17768
 
fi
17769
 
need_lib_prefix=unknown
17770
 
hardcode_into_libs=no
17771
 
 
17772
 
# when you set need_version to no, make sure it does not cause -set_version
17773
 
# flags to be left without arguments
17774
 
need_version=unknown
17775
 
 
17776
 
case $host_os in
17777
 
aix3*)
17778
 
  version_type=linux
17779
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17780
 
  shlibpath_var=LIBPATH
17781
 
 
17782
 
  # AIX 3 has no versioning support, so we append a major version to the name.
17783
 
  soname_spec='${libname}${release}${shared_ext}$major'
17784
 
  ;;
17785
 
 
17786
 
aix4* | aix5*)
17787
 
  version_type=linux
17788
 
  need_lib_prefix=no
17789
 
  need_version=no
17790
 
  hardcode_into_libs=yes
17791
 
  if test "$host_cpu" = ia64; then
17792
 
    # AIX 5 supports IA64
17793
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17794
 
    shlibpath_var=LD_LIBRARY_PATH
17795
 
  else
17796
 
    # With GCC up to 2.95.x, collect2 would create an import file
17797
 
    # for dependence libraries.  The import file would start with
17798
 
    # the line `#! .'.  This would cause the generated library to
17799
 
    # depend on `.', always an invalid library.  This was fixed in
17800
 
    # development snapshots of GCC prior to 3.0.
17801
 
    case $host_os in
17802
 
      aix4 | aix4.[01] | aix4.[01].*)
17803
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17804
 
           echo ' yes '
17805
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17806
 
        :
17807
 
      else
17808
 
        can_build_shared=no
17809
 
      fi
17810
 
      ;;
17811
 
    esac
17812
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17813
 
    # soname into executable. Probably we can add versioning support to
17814
 
    # collect2, so additional links can be useful in future.
17815
 
    if test "$aix_use_runtimelinking" = yes; then
17816
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17817
 
      # instead of lib<name>.a to let people know that these are not
17818
 
      # typical AIX shared libraries.
17819
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820
 
    else
17821
 
      # We preserve .a as extension for shared libraries through AIX4.2
17822
 
      # and later when we are not doing run time linking.
17823
 
      library_names_spec='${libname}${release}.a $libname.a'
17824
 
      soname_spec='${libname}${release}${shared_ext}$major'
17825
 
    fi
17826
 
    shlibpath_var=LIBPATH
17827
 
  fi
17828
 
  ;;
17829
 
 
17830
 
amigaos*)
17831
 
  library_names_spec='$libname.ixlibrary $libname.a'
17832
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17833
 
  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'
17834
 
  ;;
17835
 
 
17836
 
beos*)
17837
 
  library_names_spec='${libname}${shared_ext}'
17838
 
  dynamic_linker="$host_os ld.so"
17839
 
  shlibpath_var=LIBRARY_PATH
17840
 
  ;;
17841
 
 
17842
 
bsdi[45]*)
17843
 
  version_type=linux
17844
 
  need_version=no
17845
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846
 
  soname_spec='${libname}${release}${shared_ext}$major'
17847
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17848
 
  shlibpath_var=LD_LIBRARY_PATH
17849
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17850
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17851
 
  # the default ld.so.conf also contains /usr/contrib/lib and
17852
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17853
 
  # libtool to hard-code these into programs
17854
 
  ;;
17855
 
 
17856
 
cygwin* | mingw* | pw32*)
17857
 
  version_type=windows
17858
 
  shrext_cmds=".dll"
17859
 
  need_version=no
17860
 
  need_lib_prefix=no
17861
 
 
17862
 
  case $GCC,$host_os in
17863
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
17864
 
    library_names_spec='$libname.dll.a'
17865
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17866
 
    postinstall_cmds='base_file=`basename \${file}`~
17867
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17868
 
      dldir=$destdir/`dirname \$dlpath`~
17869
 
      test -d \$dldir || mkdir -p \$dldir~
17870
 
      $install_prog $dir/$dlname \$dldir/$dlname~
17871
 
      chmod a+x \$dldir/$dlname'
17872
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17873
 
      dlpath=$dir/\$dldll~
17874
 
       $rm \$dlpath'
17875
 
    shlibpath_overrides_runpath=yes
17876
 
 
17877
 
    case $host_os in
17878
 
    cygwin*)
17879
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17880
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17881
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17882
 
      ;;
17883
 
    mingw*)
17884
 
      # MinGW DLLs use traditional 'lib' prefix
17885
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17886
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17887
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17888
 
        # It is most probably a Windows format PATH printed by
17889
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17890
 
        # path with ; separators, and with drive letters. We can handle the
17891
 
        # drive letters (cygwin fileutils understands them), so leave them,
17892
 
        # especially as we might pass files found there to a mingw objdump,
17893
 
        # which wouldn't understand a cygwinified path. Ahh.
17894
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17895
 
      else
17896
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17897
 
      fi
17898
 
      ;;
17899
 
    pw32*)
17900
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17901
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17902
 
      ;;
17903
 
    esac
17904
 
    ;;
17905
 
 
17906
 
  *)
17907
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17908
 
    ;;
17909
 
  esac
17910
 
  dynamic_linker='Win32 ld.exe'
17911
 
  # FIXME: first we should search . and the directory the executable is in
17912
 
  shlibpath_var=PATH
17913
 
  ;;
17914
 
 
17915
 
darwin* | rhapsody*)
17916
 
  dynamic_linker="$host_os dyld"
17917
 
  version_type=darwin
17918
 
  need_lib_prefix=no
17919
 
  need_version=no
17920
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17921
 
  soname_spec='${libname}${release}${major}$shared_ext'
17922
 
  shlibpath_overrides_runpath=yes
17923
 
  shlibpath_var=DYLD_LIBRARY_PATH
17924
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17925
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17926
 
  if test "$GCC" = yes; then
17927
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17928
 
  else
17929
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17930
 
  fi
17931
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17932
 
  ;;
17933
 
 
17934
 
dgux*)
17935
 
  version_type=linux
17936
 
  need_lib_prefix=no
17937
 
  need_version=no
17938
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17939
 
  soname_spec='${libname}${release}${shared_ext}$major'
17940
 
  shlibpath_var=LD_LIBRARY_PATH
17941
 
  ;;
17942
 
 
17943
 
freebsd1*)
17944
 
  dynamic_linker=no
17945
 
  ;;
17946
 
 
17947
 
freebsd* | dragonfly*)
17948
 
  # DragonFly does not have aout.  When/if they implement a new
17949
 
  # versioning mechanism, adjust this.
17950
 
  if test -x /usr/bin/objformat; then
17951
 
    objformat=`/usr/bin/objformat`
17952
 
  else
17953
 
    case $host_os in
17954
 
    freebsd[123]*) objformat=aout ;;
17955
 
    *) objformat=elf ;;
17956
 
    esac
17957
 
  fi
17958
 
  version_type=freebsd-$objformat
17959
 
  case $version_type in
17960
 
    freebsd-elf*)
17961
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17962
 
      need_version=no
17963
 
      need_lib_prefix=no
17964
 
      ;;
17965
 
    freebsd-*)
17966
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17967
 
      need_version=yes
17968
 
      ;;
17969
 
  esac
17970
 
  shlibpath_var=LD_LIBRARY_PATH
17971
 
  case $host_os in
17972
 
  freebsd2*)
17973
 
    shlibpath_overrides_runpath=yes
17974
 
    ;;
17975
 
  freebsd3.[01]* | freebsdelf3.[01]*)
17976
 
    shlibpath_overrides_runpath=yes
17977
 
    hardcode_into_libs=yes
17978
 
    ;;
17979
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17980
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17981
 
    shlibpath_overrides_runpath=no
17982
 
    hardcode_into_libs=yes
17983
 
    ;;
17984
 
  freebsd*) # from 4.6 on
17985
 
    shlibpath_overrides_runpath=yes
17986
 
    hardcode_into_libs=yes
17987
 
    ;;
17988
 
  esac
17989
 
  ;;
17990
 
 
17991
 
gnu*)
17992
 
  version_type=linux
17993
 
  need_lib_prefix=no
17994
 
  need_version=no
17995
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17996
 
  soname_spec='${libname}${release}${shared_ext}$major'
17997
 
  shlibpath_var=LD_LIBRARY_PATH
17998
 
  hardcode_into_libs=yes
17999
 
  ;;
18000
 
 
18001
 
hpux9* | hpux10* | hpux11*)
18002
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18003
 
  # link against other versions.
18004
 
  version_type=sunos
18005
 
  need_lib_prefix=no
18006
 
  need_version=no
18007
 
  case $host_cpu in
18008
 
  ia64*)
18009
 
    shrext_cmds='.so'
18010
 
    hardcode_into_libs=yes
18011
 
    dynamic_linker="$host_os dld.so"
18012
 
    shlibpath_var=LD_LIBRARY_PATH
18013
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18014
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015
 
    soname_spec='${libname}${release}${shared_ext}$major'
18016
 
    if test "X$HPUX_IA64_MODE" = X32; then
18017
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18018
 
    else
18019
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18020
 
    fi
18021
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18022
 
    ;;
18023
 
   hppa*64*)
18024
 
     shrext_cmds='.sl'
18025
 
     hardcode_into_libs=yes
18026
 
     dynamic_linker="$host_os dld.sl"
18027
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18028
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18029
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030
 
     soname_spec='${libname}${release}${shared_ext}$major'
18031
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18032
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18033
 
     ;;
18034
 
   *)
18035
 
    shrext_cmds='.sl'
18036
 
    dynamic_linker="$host_os dld.sl"
18037
 
    shlibpath_var=SHLIB_PATH
18038
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18039
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040
 
    soname_spec='${libname}${release}${shared_ext}$major'
18041
 
    ;;
18042
 
  esac
18043
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18044
 
  postinstall_cmds='chmod 555 $lib'
18045
 
  ;;
18046
 
 
18047
 
interix3*)
18048
 
  version_type=linux
18049
 
  need_lib_prefix=no
18050
 
  need_version=no
18051
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18052
 
  soname_spec='${libname}${release}${shared_ext}$major'
18053
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18054
 
  shlibpath_var=LD_LIBRARY_PATH
18055
 
  shlibpath_overrides_runpath=no
18056
 
  hardcode_into_libs=yes
18057
 
  ;;
18058
 
 
18059
 
irix5* | irix6* | nonstopux*)
18060
 
  case $host_os in
18061
 
    nonstopux*) version_type=nonstopux ;;
18062
 
    *)
18063
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18064
 
                version_type=linux
18065
 
        else
18066
 
                version_type=irix
18067
 
        fi ;;
18068
 
  esac
18069
 
  need_lib_prefix=no
18070
 
  need_version=no
18071
 
  soname_spec='${libname}${release}${shared_ext}$major'
18072
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18073
 
  case $host_os in
18074
 
  irix5* | nonstopux*)
18075
 
    libsuff= shlibsuff=
18076
 
    ;;
18077
 
  *)
18078
 
    case $LD in # libtool.m4 will add one of these switches to LD
18079
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18080
 
      libsuff= shlibsuff= libmagic=32-bit;;
18081
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18082
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18083
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18084
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18085
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18086
 
    esac
18087
 
    ;;
18088
 
  esac
18089
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18090
 
  shlibpath_overrides_runpath=no
18091
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18092
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18093
 
  hardcode_into_libs=yes
18094
 
  ;;
18095
 
 
18096
 
# No shared lib support for Linux oldld, aout, or coff.
18097
 
linux*oldld* | linux*aout* | linux*coff*)
18098
 
  dynamic_linker=no
18099
 
  ;;
18100
 
 
18101
 
# This must be Linux ELF.
18102
 
linux* | k*bsd*-gnu)
18103
 
  version_type=linux
18104
 
  need_lib_prefix=no
18105
 
  need_version=no
18106
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107
 
  soname_spec='${libname}${release}${shared_ext}$major'
18108
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18109
 
  shlibpath_var=LD_LIBRARY_PATH
18110
 
  shlibpath_overrides_runpath=no
18111
 
  # This implies no fast_install, which is unacceptable.
18112
 
  # Some rework will be needed to allow for fast_install
18113
 
  # before this can be enabled.
18114
 
  hardcode_into_libs=yes
18115
 
 
18116
 
  # Append ld.so.conf contents to the search path
18117
 
  if test -f /etc/ld.so.conf; then
18118
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18119
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18120
 
  fi
18121
 
 
18122
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18123
 
  # powerpc, because MkLinux only supported shared libraries with the
18124
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18125
 
  # most powerpc-linux boxes support dynamic linking these days and
18126
 
  # people can always --disable-shared, the test was removed, and we
18127
 
  # assume the GNU/Linux dynamic linker is in use.
18128
 
  dynamic_linker='GNU/Linux ld.so'
18129
 
  ;;
18130
 
 
18131
 
netbsdelf*-gnu)
18132
 
  version_type=linux
18133
 
  need_lib_prefix=no
18134
 
  need_version=no
18135
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18136
 
  soname_spec='${libname}${release}${shared_ext}$major'
18137
 
  shlibpath_var=LD_LIBRARY_PATH
18138
 
  shlibpath_overrides_runpath=no
18139
 
  hardcode_into_libs=yes
18140
 
  dynamic_linker='NetBSD ld.elf_so'
18141
 
  ;;
18142
 
 
18143
 
netbsd*)
18144
 
  version_type=sunos
18145
 
  need_lib_prefix=no
18146
 
  need_version=no
18147
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18148
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18149
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18150
 
    dynamic_linker='NetBSD (a.out) ld.so'
18151
 
  else
18152
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18153
 
    soname_spec='${libname}${release}${shared_ext}$major'
18154
 
    dynamic_linker='NetBSD ld.elf_so'
18155
 
  fi
18156
 
  shlibpath_var=LD_LIBRARY_PATH
18157
 
  shlibpath_overrides_runpath=yes
18158
 
  hardcode_into_libs=yes
18159
 
  ;;
18160
 
 
18161
 
newsos6)
18162
 
  version_type=linux
18163
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164
 
  shlibpath_var=LD_LIBRARY_PATH
18165
 
  shlibpath_overrides_runpath=yes
18166
 
  ;;
18167
 
 
18168
 
nto-qnx*)
18169
 
  version_type=linux
18170
 
  need_lib_prefix=no
18171
 
  need_version=no
18172
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173
 
  soname_spec='${libname}${release}${shared_ext}$major'
18174
 
  shlibpath_var=LD_LIBRARY_PATH
18175
 
  shlibpath_overrides_runpath=yes
18176
 
  ;;
18177
 
 
18178
 
openbsd*)
18179
 
  version_type=sunos
18180
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18181
 
  need_lib_prefix=no
18182
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18183
 
  case $host_os in
18184
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18185
 
    *)                         need_version=no  ;;
18186
 
  esac
18187
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18188
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18189
 
  shlibpath_var=LD_LIBRARY_PATH
18190
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18191
 
    case $host_os in
18192
 
      openbsd2.[89] | openbsd2.[89].*)
18193
 
        shlibpath_overrides_runpath=no
18194
 
        ;;
18195
 
      *)
18196
 
        shlibpath_overrides_runpath=yes
18197
 
        ;;
18198
 
      esac
18199
 
  else
18200
 
    shlibpath_overrides_runpath=yes
18201
 
  fi
18202
 
  ;;
18203
 
 
18204
 
os2*)
18205
 
  libname_spec='$name'
18206
 
  shrext_cmds=".dll"
18207
 
  need_lib_prefix=no
18208
 
  library_names_spec='$libname${shared_ext} $libname.a'
18209
 
  dynamic_linker='OS/2 ld.exe'
18210
 
  shlibpath_var=LIBPATH
18211
 
  ;;
18212
 
 
18213
 
osf3* | osf4* | osf5*)
18214
 
  version_type=osf
18215
 
  need_lib_prefix=no
18216
 
  need_version=no
18217
 
  soname_spec='${libname}${release}${shared_ext}$major'
18218
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219
 
  shlibpath_var=LD_LIBRARY_PATH
18220
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18221
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18222
 
  ;;
18223
 
 
18224
 
solaris*)
18225
 
  version_type=linux
18226
 
  need_lib_prefix=no
18227
 
  need_version=no
18228
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229
 
  soname_spec='${libname}${release}${shared_ext}$major'
18230
 
  shlibpath_var=LD_LIBRARY_PATH
18231
 
  shlibpath_overrides_runpath=yes
18232
 
  hardcode_into_libs=yes
18233
 
  # ldd complains unless libraries are executable
18234
 
  postinstall_cmds='chmod +x $lib'
18235
 
  ;;
18236
 
 
18237
 
sunos4*)
18238
 
  version_type=sunos
18239
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18241
 
  shlibpath_var=LD_LIBRARY_PATH
18242
 
  shlibpath_overrides_runpath=yes
18243
 
  if test "$with_gnu_ld" = yes; then
18244
 
    need_lib_prefix=no
18245
 
  fi
18246
 
  need_version=yes
18247
 
  ;;
18248
 
 
18249
 
sysv4 | sysv4.3*)
18250
 
  version_type=linux
18251
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18252
 
  soname_spec='${libname}${release}${shared_ext}$major'
18253
 
  shlibpath_var=LD_LIBRARY_PATH
18254
 
  case $host_vendor in
18255
 
    sni)
18256
 
      shlibpath_overrides_runpath=no
18257
 
      need_lib_prefix=no
18258
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18259
 
      runpath_var=LD_RUN_PATH
18260
 
      ;;
18261
 
    siemens)
18262
 
      need_lib_prefix=no
18263
 
      ;;
18264
 
    motorola)
18265
 
      need_lib_prefix=no
18266
 
      need_version=no
18267
 
      shlibpath_overrides_runpath=no
18268
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18269
 
      ;;
18270
 
  esac
18271
 
  ;;
18272
 
 
18273
 
sysv4*MP*)
18274
 
  if test -d /usr/nec ;then
18275
 
    version_type=linux
18276
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18277
 
    soname_spec='$libname${shared_ext}.$major'
18278
 
    shlibpath_var=LD_LIBRARY_PATH
18279
 
  fi
18280
 
  ;;
18281
 
 
18282
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18283
 
  version_type=freebsd-elf
18284
 
  need_lib_prefix=no
18285
 
  need_version=no
18286
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18287
 
  soname_spec='${libname}${release}${shared_ext}$major'
18288
 
  shlibpath_var=LD_LIBRARY_PATH
18289
 
  hardcode_into_libs=yes
18290
 
  if test "$with_gnu_ld" = yes; then
18291
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18292
 
    shlibpath_overrides_runpath=no
18293
 
  else
18294
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18295
 
    shlibpath_overrides_runpath=yes
18296
 
    case $host_os in
18297
 
      sco3.2v5*)
18298
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18299
 
        ;;
18300
 
    esac
18301
 
  fi
18302
 
  sys_lib_dlsearch_path_spec='/usr/lib'
18303
 
  ;;
18304
 
 
18305
 
uts4*)
18306
 
  version_type=linux
18307
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308
 
  soname_spec='${libname}${release}${shared_ext}$major'
18309
 
  shlibpath_var=LD_LIBRARY_PATH
18310
 
  ;;
18311
 
 
18312
 
*)
18313
 
  dynamic_linker=no
18314
 
  ;;
18315
 
esac
18316
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18317
 
echo "${ECHO_T}$dynamic_linker" >&6; }
18318
 
test "$dynamic_linker" = no && can_build_shared=no
18319
 
 
18320
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18321
 
if test "$GCC" = yes; then
18322
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18323
 
fi
18324
 
 
18325
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18326
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18327
 
hardcode_action_GCJ=
18328
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18329
 
   test -n "$runpath_var_GCJ" || \
18330
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18331
 
 
18332
 
  # We can hardcode non-existant directories.
18333
 
  if test "$hardcode_direct_GCJ" != no &&
18334
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18335
 
     # have to relink, otherwise we might link with an installed library
18336
 
     # when we should be linking with a yet-to-be-installed one
18337
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18338
 
     test "$hardcode_minus_L_GCJ" != no; then
18339
 
    # Linking always hardcodes the temporary library directory.
18340
 
    hardcode_action_GCJ=relink
18341
 
  else
18342
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18343
 
    hardcode_action_GCJ=immediate
18344
 
  fi
18345
 
else
18346
 
  # We cannot hardcode anything, or else we can only hardcode existing
18347
 
  # directories.
18348
 
  hardcode_action_GCJ=unsupported
18349
 
fi
18350
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18351
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18352
 
 
18353
 
if test "$hardcode_action_GCJ" = relink; then
18354
 
  # Fast installation is not supported
18355
 
  enable_fast_install=no
18356
 
elif test "$shlibpath_overrides_runpath" = yes ||
18357
 
     test "$enable_shared" = no; then
18358
 
  # Fast installation is not necessary
18359
 
  enable_fast_install=needless
18360
 
fi
18361
 
 
18362
 
 
18363
 
# The else clause should only fire when bootstrapping the
18364
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18365
 
# with your package, and you will get complaints that there are
18366
 
# no rules to generate ltmain.sh.
18367
 
if test -f "$ltmain"; then
18368
 
  # See if we are running on zsh, and set the options which allow our commands through
18369
 
  # without removal of \ escapes.
18370
 
  if test -n "${ZSH_VERSION+set}" ; then
18371
 
    setopt NO_GLOB_SUBST
18372
 
  fi
18373
 
  # Now quote all the things that may contain metacharacters while being
18374
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18375
 
  # variables and quote the copies for generation of the libtool script.
18376
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18377
 
    SED SHELL STRIP \
18378
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18379
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18380
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18381
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18382
 
    lt_cv_sys_global_symbol_to_c_name_address \
18383
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18384
 
    old_postinstall_cmds old_postuninstall_cmds \
18385
 
    compiler_GCJ \
18386
 
    CC_GCJ \
18387
 
    LD_GCJ \
18388
 
    lt_prog_compiler_wl_GCJ \
18389
 
    lt_prog_compiler_pic_GCJ \
18390
 
    lt_prog_compiler_static_GCJ \
18391
 
    lt_prog_compiler_no_builtin_flag_GCJ \
18392
 
    export_dynamic_flag_spec_GCJ \
18393
 
    thread_safe_flag_spec_GCJ \
18394
 
    whole_archive_flag_spec_GCJ \
18395
 
    enable_shared_with_static_runtimes_GCJ \
18396
 
    old_archive_cmds_GCJ \
18397
 
    old_archive_from_new_cmds_GCJ \
18398
 
    predep_objects_GCJ \
18399
 
    postdep_objects_GCJ \
18400
 
    predeps_GCJ \
18401
 
    postdeps_GCJ \
18402
 
    compiler_lib_search_path_GCJ \
18403
 
    archive_cmds_GCJ \
18404
 
    archive_expsym_cmds_GCJ \
18405
 
    postinstall_cmds_GCJ \
18406
 
    postuninstall_cmds_GCJ \
18407
 
    old_archive_from_expsyms_cmds_GCJ \
18408
 
    allow_undefined_flag_GCJ \
18409
 
    no_undefined_flag_GCJ \
18410
 
    export_symbols_cmds_GCJ \
18411
 
    hardcode_libdir_flag_spec_GCJ \
18412
 
    hardcode_libdir_flag_spec_ld_GCJ \
18413
 
    hardcode_libdir_separator_GCJ \
18414
 
    hardcode_automatic_GCJ \
18415
 
    module_cmds_GCJ \
18416
 
    module_expsym_cmds_GCJ \
18417
 
    lt_cv_prog_compiler_c_o_GCJ \
18418
 
    exclude_expsyms_GCJ \
18419
 
    include_expsyms_GCJ; do
18420
 
 
18421
 
    case $var in
18422
 
    old_archive_cmds_GCJ | \
18423
 
    old_archive_from_new_cmds_GCJ | \
18424
 
    archive_cmds_GCJ | \
18425
 
    archive_expsym_cmds_GCJ | \
18426
 
    module_cmds_GCJ | \
18427
 
    module_expsym_cmds_GCJ | \
18428
 
    old_archive_from_expsyms_cmds_GCJ | \
18429
 
    export_symbols_cmds_GCJ | \
18430
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18431
 
    postinstall_cmds | postuninstall_cmds | \
18432
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18433
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18434
 
      # Double-quote double-evaled strings.
18435
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18436
 
      ;;
18437
 
    *)
18438
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18439
 
      ;;
18440
 
    esac
18441
 
  done
18442
 
 
18443
 
  case $lt_echo in
18444
 
  *'\$0 --fallback-echo"')
18445
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18446
 
    ;;
18447
 
  esac
18448
 
 
18449
 
cfgfile="$ofile"
18450
 
 
18451
 
  cat <<__EOF__ >> "$cfgfile"
18452
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18453
 
 
18454
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18455
 
 
18456
 
# Shell to use when invoking shell scripts.
18457
 
SHELL=$lt_SHELL
18458
 
 
18459
 
# Whether or not to build shared libraries.
18460
 
build_libtool_libs=$enable_shared
18461
 
 
18462
 
# Whether or not to build static libraries.
18463
 
build_old_libs=$enable_static
18464
 
 
18465
 
# Whether or not to add -lc for building shared libraries.
18466
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18467
 
 
18468
 
# Whether or not to disallow shared libs when runtime libs are static
18469
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18470
 
 
18471
 
# Whether or not to optimize for fast installation.
18472
 
fast_install=$enable_fast_install
18473
 
 
18474
 
# The host system.
18475
 
host_alias=$host_alias
18476
 
host=$host
18477
 
host_os=$host_os
18478
 
 
18479
 
# The build system.
18480
 
build_alias=$build_alias
18481
 
build=$build
18482
 
build_os=$build_os
18483
 
 
18484
 
# An echo program that does not interpret backslashes.
18485
 
echo=$lt_echo
18486
 
 
18487
 
# The archiver.
18488
 
AR=$lt_AR
18489
 
AR_FLAGS=$lt_AR_FLAGS
18490
 
 
18491
 
# A C compiler.
18492
 
LTCC=$lt_LTCC
18493
 
 
18494
 
# LTCC compiler flags.
18495
 
LTCFLAGS=$lt_LTCFLAGS
18496
 
 
18497
 
# A language-specific compiler.
18498
 
CC=$lt_compiler_GCJ
18499
 
 
18500
 
# Is the compiler the GNU C compiler?
18501
 
with_gcc=$GCC_GCJ
18502
 
 
18503
 
# An ERE matcher.
18504
 
EGREP=$lt_EGREP
18505
 
 
18506
 
# The linker used to build libraries.
18507
 
LD=$lt_LD_GCJ
18508
 
 
18509
 
# Whether we need hard or soft links.
18510
 
LN_S=$lt_LN_S
18511
 
 
18512
 
# A BSD-compatible nm program.
18513
 
NM=$lt_NM
18514
 
 
18515
 
# A symbol stripping program
18516
 
STRIP=$lt_STRIP
18517
 
 
18518
 
# Used to examine libraries when file_magic_cmd begins "file"
18519
 
MAGIC_CMD=$MAGIC_CMD
18520
 
 
18521
 
# Used on cygwin: DLL creation program.
18522
 
DLLTOOL="$DLLTOOL"
18523
 
 
18524
 
# Used on cygwin: object dumper.
18525
 
OBJDUMP="$OBJDUMP"
18526
 
 
18527
 
# Used on cygwin: assembler.
18528
 
AS="$AS"
18529
 
 
18530
 
# The name of the directory that contains temporary libtool files.
18531
 
objdir=$objdir
18532
 
 
18533
 
# How to create reloadable object files.
18534
 
reload_flag=$lt_reload_flag
18535
 
reload_cmds=$lt_reload_cmds
18536
 
 
18537
 
# How to pass a linker flag through the compiler.
18538
 
wl=$lt_lt_prog_compiler_wl_GCJ
18539
 
 
18540
 
# Object file suffix (normally "o").
18541
 
objext="$ac_objext"
18542
 
 
18543
 
# Old archive suffix (normally "a").
18544
 
libext="$libext"
18545
 
 
18546
 
# Shared library suffix (normally ".so").
18547
 
shrext_cmds='$shrext_cmds'
18548
 
 
18549
 
# Executable file suffix (normally "").
18550
 
exeext="$exeext"
18551
 
 
18552
 
# Additional compiler flags for building library objects.
18553
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18554
 
pic_mode=$pic_mode
18555
 
 
18556
 
# What is the maximum length of a command?
18557
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18558
 
 
18559
 
# Does compiler simultaneously support -c and -o options?
18560
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18561
 
 
18562
 
# Must we lock files when doing compilation?
18563
 
need_locks=$lt_need_locks
18564
 
 
18565
 
# Do we need the lib prefix for modules?
18566
 
need_lib_prefix=$need_lib_prefix
18567
 
 
18568
 
# Do we need a version for libraries?
18569
 
need_version=$need_version
18570
 
 
18571
 
# Whether dlopen is supported.
18572
 
dlopen_support=$enable_dlopen
18573
 
 
18574
 
# Whether dlopen of programs is supported.
18575
 
dlopen_self=$enable_dlopen_self
18576
 
 
18577
 
# Whether dlopen of statically linked programs is supported.
18578
 
dlopen_self_static=$enable_dlopen_self_static
18579
 
 
18580
 
# Compiler flag to prevent dynamic linking.
18581
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18582
 
 
18583
 
# Compiler flag to turn off builtin functions.
18584
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18585
 
 
18586
 
# Compiler flag to allow reflexive dlopens.
18587
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18588
 
 
18589
 
# Compiler flag to generate shared objects directly from archives.
18590
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18591
 
 
18592
 
# Compiler flag to generate thread-safe objects.
18593
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18594
 
 
18595
 
# Library versioning type.
18596
 
version_type=$version_type
18597
 
 
18598
 
# Format of library name prefix.
18599
 
libname_spec=$lt_libname_spec
18600
 
 
18601
 
# List of archive names.  First name is the real one, the rest are links.
18602
 
# The last name is the one that the linker finds with -lNAME.
18603
 
library_names_spec=$lt_library_names_spec
18604
 
 
18605
 
# The coded name of the library, if different from the real name.
18606
 
soname_spec=$lt_soname_spec
18607
 
 
18608
 
# Commands used to build and install an old-style archive.
18609
 
RANLIB=$lt_RANLIB
18610
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
18611
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18612
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18613
 
 
18614
 
# Create an old-style archive from a shared archive.
18615
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18616
 
 
18617
 
# Create a temporary old-style archive to link instead of a shared archive.
18618
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18619
 
 
18620
 
# Commands used to build and install a shared archive.
18621
 
archive_cmds=$lt_archive_cmds_GCJ
18622
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18623
 
postinstall_cmds=$lt_postinstall_cmds
18624
 
postuninstall_cmds=$lt_postuninstall_cmds
18625
 
 
18626
 
# Commands used to build a loadable module (assumed same as above if empty)
18627
 
module_cmds=$lt_module_cmds_GCJ
18628
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18629
 
 
18630
 
# Commands to strip libraries.
18631
 
old_striplib=$lt_old_striplib
18632
 
striplib=$lt_striplib
18633
 
 
18634
 
# Dependencies to place before the objects being linked to create a
18635
 
# shared library.
18636
 
predep_objects=$lt_predep_objects_GCJ
18637
 
 
18638
 
# Dependencies to place after the objects being linked to create a
18639
 
# shared library.
18640
 
postdep_objects=$lt_postdep_objects_GCJ
18641
 
 
18642
 
# Dependencies to place before the objects being linked to create a
18643
 
# shared library.
18644
 
predeps=$lt_predeps_GCJ
18645
 
 
18646
 
# Dependencies to place after the objects being linked to create a
18647
 
# shared library.
18648
 
postdeps=$lt_postdeps_GCJ
18649
 
 
18650
 
# The library search path used internally by the compiler when linking
18651
 
# a shared library.
18652
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18653
 
 
18654
 
# Method to check whether dependent libraries are shared objects.
18655
 
deplibs_check_method=$lt_deplibs_check_method
18656
 
 
18657
 
# Command to use when deplibs_check_method == file_magic.
18658
 
file_magic_cmd=$lt_file_magic_cmd
18659
 
 
18660
 
# Flag that allows shared libraries with undefined symbols to be built.
18661
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18662
 
 
18663
 
# Flag that forces no undefined symbols.
18664
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
18665
 
 
18666
 
# Commands used to finish a libtool library installation in a directory.
18667
 
finish_cmds=$lt_finish_cmds
18668
 
 
18669
 
# Same as above, but a single script fragment to be evaled but not shown.
18670
 
finish_eval=$lt_finish_eval
18671
 
 
18672
 
# Take the output of nm and produce a listing of raw symbols and C names.
18673
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18674
 
 
18675
 
# Transform the output of nm in a proper C declaration
18676
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18677
 
 
18678
 
# Transform the output of nm in a C name address pair
18679
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18680
 
 
18681
 
# This is the shared library runtime path variable.
18682
 
runpath_var=$runpath_var
18683
 
 
18684
 
# This is the shared library path variable.
18685
 
shlibpath_var=$shlibpath_var
18686
 
 
18687
 
# Is shlibpath searched before the hard-coded library search path?
18688
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18689
 
 
18690
 
# How to hardcode a shared library path into an executable.
18691
 
hardcode_action=$hardcode_action_GCJ
18692
 
 
18693
 
# Whether we should hardcode library paths into libraries.
18694
 
hardcode_into_libs=$hardcode_into_libs
18695
 
 
18696
 
# Flag to hardcode \$libdir into a binary during linking.
18697
 
# This must work even if \$libdir does not exist.
18698
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18699
 
 
18700
 
# If ld is used when linking, flag to hardcode \$libdir into
18701
 
# a binary during linking. This must work even if \$libdir does
18702
 
# not exist.
18703
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18704
 
 
18705
 
# Whether we need a single -rpath flag with a separated argument.
18706
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18707
 
 
18708
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18709
 
# resulting binary.
18710
 
hardcode_direct=$hardcode_direct_GCJ
18711
 
 
18712
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18713
 
# resulting binary.
18714
 
hardcode_minus_L=$hardcode_minus_L_GCJ
18715
 
 
18716
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18717
 
# the resulting binary.
18718
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18719
 
 
18720
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18721
 
# and all subsequent libraries and executables linked against it.
18722
 
hardcode_automatic=$hardcode_automatic_GCJ
18723
 
 
18724
 
# Variables whose values should be saved in libtool wrapper scripts and
18725
 
# restored at relink time.
18726
 
variables_saved_for_relink="$variables_saved_for_relink"
18727
 
 
18728
 
# Whether libtool must link a program against all its dependency libraries.
18729
 
link_all_deplibs=$link_all_deplibs_GCJ
18730
 
 
18731
 
# Compile-time system search path for libraries
18732
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18733
 
 
18734
 
# Run-time system search path for libraries
18735
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18736
 
 
18737
 
# Fix the shell variable \$srcfile for the compiler.
18738
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
18739
 
 
18740
 
# Set to yes if exported symbols are required.
18741
 
always_export_symbols=$always_export_symbols_GCJ
18742
 
 
18743
 
# The commands to list exported symbols.
18744
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18745
 
 
18746
 
# The commands to extract the exported symbol list from a shared archive.
18747
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18748
 
 
18749
 
# Symbols that should not be listed in the preloaded symbols.
18750
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
18751
 
 
18752
 
# Symbols that must always be exported.
18753
 
include_expsyms=$lt_include_expsyms_GCJ
18754
 
 
18755
 
# ### END LIBTOOL TAG CONFIG: $tagname
18756
 
 
18757
 
__EOF__
18758
 
 
18759
 
 
18760
 
else
18761
 
  # If there is no Makefile yet, we rely on a make rule to execute
18762
 
  # `config.status --recheck' to rerun these tests and create the
18763
 
  # libtool script then.
18764
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18765
 
  if test -f "$ltmain_in"; then
18766
 
    test -f Makefile && make "$ltmain"
18767
 
  fi
18768
 
fi
18769
 
 
18770
 
 
18771
 
ac_ext=c
18772
 
ac_cpp='$CPP $CPPFLAGS'
18773
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18776
 
 
18777
 
CC="$lt_save_CC"
18778
 
 
18779
 
        else
18780
 
          tagname=""
18781
 
        fi
18782
 
        ;;
18783
 
 
18784
 
      RC)
18785
 
 
18786
 
 
18787
 
# Source file extension for RC test sources.
18788
 
ac_ext=rc
18789
 
 
18790
 
# Object file extension for compiled RC test sources.
18791
 
objext=o
18792
 
objext_RC=$objext
18793
 
 
18794
 
# Code to be used in simple compile tests
18795
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18796
 
 
18797
 
# Code to be used in simple link tests
18798
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
18799
 
 
18800
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18801
 
 
18802
 
# If no C compiler was specified, use CC.
18803
 
LTCC=${LTCC-"$CC"}
18804
 
 
18805
 
# If no C compiler flags were specified, use CFLAGS.
18806
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18807
 
 
18808
 
# Allow CC to be a program name with arguments.
18809
 
compiler=$CC
18810
 
 
18811
 
 
18812
 
# save warnings/boilerplate of simple test code
18813
 
ac_outfile=conftest.$ac_objext
18814
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18815
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18816
 
_lt_compiler_boilerplate=`cat conftest.err`
18817
 
$rm conftest*
18818
 
 
18819
 
ac_outfile=conftest.$ac_objext
18820
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18821
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18822
 
_lt_linker_boilerplate=`cat conftest.err`
18823
 
$rm conftest*
18824
 
 
18825
 
 
18826
 
# Allow CC to be a program name with arguments.
18827
 
lt_save_CC="$CC"
18828
 
CC=${RC-"windres"}
18829
 
compiler=$CC
18830
 
compiler_RC=$CC
18831
 
for cc_temp in $compiler""; do
18832
 
  case $cc_temp in
18833
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18834
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18835
 
    \-*) ;;
18836
 
    *) break;;
18837
 
  esac
18838
 
done
18839
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18840
 
 
18841
 
lt_cv_prog_compiler_c_o_RC=yes
18842
 
 
18843
 
# The else clause should only fire when bootstrapping the
18844
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18845
 
# with your package, and you will get complaints that there are
18846
 
# no rules to generate ltmain.sh.
18847
 
if test -f "$ltmain"; then
18848
 
  # See if we are running on zsh, and set the options which allow our commands through
18849
 
  # without removal of \ escapes.
18850
 
  if test -n "${ZSH_VERSION+set}" ; then
18851
 
    setopt NO_GLOB_SUBST
18852
 
  fi
18853
 
  # Now quote all the things that may contain metacharacters while being
18854
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18855
 
  # variables and quote the copies for generation of the libtool script.
18856
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18857
 
    SED SHELL STRIP \
18858
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18859
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18860
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18861
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18862
 
    lt_cv_sys_global_symbol_to_c_name_address \
18863
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18864
 
    old_postinstall_cmds old_postuninstall_cmds \
18865
 
    compiler_RC \
18866
 
    CC_RC \
18867
 
    LD_RC \
18868
 
    lt_prog_compiler_wl_RC \
18869
 
    lt_prog_compiler_pic_RC \
18870
 
    lt_prog_compiler_static_RC \
18871
 
    lt_prog_compiler_no_builtin_flag_RC \
18872
 
    export_dynamic_flag_spec_RC \
18873
 
    thread_safe_flag_spec_RC \
18874
 
    whole_archive_flag_spec_RC \
18875
 
    enable_shared_with_static_runtimes_RC \
18876
 
    old_archive_cmds_RC \
18877
 
    old_archive_from_new_cmds_RC \
18878
 
    predep_objects_RC \
18879
 
    postdep_objects_RC \
18880
 
    predeps_RC \
18881
 
    postdeps_RC \
18882
 
    compiler_lib_search_path_RC \
18883
 
    archive_cmds_RC \
18884
 
    archive_expsym_cmds_RC \
18885
 
    postinstall_cmds_RC \
18886
 
    postuninstall_cmds_RC \
18887
 
    old_archive_from_expsyms_cmds_RC \
18888
 
    allow_undefined_flag_RC \
18889
 
    no_undefined_flag_RC \
18890
 
    export_symbols_cmds_RC \
18891
 
    hardcode_libdir_flag_spec_RC \
18892
 
    hardcode_libdir_flag_spec_ld_RC \
18893
 
    hardcode_libdir_separator_RC \
18894
 
    hardcode_automatic_RC \
18895
 
    module_cmds_RC \
18896
 
    module_expsym_cmds_RC \
18897
 
    lt_cv_prog_compiler_c_o_RC \
18898
 
    exclude_expsyms_RC \
18899
 
    include_expsyms_RC; do
18900
 
 
18901
 
    case $var in
18902
 
    old_archive_cmds_RC | \
18903
 
    old_archive_from_new_cmds_RC | \
18904
 
    archive_cmds_RC | \
18905
 
    archive_expsym_cmds_RC | \
18906
 
    module_cmds_RC | \
18907
 
    module_expsym_cmds_RC | \
18908
 
    old_archive_from_expsyms_cmds_RC | \
18909
 
    export_symbols_cmds_RC | \
18910
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18911
 
    postinstall_cmds | postuninstall_cmds | \
18912
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18913
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18914
 
      # Double-quote double-evaled strings.
18915
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18916
 
      ;;
18917
 
    *)
18918
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18919
 
      ;;
18920
 
    esac
18921
 
  done
18922
 
 
18923
 
  case $lt_echo in
18924
 
  *'\$0 --fallback-echo"')
18925
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18926
 
    ;;
18927
 
  esac
18928
 
 
18929
 
cfgfile="$ofile"
18930
 
 
18931
 
  cat <<__EOF__ >> "$cfgfile"
18932
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18933
 
 
18934
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18935
 
 
18936
 
# Shell to use when invoking shell scripts.
18937
 
SHELL=$lt_SHELL
18938
 
 
18939
 
# Whether or not to build shared libraries.
18940
 
build_libtool_libs=$enable_shared
18941
 
 
18942
 
# Whether or not to build static libraries.
18943
 
build_old_libs=$enable_static
18944
 
 
18945
 
# Whether or not to add -lc for building shared libraries.
18946
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
18947
 
 
18948
 
# Whether or not to disallow shared libs when runtime libs are static
18949
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18950
 
 
18951
 
# Whether or not to optimize for fast installation.
18952
 
fast_install=$enable_fast_install
18953
 
 
18954
 
# The host system.
18955
 
host_alias=$host_alias
18956
 
host=$host
18957
 
host_os=$host_os
18958
 
 
18959
 
# The build system.
18960
 
build_alias=$build_alias
18961
 
build=$build
18962
 
build_os=$build_os
18963
 
 
18964
 
# An echo program that does not interpret backslashes.
18965
 
echo=$lt_echo
18966
 
 
18967
 
# The archiver.
18968
 
AR=$lt_AR
18969
 
AR_FLAGS=$lt_AR_FLAGS
18970
 
 
18971
 
# A C compiler.
18972
 
LTCC=$lt_LTCC
18973
 
 
18974
 
# LTCC compiler flags.
18975
 
LTCFLAGS=$lt_LTCFLAGS
18976
 
 
18977
 
# A language-specific compiler.
18978
 
CC=$lt_compiler_RC
18979
 
 
18980
 
# Is the compiler the GNU C compiler?
18981
 
with_gcc=$GCC_RC
18982
 
 
18983
 
# An ERE matcher.
18984
 
EGREP=$lt_EGREP
18985
 
 
18986
 
# The linker used to build libraries.
18987
 
LD=$lt_LD_RC
18988
 
 
18989
 
# Whether we need hard or soft links.
18990
 
LN_S=$lt_LN_S
18991
 
 
18992
 
# A BSD-compatible nm program.
18993
 
NM=$lt_NM
18994
 
 
18995
 
# A symbol stripping program
18996
 
STRIP=$lt_STRIP
18997
 
 
18998
 
# Used to examine libraries when file_magic_cmd begins "file"
18999
 
MAGIC_CMD=$MAGIC_CMD
19000
 
 
19001
 
# Used on cygwin: DLL creation program.
19002
 
DLLTOOL="$DLLTOOL"
19003
 
 
19004
 
# Used on cygwin: object dumper.
19005
 
OBJDUMP="$OBJDUMP"
19006
 
 
19007
 
# Used on cygwin: assembler.
19008
 
AS="$AS"
19009
 
 
19010
 
# The name of the directory that contains temporary libtool files.
19011
 
objdir=$objdir
19012
 
 
19013
 
# How to create reloadable object files.
19014
 
reload_flag=$lt_reload_flag
19015
 
reload_cmds=$lt_reload_cmds
19016
 
 
19017
 
# How to pass a linker flag through the compiler.
19018
 
wl=$lt_lt_prog_compiler_wl_RC
19019
 
 
19020
 
# Object file suffix (normally "o").
19021
 
objext="$ac_objext"
19022
 
 
19023
 
# Old archive suffix (normally "a").
19024
 
libext="$libext"
19025
 
 
19026
 
# Shared library suffix (normally ".so").
19027
 
shrext_cmds='$shrext_cmds'
19028
 
 
19029
 
# Executable file suffix (normally "").
19030
 
exeext="$exeext"
19031
 
 
19032
 
# Additional compiler flags for building library objects.
19033
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19034
 
pic_mode=$pic_mode
19035
 
 
19036
 
# What is the maximum length of a command?
19037
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19038
 
 
19039
 
# Does compiler simultaneously support -c and -o options?
19040
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19041
 
 
19042
 
# Must we lock files when doing compilation?
19043
 
need_locks=$lt_need_locks
19044
 
 
19045
 
# Do we need the lib prefix for modules?
19046
 
need_lib_prefix=$need_lib_prefix
19047
 
 
19048
 
# Do we need a version for libraries?
19049
 
need_version=$need_version
19050
 
 
19051
 
# Whether dlopen is supported.
19052
 
dlopen_support=$enable_dlopen
19053
 
 
19054
 
# Whether dlopen of programs is supported.
19055
 
dlopen_self=$enable_dlopen_self
19056
 
 
19057
 
# Whether dlopen of statically linked programs is supported.
19058
 
dlopen_self_static=$enable_dlopen_self_static
19059
 
 
19060
 
# Compiler flag to prevent dynamic linking.
19061
 
link_static_flag=$lt_lt_prog_compiler_static_RC
19062
 
 
19063
 
# Compiler flag to turn off builtin functions.
19064
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19065
 
 
19066
 
# Compiler flag to allow reflexive dlopens.
19067
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19068
 
 
19069
 
# Compiler flag to generate shared objects directly from archives.
19070
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19071
 
 
19072
 
# Compiler flag to generate thread-safe objects.
19073
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19074
 
 
19075
 
# Library versioning type.
19076
 
version_type=$version_type
19077
 
 
19078
 
# Format of library name prefix.
19079
 
libname_spec=$lt_libname_spec
19080
 
 
19081
 
# List of archive names.  First name is the real one, the rest are links.
19082
 
# The last name is the one that the linker finds with -lNAME.
19083
 
library_names_spec=$lt_library_names_spec
19084
 
 
19085
 
# The coded name of the library, if different from the real name.
19086
 
soname_spec=$lt_soname_spec
19087
 
 
19088
 
# Commands used to build and install an old-style archive.
19089
 
RANLIB=$lt_RANLIB
19090
 
old_archive_cmds=$lt_old_archive_cmds_RC
19091
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19092
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19093
 
 
19094
 
# Create an old-style archive from a shared archive.
19095
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19096
 
 
19097
 
# Create a temporary old-style archive to link instead of a shared archive.
19098
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19099
 
 
19100
 
# Commands used to build and install a shared archive.
19101
 
archive_cmds=$lt_archive_cmds_RC
19102
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19103
 
postinstall_cmds=$lt_postinstall_cmds
19104
 
postuninstall_cmds=$lt_postuninstall_cmds
19105
 
 
19106
 
# Commands used to build a loadable module (assumed same as above if empty)
19107
 
module_cmds=$lt_module_cmds_RC
19108
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
19109
 
 
19110
 
# Commands to strip libraries.
19111
 
old_striplib=$lt_old_striplib
19112
 
striplib=$lt_striplib
19113
 
 
19114
 
# Dependencies to place before the objects being linked to create a
19115
 
# shared library.
19116
 
predep_objects=$lt_predep_objects_RC
19117
 
 
19118
 
# Dependencies to place after the objects being linked to create a
19119
 
# shared library.
19120
 
postdep_objects=$lt_postdep_objects_RC
19121
 
 
19122
 
# Dependencies to place before the objects being linked to create a
19123
 
# shared library.
19124
 
predeps=$lt_predeps_RC
19125
 
 
19126
 
# Dependencies to place after the objects being linked to create a
19127
 
# shared library.
19128
 
postdeps=$lt_postdeps_RC
19129
 
 
19130
 
# The library search path used internally by the compiler when linking
19131
 
# a shared library.
19132
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19133
 
 
19134
 
# Method to check whether dependent libraries are shared objects.
19135
 
deplibs_check_method=$lt_deplibs_check_method
19136
 
 
19137
 
# Command to use when deplibs_check_method == file_magic.
19138
 
file_magic_cmd=$lt_file_magic_cmd
19139
 
 
19140
 
# Flag that allows shared libraries with undefined symbols to be built.
19141
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
19142
 
 
19143
 
# Flag that forces no undefined symbols.
19144
 
no_undefined_flag=$lt_no_undefined_flag_RC
19145
 
 
19146
 
# Commands used to finish a libtool library installation in a directory.
19147
 
finish_cmds=$lt_finish_cmds
19148
 
 
19149
 
# Same as above, but a single script fragment to be evaled but not shown.
19150
 
finish_eval=$lt_finish_eval
19151
 
 
19152
 
# Take the output of nm and produce a listing of raw symbols and C names.
19153
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19154
 
 
19155
 
# Transform the output of nm in a proper C declaration
19156
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19157
 
 
19158
 
# Transform the output of nm in a C name address pair
19159
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19160
 
 
19161
 
# This is the shared library runtime path variable.
19162
 
runpath_var=$runpath_var
19163
 
 
19164
 
# This is the shared library path variable.
19165
 
shlibpath_var=$shlibpath_var
19166
 
 
19167
 
# Is shlibpath searched before the hard-coded library search path?
19168
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19169
 
 
19170
 
# How to hardcode a shared library path into an executable.
19171
 
hardcode_action=$hardcode_action_RC
19172
 
 
19173
 
# Whether we should hardcode library paths into libraries.
19174
 
hardcode_into_libs=$hardcode_into_libs
19175
 
 
19176
 
# Flag to hardcode \$libdir into a binary during linking.
19177
 
# This must work even if \$libdir does not exist.
19178
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19179
 
 
19180
 
# If ld is used when linking, flag to hardcode \$libdir into
19181
 
# a binary during linking. This must work even if \$libdir does
19182
 
# not exist.
19183
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19184
 
 
19185
 
# Whether we need a single -rpath flag with a separated argument.
19186
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19187
 
 
19188
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19189
 
# resulting binary.
19190
 
hardcode_direct=$hardcode_direct_RC
19191
 
 
19192
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19193
 
# resulting binary.
19194
 
hardcode_minus_L=$hardcode_minus_L_RC
19195
 
 
19196
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19197
 
# the resulting binary.
19198
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19199
 
 
19200
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19201
 
# and all subsequent libraries and executables linked against it.
19202
 
hardcode_automatic=$hardcode_automatic_RC
19203
 
 
19204
 
# Variables whose values should be saved in libtool wrapper scripts and
19205
 
# restored at relink time.
19206
 
variables_saved_for_relink="$variables_saved_for_relink"
19207
 
 
19208
 
# Whether libtool must link a program against all its dependency libraries.
19209
 
link_all_deplibs=$link_all_deplibs_RC
19210
 
 
19211
 
# Compile-time system search path for libraries
19212
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19213
 
 
19214
 
# Run-time system search path for libraries
19215
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19216
 
 
19217
 
# Fix the shell variable \$srcfile for the compiler.
19218
 
fix_srcfile_path="$fix_srcfile_path_RC"
19219
 
 
19220
 
# Set to yes if exported symbols are required.
19221
 
always_export_symbols=$always_export_symbols_RC
19222
 
 
19223
 
# The commands to list exported symbols.
19224
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
19225
 
 
19226
 
# The commands to extract the exported symbol list from a shared archive.
19227
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19228
 
 
19229
 
# Symbols that should not be listed in the preloaded symbols.
19230
 
exclude_expsyms=$lt_exclude_expsyms_RC
19231
 
 
19232
 
# Symbols that must always be exported.
19233
 
include_expsyms=$lt_include_expsyms_RC
19234
 
 
19235
 
# ### END LIBTOOL TAG CONFIG: $tagname
19236
 
 
19237
 
__EOF__
19238
 
 
19239
 
 
19240
 
else
19241
 
  # If there is no Makefile yet, we rely on a make rule to execute
19242
 
  # `config.status --recheck' to rerun these tests and create the
19243
 
  # libtool script then.
19244
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19245
 
  if test -f "$ltmain_in"; then
19246
 
    test -f Makefile && make "$ltmain"
19247
 
  fi
19248
 
fi
19249
 
 
19250
 
 
19251
 
ac_ext=c
19252
 
ac_cpp='$CPP $CPPFLAGS'
19253
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19256
 
 
19257
 
CC="$lt_save_CC"
19258
 
 
19259
 
        ;;
19260
 
 
19261
 
      *)
19262
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19263
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19264
 
   { (exit 1); exit 1; }; }
19265
 
        ;;
19266
 
      esac
19267
 
 
19268
 
      # Append the new tag name to the list of available tags.
19269
 
      if test -n "$tagname" ; then
19270
 
      available_tags="$available_tags $tagname"
19271
 
    fi
19272
 
    fi
19273
 
  done
19274
 
  IFS="$lt_save_ifs"
19275
 
 
19276
 
  # Now substitute the updated list of available tags.
19277
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19278
 
    mv "${ofile}T" "$ofile"
19279
 
    chmod +x "$ofile"
19280
 
  else
19281
 
    rm -f "${ofile}T"
19282
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19283
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19284
 
   { (exit 1); exit 1; }; }
19285
 
  fi
19286
 
fi
19287
 
 
19288
 
 
19289
 
 
19290
 
# This can be used to rebuild libtool when needed
19291
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19292
 
 
19293
 
# Always use our own libtool.
19294
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19295
 
 
19296
 
# Prevent multiple expansion
19297
 
 
19298
 
 
19299
 
 
19300
 
 
19301
 
 
19302
 
 
19303
 
 
19304
 
 
19305
 
 
19306
 
 
19307
 
 
19308
 
 
19309
 
 
19310
 
 
19311
 
 
19312
 
 
19313
 
 
19314
 
 
19315
 
 
19316
 
 
19317
 
 
19318
 
ALL_LINGUAS="be cs da es fr hr hu nl ro ru sv uk"
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
 
 
12053
 
 
12054
 
 
12055
 
 
12056
 
 
12057
 
 
12058
 
 
12059
 
 
12060
 
 
12061
 
 
12062
striplib=
 
12063
old_striplib=
 
12064
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12065
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
12066
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12067
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12068
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12069
  { echo "$as_me:$LINENO: result: yes" >&5
 
12070
echo "${ECHO_T}yes" >&6; }
 
12071
else
 
12072
# FIXME - insert some real tests, host_os isn't really good enough
 
12073
  case $host_os in
 
12074
  darwin*)
 
12075
    if test -n "$STRIP" ; then
 
12076
      striplib="$STRIP -x"
 
12077
      old_striplib="$STRIP -S"
 
12078
      { echo "$as_me:$LINENO: result: yes" >&5
 
12079
echo "${ECHO_T}yes" >&6; }
 
12080
    else
 
12081
      { echo "$as_me:$LINENO: result: no" >&5
 
12082
echo "${ECHO_T}no" >&6; }
 
12083
    fi
 
12084
    ;;
 
12085
  *)
 
12086
    { echo "$as_me:$LINENO: result: no" >&5
 
12087
echo "${ECHO_T}no" >&6; }
 
12088
    ;;
 
12089
  esac
 
12090
fi
 
12091
 
 
12092
 
 
12093
 
 
12094
 
 
12095
 
 
12096
 
 
12097
 
 
12098
 
 
12099
 
 
12100
 
 
12101
 
 
12102
 
 
12103
  # Report which library types will actually be built
 
12104
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12105
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
12106
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12107
echo "${ECHO_T}$can_build_shared" >&6; }
 
12108
 
 
12109
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12110
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
12111
  test "$can_build_shared" = "no" && enable_shared=no
 
12112
 
 
12113
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12114
  # are all built from PIC.
 
12115
  case $host_os in
 
12116
  aix3*)
 
12117
    test "$enable_shared" = yes && enable_static=no
 
12118
    if test -n "$RANLIB"; then
 
12119
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12120
      postinstall_cmds='$RANLIB $lib'
 
12121
    fi
 
12122
    ;;
 
12123
 
 
12124
  aix[4-9]*)
 
12125
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12126
      test "$enable_shared" = yes && enable_static=no
 
12127
    fi
 
12128
    ;;
 
12129
  esac
 
12130
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12131
echo "${ECHO_T}$enable_shared" >&6; }
 
12132
 
 
12133
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12134
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
12135
  # Make sure either enable_shared or enable_static is yes.
 
12136
  test "$enable_shared" = yes || enable_static=yes
 
12137
  { echo "$as_me:$LINENO: result: $enable_static" >&5
 
12138
echo "${ECHO_T}$enable_static" >&6; }
 
12139
 
 
12140
 
 
12141
 
 
12142
 
 
12143
fi
 
12144
ac_ext=c
 
12145
ac_cpp='$CPP $CPPFLAGS'
 
12146
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12147
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12148
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12149
 
 
12150
CC="$lt_save_CC"
 
12151
 
 
12152
 
 
12153
 
 
12154
 
 
12155
 
 
12156
 
 
12157
 
 
12158
 
 
12159
 
 
12160
 
 
12161
 
 
12162
 
 
12163
 
 
12164
        ac_config_commands="$ac_config_commands libtool"
 
12165
 
 
12166
 
 
12167
 
 
12168
 
 
12169
# Only expand once:
 
12170
 
 
12171
 
 
12172
 
 
12173
ALL_LINGUAS="be cs da en_GB eo es fr hr hu nl pl ro ru sk sv uk vi"
19319
12174
 
19320
12175
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19321
12176
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
19332
12187
 
19333
12188
 
19334
12189
 
 
12190
      GETTEXT_MACRO_VERSION=0.17
 
12191
 
 
12192
 
19335
12193
 
19336
12194
 
19337
12195
# Prepare PATH_SEPARATOR.
19607
12465
        test -n "$localedir" || localedir='${datadir}/locale'
19608
12466
 
19609
12467
 
 
12468
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
12469
 
 
12470
 
19610
12471
  ac_config_commands="$ac_config_commands po-directories"
19611
12472
 
19612
12473
 
20798
13659
  echo $ECHO_N "(cached) $ECHO_C" >&6
20799
13660
else
20800
13661
 
20801
 
      if test "$cross_compiling" = yes; then
20802
 
 
20803
 
          # Guess based on the CPU.
 
13662
      gt_cv_int_divbyzero_sigfpe=
 
13663
      case "$host_os" in
 
13664
        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
 
13665
          # On MacOS X 10.2 or newer, just assume the same as when cross-
 
13666
          # compiling. If we were to perform the real test, 1 Crash Report
 
13667
          # dialog window would pop up.
20804
13668
          case "$host_cpu" in
20805
 
            alpha* | i3456786 | m68k | s390*)
20806
 
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
20807
 
            *)
20808
 
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
13669
            i[34567]86 | x86_64)
 
13670
              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
20809
13671
          esac
 
13672
          ;;
 
13673
      esac
 
13674
      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
 
13675
        if test "$cross_compiling" = yes; then
 
13676
 
 
13677
            # Guess based on the CPU.
 
13678
            case "$host_cpu" in
 
13679
              alpha* | i[34567]86 | x86_64 | m68k | s390*)
 
13680
                gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
13681
              *)
 
13682
                gt_cv_int_divbyzero_sigfpe="guessing no";;
 
13683
            esac
20810
13684
 
20811
13685
else
20812
13686
  cat >conftest.$ac_ext <<_ACEOF
20820
13694
#include <signal.h>
20821
13695
 
20822
13696
static void
20823
 
#ifdef __cplusplus
20824
13697
sigfpe_handler (int sig)
20825
 
#else
20826
 
sigfpe_handler (sig) int sig;
20827
 
#endif
20828
13698
{
20829
13699
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20830
13700
  exit (sig != SIGFPE);
20886
13756
fi
20887
13757
 
20888
13758
 
 
13759
      fi
20889
13760
 
20890
13761
fi
20891
13762
{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20966
13837
  echo $ECHO_N "(cached) $ECHO_C" >&6
20967
13838
else
20968
13839
  cat >conftest.$ac_ext <<_ACEOF
20969
 
/* confdefs.h.  */
 
13840
 
 
13841
  /* confdefs.h.  */
20970
13842
_ACEOF
20971
13843
cat confdefs.h >>conftest.$ac_ext
20972
13844
cat >>conftest.$ac_ext <<_ACEOF
20973
13845
/* end confdefs.h.  */
20974
 
unsigned long long int ull = 18446744073709551615ULL;
20975
 
            typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
20976
 
                           ? 1 : -1)];
20977
 
           int i = 63;
 
13846
/* Test preprocessor.  */
 
13847
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
13848
        error in preprocessor;
 
13849
      #endif
 
13850
      #if ! (18446744073709551615ULL <= -1ull)
 
13851
        error in preprocessor;
 
13852
      #endif
 
13853
      /* Test literals.  */
 
13854
      long long int ll = 9223372036854775807ll;
 
13855
      long long int nll = -9223372036854775807LL;
 
13856
      unsigned long long int ull = 18446744073709551615ULL;
 
13857
      /* Test constant expressions.   */
 
13858
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
13859
                     ? 1 : -1)];
 
13860
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
13861
                     ? 1 : -1)];
 
13862
      int i = 63;
20978
13863
int
20979
13864
main ()
20980
13865
{
20981
 
unsigned long long int ullmax = 18446744073709551615ull;
20982
 
            return (ull << 63 | ull >> 63 | ull << i | ull >> i
20983
 
                    | ullmax / ull | ullmax % ull);
 
13866
/* Test availability of runtime routines for shift and division.  */
 
13867
      long long int llmax = 9223372036854775807ll;
 
13868
      unsigned long long int ullmax = 18446744073709551615ull;
 
13869
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
13870
              | (llmax / ll) | (llmax % ll)
 
13871
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
13872
              | (ullmax / ull) | (ullmax % ull));
20984
13873
  ;
20985
13874
  return 0;
20986
13875
}
 
13876
 
20987
13877
_ACEOF
20988
13878
rm -f conftest.$ac_objext conftest$ac_exeext
20989
13879
if { (ac_try="$ac_link"
21026
13916
 
21027
13917
 
21028
13918
 
21029
 
  ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
21030
 
  if test $ac_cv_type_unsigned_long_long = yes; then
21031
 
 
21032
 
cat >>confdefs.h <<\_ACEOF
21033
 
#define HAVE_UNSIGNED_LONG_LONG 1
21034
 
_ACEOF
21035
 
 
21036
 
  fi
21037
 
 
21038
 
 
21039
 
 
21040
13919
 
21041
13920
  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
21042
13921
 
21043
 
    test $ac_cv_type_unsigned_long_long = yes \
 
13922
    test $ac_cv_type_unsigned_long_long_int = yes \
21044
13923
      && ac_type='unsigned long long' \
21045
13924
      || ac_type='unsigned long'
21046
13925
 
21267
14146
 
21268
14147
 
21269
14148
 
21270
 
cat >>confdefs.h <<\_ACEOF
21271
 
#define _GNU_SOURCE 1
21272
 
_ACEOF
21273
 
 
21274
 
 
21275
 
 
21276
 
 
21277
 
 
21278
 
       # Check whether --enable-threads was given.
 
14149
 
 
14150
 
 
14151
 
 
14152
    # Check whether --enable-threads was given.
21279
14153
if test "${enable_threads+set}" = set; then
21280
14154
  enableval=$enable_threads; gl_use_threads=$enableval
21281
14155
else
21460
14334
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21461
14335
echo "${ECHO_T}$acl_cv_rpath" >&6; }
21462
14336
  wl="$acl_cv_wl"
21463
 
  libext="$acl_cv_libext"
21464
 
  shlibext="$acl_cv_shlibext"
21465
 
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21466
 
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21467
 
  hardcode_direct="$acl_cv_hardcode_direct"
21468
 
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
14337
  acl_libext="$acl_cv_libext"
 
14338
  acl_shlibext="$acl_cv_shlibext"
 
14339
  acl_libname_spec="$acl_cv_libname_spec"
 
14340
  acl_library_names_spec="$acl_cv_library_names_spec"
 
14341
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
14342
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
14343
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
14344
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
21469
14345
    # Check whether --enable-rpath was given.
21470
14346
if test "${enable_rpath+set}" = set; then
21471
14347
  enableval=$enable_rpath; :
22185
15061
 
22186
15062
 
22187
15063
 
 
15064
 
22188
15065
    use_additional=yes
22189
15066
 
22190
15067
  acl_save_prefix="$prefix"
22229
15106
      LIBPTH=
22230
15107
  LTLIBPTH=
22231
15108
  INCPTH=
 
15109
  LIBPTH_PREFIX=
22232
15110
  rpathdirs=
22233
15111
  ltrpathdirs=
22234
15112
  names_already_handled=
22262
15140
          found_la=
22263
15141
          found_so=
22264
15142
          found_a=
 
15143
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
15144
          if test -n "$acl_shlibext"; then
 
15145
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
15146
          else
 
15147
            shrext=
 
15148
          fi
22265
15149
          if test $use_additional = yes; then
22266
 
            if test -n "$shlibext" \
22267
 
               && { test -f "$additional_libdir/lib$name.$shlibext" \
22268
 
                    || { test "$shlibext" = dll \
22269
 
                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
22270
 
              found_dir="$additional_libdir"
22271
 
              if test -f "$additional_libdir/lib$name.$shlibext"; then
22272
 
                found_so="$additional_libdir/lib$name.$shlibext"
 
15150
            dir="$additional_libdir"
 
15151
                                    if test -n "$acl_shlibext"; then
 
15152
              if test -f "$dir/$libname$shrext"; then
 
15153
                found_dir="$dir"
 
15154
                found_so="$dir/$libname$shrext"
22273
15155
              else
22274
 
                found_so="$additional_libdir/lib$name.dll.a"
22275
 
              fi
22276
 
              if test -f "$additional_libdir/lib$name.la"; then
22277
 
                found_la="$additional_libdir/lib$name.la"
22278
 
              fi
22279
 
            else
22280
 
              if test -f "$additional_libdir/lib$name.$libext"; then
22281
 
                found_dir="$additional_libdir"
22282
 
                found_a="$additional_libdir/lib$name.$libext"
22283
 
                if test -f "$additional_libdir/lib$name.la"; then
22284
 
                  found_la="$additional_libdir/lib$name.la"
 
15156
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
15157
                  ver=`(cd "$dir" && \
 
15158
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
15159
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
15160
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
15161
                        | sed 1q ) 2>/dev/null`
 
15162
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
15163
                    found_dir="$dir"
 
15164
                    found_so="$dir/$libname$shrext.$ver"
 
15165
                  fi
 
15166
                else
 
15167
                  eval library_names=\"$acl_library_names_spec\"
 
15168
                  for f in $library_names; do
 
15169
                    if test -f "$dir/$f"; then
 
15170
                      found_dir="$dir"
 
15171
                      found_so="$dir/$f"
 
15172
                      break
 
15173
                    fi
 
15174
                  done
22285
15175
                fi
22286
15176
              fi
22287
15177
            fi
 
15178
                        if test "X$found_dir" = "X"; then
 
15179
              if test -f "$dir/$libname.$acl_libext"; then
 
15180
                found_dir="$dir"
 
15181
                found_a="$dir/$libname.$acl_libext"
 
15182
              fi
 
15183
            fi
 
15184
            if test "X$found_dir" != "X"; then
 
15185
              if test -f "$dir/$libname.la"; then
 
15186
                found_la="$dir/$libname.la"
 
15187
              fi
 
15188
            fi
22288
15189
          fi
22289
15190
          if test "X$found_dir" = "X"; then
22290
15191
            for x in $LDFLAGS $LTLIBPTH; do
22300
15201
              case "$x" in
22301
15202
                -L*)
22302
15203
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
22303
 
                  if test -n "$shlibext" \
22304
 
                     && { test -f "$dir/lib$name.$shlibext" \
22305
 
                          || { test "$shlibext" = dll \
22306
 
                               && test -f "$dir/lib$name.dll.a"; }; }; then
22307
 
                    found_dir="$dir"
22308
 
                    if test -f "$dir/lib$name.$shlibext"; then
22309
 
                      found_so="$dir/lib$name.$shlibext"
 
15204
                                    if test -n "$acl_shlibext"; then
 
15205
                    if test -f "$dir/$libname$shrext"; then
 
15206
                      found_dir="$dir"
 
15207
                      found_so="$dir/$libname$shrext"
22310
15208
                    else
22311
 
                      found_so="$dir/lib$name.dll.a"
22312
 
                    fi
22313
 
                    if test -f "$dir/lib$name.la"; then
22314
 
                      found_la="$dir/lib$name.la"
22315
 
                    fi
22316
 
                  else
22317
 
                    if test -f "$dir/lib$name.$libext"; then
22318
 
                      found_dir="$dir"
22319
 
                      found_a="$dir/lib$name.$libext"
22320
 
                      if test -f "$dir/lib$name.la"; then
22321
 
                        found_la="$dir/lib$name.la"
 
15209
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
15210
                        ver=`(cd "$dir" && \
 
15211
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
15212
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
15213
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
15214
                              | sed 1q ) 2>/dev/null`
 
15215
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
15216
                          found_dir="$dir"
 
15217
                          found_so="$dir/$libname$shrext.$ver"
 
15218
                        fi
 
15219
                      else
 
15220
                        eval library_names=\"$acl_library_names_spec\"
 
15221
                        for f in $library_names; do
 
15222
                          if test -f "$dir/$f"; then
 
15223
                            found_dir="$dir"
 
15224
                            found_so="$dir/$f"
 
15225
                            break
 
15226
                          fi
 
15227
                        done
22322
15228
                      fi
22323
15229
                    fi
22324
15230
                  fi
 
15231
                                    if test "X$found_dir" = "X"; then
 
15232
                    if test -f "$dir/$libname.$acl_libext"; then
 
15233
                      found_dir="$dir"
 
15234
                      found_a="$dir/$libname.$acl_libext"
 
15235
                    fi
 
15236
                  fi
 
15237
                  if test "X$found_dir" != "X"; then
 
15238
                    if test -f "$dir/$libname.la"; then
 
15239
                      found_la="$dir/$libname.la"
 
15240
                    fi
 
15241
                  fi
22325
15242
                  ;;
22326
15243
              esac
22327
15244
              if test "X$found_dir" != "X"; then
22345
15262
                if test -z "$haveit"; then
22346
15263
                  ltrpathdirs="$ltrpathdirs $found_dir"
22347
15264
                fi
22348
 
                                if test "$hardcode_direct" = yes; then
 
15265
                                if test "$acl_hardcode_direct" = yes; then
22349
15266
                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22350
15267
                else
22351
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
15268
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22352
15269
                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22353
15270
                                                            haveit=
22354
15271
                    for x in $rpathdirs; do
22380
15297
                    if test -z "$haveit"; then
22381
15298
                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
22382
15299
                    fi
22383
 
                    if test "$hardcode_minus_L" != no; then
 
15300
                    if test "$acl_hardcode_minus_L" != no; then
22384
15301
                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
22385
15302
                    else
22386
15303
                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
22399
15316
            case "$found_dir" in
22400
15317
              */$acl_libdirstem | */$acl_libdirstem/)
22401
15318
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
15319
                LIBPTH_PREFIX="$basedir"
22402
15320
                additional_includedir="$basedir/include"
22403
15321
                ;;
22404
15322
            esac
22549
15467
    done
22550
15468
  done
22551
15469
  if test "X$rpathdirs" != "X"; then
22552
 
    if test -n "$hardcode_libdir_separator"; then
 
15470
    if test -n "$acl_hardcode_libdir_separator"; then
22553
15471
                        alldirs=
22554
15472
      for found_dir in $rpathdirs; do
22555
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
15473
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22556
15474
      done
22557
15475
            acl_save_libdir="$libdir"
22558
15476
      libdir="$alldirs"
22559
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
15477
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
22560
15478
      libdir="$acl_save_libdir"
22561
15479
      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
22562
15480
    else
22563
15481
            for found_dir in $rpathdirs; do
22564
15482
        acl_save_libdir="$libdir"
22565
15483
        libdir="$found_dir"
22566
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
15484
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
22567
15485
        libdir="$acl_save_libdir"
22568
15486
        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
22569
15487
      done
22578
15496
    ac_cv_libpth_libs="$LIBPTH"
22579
15497
    ac_cv_libpth_ltlibs="$LTLIBPTH"
22580
15498
    ac_cv_libpth_cppflags="$INCPTH"
 
15499
    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
22581
15500
 
22582
15501
fi
22583
15502
{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
22585
15504
  LIBPTH="$ac_cv_libpth_libs"
22586
15505
  LTLIBPTH="$ac_cv_libpth_ltlibs"
22587
15506
  INCPTH="$ac_cv_libpth_cppflags"
 
15507
  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
22588
15508
 
22589
15509
  for element in $INCPTH; do
22590
15510
    haveit=
22610
15530
 
22611
15531
 
22612
15532
 
 
15533
 
22613
15534
      HAVE_LIBPTH=yes
22614
15535
 
22615
15536
 
23385
16306
main ()
23386
16307
{
23387
16308
char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
 
16309
       return !cs;
 
16310
 
23388
16311
  ;
23389
16312
  return 0;
23390
16313
}
23497
16420
  echo $ECHO_N "(cached) $ECHO_C" >&6
23498
16421
else
23499
16422
  cat >conftest.$ac_ext <<_ACEOF
23500
 
/* confdefs.h.  */
 
16423
 
 
16424
  /* confdefs.h.  */
23501
16425
_ACEOF
23502
16426
cat confdefs.h >>conftest.$ac_ext
23503
16427
cat >>conftest.$ac_ext <<_ACEOF
23504
16428
/* end confdefs.h.  */
23505
 
long long int ll = 9223372036854775807ll;
23506
 
            long long int nll = -9223372036854775807LL;
23507
 
            typedef int a[((-9223372036854775807LL < 0
23508
 
                            && 0 < 9223372036854775807ll)
23509
 
                           ? 1 : -1)];
23510
 
            int i = 63;
 
16429
/* Test preprocessor.  */
 
16430
      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
16431
        error in preprocessor;
 
16432
      #endif
 
16433
      #if ! (18446744073709551615ULL <= -1ull)
 
16434
        error in preprocessor;
 
16435
      #endif
 
16436
      /* Test literals.  */
 
16437
      long long int ll = 9223372036854775807ll;
 
16438
      long long int nll = -9223372036854775807LL;
 
16439
      unsigned long long int ull = 18446744073709551615ULL;
 
16440
      /* Test constant expressions.   */
 
16441
      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
 
16442
                     ? 1 : -1)];
 
16443
      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
 
16444
                     ? 1 : -1)];
 
16445
      int i = 63;
23511
16446
int
23512
16447
main ()
23513
16448
{
23514
 
long long int llmax = 9223372036854775807ll;
23515
 
            return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23516
 
                    | (llmax / ll) | (llmax % ll));
 
16449
/* Test availability of runtime routines for shift and division.  */
 
16450
      long long int llmax = 9223372036854775807ll;
 
16451
      unsigned long long int ullmax = 18446744073709551615ull;
 
16452
      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
 
16453
              | (llmax / ll) | (llmax % ll)
 
16454
              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
 
16455
              | (ullmax / ull) | (ullmax % ull));
23517
16456
  ;
23518
16457
  return 0;
23519
16458
}
 
16459
 
23520
16460
_ACEOF
23521
16461
rm -f conftest.$ac_objext conftest$ac_exeext
23522
16462
if { (ac_try="$ac_link"
23536
16476
         test ! -s conftest.err
23537
16477
       } && test -s conftest$ac_exeext &&
23538
16478
       $as_test_x conftest$ac_exeext; then
23539
 
  ac_cv_type_long_long_int=yes
 
16479
                        if test "$cross_compiling" = yes; then
 
16480
  ac_cv_type_long_long_int=yes
 
16481
else
 
16482
  cat >conftest.$ac_ext <<_ACEOF
 
16483
/* confdefs.h.  */
 
16484
_ACEOF
 
16485
cat confdefs.h >>conftest.$ac_ext
 
16486
cat >>conftest.$ac_ext <<_ACEOF
 
16487
/* end confdefs.h.  */
 
16488
#include <limits.h>
 
16489
               #ifndef LLONG_MAX
 
16490
               # define HALF \
 
16491
                        (1LL << (sizeof (long long int) * CHAR_BIT - 2))
 
16492
               # define LLONG_MAX (HALF - 1 + HALF)
 
16493
               #endif
 
16494
int
 
16495
main ()
 
16496
{
 
16497
long long int n = 1;
 
16498
               int i;
 
16499
               for (i = 0; ; i++)
 
16500
                 {
 
16501
                   long long int m = n << i;
 
16502
                   if (m >> i != n)
 
16503
                     return 1;
 
16504
                   if (LLONG_MAX / 2 < m)
 
16505
                     break;
 
16506
                 }
 
16507
               return 0;
 
16508
  ;
 
16509
  return 0;
 
16510
}
 
16511
_ACEOF
 
16512
rm -f conftest$ac_exeext
 
16513
if { (ac_try="$ac_link"
 
16514
case "(($ac_try" in
 
16515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16516
  *) ac_try_echo=$ac_try;;
 
16517
esac
 
16518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16519
  (eval "$ac_link") 2>&5
 
16520
  ac_status=$?
 
16521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16522
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16523
  { (case "(($ac_try" in
 
16524
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16525
  *) ac_try_echo=$ac_try;;
 
16526
esac
 
16527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16528
  (eval "$ac_try") 2>&5
 
16529
  ac_status=$?
 
16530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16531
  (exit $ac_status); }; }; then
 
16532
  ac_cv_type_long_long_int=yes
 
16533
else
 
16534
  echo "$as_me: program exited with status $ac_status" >&5
 
16535
echo "$as_me: failed program was:" >&5
 
16536
sed 's/^/| /' conftest.$ac_ext >&5
 
16537
 
 
16538
( exit $ac_status )
 
16539
ac_cv_type_long_long_int=no
 
16540
fi
 
16541
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16542
fi
 
16543
 
 
16544
 
23540
16545
else
23541
16546
  echo "$as_me: failed program was:" >&5
23542
16547
sed 's/^/| /' conftest.$ac_ext >&5
23558
16563
  fi
23559
16564
 
23560
16565
 
23561
 
  { echo "$as_me:$LINENO: checking for long double" >&5
23562
 
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
23563
 
if test "${gt_cv_c_long_double+set}" = set; then
23564
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
23565
 
else
23566
 
  if test "$GCC" = yes; then
23567
 
       gt_cv_c_long_double=yes
23568
 
     else
23569
 
       cat >conftest.$ac_ext <<_ACEOF
23570
 
/* confdefs.h.  */
23571
 
_ACEOF
23572
 
cat confdefs.h >>conftest.$ac_ext
23573
 
cat >>conftest.$ac_ext <<_ACEOF
23574
 
/* end confdefs.h.  */
23575
 
 
23576
 
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
23577
 
         long double foo = 0.0;
23578
 
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23579
 
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23580
 
 
23581
 
int
23582
 
main ()
23583
 
{
23584
 
 
23585
 
  ;
23586
 
  return 0;
23587
 
}
23588
 
_ACEOF
23589
 
rm -f conftest.$ac_objext
23590
 
if { (ac_try="$ac_compile"
23591
 
case "(($ac_try" in
23592
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593
 
  *) ac_try_echo=$ac_try;;
23594
 
esac
23595
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596
 
  (eval "$ac_compile") 2>conftest.er1
23597
 
  ac_status=$?
23598
 
  grep -v '^ *+' conftest.er1 >conftest.err
23599
 
  rm -f conftest.er1
23600
 
  cat conftest.err >&5
23601
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602
 
  (exit $ac_status); } && {
23603
 
         test -z "$ac_c_werror_flag" ||
23604
 
         test ! -s conftest.err
23605
 
       } && test -s conftest.$ac_objext; then
23606
 
  gt_cv_c_long_double=yes
23607
 
else
23608
 
  echo "$as_me: failed program was:" >&5
23609
 
sed 's/^/| /' conftest.$ac_ext >&5
23610
 
 
23611
 
        gt_cv_c_long_double=no
23612
 
fi
23613
 
 
23614
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23615
 
     fi
23616
 
fi
23617
 
{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
23618
 
echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
23619
 
  if test $gt_cv_c_long_double = yes; then
23620
 
 
23621
 
cat >>confdefs.h <<\_ACEOF
23622
 
#define HAVE_LONG_DOUBLE 1
23623
 
_ACEOF
23624
 
 
23625
 
  fi
23626
 
 
23627
 
 
23628
16566
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
23629
16567
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23630
16568
if test "${gt_cv_c_wchar_t+set}" = set; then
23695
16633
cat confdefs.h >>conftest.$ac_ext
23696
16634
cat >>conftest.$ac_ext <<_ACEOF
23697
16635
/* end confdefs.h.  */
 
16636
 
 
16637
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
16638
   <wchar.h>.
 
16639
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
16640
   before <wchar.h>.  */
 
16641
#include <stddef.h>
 
16642
#include <stdio.h>
 
16643
#include <time.h>
23698
16644
#include <wchar.h>
23699
16645
       wint_t foo = (wchar_t)'\0';
23700
16646
int
23829
16775
cat >>conftest.$ac_ext <<_ACEOF
23830
16776
/* end confdefs.h.  */
23831
16777
 
23832
 
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
16778
#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
23833
16779
  notposix
23834
16780
#endif
23835
16781
 
24434
17380
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24435
17381
fi
24436
17382
rm -f conftest.val
24437
 
 
24438
17383
      if test "$cross_compiling" = yes; then
24439
17384
  # Depending upon the size, compute the lo and hi bounds.
24440
17385
cat >conftest.$ac_ext <<_ACEOF
24744
17689
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24745
17690
fi
24746
17691
rm -f conftest.val
24747
 
 
24748
17692
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
24749
17693
        if test $fits_in_uint = 1; then
24750
17694
                              cat >conftest.$ac_ext <<_ACEOF
25744
18688
 
25745
18689
                if test "$enable_shared" = yes; then
25746
18690
    case "$host_os" in
25747
 
      cygwin*) is_woe32dll=yes ;;
 
18691
      mingw* | cygwin*) is_woe32dll=yes ;;
25748
18692
      *) is_woe32dll=no ;;
25749
18693
    esac
25750
18694
  else
25753
18697
  WOE32DLL=$is_woe32dll
25754
18698
 
25755
18699
 
 
18700
      case "$host_os" in
 
18701
    mingw* | cygwin*) is_woe32=yes ;;
 
18702
    *) is_woe32=no ;;
 
18703
  esac
 
18704
  WOE32=$is_woe32
 
18705
 
 
18706
  if test $WOE32 = yes; then
 
18707
        if test -n "$ac_tool_prefix"; then
 
18708
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
 
18709
set dummy ${ac_tool_prefix}windres; ac_word=$2
 
18710
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18711
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
18712
if test "${ac_cv_prog_WINDRES+set}" = set; then
 
18713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18714
else
 
18715
  if test -n "$WINDRES"; then
 
18716
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
 
18717
else
 
18718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18719
for as_dir in $PATH
 
18720
do
 
18721
  IFS=$as_save_IFS
 
18722
  test -z "$as_dir" && as_dir=.
 
18723
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18725
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
 
18726
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18727
    break 2
 
18728
  fi
 
18729
done
 
18730
done
 
18731
IFS=$as_save_IFS
 
18732
 
 
18733
fi
 
18734
fi
 
18735
WINDRES=$ac_cv_prog_WINDRES
 
18736
if test -n "$WINDRES"; then
 
18737
  { echo "$as_me:$LINENO: result: $WINDRES" >&5
 
18738
echo "${ECHO_T}$WINDRES" >&6; }
 
18739
else
 
18740
  { echo "$as_me:$LINENO: result: no" >&5
 
18741
echo "${ECHO_T}no" >&6; }
 
18742
fi
 
18743
 
 
18744
 
 
18745
fi
 
18746
if test -z "$ac_cv_prog_WINDRES"; then
 
18747
  ac_ct_WINDRES=$WINDRES
 
18748
  # Extract the first word of "windres", so it can be a program name with args.
 
18749
set dummy windres; ac_word=$2
 
18750
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
18752
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
 
18753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18754
else
 
18755
  if test -n "$ac_ct_WINDRES"; then
 
18756
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
 
18757
else
 
18758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18759
for as_dir in $PATH
 
18760
do
 
18761
  IFS=$as_save_IFS
 
18762
  test -z "$as_dir" && as_dir=.
 
18763
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18764
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18765
    ac_cv_prog_ac_ct_WINDRES="windres"
 
18766
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18767
    break 2
 
18768
  fi
 
18769
done
 
18770
done
 
18771
IFS=$as_save_IFS
 
18772
 
 
18773
fi
 
18774
fi
 
18775
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
 
18776
if test -n "$ac_ct_WINDRES"; then
 
18777
  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
 
18778
echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
 
18779
else
 
18780
  { echo "$as_me:$LINENO: result: no" >&5
 
18781
echo "${ECHO_T}no" >&6; }
 
18782
fi
 
18783
 
 
18784
  if test "x$ac_ct_WINDRES" = x; then
 
18785
    WINDRES=""
 
18786
  else
 
18787
    case $cross_compiling:$ac_tool_warned in
 
18788
yes:)
 
18789
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
18790
whose name does not start with the host triplet.  If you think this
 
18791
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
18792
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
18793
whose name does not start with the host triplet.  If you think this
 
18794
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
18795
ac_tool_warned=yes ;;
 
18796
esac
 
18797
    WINDRES=$ac_ct_WINDRES
 
18798
  fi
 
18799
else
 
18800
  WINDRES="$ac_cv_prog_WINDRES"
 
18801
fi
 
18802
 
 
18803
  fi
 
18804
 
 
18805
              case "$host_os" in
 
18806
    hpux*) LTLIBC="" ;;
 
18807
    *)     LTLIBC="-lc" ;;
 
18808
  esac
 
18809
 
 
18810
 
25756
18811
 
25757
18812
 
25758
18813
 
26023
19078
 
26024
19079
 
26025
19080
 
 
19081
 
26026
19082
    use_additional=yes
26027
19083
 
26028
19084
  acl_save_prefix="$prefix"
26067
19123
      LIBINTL=
26068
19124
  LTLIBINTL=
26069
19125
  INCINTL=
 
19126
  LIBINTL_PREFIX=
26070
19127
  rpathdirs=
26071
19128
  ltrpathdirs=
26072
19129
  names_already_handled=
26100
19157
          found_la=
26101
19158
          found_so=
26102
19159
          found_a=
 
19160
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
19161
          if test -n "$acl_shlibext"; then
 
19162
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
19163
          else
 
19164
            shrext=
 
19165
          fi
26103
19166
          if test $use_additional = yes; then
26104
 
            if test -n "$shlibext" \
26105
 
               && { test -f "$additional_libdir/lib$name.$shlibext" \
26106
 
                    || { test "$shlibext" = dll \
26107
 
                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
26108
 
              found_dir="$additional_libdir"
26109
 
              if test -f "$additional_libdir/lib$name.$shlibext"; then
26110
 
                found_so="$additional_libdir/lib$name.$shlibext"
 
19167
            dir="$additional_libdir"
 
19168
                                    if test -n "$acl_shlibext"; then
 
19169
              if test -f "$dir/$libname$shrext"; then
 
19170
                found_dir="$dir"
 
19171
                found_so="$dir/$libname$shrext"
26111
19172
              else
26112
 
                found_so="$additional_libdir/lib$name.dll.a"
26113
 
              fi
26114
 
              if test -f "$additional_libdir/lib$name.la"; then
26115
 
                found_la="$additional_libdir/lib$name.la"
26116
 
              fi
26117
 
            else
26118
 
              if test -f "$additional_libdir/lib$name.$libext"; then
26119
 
                found_dir="$additional_libdir"
26120
 
                found_a="$additional_libdir/lib$name.$libext"
26121
 
                if test -f "$additional_libdir/lib$name.la"; then
26122
 
                  found_la="$additional_libdir/lib$name.la"
 
19173
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
19174
                  ver=`(cd "$dir" && \
 
19175
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
19176
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
19177
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
19178
                        | sed 1q ) 2>/dev/null`
 
19179
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
19180
                    found_dir="$dir"
 
19181
                    found_so="$dir/$libname$shrext.$ver"
 
19182
                  fi
 
19183
                else
 
19184
                  eval library_names=\"$acl_library_names_spec\"
 
19185
                  for f in $library_names; do
 
19186
                    if test -f "$dir/$f"; then
 
19187
                      found_dir="$dir"
 
19188
                      found_so="$dir/$f"
 
19189
                      break
 
19190
                    fi
 
19191
                  done
26123
19192
                fi
26124
19193
              fi
26125
19194
            fi
 
19195
                        if test "X$found_dir" = "X"; then
 
19196
              if test -f "$dir/$libname.$acl_libext"; then
 
19197
                found_dir="$dir"
 
19198
                found_a="$dir/$libname.$acl_libext"
 
19199
              fi
 
19200
            fi
 
19201
            if test "X$found_dir" != "X"; then
 
19202
              if test -f "$dir/$libname.la"; then
 
19203
                found_la="$dir/$libname.la"
 
19204
              fi
 
19205
            fi
26126
19206
          fi
26127
19207
          if test "X$found_dir" = "X"; then
26128
19208
            for x in $LDFLAGS $LTLIBINTL; do
26138
19218
              case "$x" in
26139
19219
                -L*)
26140
19220
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26141
 
                  if test -n "$shlibext" \
26142
 
                     && { test -f "$dir/lib$name.$shlibext" \
26143
 
                          || { test "$shlibext" = dll \
26144
 
                               && test -f "$dir/lib$name.dll.a"; }; }; then
26145
 
                    found_dir="$dir"
26146
 
                    if test -f "$dir/lib$name.$shlibext"; then
26147
 
                      found_so="$dir/lib$name.$shlibext"
 
19221
                                    if test -n "$acl_shlibext"; then
 
19222
                    if test -f "$dir/$libname$shrext"; then
 
19223
                      found_dir="$dir"
 
19224
                      found_so="$dir/$libname$shrext"
26148
19225
                    else
26149
 
                      found_so="$dir/lib$name.dll.a"
26150
 
                    fi
26151
 
                    if test -f "$dir/lib$name.la"; then
26152
 
                      found_la="$dir/lib$name.la"
26153
 
                    fi
26154
 
                  else
26155
 
                    if test -f "$dir/lib$name.$libext"; then
26156
 
                      found_dir="$dir"
26157
 
                      found_a="$dir/lib$name.$libext"
26158
 
                      if test -f "$dir/lib$name.la"; then
26159
 
                        found_la="$dir/lib$name.la"
 
19226
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
19227
                        ver=`(cd "$dir" && \
 
19228
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
19229
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
19230
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
19231
                              | sed 1q ) 2>/dev/null`
 
19232
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
19233
                          found_dir="$dir"
 
19234
                          found_so="$dir/$libname$shrext.$ver"
 
19235
                        fi
 
19236
                      else
 
19237
                        eval library_names=\"$acl_library_names_spec\"
 
19238
                        for f in $library_names; do
 
19239
                          if test -f "$dir/$f"; then
 
19240
                            found_dir="$dir"
 
19241
                            found_so="$dir/$f"
 
19242
                            break
 
19243
                          fi
 
19244
                        done
26160
19245
                      fi
26161
19246
                    fi
26162
19247
                  fi
 
19248
                                    if test "X$found_dir" = "X"; then
 
19249
                    if test -f "$dir/$libname.$acl_libext"; then
 
19250
                      found_dir="$dir"
 
19251
                      found_a="$dir/$libname.$acl_libext"
 
19252
                    fi
 
19253
                  fi
 
19254
                  if test "X$found_dir" != "X"; then
 
19255
                    if test -f "$dir/$libname.la"; then
 
19256
                      found_la="$dir/$libname.la"
 
19257
                    fi
 
19258
                  fi
26163
19259
                  ;;
26164
19260
              esac
26165
19261
              if test "X$found_dir" != "X"; then
26183
19279
                if test -z "$haveit"; then
26184
19280
                  ltrpathdirs="$ltrpathdirs $found_dir"
26185
19281
                fi
26186
 
                                if test "$hardcode_direct" = yes; then
 
19282
                                if test "$acl_hardcode_direct" = yes; then
26187
19283
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26188
19284
                else
26189
 
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
19285
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26190
19286
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26191
19287
                                                            haveit=
26192
19288
                    for x in $rpathdirs; do
26218
19314
                    if test -z "$haveit"; then
26219
19315
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26220
19316
                    fi
26221
 
                    if test "$hardcode_minus_L" != no; then
 
19317
                    if test "$acl_hardcode_minus_L" != no; then
26222
19318
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26223
19319
                    else
26224
19320
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26237
19333
            case "$found_dir" in
26238
19334
              */$acl_libdirstem | */$acl_libdirstem/)
26239
19335
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
19336
                LIBINTL_PREFIX="$basedir"
26240
19337
                additional_includedir="$basedir/include"
26241
19338
                ;;
26242
19339
            esac
26387
19484
    done
26388
19485
  done
26389
19486
  if test "X$rpathdirs" != "X"; then
26390
 
    if test -n "$hardcode_libdir_separator"; then
 
19487
    if test -n "$acl_hardcode_libdir_separator"; then
26391
19488
                        alldirs=
26392
19489
      for found_dir in $rpathdirs; do
26393
 
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
19490
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
26394
19491
      done
26395
19492
            acl_save_libdir="$libdir"
26396
19493
      libdir="$alldirs"
26397
 
      eval flag=\"$hardcode_libdir_flag_spec\"
 
19494
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
26398
19495
      libdir="$acl_save_libdir"
26399
19496
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26400
19497
    else
26401
19498
            for found_dir in $rpathdirs; do
26402
19499
        acl_save_libdir="$libdir"
26403
19500
        libdir="$found_dir"
26404
 
        eval flag=\"$hardcode_libdir_flag_spec\"
 
19501
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
26405
19502
        libdir="$acl_save_libdir"
26406
19503
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26407
19504
      done
27365
20462
if test "${enable_vcut+set}" = set; then
27366
20463
  enableval=$enable_vcut; build_vcut="$enableval"
27367
20464
else
27368
 
  build_vcut="no"
 
20465
  build_vcut="yes"
27369
20466
fi
27370
20467
 
27371
20468
# Check whether --enable-vorbiscomment was given.
27378
20475
 
27379
20476
# Check whether --with-flac was given.
27380
20477
if test "${with_flac+set}" = set; then
27381
 
  withval=$with_flac; build_flac=no
 
20478
  withval=$with_flac; build_flac="$withval"
27382
20479
else
27383
20480
  build_flac="yes"
27384
20481
fi
27386
20483
 
27387
20484
# Check whether --with-speex was given.
27388
20485
if test "${with_speex+set}" = set; then
27389
 
  withval=$with_speex; build_speex=no
 
20486
  withval=$with_speex; build_speex="$withval"
27390
20487
else
27391
20488
  build_speex="yes"
27392
20489
fi
27393
20490
 
27394
20491
 
 
20492
# Check whether --with-kate was given.
 
20493
if test "${with_kate+set}" = set; then
 
20494
  withval=$with_kate; build_kate="$withval"
 
20495
else
 
20496
  build_kate="yes"
 
20497
fi
 
20498
 
 
20499
 
27395
20500
 
27396
20501
HAVE_OGG=no
27397
20502
# Extract the first word of "pkg-config", so it can be a program name with args.
27957
21062
        pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
27958
21063
    else
27959
21064
        if test -n "$PKG_CONFIG" && \
27960
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.1.1\"") >&5
27961
 
  ($PKG_CONFIG --exists --print-errors "vorbis >= 1.1.1") 2>&5
 
21065
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.3.0\"") >&5
 
21066
  ($PKG_CONFIG --exists --print-errors "vorbis >= 1.3.0") 2>&5
27962
21067
  ac_status=$?
27963
21068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964
21069
  (exit $ac_status); }; then
27965
 
  pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.1.1" 2>/dev/null`
 
21070
  pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.3.0" 2>/dev/null`
27966
21071
else
27967
21072
  pkg_failed=yes
27968
21073
fi
27975
21080
        pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
27976
21081
    else
27977
21082
        if test -n "$PKG_CONFIG" && \
27978
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.1.1\"") >&5
27979
 
  ($PKG_CONFIG --exists --print-errors "vorbis >= 1.1.1") 2>&5
 
21083
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.3.0\"") >&5
 
21084
  ($PKG_CONFIG --exists --print-errors "vorbis >= 1.3.0") 2>&5
27980
21085
  ac_status=$?
27981
21086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982
21087
  (exit $ac_status); }; then
27983
 
  pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.1.1" 2>/dev/null`
 
21088
  pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.3.0" 2>/dev/null`
27984
21089
else
27985
21090
  pkg_failed=yes
27986
21091
fi
27999
21104
        _pkg_short_errors_supported=no
28000
21105
fi
28001
21106
        if test $_pkg_short_errors_supported = yes; then
28002
 
                VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.1.1"`
 
21107
                VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.3.0"`
28003
21108
        else
28004
 
                VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.1.1"`
 
21109
                VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.3.0"`
28005
21110
        fi
28006
21111
        # Put the nasty error message in config.log where it belongs
28007
21112
        echo "$VORBIS_PKG_ERRORS" >&5
28022
21127
  VORBISFILE_LIBS="-lvorbisfile"
28023
21128
 
28024
21129
 
 
21130
  libs_save=$LIBS
 
21131
  LIBS="$OGG_LIBS $VORBIS_LIBS $VORBISFILE_LIBS"
 
21132
  { echo "$as_me:$LINENO: checking for ov_read_filter" >&5
 
21133
echo $ECHO_N "checking for ov_read_filter... $ECHO_C" >&6; }
 
21134
if test "${ac_cv_func_ov_read_filter+set}" = set; then
 
21135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21136
else
 
21137
  cat >conftest.$ac_ext <<_ACEOF
 
21138
/* confdefs.h.  */
 
21139
_ACEOF
 
21140
cat confdefs.h >>conftest.$ac_ext
 
21141
cat >>conftest.$ac_ext <<_ACEOF
 
21142
/* end confdefs.h.  */
 
21143
/* Define ov_read_filter to an innocuous variant, in case <limits.h> declares ov_read_filter.
 
21144
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21145
#define ov_read_filter innocuous_ov_read_filter
 
21146
 
 
21147
/* System header to define __stub macros and hopefully few prototypes,
 
21148
    which can conflict with char ov_read_filter (); below.
 
21149
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21150
    <limits.h> exists even on freestanding compilers.  */
 
21151
 
 
21152
#ifdef __STDC__
 
21153
# include <limits.h>
 
21154
#else
 
21155
# include <assert.h>
 
21156
#endif
 
21157
 
 
21158
#undef ov_read_filter
 
21159
 
 
21160
/* Override any GCC internal prototype to avoid an error.
 
21161
   Use char because int might match the return type of a GCC
 
21162
   builtin and then its argument prototype would still apply.  */
 
21163
#ifdef __cplusplus
 
21164
extern "C"
 
21165
#endif
 
21166
char ov_read_filter ();
 
21167
/* The GNU C library defines this for functions which it implements
 
21168
    to always fail with ENOSYS.  Some functions are actually named
 
21169
    something starting with __ and the normal name is an alias.  */
 
21170
#if defined __stub_ov_read_filter || defined __stub___ov_read_filter
 
21171
choke me
 
21172
#endif
 
21173
 
 
21174
int
 
21175
main ()
 
21176
{
 
21177
return ov_read_filter ();
 
21178
  ;
 
21179
  return 0;
 
21180
}
 
21181
_ACEOF
 
21182
rm -f conftest.$ac_objext conftest$ac_exeext
 
21183
if { (ac_try="$ac_link"
 
21184
case "(($ac_try" in
 
21185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21186
  *) ac_try_echo=$ac_try;;
 
21187
esac
 
21188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21189
  (eval "$ac_link") 2>conftest.er1
 
21190
  ac_status=$?
 
21191
  grep -v '^ *+' conftest.er1 >conftest.err
 
21192
  rm -f conftest.er1
 
21193
  cat conftest.err >&5
 
21194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21195
  (exit $ac_status); } && {
 
21196
         test -z "$ac_c_werror_flag" ||
 
21197
         test ! -s conftest.err
 
21198
       } && test -s conftest$ac_exeext &&
 
21199
       $as_test_x conftest$ac_exeext; then
 
21200
  ac_cv_func_ov_read_filter=yes
 
21201
else
 
21202
  echo "$as_me: failed program was:" >&5
 
21203
sed 's/^/| /' conftest.$ac_ext >&5
 
21204
 
 
21205
        ac_cv_func_ov_read_filter=no
 
21206
fi
 
21207
 
 
21208
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21209
      conftest$ac_exeext conftest.$ac_ext
 
21210
fi
 
21211
{ echo "$as_me:$LINENO: result: $ac_cv_func_ov_read_filter" >&5
 
21212
echo "${ECHO_T}$ac_cv_func_ov_read_filter" >&6; }
 
21213
if test $ac_cv_func_ov_read_filter = yes; then
 
21214
  have_ov_read_filter=yes
 
21215
else
 
21216
  have_ov_read_filter=no
 
21217
fi
 
21218
 
 
21219
  LIBS=$libs_save
 
21220
  if test "x$have_ov_read_filter" = "xyes"
 
21221
  then
 
21222
 
 
21223
cat >>confdefs.h <<\_ACEOF
 
21224
#define HAVE_OV_READ_FILTER 1
 
21225
_ACEOF
 
21226
 
 
21227
  fi
28025
21228
fi
28026
21229
if test "x$HAVE_VORBIS" = "xno"
28027
21230
then
28343
21546
 
28344
21547
  rm -f conf.vorbistest
28345
21548
 
 
21549
  { echo "$as_me:$LINENO: checking whether OV_ECTL_COUPLING_SET is declared" >&5
 
21550
echo $ECHO_N "checking whether OV_ECTL_COUPLING_SET is declared... $ECHO_C" >&6; }
 
21551
if test "${ac_cv_have_decl_OV_ECTL_COUPLING_SET+set}" = set; then
 
21552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21553
else
 
21554
  cat >conftest.$ac_ext <<_ACEOF
 
21555
/* confdefs.h.  */
 
21556
_ACEOF
 
21557
cat confdefs.h >>conftest.$ac_ext
 
21558
cat >>conftest.$ac_ext <<_ACEOF
 
21559
/* end confdefs.h.  */
 
21560
#include <vorbis/vorbisenc.h>
 
21561
 
 
21562
int
 
21563
main ()
 
21564
{
 
21565
#ifndef OV_ECTL_COUPLING_SET
 
21566
  (void) OV_ECTL_COUPLING_SET;
 
21567
#endif
 
21568
 
 
21569
  ;
 
21570
  return 0;
 
21571
}
 
21572
_ACEOF
 
21573
rm -f conftest.$ac_objext
 
21574
if { (ac_try="$ac_compile"
 
21575
case "(($ac_try" in
 
21576
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21577
  *) ac_try_echo=$ac_try;;
 
21578
esac
 
21579
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21580
  (eval "$ac_compile") 2>conftest.er1
 
21581
  ac_status=$?
 
21582
  grep -v '^ *+' conftest.er1 >conftest.err
 
21583
  rm -f conftest.er1
 
21584
  cat conftest.err >&5
 
21585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21586
  (exit $ac_status); } && {
 
21587
         test -z "$ac_c_werror_flag" ||
 
21588
         test ! -s conftest.err
 
21589
       } && test -s conftest.$ac_objext; then
 
21590
  ac_cv_have_decl_OV_ECTL_COUPLING_SET=yes
 
21591
else
 
21592
  echo "$as_me: failed program was:" >&5
 
21593
sed 's/^/| /' conftest.$ac_ext >&5
 
21594
 
 
21595
        ac_cv_have_decl_OV_ECTL_COUPLING_SET=no
 
21596
fi
 
21597
 
 
21598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21599
fi
 
21600
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_OV_ECTL_COUPLING_SET" >&5
 
21601
echo "${ECHO_T}$ac_cv_have_decl_OV_ECTL_COUPLING_SET" >&6; }
 
21602
 
 
21603
  if test "x$ac_cv_have_decl_OV_ECTL_COUPLING_SET" = "xno"
 
21604
  then
 
21605
    { { echo "$as_me:$LINENO: error: Vorbis >= 1.3.0 required !" >&5
 
21606
echo "$as_me: error: Vorbis >= 1.3.0 required !" >&2;}
 
21607
   { (exit 1); exit 1; }; }
 
21608
    HAVE_VORBIS=no
 
21609
  fi
 
21610
fi
 
21611
 
 
21612
 
 
21613
if test "x$have_ov_read_filter" = "xyes"; then
 
21614
  HAVE_OV_READ_FILTER_TRUE=
 
21615
  HAVE_OV_READ_FILTER_FALSE='#'
 
21616
else
 
21617
  HAVE_OV_READ_FILTER_TRUE='#'
 
21618
  HAVE_OV_READ_FILTER_FALSE=
28346
21619
fi
28347
21620
 
28348
21621
 
28419
21692
  SOCKET_LIBS="-lsocket"
28420
21693
fi
28421
21694
 
 
21695
{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
 
21696
echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
 
21697
if test "${ac_cv_lib_network_socket+set}" = set; then
 
21698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21699
else
 
21700
  ac_check_lib_save_LIBS=$LIBS
 
21701
LIBS="-lnetwork  $LIBS"
 
21702
cat >conftest.$ac_ext <<_ACEOF
 
21703
/* confdefs.h.  */
 
21704
_ACEOF
 
21705
cat confdefs.h >>conftest.$ac_ext
 
21706
cat >>conftest.$ac_ext <<_ACEOF
 
21707
/* end confdefs.h.  */
 
21708
 
 
21709
/* Override any GCC internal prototype to avoid an error.
 
21710
   Use char because int might match the return type of a GCC
 
21711
   builtin and then its argument prototype would still apply.  */
 
21712
#ifdef __cplusplus
 
21713
extern "C"
 
21714
#endif
 
21715
char socket ();
 
21716
int
 
21717
main ()
 
21718
{
 
21719
return socket ();
 
21720
  ;
 
21721
  return 0;
 
21722
}
 
21723
_ACEOF
 
21724
rm -f conftest.$ac_objext conftest$ac_exeext
 
21725
if { (ac_try="$ac_link"
 
21726
case "(($ac_try" in
 
21727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21728
  *) ac_try_echo=$ac_try;;
 
21729
esac
 
21730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21731
  (eval "$ac_link") 2>conftest.er1
 
21732
  ac_status=$?
 
21733
  grep -v '^ *+' conftest.er1 >conftest.err
 
21734
  rm -f conftest.er1
 
21735
  cat conftest.err >&5
 
21736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21737
  (exit $ac_status); } && {
 
21738
         test -z "$ac_c_werror_flag" ||
 
21739
         test ! -s conftest.err
 
21740
       } && test -s conftest$ac_exeext &&
 
21741
       $as_test_x conftest$ac_exeext; then
 
21742
  ac_cv_lib_network_socket=yes
 
21743
else
 
21744
  echo "$as_me: failed program was:" >&5
 
21745
sed 's/^/| /' conftest.$ac_ext >&5
 
21746
 
 
21747
        ac_cv_lib_network_socket=no
 
21748
fi
 
21749
 
 
21750
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21751
      conftest$ac_exeext conftest.$ac_ext
 
21752
LIBS=$ac_check_lib_save_LIBS
 
21753
fi
 
21754
{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
 
21755
echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
 
21756
if test $ac_cv_lib_network_socket = yes; then
 
21757
  SOCKET_LIBS="-lnetwork"
 
21758
fi
 
21759
 
28422
21760
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28423
21761
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
28424
21762
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29001
22339
  { echo "$as_me:$LINENO: result: checking for ogg123 requirements" >&5
29002
22340
echo "${ECHO_T}checking for ogg123 requirements" >&6; }
29003
22341
 
29004
 
# Check whether --with-ao was given.
29005
 
if test "${with_ao+set}" = set; then
29006
 
  withval=$with_ao; ao_prefix="$withval"
29007
 
else
29008
 
  ao_prefix=""
29009
 
fi
29010
 
 
29011
 
 
29012
 
# Check whether --with-ao-libraries was given.
29013
 
if test "${with_ao_libraries+set}" = set; then
29014
 
  withval=$with_ao_libraries; ao_libraries="$withval"
29015
 
else
29016
 
  ao_libraries=""
29017
 
fi
29018
 
 
29019
 
 
29020
 
# Check whether --with-ao-includes was given.
29021
 
if test "${with_ao_includes+set}" = set; then
29022
 
  withval=$with_ao_includes; ao_includes="$withval"
29023
 
else
29024
 
  ao_includes=""
29025
 
fi
29026
 
 
29027
 
# Check whether --enable-aotest was given.
29028
 
if test "${enable_aotest+set}" = set; then
29029
 
  enableval=$enable_aotest;
29030
 
else
29031
 
  enable_aotest=yes
29032
 
fi
29033
 
 
29034
 
 
29035
 
  if test "x$ao_prefix" != "xno"
29036
 
  then
29037
 
    if test "x$ao_libraries" != "x" ; then
29038
 
      AO_LIBS="-L$ao_libraries"
29039
 
  elif test "x$ao_prefix" = "xno" || test "x$ao_prefix" = "xyes" ; then
29040
 
    AO_LIBS=""
29041
 
    elif test "x$ao_prefix" != "x" -a "x$ao_prefix" != "xyes"; then
29042
 
      AO_LIBS="-L$ao_prefix/lib"
29043
 
    elif test "x$prefix" != "xNONE"; then
29044
 
      AO_LIBS="-L$prefix/lib"
29045
 
    fi
29046
 
 
29047
 
    if test "x$ao_includes" != "x" ; then
29048
 
      AO_CFLAGS="-I$ao_includes"
29049
 
  elif test "x$ao_prefix" = "xno" || test "x$ao_prefix" = "xyes" ; then
29050
 
    AO_CFLAGS=""
29051
 
    elif test "x$ao_prefix" != "x" -a "x$ao_prefix" != "xyes"; then
29052
 
      AO_CFLAGS="-I$ao_prefix/include"
29053
 
    elif test "x$prefix" != "xNONE"; then
29054
 
      AO_CFLAGS="-I$prefix/include"
29055
 
    fi
29056
 
 
29057
 
    # see where dl* and friends live
29058
 
 
29059
 
for ac_func in dlopen
29060
 
do
29061
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29062
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29063
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29064
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29065
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29066
 
else
29067
 
  cat >conftest.$ac_ext <<_ACEOF
29068
 
/* confdefs.h.  */
29069
 
_ACEOF
29070
 
cat confdefs.h >>conftest.$ac_ext
29071
 
cat >>conftest.$ac_ext <<_ACEOF
29072
 
/* end confdefs.h.  */
29073
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29074
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29075
 
#define $ac_func innocuous_$ac_func
29076
 
 
29077
 
/* System header to define __stub macros and hopefully few prototypes,
29078
 
    which can conflict with char $ac_func (); below.
29079
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29080
 
    <limits.h> exists even on freestanding compilers.  */
29081
 
 
29082
 
#ifdef __STDC__
29083
 
# include <limits.h>
29084
 
#else
29085
 
# include <assert.h>
29086
 
#endif
29087
 
 
29088
 
#undef $ac_func
29089
 
 
29090
 
/* Override any GCC internal prototype to avoid an error.
29091
 
   Use char because int might match the return type of a GCC
29092
 
   builtin and then its argument prototype would still apply.  */
29093
 
#ifdef __cplusplus
29094
 
extern "C"
29095
 
#endif
29096
 
char $ac_func ();
29097
 
/* The GNU C library defines this for functions which it implements
29098
 
    to always fail with ENOSYS.  Some functions are actually named
29099
 
    something starting with __ and the normal name is an alias.  */
29100
 
#if defined __stub_$ac_func || defined __stub___$ac_func
29101
 
choke me
29102
 
#endif
29103
 
 
29104
 
int
29105
 
main ()
29106
 
{
29107
 
return $ac_func ();
29108
 
  ;
29109
 
  return 0;
29110
 
}
29111
 
_ACEOF
29112
 
rm -f conftest.$ac_objext conftest$ac_exeext
29113
 
if { (ac_try="$ac_link"
29114
 
case "(($ac_try" in
29115
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116
 
  *) ac_try_echo=$ac_try;;
29117
 
esac
29118
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119
 
  (eval "$ac_link") 2>conftest.er1
29120
 
  ac_status=$?
29121
 
  grep -v '^ *+' conftest.er1 >conftest.err
29122
 
  rm -f conftest.er1
29123
 
  cat conftest.err >&5
29124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125
 
  (exit $ac_status); } && {
29126
 
         test -z "$ac_c_werror_flag" ||
29127
 
         test ! -s conftest.err
29128
 
       } && test -s conftest$ac_exeext &&
29129
 
       $as_test_x conftest$ac_exeext; then
29130
 
  eval "$as_ac_var=yes"
29131
 
else
29132
 
  echo "$as_me: failed program was:" >&5
29133
 
sed 's/^/| /' conftest.$ac_ext >&5
29134
 
 
29135
 
        eval "$as_ac_var=no"
29136
 
fi
29137
 
 
29138
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29139
 
      conftest$ac_exeext conftest.$ac_ext
29140
 
fi
29141
 
ac_res=`eval echo '${'$as_ac_var'}'`
29142
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
29143
 
echo "${ECHO_T}$ac_res" >&6; }
29144
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
29145
 
  cat >>confdefs.h <<_ACEOF
29146
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29147
 
_ACEOF
29148
 
 AO_DL_LIBS=""
29149
 
else
29150
 
 
29151
 
      { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29152
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
29153
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29154
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
29155
 
else
29156
 
  ac_check_lib_save_LIBS=$LIBS
29157
 
LIBS="-ldl  $LIBS"
29158
 
cat >conftest.$ac_ext <<_ACEOF
29159
 
/* confdefs.h.  */
29160
 
_ACEOF
29161
 
cat confdefs.h >>conftest.$ac_ext
29162
 
cat >>conftest.$ac_ext <<_ACEOF
29163
 
/* end confdefs.h.  */
29164
 
 
29165
 
/* Override any GCC internal prototype to avoid an error.
29166
 
   Use char because int might match the return type of a GCC
29167
 
   builtin and then its argument prototype would still apply.  */
29168
 
#ifdef __cplusplus
29169
 
extern "C"
29170
 
#endif
29171
 
char dlopen ();
29172
 
int
29173
 
main ()
29174
 
{
29175
 
return dlopen ();
29176
 
  ;
29177
 
  return 0;
29178
 
}
29179
 
_ACEOF
29180
 
rm -f conftest.$ac_objext conftest$ac_exeext
29181
 
if { (ac_try="$ac_link"
29182
 
case "(($ac_try" in
29183
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29184
 
  *) ac_try_echo=$ac_try;;
29185
 
esac
29186
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29187
 
  (eval "$ac_link") 2>conftest.er1
29188
 
  ac_status=$?
29189
 
  grep -v '^ *+' conftest.er1 >conftest.err
29190
 
  rm -f conftest.er1
29191
 
  cat conftest.err >&5
29192
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193
 
  (exit $ac_status); } && {
29194
 
         test -z "$ac_c_werror_flag" ||
29195
 
         test ! -s conftest.err
29196
 
       } && test -s conftest$ac_exeext &&
29197
 
       $as_test_x conftest$ac_exeext; then
29198
 
  ac_cv_lib_dl_dlopen=yes
29199
 
else
29200
 
  echo "$as_me: failed program was:" >&5
29201
 
sed 's/^/| /' conftest.$ac_ext >&5
29202
 
 
29203
 
        ac_cv_lib_dl_dlopen=no
29204
 
fi
29205
 
 
29206
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29207
 
      conftest$ac_exeext conftest.$ac_ext
29208
 
LIBS=$ac_check_lib_save_LIBS
29209
 
fi
29210
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29211
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
29212
 
if test $ac_cv_lib_dl_dlopen = yes; then
29213
 
  AO_DL_LIBS="-ldl"
29214
 
else
29215
 
 
29216
 
        { echo "$as_me:$LINENO: WARNING: could not find dlopen() needed by libao sound drivers
29217
 
        your system may not be supported." >&5
29218
 
echo "$as_me: WARNING: could not find dlopen() needed by libao sound drivers
29219
 
        your system may not be supported." >&2;}
29220
 
 
29221
 
fi
29222
 
 
29223
 
 
29224
 
fi
29225
 
done
29226
 
 
29227
 
 
29228
 
  if test "x$ao_prefix" != "xno" ; then
29229
 
    AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS"
29230
 
  fi
29231
 
 
29232
 
    { echo "$as_me:$LINENO: checking for ao" >&5
29233
 
echo $ECHO_N "checking for ao... $ECHO_C" >&6; }
29234
 
  if test "x$ao_prefix" = "xno" ; then
29235
 
    no_ao="disabled"
29236
 
    enable_aotest="no"
29237
 
  else
29238
 
    no_ao=""
29239
 
  fi
29240
 
 
29241
 
 
29242
 
    if test "x$enable_aotest" = "xyes" ; then
29243
 
      ac_save_CFLAGS="$CFLAGS"
29244
 
      ac_save_LIBS="$LIBS"
29245
 
      CFLAGS="$CFLAGS $AO_CFLAGS"
29246
 
      LIBS="$LIBS $AO_LIBS"
29247
 
      rm -f conf.aotest
29248
 
      if test "$cross_compiling" = yes; then
29249
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
29250
 
else
29251
 
  cat >conftest.$ac_ext <<_ACEOF
29252
 
/* confdefs.h.  */
29253
 
_ACEOF
29254
 
cat confdefs.h >>conftest.$ac_ext
29255
 
cat >>conftest.$ac_ext <<_ACEOF
29256
 
/* end confdefs.h.  */
29257
 
 
29258
 
#include <stdio.h>
29259
 
#include <stdlib.h>
29260
 
#include <string.h>
29261
 
#include <ao/ao.h>
29262
 
 
29263
 
int main ()
29264
 
{
29265
 
  system("touch conf.aotest");
29266
 
  return 0;
29267
 
}
29268
 
 
29269
 
 
29270
 
_ACEOF
29271
 
rm -f conftest$ac_exeext
29272
 
if { (ac_try="$ac_link"
29273
 
case "(($ac_try" in
29274
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275
 
  *) ac_try_echo=$ac_try;;
29276
 
esac
29277
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278
 
  (eval "$ac_link") 2>&5
29279
 
  ac_status=$?
29280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29282
 
  { (case "(($ac_try" in
29283
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284
 
  *) ac_try_echo=$ac_try;;
29285
 
esac
29286
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287
 
  (eval "$ac_try") 2>&5
29288
 
  ac_status=$?
29289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290
 
  (exit $ac_status); }; }; then
29291
 
  :
29292
 
else
29293
 
  echo "$as_me: program exited with status $ac_status" >&5
29294
 
echo "$as_me: failed program was:" >&5
29295
 
sed 's/^/| /' conftest.$ac_ext >&5
29296
 
 
29297
 
( exit $ac_status )
29298
 
no_ao=yes
29299
 
fi
29300
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29301
 
fi
29302
 
 
29303
 
 
29304
 
       CFLAGS="$ac_save_CFLAGS"
29305
 
       LIBS="$ac_save_LIBS"
29306
 
    fi
29307
 
 
29308
 
    if test "x$no_ao" = "xdisabled" ; then
29309
 
       { echo "$as_me:$LINENO: result: no" >&5
 
22342
pkg_failed=no
 
22343
{ echo "$as_me:$LINENO: checking for AO" >&5
 
22344
echo $ECHO_N "checking for AO... $ECHO_C" >&6; }
 
22345
 
 
22346
if test -n "$PKG_CONFIG"; then
 
22347
    if test -n "$AO_CFLAGS"; then
 
22348
        pkg_cv_AO_CFLAGS="$AO_CFLAGS"
 
22349
    else
 
22350
        if test -n "$PKG_CONFIG" && \
 
22351
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao >= 1.0.0\"") >&5
 
22352
  ($PKG_CONFIG --exists --print-errors "ao >= 1.0.0") 2>&5
 
22353
  ac_status=$?
 
22354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22355
  (exit $ac_status); }; then
 
22356
  pkg_cv_AO_CFLAGS=`$PKG_CONFIG --cflags "ao >= 1.0.0" 2>/dev/null`
 
22357
else
 
22358
  pkg_failed=yes
 
22359
fi
 
22360
    fi
 
22361
else
 
22362
        pkg_failed=untried
 
22363
fi
 
22364
if test -n "$PKG_CONFIG"; then
 
22365
    if test -n "$AO_LIBS"; then
 
22366
        pkg_cv_AO_LIBS="$AO_LIBS"
 
22367
    else
 
22368
        if test -n "$PKG_CONFIG" && \
 
22369
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao >= 1.0.0\"") >&5
 
22370
  ($PKG_CONFIG --exists --print-errors "ao >= 1.0.0") 2>&5
 
22371
  ac_status=$?
 
22372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22373
  (exit $ac_status); }; then
 
22374
  pkg_cv_AO_LIBS=`$PKG_CONFIG --libs "ao >= 1.0.0" 2>/dev/null`
 
22375
else
 
22376
  pkg_failed=yes
 
22377
fi
 
22378
    fi
 
22379
else
 
22380
        pkg_failed=untried
 
22381
fi
 
22382
 
 
22383
 
 
22384
 
 
22385
if test $pkg_failed = yes; then
 
22386
 
 
22387
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22388
        _pkg_short_errors_supported=yes
 
22389
else
 
22390
        _pkg_short_errors_supported=no
 
22391
fi
 
22392
        if test $_pkg_short_errors_supported = yes; then
 
22393
                AO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ao >= 1.0.0"`
 
22394
        else
 
22395
                AO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ao >= 1.0.0"`
 
22396
        fi
 
22397
        # Put the nasty error message in config.log where it belongs
 
22398
        echo "$AO_PKG_ERRORS" >&5
 
22399
 
 
22400
        { echo "$as_me:$LINENO: result: no" >&5
29310
22401
echo "${ECHO_T}no" >&6; }
29311
 
       build_ogg123=no; { echo "$as_me:$LINENO: WARNING: libao missing" >&5
29312
 
echo "$as_me: WARNING: libao missing" >&2;}
29313
 
    elif test "x$no_ao" = "x" ; then
29314
 
       { echo "$as_me:$LINENO: result: yes" >&5
 
22402
                build_ogg123=no; { echo "$as_me:$LINENO: WARNING: libao too old; >= 1.0.0 required" >&5
 
22403
echo "$as_me: WARNING: libao too old; >= 1.0.0 required" >&2;}
 
22404
elif test $pkg_failed = untried; then
 
22405
        build_ogg123=no; { echo "$as_me:$LINENO: WARNING: libao too old; >= 1.0.0 required" >&5
 
22406
echo "$as_me: WARNING: libao too old; >= 1.0.0 required" >&2;}
 
22407
else
 
22408
        AO_CFLAGS=$pkg_cv_AO_CFLAGS
 
22409
        AO_LIBS=$pkg_cv_AO_LIBS
 
22410
        { echo "$as_me:$LINENO: result: yes" >&5
29315
22411
echo "${ECHO_T}yes" >&6; }
29316
 
       :
29317
 
    else
29318
 
       { echo "$as_me:$LINENO: result: no" >&5
29319
 
echo "${ECHO_T}no" >&6; }
29320
 
       if test -f conf.aotest ; then
29321
 
         :
29322
 
       else
29323
 
         echo "*** Could not run ao test program, checking why..."
29324
 
         CFLAGS="$CFLAGS $AO_CFLAGS"
29325
 
         LIBS="$LIBS $AO_LIBS"
29326
 
       cat >conftest.$ac_ext <<_ACEOF
29327
 
/* confdefs.h.  */
29328
 
_ACEOF
29329
 
cat confdefs.h >>conftest.$ac_ext
29330
 
cat >>conftest.$ac_ext <<_ACEOF
29331
 
/* end confdefs.h.  */
29332
 
 
29333
 
#include <stdio.h>
29334
 
#include <ao/ao.h>
29335
 
 
29336
 
int
29337
 
main ()
29338
 
{
29339
 
 return 0;
29340
 
  ;
29341
 
  return 0;
29342
 
}
29343
 
_ACEOF
29344
 
rm -f conftest.$ac_objext conftest$ac_exeext
29345
 
if { (ac_try="$ac_link"
29346
 
case "(($ac_try" in
29347
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348
 
  *) ac_try_echo=$ac_try;;
29349
 
esac
29350
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351
 
  (eval "$ac_link") 2>conftest.er1
29352
 
  ac_status=$?
29353
 
  grep -v '^ *+' conftest.er1 >conftest.err
29354
 
  rm -f conftest.er1
29355
 
  cat conftest.err >&5
29356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357
 
  (exit $ac_status); } && {
29358
 
         test -z "$ac_c_werror_flag" ||
29359
 
         test ! -s conftest.err
29360
 
       } && test -s conftest$ac_exeext &&
29361
 
       $as_test_x conftest$ac_exeext; then
29362
 
   echo "*** The test program compiled, but did not run. This usually means"
29363
 
         echo "*** that the run-time linker is not finding ao or finding the wrong"
29364
 
         echo "*** version of ao. If it is not finding ao, you'll need to set your"
29365
 
         echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29366
 
         echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29367
 
         echo "*** is required on your system"
29368
 
         echo "***"
29369
 
         echo "*** If you have an old version installed, it is best to remove it, although"
29370
 
         echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29371
 
else
29372
 
  echo "$as_me: failed program was:" >&5
29373
 
sed 's/^/| /' conftest.$ac_ext >&5
29374
 
 
29375
 
         echo "*** The test program failed to compile or link. See the file config.log for the"
29376
 
         echo "*** exact error that occured. This usually means ao was incorrectly installed"
29377
 
         echo "*** or that you have moved ao since it was installed."
 
22412
        :
29378
22413
fi
29379
22414
 
29380
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29381
 
      conftest$ac_exeext conftest.$ac_ext
29382
 
         CFLAGS="$ac_save_CFLAGS"
29383
 
         LIBS="$ac_save_LIBS"
29384
 
       fi
29385
 
       AO_CFLAGS=""
29386
 
       AO_LIBS=""
29387
 
       build_ogg123=no; { echo "$as_me:$LINENO: WARNING: libao missing" >&5
29388
 
echo "$as_me: WARNING: libao missing" >&2;}
29389
 
    fi
29390
 
 
29391
 
 
29392
 
    rm -f conf.aotest
29393
 
  fi
29394
 
 
29395
 
 
29396
 
 
29397
22415
 
29398
22416
acx_pthread_ok=no
29399
22417
 
30285
23303
     FLAC_LIBS=""
30286
23304
  fi
30287
23305
fi
30288
 
 if test "x$have_libFLAC" = "xyes"; then
 
23306
 
 
23307
 
 
23308
if test "x$have_libFLAC" = "xyes"; then
30289
23309
  HAVE_LIBFLAC_TRUE=
30290
23310
  HAVE_LIBFLAC_FALSE='#'
30291
23311
else
30498
23518
    SPEEX_LIBS=""
30499
23519
  fi
30500
23520
fi
30501
 
 if test "x$have_libspeex" = "xyes"; then
 
23521
 
 
23522
 
 
23523
if test "x$have_libspeex" = "xyes"; then
30502
23524
  HAVE_LIBSPEEX_TRUE=
30503
23525
  HAVE_LIBSPEEX_FALSE='#'
30504
23526
else
30509
23531
 
30510
23532
 
30511
23533
 
 
23534
KATE_CFLAGS=""
 
23535
KATE_LIBS=""
 
23536
if test "x$build_kate" = xyes; then
 
23537
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
23538
set dummy pkg-config; ac_word=$2
 
23539
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23540
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
23541
if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
 
23542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23543
else
 
23544
  if test -n "$HAVE_PKG_CONFIG"; then
 
23545
  ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
 
23546
else
 
23547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23548
for as_dir in $PATH
 
23549
do
 
23550
  IFS=$as_save_IFS
 
23551
  test -z "$as_dir" && as_dir=.
 
23552
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23553
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23554
    ac_cv_prog_HAVE_PKG_CONFIG="yes"
 
23555
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23556
    break 2
 
23557
  fi
 
23558
done
 
23559
done
 
23560
IFS=$as_save_IFS
 
23561
 
 
23562
fi
 
23563
fi
 
23564
HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
 
23565
if test -n "$HAVE_PKG_CONFIG"; then
 
23566
  { echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
 
23567
echo "${ECHO_T}$HAVE_PKG_CONFIG" >&6; }
 
23568
else
 
23569
  { echo "$as_me:$LINENO: result: no" >&5
 
23570
echo "${ECHO_T}no" >&6; }
 
23571
fi
 
23572
 
 
23573
 
 
23574
  if test "x$HAVE_PKG_CONFIG" = "xyes"
 
23575
  then
 
23576
 
 
23577
pkg_failed=no
 
23578
{ echo "$as_me:$LINENO: checking for KATE" >&5
 
23579
echo $ECHO_N "checking for KATE... $ECHO_C" >&6; }
 
23580
 
 
23581
if test -n "$PKG_CONFIG"; then
 
23582
    if test -n "$KATE_CFLAGS"; then
 
23583
        pkg_cv_KATE_CFLAGS="$KATE_CFLAGS"
 
23584
    else
 
23585
        if test -n "$PKG_CONFIG" && \
 
23586
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"oggkate\"") >&5
 
23587
  ($PKG_CONFIG --exists --print-errors "oggkate") 2>&5
 
23588
  ac_status=$?
 
23589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23590
  (exit $ac_status); }; then
 
23591
  pkg_cv_KATE_CFLAGS=`$PKG_CONFIG --cflags "oggkate" 2>/dev/null`
 
23592
else
 
23593
  pkg_failed=yes
 
23594
fi
 
23595
    fi
 
23596
else
 
23597
        pkg_failed=untried
 
23598
fi
 
23599
if test -n "$PKG_CONFIG"; then
 
23600
    if test -n "$KATE_LIBS"; then
 
23601
        pkg_cv_KATE_LIBS="$KATE_LIBS"
 
23602
    else
 
23603
        if test -n "$PKG_CONFIG" && \
 
23604
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"oggkate\"") >&5
 
23605
  ($PKG_CONFIG --exists --print-errors "oggkate") 2>&5
 
23606
  ac_status=$?
 
23607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23608
  (exit $ac_status); }; then
 
23609
  pkg_cv_KATE_LIBS=`$PKG_CONFIG --libs "oggkate" 2>/dev/null`
 
23610
else
 
23611
  pkg_failed=yes
 
23612
fi
 
23613
    fi
 
23614
else
 
23615
        pkg_failed=untried
 
23616
fi
 
23617
 
 
23618
 
 
23619
 
 
23620
if test $pkg_failed = yes; then
 
23621
 
 
23622
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23623
        _pkg_short_errors_supported=yes
 
23624
else
 
23625
        _pkg_short_errors_supported=no
 
23626
fi
 
23627
        if test $_pkg_short_errors_supported = yes; then
 
23628
                KATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "oggkate"`
 
23629
        else
 
23630
                KATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "oggkate"`
 
23631
        fi
 
23632
        # Put the nasty error message in config.log where it belongs
 
23633
        echo "$KATE_PKG_ERRORS" >&5
 
23634
 
 
23635
        { echo "$as_me:$LINENO: result: no" >&5
 
23636
echo "${ECHO_T}no" >&6; }
 
23637
                HAVE_KATE=no
 
23638
elif test $pkg_failed = untried; then
 
23639
        HAVE_KATE=no
 
23640
else
 
23641
        KATE_CFLAGS=$pkg_cv_KATE_CFLAGS
 
23642
        KATE_LIBS=$pkg_cv_KATE_LIBS
 
23643
        { echo "$as_me:$LINENO: result: yes" >&5
 
23644
echo "${ECHO_T}yes" >&6; }
 
23645
        HAVE_KATE=yes
 
23646
fi
 
23647
  fi
 
23648
  if test "x$HAVE_KATE" = "xno"
 
23649
  then
 
23650
        { echo "$as_me:$LINENO: checking for log in -lm" >&5
 
23651
echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
 
23652
if test "${ac_cv_lib_m_log+set}" = set; then
 
23653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23654
else
 
23655
  ac_check_lib_save_LIBS=$LIBS
 
23656
LIBS="-lm  $LIBS"
 
23657
cat >conftest.$ac_ext <<_ACEOF
 
23658
/* confdefs.h.  */
 
23659
_ACEOF
 
23660
cat confdefs.h >>conftest.$ac_ext
 
23661
cat >>conftest.$ac_ext <<_ACEOF
 
23662
/* end confdefs.h.  */
 
23663
 
 
23664
/* Override any GCC internal prototype to avoid an error.
 
23665
   Use char because int might match the return type of a GCC
 
23666
   builtin and then its argument prototype would still apply.  */
 
23667
#ifdef __cplusplus
 
23668
extern "C"
 
23669
#endif
 
23670
char log ();
 
23671
int
 
23672
main ()
 
23673
{
 
23674
return log ();
 
23675
  ;
 
23676
  return 0;
 
23677
}
 
23678
_ACEOF
 
23679
rm -f conftest.$ac_objext conftest$ac_exeext
 
23680
if { (ac_try="$ac_link"
 
23681
case "(($ac_try" in
 
23682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23683
  *) ac_try_echo=$ac_try;;
 
23684
esac
 
23685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23686
  (eval "$ac_link") 2>conftest.er1
 
23687
  ac_status=$?
 
23688
  grep -v '^ *+' conftest.er1 >conftest.err
 
23689
  rm -f conftest.er1
 
23690
  cat conftest.err >&5
 
23691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23692
  (exit $ac_status); } && {
 
23693
         test -z "$ac_c_werror_flag" ||
 
23694
         test ! -s conftest.err
 
23695
       } && test -s conftest$ac_exeext &&
 
23696
       $as_test_x conftest$ac_exeext; then
 
23697
  ac_cv_lib_m_log=yes
 
23698
else
 
23699
  echo "$as_me: failed program was:" >&5
 
23700
sed 's/^/| /' conftest.$ac_ext >&5
 
23701
 
 
23702
        ac_cv_lib_m_log=no
 
23703
fi
 
23704
 
 
23705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23706
      conftest$ac_exeext conftest.$ac_ext
 
23707
LIBS=$ac_check_lib_save_LIBS
 
23708
fi
 
23709
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
 
23710
echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
 
23711
if test $ac_cv_lib_m_log = yes; then
 
23712
  KATE_LIBS="-lm"
 
23713
fi
 
23714
 
 
23715
    { echo "$as_me:$LINENO: checking for kate_decode_init in -lkate" >&5
 
23716
echo $ECHO_N "checking for kate_decode_init in -lkate... $ECHO_C" >&6; }
 
23717
if test "${ac_cv_lib_kate_kate_decode_init+set}" = set; then
 
23718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23719
else
 
23720
  ac_check_lib_save_LIBS=$LIBS
 
23721
LIBS="-lkate $KATE_LIBS $OGG_LIBS
 
23722
     $LIBS"
 
23723
cat >conftest.$ac_ext <<_ACEOF
 
23724
/* confdefs.h.  */
 
23725
_ACEOF
 
23726
cat confdefs.h >>conftest.$ac_ext
 
23727
cat >>conftest.$ac_ext <<_ACEOF
 
23728
/* end confdefs.h.  */
 
23729
 
 
23730
/* Override any GCC internal prototype to avoid an error.
 
23731
   Use char because int might match the return type of a GCC
 
23732
   builtin and then its argument prototype would still apply.  */
 
23733
#ifdef __cplusplus
 
23734
extern "C"
 
23735
#endif
 
23736
char kate_decode_init ();
 
23737
int
 
23738
main ()
 
23739
{
 
23740
return kate_decode_init ();
 
23741
  ;
 
23742
  return 0;
 
23743
}
 
23744
_ACEOF
 
23745
rm -f conftest.$ac_objext conftest$ac_exeext
 
23746
if { (ac_try="$ac_link"
 
23747
case "(($ac_try" in
 
23748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23749
  *) ac_try_echo=$ac_try;;
 
23750
esac
 
23751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23752
  (eval "$ac_link") 2>conftest.er1
 
23753
  ac_status=$?
 
23754
  grep -v '^ *+' conftest.er1 >conftest.err
 
23755
  rm -f conftest.er1
 
23756
  cat conftest.err >&5
 
23757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23758
  (exit $ac_status); } && {
 
23759
         test -z "$ac_c_werror_flag" ||
 
23760
         test ! -s conftest.err
 
23761
       } && test -s conftest$ac_exeext &&
 
23762
       $as_test_x conftest$ac_exeext; then
 
23763
  ac_cv_lib_kate_kate_decode_init=yes
 
23764
else
 
23765
  echo "$as_me: failed program was:" >&5
 
23766
sed 's/^/| /' conftest.$ac_ext >&5
 
23767
 
 
23768
        ac_cv_lib_kate_kate_decode_init=no
 
23769
fi
 
23770
 
 
23771
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23772
      conftest$ac_exeext conftest.$ac_ext
 
23773
LIBS=$ac_check_lib_save_LIBS
 
23774
fi
 
23775
{ echo "$as_me:$LINENO: result: $ac_cv_lib_kate_kate_decode_init" >&5
 
23776
echo "${ECHO_T}$ac_cv_lib_kate_kate_decode_init" >&6; }
 
23777
if test $ac_cv_lib_kate_kate_decode_init = yes; then
 
23778
  HAVE_KATE=yes; KATE_LIBS="-lkate $KATE_LIBS $OGG_LIBS"
 
23779
else
 
23780
  { echo "$as_me:$LINENO: WARNING: libkate missing" >&5
 
23781
echo "$as_me: WARNING: libkate missing" >&2;}
 
23782
      HAVE_KATE=no
 
23783
fi
 
23784
 
 
23785
    { echo "$as_me:$LINENO: checking for kate_ogg_decode_headerin in -loggkate" >&5
 
23786
echo $ECHO_N "checking for kate_ogg_decode_headerin in -loggkate... $ECHO_C" >&6; }
 
23787
if test "${ac_cv_lib_oggkate_kate_ogg_decode_headerin+set}" = set; then
 
23788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23789
else
 
23790
  ac_check_lib_save_LIBS=$LIBS
 
23791
LIBS="-loggkate $KATE_LIBS $OGG_LIBS
 
23792
     $LIBS"
 
23793
cat >conftest.$ac_ext <<_ACEOF
 
23794
/* confdefs.h.  */
 
23795
_ACEOF
 
23796
cat confdefs.h >>conftest.$ac_ext
 
23797
cat >>conftest.$ac_ext <<_ACEOF
 
23798
/* end confdefs.h.  */
 
23799
 
 
23800
/* Override any GCC internal prototype to avoid an error.
 
23801
   Use char because int might match the return type of a GCC
 
23802
   builtin and then its argument prototype would still apply.  */
 
23803
#ifdef __cplusplus
 
23804
extern "C"
 
23805
#endif
 
23806
char kate_ogg_decode_headerin ();
 
23807
int
 
23808
main ()
 
23809
{
 
23810
return kate_ogg_decode_headerin ();
 
23811
  ;
 
23812
  return 0;
 
23813
}
 
23814
_ACEOF
 
23815
rm -f conftest.$ac_objext conftest$ac_exeext
 
23816
if { (ac_try="$ac_link"
 
23817
case "(($ac_try" in
 
23818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23819
  *) ac_try_echo=$ac_try;;
 
23820
esac
 
23821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23822
  (eval "$ac_link") 2>conftest.er1
 
23823
  ac_status=$?
 
23824
  grep -v '^ *+' conftest.er1 >conftest.err
 
23825
  rm -f conftest.er1
 
23826
  cat conftest.err >&5
 
23827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23828
  (exit $ac_status); } && {
 
23829
         test -z "$ac_c_werror_flag" ||
 
23830
         test ! -s conftest.err
 
23831
       } && test -s conftest$ac_exeext &&
 
23832
       $as_test_x conftest$ac_exeext; then
 
23833
  ac_cv_lib_oggkate_kate_ogg_decode_headerin=yes
 
23834
else
 
23835
  echo "$as_me: failed program was:" >&5
 
23836
sed 's/^/| /' conftest.$ac_ext >&5
 
23837
 
 
23838
        ac_cv_lib_oggkate_kate_ogg_decode_headerin=no
 
23839
fi
 
23840
 
 
23841
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23842
      conftest$ac_exeext conftest.$ac_ext
 
23843
LIBS=$ac_check_lib_save_LIBS
 
23844
fi
 
23845
{ echo "$as_me:$LINENO: result: $ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&5
 
23846
echo "${ECHO_T}$ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&6; }
 
23847
if test $ac_cv_lib_oggkate_kate_ogg_decode_headerin = yes; then
 
23848
  HAVE_KATE=yes; KATE_LIBS="-loggkate $KATE_LIBS $OGG_LIBS"
 
23849
else
 
23850
  { echo "$as_me:$LINENO: WARNING: libkate missing" >&5
 
23851
echo "$as_me: WARNING: libkate missing" >&2;}
 
23852
      HAVE_KATE=no
 
23853
fi
 
23854
 
 
23855
    { echo "$as_me:$LINENO: checking for kate/kate.h" >&5
 
23856
echo $ECHO_N "checking for kate/kate.h... $ECHO_C" >&6; }
 
23857
if test "${ac_cv_header_kate_kate_h+set}" = set; then
 
23858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23859
else
 
23860
  cat >conftest.$ac_ext <<_ACEOF
 
23861
/* confdefs.h.  */
 
23862
_ACEOF
 
23863
cat confdefs.h >>conftest.$ac_ext
 
23864
cat >>conftest.$ac_ext <<_ACEOF
 
23865
/* end confdefs.h.  */
 
23866
 
 
23867
 
 
23868
#include <kate/kate.h>
 
23869
_ACEOF
 
23870
rm -f conftest.$ac_objext
 
23871
if { (ac_try="$ac_compile"
 
23872
case "(($ac_try" in
 
23873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23874
  *) ac_try_echo=$ac_try;;
 
23875
esac
 
23876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23877
  (eval "$ac_compile") 2>conftest.er1
 
23878
  ac_status=$?
 
23879
  grep -v '^ *+' conftest.er1 >conftest.err
 
23880
  rm -f conftest.er1
 
23881
  cat conftest.err >&5
 
23882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23883
  (exit $ac_status); } && {
 
23884
         test -z "$ac_c_werror_flag" ||
 
23885
         test ! -s conftest.err
 
23886
       } && test -s conftest.$ac_objext; then
 
23887
  ac_cv_header_kate_kate_h=yes
 
23888
else
 
23889
  echo "$as_me: failed program was:" >&5
 
23890
sed 's/^/| /' conftest.$ac_ext >&5
 
23891
 
 
23892
        ac_cv_header_kate_kate_h=no
 
23893
fi
 
23894
 
 
23895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23896
fi
 
23897
{ echo "$as_me:$LINENO: result: $ac_cv_header_kate_kate_h" >&5
 
23898
echo "${ECHO_T}$ac_cv_header_kate_kate_h" >&6; }
 
23899
if test $ac_cv_header_kate_kate_h = yes; then
 
23900
  :
 
23901
else
 
23902
  { echo "$as_me:$LINENO: WARNING: libkate headers missing" >&5
 
23903
echo "$as_me: WARNING: libkate headers missing" >&2;}
 
23904
      HAVE_KATE=no
 
23905
fi
 
23906
 
 
23907
 
 
23908
    { echo "$as_me:$LINENO: checking for kate/oggkate.h" >&5
 
23909
echo $ECHO_N "checking for kate/oggkate.h... $ECHO_C" >&6; }
 
23910
if test "${ac_cv_header_kate_oggkate_h+set}" = set; then
 
23911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23912
else
 
23913
  cat >conftest.$ac_ext <<_ACEOF
 
23914
/* confdefs.h.  */
 
23915
_ACEOF
 
23916
cat confdefs.h >>conftest.$ac_ext
 
23917
cat >>conftest.$ac_ext <<_ACEOF
 
23918
/* end confdefs.h.  */
 
23919
 
 
23920
 
 
23921
#include <kate/oggkate.h>
 
23922
_ACEOF
 
23923
rm -f conftest.$ac_objext
 
23924
if { (ac_try="$ac_compile"
 
23925
case "(($ac_try" in
 
23926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23927
  *) ac_try_echo=$ac_try;;
 
23928
esac
 
23929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23930
  (eval "$ac_compile") 2>conftest.er1
 
23931
  ac_status=$?
 
23932
  grep -v '^ *+' conftest.er1 >conftest.err
 
23933
  rm -f conftest.er1
 
23934
  cat conftest.err >&5
 
23935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23936
  (exit $ac_status); } && {
 
23937
         test -z "$ac_c_werror_flag" ||
 
23938
         test ! -s conftest.err
 
23939
       } && test -s conftest.$ac_objext; then
 
23940
  ac_cv_header_kate_oggkate_h=yes
 
23941
else
 
23942
  echo "$as_me: failed program was:" >&5
 
23943
sed 's/^/| /' conftest.$ac_ext >&5
 
23944
 
 
23945
        ac_cv_header_kate_oggkate_h=no
 
23946
fi
 
23947
 
 
23948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23949
fi
 
23950
{ echo "$as_me:$LINENO: result: $ac_cv_header_kate_oggkate_h" >&5
 
23951
echo "${ECHO_T}$ac_cv_header_kate_oggkate_h" >&6; }
 
23952
if test $ac_cv_header_kate_oggkate_h = yes; then
 
23953
  :
 
23954
else
 
23955
  { echo "$as_me:$LINENO: WARNING: liboggkate headers missing" >&5
 
23956
echo "$as_me: WARNING: liboggkate headers missing" >&2;}
 
23957
      HAVE_KATE=no
 
23958
fi
 
23959
 
 
23960
 
 
23961
 
 
23962
  fi
 
23963
  if test "x$HAVE_KATE" = xyes; then
 
23964
 
 
23965
cat >>confdefs.h <<\_ACEOF
 
23966
#define HAVE_KATE 1
 
23967
_ACEOF
 
23968
 
 
23969
  else
 
23970
    build_kate="no"
 
23971
    KATE_CFLAGS=""
 
23972
    KATE_LIBS=""
 
23973
  fi
 
23974
fi
 
23975
 
 
23976
 
 
23977
if test "x$HAVE_KATE" = "xyes"; then
 
23978
  HAVE_KATE_TRUE=
 
23979
  HAVE_KATE_FALSE='#'
 
23980
else
 
23981
  HAVE_KATE_TRUE='#'
 
23982
  HAVE_KATE_FALSE=
 
23983
fi
 
23984
 
 
23985
 
 
23986
 
 
23987
 
 
23988
 
30512
23989
 
30513
23990
 
30514
23991
for ac_header in fcntl.h unistd.h
31226
24703
 
31227
24704
 
31228
24705
 
31229
 
for ac_func in atexit on_exit fcntl select stat chmod
 
24706
 
 
24707
 
 
24708
for ac_func in atexit on_exit fcntl select stat chmod alphasort scandir
31230
24709
do
31231
24710
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31232
24711
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31546
25025
Usually this means the macro was only invoked conditionally." >&2;}
31547
25026
   { (exit 1); exit 1; }; }
31548
25027
fi
31549
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31550
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31551
 
Usually this means the macro was only invoked conditionally." >&5
31552
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
25028
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
25029
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
25030
Usually this means the macro was only invoked conditionally." >&5
 
25031
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
25032
Usually this means the macro was only invoked conditionally." >&2;}
 
25033
   { (exit 1); exit 1; }; }
 
25034
fi
 
25035
if test -z "${HAVE_OV_READ_FILTER_TRUE}" && test -z "${HAVE_OV_READ_FILTER_FALSE}"; then
 
25036
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OV_READ_FILTER\" was never defined.
 
25037
Usually this means the macro was only invoked conditionally." >&5
 
25038
echo "$as_me: error: conditional \"HAVE_OV_READ_FILTER\" was never defined.
31553
25039
Usually this means the macro was only invoked conditionally." >&2;}
31554
25040
   { (exit 1); exit 1; }; }
31555
25041
fi
31567
25053
Usually this means the macro was only invoked conditionally." >&2;}
31568
25054
   { (exit 1); exit 1; }; }
31569
25055
fi
 
25056
if test -z "${HAVE_KATE_TRUE}" && test -z "${HAVE_KATE_FALSE}"; then
 
25057
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_KATE\" was never defined.
 
25058
Usually this means the macro was only invoked conditionally." >&5
 
25059
echo "$as_me: error: conditional \"HAVE_KATE\" was never defined.
 
25060
Usually this means the macro was only invoked conditionally." >&2;}
 
25061
   { (exit 1); exit 1; }; }
 
25062
fi
31570
25063
 
31571
25064
: ${CONFIG_STATUS=./config.status}
31572
25065
ac_clean_files_save=$ac_clean_files
31931
25424
ac_pwd='$ac_pwd'
31932
25425
srcdir='$srcdir'
31933
25426
INSTALL='$INSTALL'
31934
 
MKDIR_P='$MKDIR_P'
31935
25427
_ACEOF
31936
25428
 
31937
25429
cat >>$CONFIG_STATUS <<\_ACEOF
32025
25517
# INIT-COMMANDS
32026
25518
#
32027
25519
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25520
 
 
25521
 
 
25522
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
25523
# if CDPATH is set.
 
25524
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
25525
 
 
25526
sed_quote_subst='$sed_quote_subst'
 
25527
double_quote_subst='$double_quote_subst'
 
25528
delay_variable_subst='$delay_variable_subst'
 
25529
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
25530
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
25531
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
25532
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
25533
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
25534
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
25535
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
25536
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
25537
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
25538
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
25539
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
25540
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
25541
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
25542
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
25543
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
25544
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
25545
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
25546
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
25547
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
25548
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
25549
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
25550
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
25551
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
25552
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
25553
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
25554
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
25555
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
25556
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25557
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
25558
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
25559
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
25560
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
25561
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
25562
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
25563
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
25564
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25565
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25566
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25567
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
25568
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
25569
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
25570
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
25571
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
25572
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
25573
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"`'
 
25574
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"`'
 
25575
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
25576
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
25577
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
25578
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
25579
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
25580
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
25581
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
25582
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
25583
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
25584
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
25585
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
25586
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
25587
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
25588
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
25589
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
25590
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
25591
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25592
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25593
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
25594
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
25595
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25596
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25597
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
25598
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25599
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25600
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25601
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25602
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25603
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25604
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
25605
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
25606
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
25607
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25608
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
25609
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
25610
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
25611
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
25612
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
25613
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
25614
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
25615
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
25616
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
25617
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
25618
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
25619
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25620
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
25621
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
25622
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25623
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25624
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
25625
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
25626
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
25627
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
25628
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
25629
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
25630
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
25631
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25632
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25633
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25634
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25635
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25636
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
25637
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
25638
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
25639
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25640
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
25641
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
25642
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
25643
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
25644
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
25645
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
25646
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
25647
 
 
25648
LTCC='$LTCC'
 
25649
LTCFLAGS='$LTCFLAGS'
 
25650
compiler='$compiler_DEFAULT'
 
25651
 
 
25652
# Quote evaled strings.
 
25653
for var in SED \
 
25654
GREP \
 
25655
EGREP \
 
25656
FGREP \
 
25657
LD \
 
25658
NM \
 
25659
LN_S \
 
25660
lt_SP2NL \
 
25661
lt_NL2SP \
 
25662
reload_flag \
 
25663
OBJDUMP \
 
25664
deplibs_check_method \
 
25665
file_magic_cmd \
 
25666
AR \
 
25667
AR_FLAGS \
 
25668
STRIP \
 
25669
RANLIB \
 
25670
CC \
 
25671
CFLAGS \
 
25672
compiler \
 
25673
lt_cv_sys_global_symbol_pipe \
 
25674
lt_cv_sys_global_symbol_to_cdecl \
 
25675
lt_cv_sys_global_symbol_to_c_name_address \
 
25676
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
25677
SHELL \
 
25678
ECHO \
 
25679
lt_prog_compiler_no_builtin_flag \
 
25680
lt_prog_compiler_wl \
 
25681
lt_prog_compiler_pic \
 
25682
lt_prog_compiler_static \
 
25683
lt_cv_prog_compiler_c_o \
 
25684
need_locks \
 
25685
DSYMUTIL \
 
25686
NMEDIT \
 
25687
LIPO \
 
25688
OTOOL \
 
25689
OTOOL64 \
 
25690
shrext_cmds \
 
25691
export_dynamic_flag_spec \
 
25692
whole_archive_flag_spec \
 
25693
compiler_needs_object \
 
25694
with_gnu_ld \
 
25695
allow_undefined_flag \
 
25696
no_undefined_flag \
 
25697
hardcode_libdir_flag_spec \
 
25698
hardcode_libdir_flag_spec_ld \
 
25699
hardcode_libdir_separator \
 
25700
fix_srcfile_path \
 
25701
exclude_expsyms \
 
25702
include_expsyms \
 
25703
file_list_spec \
 
25704
variables_saved_for_relink \
 
25705
libname_spec \
 
25706
library_names_spec \
 
25707
soname_spec \
 
25708
finish_eval \
 
25709
old_striplib \
 
25710
striplib; do
 
25711
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
25712
    *[\\\\\\\`\\"\\\$]*)
 
25713
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
25714
      ;;
 
25715
    *)
 
25716
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
25717
      ;;
 
25718
    esac
 
25719
done
 
25720
 
 
25721
# Double-quote double-evaled strings.
 
25722
for var in reload_cmds \
 
25723
old_postinstall_cmds \
 
25724
old_postuninstall_cmds \
 
25725
old_archive_cmds \
 
25726
extract_expsyms_cmds \
 
25727
old_archive_from_new_cmds \
 
25728
old_archive_from_expsyms_cmds \
 
25729
archive_cmds \
 
25730
archive_expsym_cmds \
 
25731
module_cmds \
 
25732
module_expsym_cmds \
 
25733
export_symbols_cmds \
 
25734
prelink_cmds \
 
25735
postinstall_cmds \
 
25736
postuninstall_cmds \
 
25737
finish_cmds \
 
25738
sys_lib_search_path_spec \
 
25739
sys_lib_dlsearch_path_spec; do
 
25740
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
25741
    *[\\\\\\\`\\"\\\$]*)
 
25742
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
25743
      ;;
 
25744
    *)
 
25745
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
25746
      ;;
 
25747
    esac
 
25748
done
 
25749
 
 
25750
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
25751
case \$lt_ECHO in
 
25752
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
25753
  ;;
 
25754
esac
 
25755
 
 
25756
ac_aux_dir='$ac_aux_dir'
 
25757
xsi_shell='$xsi_shell'
 
25758
lt_shell_append='$lt_shell_append'
 
25759
 
 
25760
# See if we are running on zsh, and set the options which allow our
 
25761
# commands through without removal of \ escapes INIT.
 
25762
if test -n "\${ZSH_VERSION+set}" ; then
 
25763
   setopt NO_GLOB_SUBST
 
25764
fi
 
25765
 
 
25766
 
 
25767
    PACKAGE='$PACKAGE'
 
25768
    VERSION='$VERSION'
 
25769
    TIMESTAMP='$TIMESTAMP'
 
25770
    RM='$RM'
 
25771
    ofile='$ofile'
 
25772
 
 
25773
 
 
25774
 
32028
25775
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
32029
25776
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32030
25777
    # from automake < 1.5.
32043
25790
  case $ac_config_target in
32044
25791
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32045
25792
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
25793
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32046
25794
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
32047
25795
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32048
25796
    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
32173
25921
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32174
25922
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32175
25923
INSTALL_DATA!$INSTALL_DATA$ac_delim
32176
 
am__isrc!$am__isrc$ac_delim
32177
25924
CYGPATH_W!$CYGPATH_W$ac_delim
32178
25925
PACKAGE!$PACKAGE$ac_delim
32179
25926
VERSION!$VERSION$ac_delim
32211
25958
CCDEPMODE!$CCDEPMODE$ac_delim
32212
25959
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32213
25960
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
25961
CPP!$CPP$ac_delim
32214
25962
GREP!$GREP$ac_delim
32215
25963
EGREP!$EGREP$ac_delim
 
25964
LIBTOOL!$LIBTOOL$ac_delim
 
25965
SED!$SED$ac_delim
 
25966
FGREP!$FGREP$ac_delim
 
25967
LD!$LD$ac_delim
 
25968
DUMPBIN!$DUMPBIN$ac_delim
 
25969
_ACEOF
 
25970
 
 
25971
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
25972
    break
 
25973
  elif $ac_last_try; then
 
25974
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25975
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25976
   { (exit 1); exit 1; }; }
 
25977
  else
 
25978
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25979
  fi
 
25980
done
 
25981
 
 
25982
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25983
if test -n "$ac_eof"; then
 
25984
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25985
  ac_eof=`expr $ac_eof + 1`
 
25986
fi
 
25987
 
 
25988
cat >>$CONFIG_STATUS <<_ACEOF
 
25989
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
25990
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25991
_ACEOF
 
25992
sed '
 
25993
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25994
s/^/s,@/; s/!/@,|#_!!_#|/
 
25995
:n
 
25996
t n
 
25997
s/'"$ac_delim"'$/,g/; t
 
25998
s/$/\\/; p
 
25999
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
26000
' >>$CONFIG_STATUS <conf$$subs.sed
 
26001
rm -f conf$$subs.sed
 
26002
cat >>$CONFIG_STATUS <<_ACEOF
 
26003
CEOF$ac_eof
 
26004
_ACEOF
 
26005
 
 
26006
 
 
26007
ac_delim='%!_!# '
 
26008
for ac_last_try in false false false false false :; do
 
26009
  cat >conf$$subs.sed <<_ACEOF
 
26010
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
 
26011
NM!$NM$ac_delim
32216
26012
LN_S!$LN_S$ac_delim
32217
 
ECHO!$ECHO$ac_delim
 
26013
OBJDUMP!$OBJDUMP$ac_delim
32218
26014
AR!$AR$ac_delim
32219
26015
RANLIB!$RANLIB$ac_delim
32220
 
CPP!$CPP$ac_delim
32221
 
_ACEOF
32222
 
 
32223
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32224
 
    break
32225
 
  elif $ac_last_try; then
32226
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32227
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32228
 
   { (exit 1); exit 1; }; }
32229
 
  else
32230
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32231
 
  fi
32232
 
done
32233
 
 
32234
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32235
 
if test -n "$ac_eof"; then
32236
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32237
 
  ac_eof=`expr $ac_eof + 1`
32238
 
fi
32239
 
 
32240
 
cat >>$CONFIG_STATUS <<_ACEOF
32241
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32242
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32243
 
_ACEOF
32244
 
sed '
32245
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32246
 
s/^/s,@/; s/!/@,|#_!!_#|/
32247
 
:n
32248
 
t n
32249
 
s/'"$ac_delim"'$/,g/; t
32250
 
s/$/\\/; p
32251
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32252
 
' >>$CONFIG_STATUS <conf$$subs.sed
32253
 
rm -f conf$$subs.sed
32254
 
cat >>$CONFIG_STATUS <<_ACEOF
32255
 
CEOF$ac_eof
32256
 
_ACEOF
32257
 
 
32258
 
 
32259
 
ac_delim='%!_!# '
32260
 
for ac_last_try in false false false false false :; do
32261
 
  cat >conf$$subs.sed <<_ACEOF
32262
 
CXX!$CXX$ac_delim
32263
 
CXXFLAGS!$CXXFLAGS$ac_delim
32264
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
32265
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
32266
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
32267
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
32268
 
CXXCPP!$CXXCPP$ac_delim
32269
 
F77!$F77$ac_delim
32270
 
FFLAGS!$FFLAGS$ac_delim
32271
 
ac_ct_F77!$ac_ct_F77$ac_delim
32272
 
LIBTOOL!$LIBTOOL$ac_delim
 
26016
lt_ECHO!$lt_ECHO$ac_delim
 
26017
DSYMUTIL!$DSYMUTIL$ac_delim
 
26018
NMEDIT!$NMEDIT$ac_delim
 
26019
LIPO!$LIPO$ac_delim
 
26020
OTOOL!$OTOOL$ac_delim
 
26021
OTOOL64!$OTOOL64$ac_delim
32273
26022
USE_NLS!$USE_NLS$ac_delim
 
26023
GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
32274
26024
MSGFMT!$MSGFMT$ac_delim
32275
26025
GMSGFMT!$GMSGFMT$ac_delim
32276
26026
MSGFMT_015!$MSGFMT_015$ac_delim
32278
26028
XGETTEXT!$XGETTEXT$ac_delim
32279
26029
XGETTEXT_015!$XGETTEXT_015$ac_delim
32280
26030
MSGMERGE!$MSGMERGE$ac_delim
 
26031
XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
32281
26032
GLIBC2!$GLIBC2$ac_delim
32282
26033
CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
32283
26034
HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
32285
26036
PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
32286
26037
LIBPTH!$LIBPTH$ac_delim
32287
26038
LTLIBPTH!$LTLIBPTH$ac_delim
 
26039
LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
32288
26040
LIBTHREAD!$LIBTHREAD$ac_delim
32289
26041
LTLIBTHREAD!$LTLIBTHREAD$ac_delim
32290
26042
LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
32298
26050
HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
32299
26051
HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
32300
26052
WOE32DLL!$WOE32DLL$ac_delim
 
26053
WOE32!$WOE32$ac_delim
 
26054
WINDRES!$WINDRES$ac_delim
 
26055
LTLIBC!$LTLIBC$ac_delim
32301
26056
BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
32302
26057
USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
32303
26058
CATOBJEXT!$CATOBJEXT$ac_delim
32318
26073
VORBIS_LIBS!$VORBIS_LIBS$ac_delim
32319
26074
VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
32320
26075
VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
 
26076
HAVE_OV_READ_FILTER_TRUE!$HAVE_OV_READ_FILTER_TRUE$ac_delim
 
26077
HAVE_OV_READ_FILTER_FALSE!$HAVE_OV_READ_FILTER_FALSE$ac_delim
32321
26078
CURL_CFLAGS!$CURL_CFLAGS$ac_delim
32322
26079
CURL_LIBS!$CURL_LIBS$ac_delim
32323
26080
AO_CFLAGS!$AO_CFLAGS$ac_delim
32331
26088
HAVE_LIBSPEEX_TRUE!$HAVE_LIBSPEEX_TRUE$ac_delim
32332
26089
HAVE_LIBSPEEX_FALSE!$HAVE_LIBSPEEX_FALSE$ac_delim
32333
26090
SPEEX_LIBS!$SPEEX_LIBS$ac_delim
 
26091
KATE_CFLAGS!$KATE_CFLAGS$ac_delim
 
26092
KATE_LIBS!$KATE_LIBS$ac_delim
 
26093
HAVE_KATE_TRUE!$HAVE_KATE_TRUE$ac_delim
 
26094
HAVE_KATE_FALSE!$HAVE_KATE_FALSE$ac_delim
32334
26095
MANDIR!$MANDIR$ac_delim
32335
26096
OPT_SUBDIRS!$OPT_SUBDIRS$ac_delim
32336
26097
DEBUG!$DEBUG$ac_delim
32344
26105
LTLIBOBJS!$LTLIBOBJS$ac_delim
32345
26106
_ACEOF
32346
26107
 
32347
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
 
26108
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
32348
26109
    break
32349
26110
  elif $ac_last_try; then
32350
26111
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32363
26124
 
32364
26125
cat >>$CONFIG_STATUS <<_ACEOF
32365
26126
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32366
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
26127
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32367
26128
_ACEOF
32368
26129
sed '
32369
26130
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32376
26137
' >>$CONFIG_STATUS <conf$$subs.sed
32377
26138
rm -f conf$$subs.sed
32378
26139
cat >>$CONFIG_STATUS <<_ACEOF
32379
 
:end
32380
 
s/|#_!!_#|//g
32381
26140
CEOF$ac_eof
32382
26141
_ACEOF
32383
26142
 
32571
26330
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32572
26331
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32573
26332
  esac
32574
 
  ac_MKDIR_P=$MKDIR_P
32575
 
  case $MKDIR_P in
32576
 
  [\\/$]* | ?:[\\/]* ) ;;
32577
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32578
 
  esac
32579
26333
_ACEOF
32580
26334
 
32581
26335
cat >>$CONFIG_STATUS <<\_ACEOF
32629
26383
s&@abs_builddir@&$ac_abs_builddir&;t t
32630
26384
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32631
26385
s&@INSTALL@&$ac_INSTALL&;t t
32632
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
32633
26386
$ac_datarootdir_hack
32634
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
26387
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
32635
26388
 
32636
26389
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32637
26390
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32794
26547
  # some people rename them; so instead we look at the file content.
32795
26548
  # Grep'ing the first line is not enough: some people post-process
32796
26549
  # each Makefile.in and add a new line on top of each file to say so.
32797
 
  # Grep'ing the whole file is not good either: AIX grep has a line
32798
 
  # limit of 2048, but all sed's we know have understand at least 4000.
32799
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
26550
  # So let's grep whole file.
 
26551
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32800
26552
    dirpart=`$as_dirname -- "$mf" ||
32801
26553
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32802
26554
         X"$mf" : 'X\(//\)[^/]' \| \
32910
26662
  done
32911
26663
done
32912
26664
 ;;
 
26665
    "libtool":C)
 
26666
 
 
26667
    # See if we are running on zsh, and set the options which allow our
 
26668
    # commands through without removal of \ escapes.
 
26669
    if test -n "${ZSH_VERSION+set}" ; then
 
26670
      setopt NO_GLOB_SUBST
 
26671
    fi
 
26672
 
 
26673
    cfgfile="${ofile}T"
 
26674
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
26675
    $RM "$cfgfile"
 
26676
 
 
26677
    cat <<_LT_EOF >> "$cfgfile"
 
26678
#! $SHELL
 
26679
 
 
26680
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
26681
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
26682
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
26683
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
26684
#
 
26685
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
26686
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
26687
#   Written by Gordon Matzigkeit, 1996
 
26688
#
 
26689
#   This file is part of GNU Libtool.
 
26690
#
 
26691
# GNU Libtool is free software; you can redistribute it and/or
 
26692
# modify it under the terms of the GNU General Public License as
 
26693
# published by the Free Software Foundation; either version 2 of
 
26694
# the License, or (at your option) any later version.
 
26695
#
 
26696
# As a special exception to the GNU General Public License,
 
26697
# if you distribute this file as part of a program or library that
 
26698
# is built using GNU Libtool, you may include this file under the
 
26699
# same distribution terms that you use for the rest of that program.
 
26700
#
 
26701
# GNU Libtool is distributed in the hope that it will be useful,
 
26702
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
26703
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
26704
# GNU General Public License for more details.
 
26705
#
 
26706
# You should have received a copy of the GNU General Public License
 
26707
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
26708
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
26709
# obtained by writing to the Free Software Foundation, Inc.,
 
26710
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
26711
 
 
26712
 
 
26713
# The names of the tagged configurations supported by this script.
 
26714
available_tags=""
 
26715
 
 
26716
# ### BEGIN LIBTOOL CONFIG
 
26717
 
 
26718
# Which release of libtool.m4 was used?
 
26719
macro_version=$macro_version
 
26720
macro_revision=$macro_revision
 
26721
 
 
26722
# Whether or not to build shared libraries.
 
26723
build_libtool_libs=$enable_shared
 
26724
 
 
26725
# Whether or not to build static libraries.
 
26726
build_old_libs=$enable_static
 
26727
 
 
26728
# What type of objects to build.
 
26729
pic_mode=$pic_mode
 
26730
 
 
26731
# Whether or not to optimize for fast installation.
 
26732
fast_install=$enable_fast_install
 
26733
 
 
26734
# The host system.
 
26735
host_alias=$host_alias
 
26736
host=$host
 
26737
host_os=$host_os
 
26738
 
 
26739
# The build system.
 
26740
build_alias=$build_alias
 
26741
build=$build
 
26742
build_os=$build_os
 
26743
 
 
26744
# A sed program that does not truncate output.
 
26745
SED=$lt_SED
 
26746
 
 
26747
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
26748
Xsed="\$SED -e 1s/^X//"
 
26749
 
 
26750
# A grep program that handles long lines.
 
26751
GREP=$lt_GREP
 
26752
 
 
26753
# An ERE matcher.
 
26754
EGREP=$lt_EGREP
 
26755
 
 
26756
# A literal string matcher.
 
26757
FGREP=$lt_FGREP
 
26758
 
 
26759
# A BSD- or MS-compatible name lister.
 
26760
NM=$lt_NM
 
26761
 
 
26762
# Whether we need soft or hard links.
 
26763
LN_S=$lt_LN_S
 
26764
 
 
26765
# What is the maximum length of a command?
 
26766
max_cmd_len=$max_cmd_len
 
26767
 
 
26768
# Object file suffix (normally "o").
 
26769
objext=$ac_objext
 
26770
 
 
26771
# Executable file suffix (normally "").
 
26772
exeext=$exeext
 
26773
 
 
26774
# whether the shell understands "unset".
 
26775
lt_unset=$lt_unset
 
26776
 
 
26777
# turn spaces into newlines.
 
26778
SP2NL=$lt_lt_SP2NL
 
26779
 
 
26780
# turn newlines into spaces.
 
26781
NL2SP=$lt_lt_NL2SP
 
26782
 
 
26783
# How to create reloadable object files.
 
26784
reload_flag=$lt_reload_flag
 
26785
reload_cmds=$lt_reload_cmds
 
26786
 
 
26787
# An object symbol dumper.
 
26788
OBJDUMP=$lt_OBJDUMP
 
26789
 
 
26790
# Method to check whether dependent libraries are shared objects.
 
26791
deplibs_check_method=$lt_deplibs_check_method
 
26792
 
 
26793
# Command to use when deplibs_check_method == "file_magic".
 
26794
file_magic_cmd=$lt_file_magic_cmd
 
26795
 
 
26796
# The archiver.
 
26797
AR=$lt_AR
 
26798
AR_FLAGS=$lt_AR_FLAGS
 
26799
 
 
26800
# A symbol stripping program.
 
26801
STRIP=$lt_STRIP
 
26802
 
 
26803
# Commands used to install an old-style archive.
 
26804
RANLIB=$lt_RANLIB
 
26805
old_postinstall_cmds=$lt_old_postinstall_cmds
 
26806
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
26807
 
 
26808
# A C compiler.
 
26809
LTCC=$lt_CC
 
26810
 
 
26811
# LTCC compiler flags.
 
26812
LTCFLAGS=$lt_CFLAGS
 
26813
 
 
26814
# Take the output of nm and produce a listing of raw symbols and C names.
 
26815
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
26816
 
 
26817
# Transform the output of nm in a proper C declaration.
 
26818
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
26819
 
 
26820
# Transform the output of nm in a C name address pair.
 
26821
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
26822
 
 
26823
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
26824
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
26825
 
 
26826
# The name of the directory that contains temporary libtool files.
 
26827
objdir=$objdir
 
26828
 
 
26829
# Shell to use when invoking shell scripts.
 
26830
SHELL=$lt_SHELL
 
26831
 
 
26832
# An echo program that does not interpret backslashes.
 
26833
ECHO=$lt_ECHO
 
26834
 
 
26835
# Used to examine libraries when file_magic_cmd begins with "file".
 
26836
MAGIC_CMD=$MAGIC_CMD
 
26837
 
 
26838
# Must we lock files when doing compilation?
 
26839
need_locks=$lt_need_locks
 
26840
 
 
26841
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
26842
DSYMUTIL=$lt_DSYMUTIL
 
26843
 
 
26844
# Tool to change global to local symbols on Mac OS X.
 
26845
NMEDIT=$lt_NMEDIT
 
26846
 
 
26847
# Tool to manipulate fat objects and archives on Mac OS X.
 
26848
LIPO=$lt_LIPO
 
26849
 
 
26850
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
26851
OTOOL=$lt_OTOOL
 
26852
 
 
26853
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
26854
OTOOL64=$lt_OTOOL64
 
26855
 
 
26856
# Old archive suffix (normally "a").
 
26857
libext=$libext
 
26858
 
 
26859
# Shared library suffix (normally ".so").
 
26860
shrext_cmds=$lt_shrext_cmds
 
26861
 
 
26862
# The commands to extract the exported symbol list from a shared archive.
 
26863
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
26864
 
 
26865
# Variables whose values should be saved in libtool wrapper scripts and
 
26866
# restored at link time.
 
26867
variables_saved_for_relink=$lt_variables_saved_for_relink
 
26868
 
 
26869
# Do we need the "lib" prefix for modules?
 
26870
need_lib_prefix=$need_lib_prefix
 
26871
 
 
26872
# Do we need a version for libraries?
 
26873
need_version=$need_version
 
26874
 
 
26875
# Library versioning type.
 
26876
version_type=$version_type
 
26877
 
 
26878
# Shared library runtime path variable.
 
26879
runpath_var=$runpath_var
 
26880
 
 
26881
# Shared library path variable.
 
26882
shlibpath_var=$shlibpath_var
 
26883
 
 
26884
# Is shlibpath searched before the hard-coded library search path?
 
26885
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
26886
 
 
26887
# Format of library name prefix.
 
26888
libname_spec=$lt_libname_spec
 
26889
 
 
26890
# List of archive names.  First name is the real one, the rest are links.
 
26891
# The last name is the one that the linker finds with -lNAME
 
26892
library_names_spec=$lt_library_names_spec
 
26893
 
 
26894
# The coded name of the library, if different from the real name.
 
26895
soname_spec=$lt_soname_spec
 
26896
 
 
26897
# Command to use after installation of a shared archive.
 
26898
postinstall_cmds=$lt_postinstall_cmds
 
26899
 
 
26900
# Command to use after uninstallation of a shared archive.
 
26901
postuninstall_cmds=$lt_postuninstall_cmds
 
26902
 
 
26903
# Commands used to finish a libtool library installation in a directory.
 
26904
finish_cmds=$lt_finish_cmds
 
26905
 
 
26906
# As "finish_cmds", except a single script fragment to be evaled but
 
26907
# not shown.
 
26908
finish_eval=$lt_finish_eval
 
26909
 
 
26910
# Whether we should hardcode library paths into libraries.
 
26911
hardcode_into_libs=$hardcode_into_libs
 
26912
 
 
26913
# Compile-time system search path for libraries.
 
26914
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
26915
 
 
26916
# Run-time system search path for libraries.
 
26917
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
26918
 
 
26919
# Whether dlopen is supported.
 
26920
dlopen_support=$enable_dlopen
 
26921
 
 
26922
# Whether dlopen of programs is supported.
 
26923
dlopen_self=$enable_dlopen_self
 
26924
 
 
26925
# Whether dlopen of statically linked programs is supported.
 
26926
dlopen_self_static=$enable_dlopen_self_static
 
26927
 
 
26928
# Commands to strip libraries.
 
26929
old_striplib=$lt_old_striplib
 
26930
striplib=$lt_striplib
 
26931
 
 
26932
 
 
26933
# The linker used to build libraries.
 
26934
LD=$lt_LD
 
26935
 
 
26936
# Commands used to build an old-style archive.
 
26937
old_archive_cmds=$lt_old_archive_cmds
 
26938
 
 
26939
# A language specific compiler.
 
26940
CC=$lt_compiler
 
26941
 
 
26942
# Is the compiler the GNU compiler?
 
26943
with_gcc=$GCC
 
26944
 
 
26945
# Compiler flag to turn off builtin functions.
 
26946
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
26947
 
 
26948
# How to pass a linker flag through the compiler.
 
26949
wl=$lt_lt_prog_compiler_wl
 
26950
 
 
26951
# Additional compiler flags for building library objects.
 
26952
pic_flag=$lt_lt_prog_compiler_pic
 
26953
 
 
26954
# Compiler flag to prevent dynamic linking.
 
26955
link_static_flag=$lt_lt_prog_compiler_static
 
26956
 
 
26957
# Does compiler simultaneously support -c and -o options?
 
26958
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
26959
 
 
26960
# Whether or not to add -lc for building shared libraries.
 
26961
build_libtool_need_lc=$archive_cmds_need_lc
 
26962
 
 
26963
# Whether or not to disallow shared libs when runtime libs are static.
 
26964
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
26965
 
 
26966
# Compiler flag to allow reflexive dlopens.
 
26967
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
26968
 
 
26969
# Compiler flag to generate shared objects directly from archives.
 
26970
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
26971
 
 
26972
# Whether the compiler copes with passing no objects directly.
 
26973
compiler_needs_object=$lt_compiler_needs_object
 
26974
 
 
26975
# Create an old-style archive from a shared archive.
 
26976
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
26977
 
 
26978
# Create a temporary old-style archive to link instead of a shared archive.
 
26979
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
26980
 
 
26981
# Commands used to build a shared archive.
 
26982
archive_cmds=$lt_archive_cmds
 
26983
archive_expsym_cmds=$lt_archive_expsym_cmds
 
26984
 
 
26985
# Commands used to build a loadable module if different from building
 
26986
# a shared archive.
 
26987
module_cmds=$lt_module_cmds
 
26988
module_expsym_cmds=$lt_module_expsym_cmds
 
26989
 
 
26990
# Whether we are building with GNU ld or not.
 
26991
with_gnu_ld=$lt_with_gnu_ld
 
26992
 
 
26993
# Flag that allows shared libraries with undefined symbols to be built.
 
26994
allow_undefined_flag=$lt_allow_undefined_flag
 
26995
 
 
26996
# Flag that enforces no undefined symbols.
 
26997
no_undefined_flag=$lt_no_undefined_flag
 
26998
 
 
26999
# Flag to hardcode \$libdir into a binary during linking.
 
27000
# This must work even if \$libdir does not exist
 
27001
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
27002
 
 
27003
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
27004
# during linking.  This must work even if \$libdir does not exist.
 
27005
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
27006
 
 
27007
# Whether we need a single "-rpath" flag with a separated argument.
 
27008
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
27009
 
 
27010
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
27011
# DIR into the resulting binary.
 
27012
hardcode_direct=$hardcode_direct
 
27013
 
 
27014
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
27015
# DIR into the resulting binary and the resulting library dependency is
 
27016
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
27017
# library is relocated.
 
27018
hardcode_direct_absolute=$hardcode_direct_absolute
 
27019
 
 
27020
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
27021
# into the resulting binary.
 
27022
hardcode_minus_L=$hardcode_minus_L
 
27023
 
 
27024
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
27025
# into the resulting binary.
 
27026
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
27027
 
 
27028
# Set to "yes" if building a shared library automatically hardcodes DIR
 
27029
# into the library and all subsequent libraries and executables linked
 
27030
# against it.
 
27031
hardcode_automatic=$hardcode_automatic
 
27032
 
 
27033
# Set to yes if linker adds runtime paths of dependent libraries
 
27034
# to runtime path list.
 
27035
inherit_rpath=$inherit_rpath
 
27036
 
 
27037
# Whether libtool must link a program against all its dependency libraries.
 
27038
link_all_deplibs=$link_all_deplibs
 
27039
 
 
27040
# Fix the shell variable \$srcfile for the compiler.
 
27041
fix_srcfile_path=$lt_fix_srcfile_path
 
27042
 
 
27043
# Set to "yes" if exported symbols are required.
 
27044
always_export_symbols=$always_export_symbols
 
27045
 
 
27046
# The commands to list exported symbols.
 
27047
export_symbols_cmds=$lt_export_symbols_cmds
 
27048
 
 
27049
# Symbols that should not be listed in the preloaded symbols.
 
27050
exclude_expsyms=$lt_exclude_expsyms
 
27051
 
 
27052
# Symbols that must always be exported.
 
27053
include_expsyms=$lt_include_expsyms
 
27054
 
 
27055
# Commands necessary for linking programs (against libraries) with templates.
 
27056
prelink_cmds=$lt_prelink_cmds
 
27057
 
 
27058
# Specify filename containing input files.
 
27059
file_list_spec=$lt_file_list_spec
 
27060
 
 
27061
# How to hardcode a shared library path into an executable.
 
27062
hardcode_action=$hardcode_action
 
27063
 
 
27064
# ### END LIBTOOL CONFIG
 
27065
 
 
27066
_LT_EOF
 
27067
 
 
27068
  case $host_os in
 
27069
  aix3*)
 
27070
    cat <<\_LT_EOF >> "$cfgfile"
 
27071
# AIX sometimes has problems with the GCC collect2 program.  For some
 
27072
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
27073
# vanish in a puff of smoke.
 
27074
if test "X${COLLECT_NAMES+set}" != Xset; then
 
27075
  COLLECT_NAMES=
 
27076
  export COLLECT_NAMES
 
27077
fi
 
27078
_LT_EOF
 
27079
    ;;
 
27080
  esac
 
27081
 
 
27082
 
 
27083
ltmain="$ac_aux_dir/ltmain.sh"
 
27084
 
 
27085
 
 
27086
  # We use sed instead of cat because bash on DJGPP gets confused if
 
27087
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
27088
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
27089
  # is reportedly fixed, but why not run on old versions too?
 
27090
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
27091
    || (rm -f "$cfgfile"; exit 1)
 
27092
 
 
27093
  case $xsi_shell in
 
27094
  yes)
 
27095
    cat << \_LT_EOF >> "$cfgfile"
 
27096
 
 
27097
# func_dirname file append nondir_replacement
 
27098
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
27099
# otherwise set result to NONDIR_REPLACEMENT.
 
27100
func_dirname ()
 
27101
{
 
27102
  case ${1} in
 
27103
    */*) func_dirname_result="${1%/*}${2}" ;;
 
27104
    *  ) func_dirname_result="${3}" ;;
 
27105
  esac
 
27106
}
 
27107
 
 
27108
# func_basename file
 
27109
func_basename ()
 
27110
{
 
27111
  func_basename_result="${1##*/}"
 
27112
}
 
27113
 
 
27114
# func_dirname_and_basename file append nondir_replacement
 
27115
# perform func_basename and func_dirname in a single function
 
27116
# call:
 
27117
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
27118
#             add APPEND to the result, otherwise set result
 
27119
#             to NONDIR_REPLACEMENT.
 
27120
#             value returned in "$func_dirname_result"
 
27121
#   basename: Compute filename of FILE.
 
27122
#             value retuned in "$func_basename_result"
 
27123
# Implementation must be kept synchronized with func_dirname
 
27124
# and func_basename. For efficiency, we do not delegate to
 
27125
# those functions but instead duplicate the functionality here.
 
27126
func_dirname_and_basename ()
 
27127
{
 
27128
  case ${1} in
 
27129
    */*) func_dirname_result="${1%/*}${2}" ;;
 
27130
    *  ) func_dirname_result="${3}" ;;
 
27131
  esac
 
27132
  func_basename_result="${1##*/}"
 
27133
}
 
27134
 
 
27135
# func_stripname prefix suffix name
 
27136
# strip PREFIX and SUFFIX off of NAME.
 
27137
# PREFIX and SUFFIX must not contain globbing or regex special
 
27138
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
27139
# dot (in which case that matches only a dot).
 
27140
func_stripname ()
 
27141
{
 
27142
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
27143
  # positional parameters, so assign one to ordinary parameter first.
 
27144
  func_stripname_result=${3}
 
27145
  func_stripname_result=${func_stripname_result#"${1}"}
 
27146
  func_stripname_result=${func_stripname_result%"${2}"}
 
27147
}
 
27148
 
 
27149
# func_opt_split
 
27150
func_opt_split ()
 
27151
{
 
27152
  func_opt_split_opt=${1%%=*}
 
27153
  func_opt_split_arg=${1#*=}
 
27154
}
 
27155
 
 
27156
# func_lo2o object
 
27157
func_lo2o ()
 
27158
{
 
27159
  case ${1} in
 
27160
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
27161
    *)    func_lo2o_result=${1} ;;
 
27162
  esac
 
27163
}
 
27164
 
 
27165
# func_xform libobj-or-source
 
27166
func_xform ()
 
27167
{
 
27168
  func_xform_result=${1%.*}.lo
 
27169
}
 
27170
 
 
27171
# func_arith arithmetic-term...
 
27172
func_arith ()
 
27173
{
 
27174
  func_arith_result=$(( $* ))
 
27175
}
 
27176
 
 
27177
# func_len string
 
27178
# STRING may not start with a hyphen.
 
27179
func_len ()
 
27180
{
 
27181
  func_len_result=${#1}
 
27182
}
 
27183
 
 
27184
_LT_EOF
 
27185
    ;;
 
27186
  *) # Bourne compatible functions.
 
27187
    cat << \_LT_EOF >> "$cfgfile"
 
27188
 
 
27189
# func_dirname file append nondir_replacement
 
27190
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
27191
# otherwise set result to NONDIR_REPLACEMENT.
 
27192
func_dirname ()
 
27193
{
 
27194
  # Extract subdirectory from the argument.
 
27195
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
27196
  if test "X$func_dirname_result" = "X${1}"; then
 
27197
    func_dirname_result="${3}"
 
27198
  else
 
27199
    func_dirname_result="$func_dirname_result${2}"
 
27200
  fi
 
27201
}
 
27202
 
 
27203
# func_basename file
 
27204
func_basename ()
 
27205
{
 
27206
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
27207
}
 
27208
 
 
27209
 
 
27210
# func_stripname prefix suffix name
 
27211
# strip PREFIX and SUFFIX off of NAME.
 
27212
# PREFIX and SUFFIX must not contain globbing or regex special
 
27213
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
27214
# dot (in which case that matches only a dot).
 
27215
# func_strip_suffix prefix name
 
27216
func_stripname ()
 
27217
{
 
27218
  case ${2} in
 
27219
    .*) func_stripname_result=`$ECHO "X${3}" \
 
27220
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
27221
    *)  func_stripname_result=`$ECHO "X${3}" \
 
27222
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
27223
  esac
 
27224
}
 
27225
 
 
27226
# sed scripts:
 
27227
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
27228
my_sed_long_arg='1s/^-[^=]*=//'
 
27229
 
 
27230
# func_opt_split
 
27231
func_opt_split ()
 
27232
{
 
27233
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
27234
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
27235
}
 
27236
 
 
27237
# func_lo2o object
 
27238
func_lo2o ()
 
27239
{
 
27240
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
27241
}
 
27242
 
 
27243
# func_xform libobj-or-source
 
27244
func_xform ()
 
27245
{
 
27246
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
27247
}
 
27248
 
 
27249
# func_arith arithmetic-term...
 
27250
func_arith ()
 
27251
{
 
27252
  func_arith_result=`expr "$@"`
 
27253
}
 
27254
 
 
27255
# func_len string
 
27256
# STRING may not start with a hyphen.
 
27257
func_len ()
 
27258
{
 
27259
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
27260
}
 
27261
 
 
27262
_LT_EOF
 
27263
esac
 
27264
 
 
27265
case $lt_shell_append in
 
27266
  yes)
 
27267
    cat << \_LT_EOF >> "$cfgfile"
 
27268
 
 
27269
# func_append var value
 
27270
# Append VALUE to the end of shell variable VAR.
 
27271
func_append ()
 
27272
{
 
27273
  eval "$1+=\$2"
 
27274
}
 
27275
_LT_EOF
 
27276
    ;;
 
27277
  *)
 
27278
    cat << \_LT_EOF >> "$cfgfile"
 
27279
 
 
27280
# func_append var value
 
27281
# Append VALUE to the end of shell variable VAR.
 
27282
func_append ()
 
27283
{
 
27284
  eval "$1=\$$1\$2"
 
27285
}
 
27286
 
 
27287
_LT_EOF
 
27288
    ;;
 
27289
  esac
 
27290
 
 
27291
 
 
27292
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
27293
    || (rm -f "$cfgfile"; exit 1)
 
27294
 
 
27295
  mv -f "$cfgfile" "$ofile" ||
 
27296
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
27297
  chmod +x "$ofile"
 
27298
 
 
27299
 ;;
32913
27300
    "po-directories":C)
32914
27301
    for ac_file in $CONFIG_FILES; do
32915
27302
      # Support "outfile[:infile[:infile...]]"
33089
27476
echo "$as_me: WARNING: curl libraries and/or headers missing, ogg123
33090
27477
will NOT be built with http support." >&2;}
33091
27478
    fi
 
27479
    if test "x$HAVE_KATE" != xyes; then
 
27480
        { echo "$as_me:$LINENO: WARNING: Kate libraries and/or headers missing, oggenc
 
27481
will NOT be built with Kate lyrics support." >&5
 
27482
echo "$as_me: WARNING: Kate libraries and/or headers missing, oggenc
 
27483
will NOT be built with Kate lyrics support." >&2;}
 
27484
    fi
33092
27485
fi